Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Some questions about gdb's remote protocol and reverse debugging
@ 2009-08-11 23:00 Julian Smith
  2009-08-11 23:24 ` Michael Snyder
  0 siblings, 1 reply; 5+ messages in thread
From: Julian Smith @ 2009-08-11 23:00 UTC (permalink / raw)
  To: gdb

Hello

I've been trying out gdb-cvs's remote protocol, specifically the
commands for reverse debugging, and i have a couple of questions that i
was hoping someone might be able to help me with. I'm using Linux on
x86-32 and x86-64.

First, if i'm understanding things correctly, gdb appears to default to
software breakpoints, using the 'Z0' and 'z0' commands and, if these
aren't supported by the remote target, it then tries to use 'M' and 'm'
to write breakpoints directly into the inferior's memory.

Is there any way to tell gdb to try to use hardware breakpoints (with
the 'Z1' and 'z1' commands) before resorting to 'M' and 'm' ? [In the
environment i'm working in, UndoDB, hardware breakpoints are more
convenient because they don't require any patching up of %pc, and
poking breakpoints directly into memory is not supported.]

Second, am i right in thinking that gdb does things like reverse-step
and reverse-next by effectively doing many reverse-stepi's (with 'bs'),
interleaved with 'g' commands to get the registers? If so, are there
any plans to try to avoid the overhead of this somehow ?

Many thanks,

- Julian

-- 
http://undo-software.com/


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

end of thread, other threads:[~2009-08-21 10:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-11 23:00 Some questions about gdb's remote protocol and reverse debugging Julian Smith
2009-08-11 23:24 ` Michael Snyder
2009-08-11 23:38   ` Daniel Jacobowitz
2009-08-21 10:57   ` Julian Smith
2009-08-21 15:43     ` Jakob Engblom

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