This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]