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

Pedro Alves alves.ped@gmail.com
Wed Jan 4 12:02:00 GMT 2012


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



More information about the Gdb-patches mailing list