Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* x86 hardware breakpoint question
@ 2001-11-04 14:28 Steven Bauer
  2001-11-05  6:38 ` Eli Zaretskii
  2001-11-05  8:25 ` Quality Quorum
  0 siblings, 2 replies; 12+ messages in thread
From: Steven Bauer @ 2001-11-04 14:28 UTC (permalink / raw)
  To: gdb

Quick question, does gdb support hardware breakpoints on
x86 architectures?  I have been trying to get them to work keep
getting an unknown error. 

(gdb) hbreak   *0x80485d9    

....

warning: Cannot insert breakpoint 3:
Error accessing memory address 0x80485d9: Unknown error 4294967295.


One other question, is there any way to have breakpoints enabled
when an exec occurs.  What I would like to do is continue through the
exec getting the sigtrap if the new process is loaded, delete old
breakpoints, load the symbols for the new process, and eventually 
reset breakpoints once main is hit.  The reason I want this is that
the exec could fail, in which case I want the original breakpoints to
still be in place.  If I remove all the breakpoints before the 
exec, continue, and the exec fails, I miss all the functions I 
originally had breakpoints set for.

Thanks,
Steve


 


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-11-17 22:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-04 14:28 x86 hardware breakpoint question Steven Bauer
2001-11-05  6:38 ` Eli Zaretskii
2001-11-05 23:28   ` Pierre Muller
2001-11-06 12:54     ` Eli Zaretskii
2001-11-06 14:35       ` Christopher Faylor
2001-11-06 15:15         ` muller
2001-11-06 15:58         ` DJ Delorie
2001-11-06 17:12           ` muller
2001-11-06 18:13             ` DJ Delorie
2001-11-06 19:34               ` Christopher Faylor
2001-11-07 18:38                 ` muller
2001-11-05  8:25 ` Quality Quorum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox