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



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

  • OpenOffice.org 2.3.0_1 on 7.0 - unable to load/save to files
    ... I've come across a situation with my installation of openoffice.org-2.3.0, ... This output hinted me to attach to the process using gdb, ... This prompted me to recompile both GTK packages, ...
    (freebsd-questions)
  • Setup error gtk
    ... I have just installed gnat & gtk in XP PRO ... gdb: unknown target exception 0xc0000139 at 0x7c96478e ... Obviously I have got the installation wrong somewhere. ...
    (comp.lang.ada)
  • libpthread problem (segfaults)
    ... libpthread on my FreeBSD-5.4-RELEASE/i386 installation will segfault as ... segmentation fault kedit ... $ gdb `which kedit` -c kedit.core ... I've rebuilt libpthread and qt (I've used qt's own ...
    (freebsd-stable)
  • Re: [Info-ingres] Tracking a SIGSEGV
    ... I just tried and managed to lock the installation up totally. ... to detach the running iimerge an I had to kill -KILL all running ... After I invoked gdb I got stuff like... ... Quit anyway (and detach it)? ...
    (comp.databases.ingres)