Stabs or Dwarf Was: [PATCH]: testsuite/gdb.base/constvars.exp
Michael Snyder
msnyder@cygnus.com
Wed Sep 26 15:23:00 GMT 2001
Fernando Nasser wrote:
>
> Hi Stan,
>
> Thanks for your comments.
>
> Stan Shebs wrote:
> >
> > I can't think of a completely reliable test on binary files. For
> > instance, in original a.out, stabs are plain symbols, not in a
> > distinctly-named section. You also have the problem of an executable
> > maybe having libraries compiled with stabs, and main prog with dwarf,
> > and objdump can't distinguish.
> >
>
> True.
>
> I was thinking just in terms of the testsuite. Most test programs are
> a single file. Could we test just the object file for that one?
>
> Another idea: if we can't say t is stabs but we can say it is dwarf,
> we could implement a gdb_is_dwarf instead. Would that help?
The "info source" command will give you that information.
Haven't tried it with AOUT, but it works with stabs/elf and
dwarf/elf. If we got a positive for dwarf we could run the test.
More information about the Gdb
mailing list