[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No high level source with GNU as when using DWARF-2 debugging
From: |
Haakon Riiser |
Subject: |
No high level source with GNU as when using DWARF-2 debugging |
Date: |
Thu, 16 May 2002 20:51:42 +0200 |
User-agent: |
Mutt/1.2.5.1i |
Why doesn't the "-ah" option for including high level source work
when using DWARF 2 debugging information? I noticed this while
checking out GCC 3.1, as "-g" now means "-gdwarf-2", as opposed to
"-gstabs+" in GCC 2.95.3. Try the following command:
gcc -c -gdwarf-2 -Wa,-ahl hello.c
The assembly output looks fine, but no high level code is included.
Do the exact same thing, but s/dwarf-2/stabs+/:
gcc -c -gstabs+ -Wa,-ahl hello.c
GCC versions tried: GCC 2.95.3 and GCC 3.1.
Binutils: 2.12.90.0.1 and 2.11.90.0.19.
Same results in all cases.
--
Haakon
- No high level source with GNU as when using DWARF-2 debugging,
Haakon Riiser <=