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]

Re: [patch] Turn on dbg msg of IPA along with gdbserver's


On 01/04/2012 03:40 AM, Yao Qi wrote:
Hi,
We are still unable to change IPA's debug flag `debug_threads', because
it is within inferior's address space.

Since it's in the inferior, I just do "print debug_threads = 1" from gdb. It won't work if the ipa is stripped though, so I won't object to something like this.

Since gdbserver has been a good
mechanism to access gdb_agent_XXX variables in inferior's space, we can
do similar thing to turn on IPA's debug flag.

This patch renames debug flag `debug_threads' to `gdb_agent_debug', and
let gdbserver to set it if `debug_threads' (in gdbserver's space) is
true.  For the user's perspective, if gdbserver option --debug is on,
IPA's debugging message comes into the gdbserver's debug message.

OK for mainline?

Sorry, not in this form. It's quite useful to be able to turn gdbserver's and the IPA's debug output independently. I'd like to retain that possibility.

--
Pedro Alves


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