diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 2001-01-05 17:51:06 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 2001-01-05 17:51:06 +0000 |
| commit | cae5274958e845ff38e72e741aed85474cd9e551 (patch) | |
| tree | 45f7bdb23b93806fc2ea52a6135e1e2928990f35 /gnu/usr.bin/binutils | |
| parent | eb2638a65499dd71929e024d045e53b0a224b659 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/binutils')
| -rw-r--r-- | gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c b/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c index 75824d3ee228..14f202c0193f 100644 --- a/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c +++ b/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c @@ -478,6 +478,11 @@ stopped_by_watchpoint() { struct dbreg dbr; extern int inferior_pid; + + if (current_target.to_shortname == 0 || + ! (strcmp(current_target.to_shortname, "child") == 0 || + strcmp(current_target.to_shortname, "freebsd-uthreads") == 0)) + return 0; if (inferior_pid != 0 && core_bfd == NULL) { @@ -512,6 +517,11 @@ insert_watchpoint(addr, len, type) struct dbreg dbr; extern int inferior_pid; + if (current_target.to_shortname == 0 || + ! (strcmp(current_target.to_shortname, "child") == 0 || + strcmp(current_target.to_shortname, "freebsd-uthreads") == 0)) + return 0; + if (inferior_pid != 0 && core_bfd == NULL) { int pid = inferior_pid & ((1 << 17) - 1); /* XXX extract pid from tid */ @@ -607,6 +617,11 @@ remove_watchpoint(addr, len, type) struct dbreg dbr; extern int inferior_pid; + if (current_target.to_shortname == 0 || + ! (strcmp(current_target.to_shortname, "child") == 0 || + strcmp(current_target.to_shortname, "freebsd-uthreads") == 0)) + return 0; + if (inferior_pid != 0 && core_bfd == NULL) { int pid = inferior_pid & ((1 << 17) - 1); /* XXX extract pid from tid */ |
