Dejagnu testing issue

Kevin Pouget
2011-10-20T14:47:47Z

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