diff options
| author | Matthew D Fleming <mdf@FreeBSD.org> | 2011-02-18 22:25:11 +0000 |
|---|---|---|
| committer | Matthew D Fleming <mdf@FreeBSD.org> | 2011-02-18 22:25:11 +0000 |
| commit | 3a5d36716fae934b211ab63e86cdcf98ea7618ec (patch) | |
| tree | 46e277fb34fa25a6bc0562a2934616b700f3f6f8 /sys/ddb | |
| parent | 79c77d726e35146bdb1d9422fa89eeabf1212a10 (diff) | |
Notes
Diffstat (limited to 'sys/ddb')
| -rw-r--r-- | sys/ddb/db_command.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 7fab5c28a7f2..ba9c094aa367 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -723,10 +723,16 @@ static void db_gdb(db_expr_t dummy1, boolean_t dummy2, db_expr_t dummy3, char *dummy4) { - if (kdb_dbbe_select("gdb") != 0) + if (kdb_dbbe_select("gdb") != 0) { db_printf("The remote GDB backend could not be selected.\n"); - else - db_printf("Step to enter the remote GDB backend.\n"); + return; + } + /* + * Mark that we are done in the debugger. kdb_trap() + * should re-enter with the new backend. + */ + db_cmd_loop_done = 1; + db_printf("(ctrl-c will return control to ddb)\n"); } static void |
