On Sat, 16 Aug 1997, Paul Wankadia wrote:
> I got gcc to turn my C source into ASM with and without '-g'. When I used
> '-g', the resulting ASM code had a pile of debugging-related stuff at the
top
> of the file that was obviously generated from the compiling. I'd say that
> you probably can't get as to generate 'em for you if all you give it is the
> ASM code...
Seems so. But gdb has the -s option to load a symbol file, and (g)as
has the -as option to dump the symbol table (listing) to stdio.
So.......
as -as hello.s > hello.sym
as hello -o hello
gdb hello
(gdb) symbol-file hello.sym
Hmmph. Didn't work. 'can't read symbols: File format not recognized'.
--- ifmail-tx (i386 Linux)
---------------
* Origin: 300 miles East of Seattle, WA (1:346/15.1)
|