This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: eliminate deprecated_insert_raw_breakpoint. what's left.
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: macro at codesourcery dot com (Maciej W. Rozycki)
- Cc: brobecker at adacore dot com (Joel Brobecker), palves at redhat dot com (Pedro Alves), gdb-patches at sourceware dot org (GDB Patches)
- Date: Thu, 11 Sep 2014 13:50:33 +0200 (CEST)
- Subject: Re: eliminate deprecated_insert_raw_breakpoint. what's left.
- Authentication-results: sourceware.org; auth=none
Maciej W. Rozycki wrote:
> Now that you mention it there is this statement:
>
> sym = lookup_symbol (MDEBUG_EFI_SYMBOL_NAME, b, LABEL_DOMAIN, 0, NULL);
>
> in `mips-mdebug-tdep.c' (in `non_heuristic_proc_desc') indeed, however
> it's just a fallback in the case where no PDR record has been found.
> This part can be removed if IRIX support was dropped, we don't expect to
> have a `.mdebug' section on non-IRIX MIPS ELF targets, so that would
> become dead code. The structure of PDR itself is documented in [1] and is
> only a subset of what a `.mdebug' section would include.
OK, I see. Looking at gas sources, I can now see that it will create a
.pdr section instead of .mdebug (unless ECOFF debugging is enabled).
> > Also, do you happen to know if on other (non- OSF/1) Alpha platforms the
> > .mdebug debug format is ever used?
>
> On Alpha/Linux you'll get it with `-gstabs', although that'll be along
> some DWARF information for some reason, at least in the somewhat dated
> version of Alpha GCC I have, e.g.:
Thanks for the info! Looking through GCC and GAS sources, this is triggered
by GCC passing the -mdebug flag to GAS when it gets -gstabs. In fact, there
is also a code path on Mips to pass -mdebug to GAS; but this needs the -gcoff
GCC option ...
So in any case, it seems that once IRIX and OSF are gone, we no longer need
to support the ECOFF file format, but there are still ways to generate the
ECOFF *debug* format (even though non-default) on two Linux platforms. Well,
I guess there's currently no need to remove GDB support for that ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com