This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: as -gstabs does not work on ia64
Andrew Cagney <ac131313@cygnus.com> writes:
> > Hi Andreas,
> >
> >> How about this:
> >> case OPTION_GSTABS:
> >> +#ifdef TC_IA64
> >> + as_fatal (_("--gstabs is not supported for ia64"));
> >> +#else
> >> debug_type = DEBUG_STABS;
> >> +#endif
> >> break;
> > I would prefer not to see target specific code enter the generic
> > sources like this. (Even though it has been done elsewhere). I would
> > prefer to see either the IA64 backend detecting that --gstabs had been
> > specified and issuing an error message (say during md_parse_args) or
> > else have tc-ia64.h define a macro which is then tested in
> > parse_args().
>
> Can it be fixed? Source level assembler debuging is an increasingly
> popular feature in GDB.
You need to redefine stabs to permit 64 bit addresses, and you need to
figure out a way to identify the stabs address size, and you need to
make gdb understand 64 bit stabs.
Or you could just use DWARF.
Ian