Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Dejagnu testing issue
@ 2011-10-20 14:56 Kevin Pouget
  2011-10-20 15:02 ` Jan Kratochvil
  2011-10-20 15:04 ` Tom Tromey
  0 siblings, 2 replies; 6+ messages in thread
From: Kevin Pouget @ 2011-10-20 14:56 UTC (permalink / raw)
  To: gdb-patches

Hello,

I'm trying to build regression tests with DejaGNU, but I can't see how
to solve this problem:

how can I read a value from what GDB writes, and use it later to
validate some tests.

For instance, the pid:

I know it's it "info inferiors" --> ".*process HERE .*", I would like
to save it, and then do something like "detach", "attach $PID"

(don't get me wrong, I know there are some alternatives to get the
PID, but I really want to read it from a GDB command)


By the way, is it a normal that I can't set a thread breakpoint this way:

> break <somewhere> thread $_thread
> Junk after thread keyword.

(that would have bypassed the problem described above !)


Thanks,

Kevin


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

end of thread, other threads:[~2011-10-24  7:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-20 14:56 Dejagnu testing issue Kevin Pouget
2011-10-20 15:02 ` Jan Kratochvil
2011-10-20 15:04 ` Tom Tromey
2011-10-21  8:33   ` Kevin Pouget
2011-10-21  8:42     ` Jan Kratochvil
2011-10-24  9:15       ` Kevin Pouget

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