This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] Improved linker-debugger interface
- From: Tom Tromey <tromey at redhat dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: Joel Brobecker <brobecker at adacore dot com>, gdb-patches at sourceware dot org, Jan Kratochvil <jan dot kratochvil at redhat dot com>, Pedro Alves <palves at redhat dot com>
- Date: Wed, 26 Jun 2013 09:37:28 -0600
- Subject: Re: [commit] Improved linker-debugger interface
- References: <20130516144340 dot GA2105 at blade dot nx> <20130604133819 dot GA25892 at blade dot nx> <20130625205350 dot GA28973 at adacore dot com> <m3obatx5b3 dot fsf at redhat dot com>
Joel> Also, I am wondering we really want a warning in this case -
Joel> I think this is going to make the average user think that there
Joel> is something wrong and therefore that needs to be fixed. What
Joel> do people think?
Sergio> The second thing is the warning. It is issues by Gary's patch, and I
Sergio> agree that it could confuse users. However, I think it is still a good
Sergio> thing to have. Maybe one could create a debug flag that would enable
Sergio> printing such warnings? Just an idea.
It seems to me that we could make the warning more verbose and have it
request that users file a bug report; and it could include a little
explanation, plus some text to report. Like:
warning: Probes-based dynamic linker interface failed:
Unknown numeric token ...
This means there is a bug, either in gdb or elsewhere in the
toolchain. Please report it to the gdb bugzilla, along with
this information:
Arch: Whatever
Probe name: ...
Argument number: ...
Argument text: ...
Being extra wordy is a bit of a pain, maybe, since presumably users will
see it often. OTOH, it's a "shouldn't happen" scenario where gdb has
lots of information already...
Also, I wonder why we're trying to use the probes on a platform to which
the gdb side hasn't been ported. Are we just optimistically trying to
parse the assembly operands here?
Tom