diff options
author | Jim Blandy <jimb@codesourcery.com> | 2007-08-29 22:07:47 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2007-08-29 22:07:47 +0000 |
commit | fe5aea2e5f57d9a331f91a54f5c410a583f5cd3c (patch) | |
tree | 26fffe34bc6df09973366ad5aee45fd7dd815ea1 | |
parent | 13ce713376c4675803b8cc8f10176b22bdadcdd0 (diff) | |
download | gdb-fe5aea2e5f57d9a331f91a54f5c410a583f5cd3c.zip gdb-fe5aea2e5f57d9a331f91a54f5c410a583f5cd3c.tar.gz gdb-fe5aea2e5f57d9a331f91a54f5c410a583f5cd3c.tar.bz2 |
* breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
this code has not been compiled for two years.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/breakpoint.c | 22 |
2 files changed, 5 insertions, 22 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 85e8c85..b360444 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-08-29 Jim Blandy <jimb@codesourcery.com> + + * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block; + this code has not been compiled for two years. + 2007-08-29 Michael Snyder <msnyder@access-company.com> * event-top.c (gdb_readline2): Return after EOF. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index fd68781..99104aa 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -5767,28 +5767,6 @@ watch_command_1 (char *arg, int accessflag, int from_tty) error (_("Target can only support one kind of HW watchpoint at a time.")); } -#if defined(HPUXHPPA) - /* On HP-UX if you set a h/w - watchpoint before the "run" command, the inferior dies with a e.g., - SIGILL once you start it. I initially believed this was due to a - bad interaction between page protection traps and the initial - startup sequence by the dynamic linker. - - However, I tried avoiding that by having HP-UX's implementation of - TARGET_CAN_USE_HW_WATCHPOINT return FALSE if there was no inferior_ptid - yet, which forced slow watches before a "run" or "attach", and it - still fails somewhere in the startup code. - - Until I figure out what's happening, I'm disallowing watches altogether - before the "run" or "attach" command. We'll tell the user they must - set watches after getting the program started. */ - if (!target_has_execution) - { - warning (_("can't do that without a running program; try \"break main\"), \"run\" first"); - return; - } -#endif /* HPUXHPPA */ - /* Change the type of breakpoint to an ordinary watchpoint if a hardware watchpoint could not be set. */ if (!mem_cnt || target_resources_ok <= 0) |