gdb_main: Add some output in the scan commands to indicate when still attached that you aren't after the command, despite what GDB thinks
This commit is contained in:
parent
b47ee11537
commit
5ae5ffb7c3
|
@ -72,8 +72,10 @@ static void handle_kill_target(void);
|
||||||
static void gdb_target_destroy_callback(struct target_controller *tc, target *t)
|
static void gdb_target_destroy_callback(struct target_controller *tc, target *t)
|
||||||
{
|
{
|
||||||
(void)tc;
|
(void)tc;
|
||||||
if (cur_target == t)
|
if (cur_target == t) {
|
||||||
|
gdb_out("You are now detached from the previous target.\n");
|
||||||
cur_target = NULL;
|
cur_target = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (last_target == t)
|
if (last_target == t)
|
||||||
last_target = NULL;
|
last_target = NULL;
|
||||||
|
@ -333,7 +335,7 @@ int gdb_main_loop(struct target_controller *tc, bool in_syscall)
|
||||||
handle_q_packet(pbuf, size);
|
handle_q_packet(pbuf, size);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'v': /* General query packet */
|
case 'v': /* Verbose command packet */
|
||||||
handle_v_packet(pbuf, size);
|
handle_v_packet(pbuf, size);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue