The attached patch fixes a problem with potential extraneous breakpoints being found by gdb on ia64. The ia64_linux_stopped_by_watchpoint() routine is not verifying that it has a SIGTRAP signal vs other signals and is only checking the si_code being 4. The fix merely adds a check that if the signal is not a SIGTRAP, then we are not at a hardware watchpoint. Ok to commit? 2003-07-03 Jeff Johnston * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify that we have a SIGTRAP before returning non-zero.