linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: c debugging w/ gdb revisited
  2002-06-14  6:52 c debugging w/ gdb revisited jnf
@ 2002-06-14  6:21 ` Billy O'Connor
  2002-06-14 10:57 ` Felipe W Damasio
  1 sibling, 0 replies; 3+ messages in thread
From: Billy O'Connor @ 2002-06-14  6:21 UTC (permalink / raw)
  To: xjnfx; +Cc: linux-c-programming

   just a quick question, does anyone know if its possible to set a break/watchpoint in gdb when a register points to a certain location?
   i own the gdb manual, and have been playing in it for a bit and just cant seem to figure it out, is it possible?


I don't believe that could be done at all, the machine would have to
stop whenever it mov'd a value to the register so the debugger could
examine it.  I don't think that's possible on Intel machines, anyway.

--
Billy O'Connor

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

* c debugging w/ gdb revisited
@ 2002-06-14  6:52 jnf
  2002-06-14  6:21 ` Billy O'Connor
  2002-06-14 10:57 ` Felipe W Damasio
  0 siblings, 2 replies; 3+ messages in thread
From: jnf @ 2002-06-14  6:52 UTC (permalink / raw)
  To: linux-c-programming

just a quick question, does anyone know if its possible to set a break/watchpoint in gdb when a register points to a certain location?
i own the gdb manual, and have been playing in it for a bit and just cant seem to figure it out, is it possible?

_____________________________________________________________
Sign up for FREE email from DoItYourself.com at http://doityourself.com

_____________________________________________________________
Promote your group and strengthen ties to your members with email@yourgroup.org by Everyone.net  http://www.everyone.net/?btn=tag

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

* Re: c debugging w/ gdb revisited
  2002-06-14  6:52 c debugging w/ gdb revisited jnf
  2002-06-14  6:21 ` Billy O'Connor
@ 2002-06-14 10:57 ` Felipe W Damasio
  1 sibling, 0 replies; 3+ messages in thread
From: Felipe W Damasio @ 2002-06-14 10:57 UTC (permalink / raw)
  To: xjnfx; +Cc: linux-c-programming

On Thu, 13 Jun 2002 23:52:35 -0700 (PDT)
jnf <xjnfx@doityourself.com> wrote:

J> just a quick question, does anyone know if its possible to set a break/watchpoint in gdb when a register points to a certain location?
J> i own the gdb manual, and have been playing in it for a bit and just cant seem to figure it out, is it possible?

	No, you can't (x86 at least).

	What you can do is to watch the contents of the registers constantly and then manually stop your program.

Felipe

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

end of thread, other threads:[~2002-06-14 10:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-14  6:52 c debugging w/ gdb revisited jnf
2002-06-14  6:21 ` Billy O'Connor
2002-06-14 10:57 ` Felipe W Damasio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).