Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Use debug registers directly in programs?
@ 2007-04-03  7:13 Wang Yi
  2007-04-03  7:32 ` Mathieu Lacage
  0 siblings, 1 reply; 3+ messages in thread
From: Wang Yi @ 2007-04-03  7:13 UTC (permalink / raw)
  To: gdb

Hi, all
    gdb is a general purpose debugger, it's very strong.
    But on some specific conditions, somebody would like to provide a
mechanism to let the program debug itself. I mean to provide a subset
function of gdb's, such as only use CPU debug registers to set
watchpoints.
    I think combining with code instrumentation, this mechanism will
partially fulfill auto-debug function and save our time.
    The questions are:
    1. Is that feasible to use debug registers in the programs to
debug themselves? I think yes, any confirm?
    2. How to use the debug registers? The IA32 manual talks about
these registers but doesn't tell how to use them, the gdb internals
covers many areas but it is too complex for those who have not written
or read a debugger before. Should I read the gdb source?

Leo


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

end of thread, other threads:[~2007-04-03 19:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-03  7:13 Use debug registers directly in programs? Wang Yi
2007-04-03  7:32 ` Mathieu Lacage
2007-04-03 19:52   ` Michael Snyder

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