Revision 4cc70e93 qemu-io-cmds.c
b/qemu-io-cmds.c | ||
---|---|---|
1956 | 1956 |
return 0; |
1957 | 1957 |
} |
1958 | 1958 |
|
1959 |
static int remove_break_f(BlockDriverState *bs, int argc, char **argv) |
|
1960 |
{ |
|
1961 |
int ret; |
|
1962 |
|
|
1963 |
ret = bdrv_debug_remove_breakpoint(bs, argv[1]); |
|
1964 |
if (ret < 0) { |
|
1965 |
printf("Could not remove breakpoint %s: %s\n", argv[1], strerror(-ret)); |
|
1966 |
} |
|
1967 |
|
|
1968 |
return 0; |
|
1969 |
} |
|
1970 |
|
|
1959 | 1971 |
static const cmdinfo_t break_cmd = { |
1960 | 1972 |
.name = "break", |
1961 | 1973 |
.argmin = 2, |
... | ... | |
1966 | 1978 |
"request as tag", |
1967 | 1979 |
}; |
1968 | 1980 |
|
1981 |
static const cmdinfo_t remove_break_cmd = { |
|
1982 |
.name = "remove_break", |
|
1983 |
.argmin = 1, |
|
1984 |
.argmax = 1, |
|
1985 |
.cfunc = remove_break_f, |
|
1986 |
.args = "tag", |
|
1987 |
.oneline = "remove a breakpoint by tag", |
|
1988 |
}; |
|
1989 |
|
|
1969 | 1990 |
static int resume_f(BlockDriverState *bs, int argc, char **argv) |
1970 | 1991 |
{ |
1971 | 1992 |
int ret; |
... | ... | |
2126 | 2147 |
qemuio_add_command(&alloc_cmd); |
2127 | 2148 |
qemuio_add_command(&map_cmd); |
2128 | 2149 |
qemuio_add_command(&break_cmd); |
2150 |
qemuio_add_command(&remove_break_cmd); |
|
2129 | 2151 |
qemuio_add_command(&resume_cmd); |
2130 | 2152 |
qemuio_add_command(&wait_break_cmd); |
2131 | 2153 |
qemuio_add_command(&abort_cmd); |
Also available in: Unified diff