This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Turn on dbg msg of IPA along with gdbserver's
- From: Pedro Alves <alves dot ped at gmail dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 04 Jan 2012 12:02:14 +0000
- Subject: Re: [patch] Turn on dbg msg of IPA along with gdbserver's
- References: <4F03CA12.7050304@codesourcery.com>
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