[commit] Improved linker-debugger interface

Joel Brobecker brobecker@adacore.com
Wed Jun 26 19:15:00 GMT 2013


> What could be done is to check gdbarch_stap_is_single_operand_p.  This
> is a mandatory function that needs to be set by the target.  If it
> doesn't exist, then we know that the target lacks SDT support.
> 
> Before I work on a patch, I'd like to know what you think.

I agree that it would be friendlier to make sure stap-support is
activated before trying to use it. If the warning is then only
possible when stap support is in, and denotes a bug in either GDB
or the executable, then I'm all for keeping it.

I also like Tom's suggestion of expanding the warning to contain
the pieces of information he suggested. I had a recent experience
where the warning was missing a critical piece of information and
that prevented me from diagnosing the problem remotely.

-- 
Joel



More information about the Gdb-patches mailing list