mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
We should better ignore a break on gdb port if gdb is not enabled.
This commit is contained in:
parent
5d14c414ec
commit
3080596e7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170043
|
@ -203,14 +203,14 @@ dcons_check_break(struct dcons_softc *dc, int c)
|
|||
|
||||
#if __FreeBSD_version >= 502122
|
||||
if (kdb_alt_break(c, &dc->brk_state)) {
|
||||
#ifdef GDB
|
||||
if ((dc->flags & DC_GDB) != 0) {
|
||||
#ifdef GDB
|
||||
if (gdb_cur == &dcons_gdb_dbgport) {
|
||||
kdb_dbbe_select("gdb");
|
||||
breakpoint();
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
} else
|
||||
breakpoint();
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue