Mail Archives: djgpp-workers/2001/12/23/06:35:12
> Date: Fri, 21 Dec 2001 00:03:01 +0000
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
>
> Does the '-ggdb' option work with gcc 3.0.2? I've been trying to debug a
> program compiled with the '-ggdb3' option with gdb 4.18 and 5.0 and I get
> a 'No line known for main' (or similar wording) when I do 'l main'. I
> tried compiling with just '-ggdb', but I got the same result. When I fall
> back on compiling with '-g', I can debug again.
>
> So, is this a toolchain issue (gdb 5.0 doesn't support something gcc 3.0.2
> does) or is there a bug in gcc 3.0.2's handling of '-ggdb'?
I don't think GDB is the culprit here: it supported stabs since v4.18,
perhaps even before that. I'm quite sure stabs work for me with GCC
3.0.2 as well, but I cannot test that at the moment.
Do -ggdb and -gstabs give you the same results?
If nothing else helps, could you make the offending program (source
and unstripped binary) available for download somewhere, so I could
look into it?
- Raw text -