Re: How to specify a new but non-default path of gdb in gcc?



Hi again,

An additional question: Is the debug information of "gcc -g" provided
by gcc, or gcc needs to link to some existing gdb libraries for generating
such debug info? (If the former case is the answer, I only need to
compile the programs the same way, but invoke the new version of gdb
during debugging.)

Best Regards,
LaBird (Benny).
[Email: Remove all numerals to get the correct address.]


"LaBird" <wlcheung1975@xxxxxxxxx> wrote:
Hi,

I have installed a new gdb (6.6) in my own (normal user) account,
under /home/username/gdb/. The system already has one older
version of gdb, but I'd like to try out the new one without removing
the old one. The installation is successful, but instead of "gcc -g ...",
what should I put in the command line when compiling a C program,
so that the debug information of the new gdb can be added instead
of the default old version?

Thanks!

Best Regards,
LaBird (Benny).
[Email: Remove all numerals to get the correct address.]



.



Relevant Pages

  • Re: [patch] measurements, numbers about CONFIG_OPTIMIZE_INLINING=y impact
    ... so gcc inlined it even though it is huge". ... Dump of assembler code for function main: ... Maybe the kernel's backtrace code should be fixed instead of blaming ...
    (Linux-Kernel)
  • Re: Off by one on RedHat Linux
    ... > i'm looking for frame pointer overwrite vulnerability on my linux boxes. ... Newer versions of gcc intruduce an additional ... $ gdb fp1 -q ...
    (Vuln-Dev)
  • Re: A good compiler
    ... gcc is one of the slowest compilers I have ever used. ... gdb simply isn't a visual gui debugger. ... They add some bugs to gdb, that even if it is a shit, it has only ...
    (comp.lang.c)
  • Re: A good compiler
    ... gcc is one of the slowest compilers I have ever used. ... gdb is a pile of shit. ...
    (comp.lang.c)
  • Re: What happens when your program crashes?
    ... GDB is a monster debugger, like its cousin GCC. ... Are there *any* DJGPP versions that do use DLLs? ... The documentation is ~10 Mb and source is 45 Mb. ...
    (comp.lang.c)