This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Dejagnu testing issue
- From: Kevin Pouget <kevin dot pouget at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 20 Oct 2011 16:47:10 +0200
- Subject: Dejagnu testing issue
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