Groups | Search | Server Info | Login | Register


Groups > gnu.gcc.help > #3557

Re: setting full source filename for gdb

From steve g <sgonedes1977@gmail.com>
Newsgroups gnu.gcc.help, gnu.gdb
Subject Re: setting full source filename for gdb
References <pGEMc.181495$Oq2.4640@attbi_s52>
Date 2026-04-11 21:06 -0400
Message-ID <87se91c7if.fsf@gmail.com> (permalink)

Cross-posted to 2 groups.

Show all headers | View raw


"Don Khan" <root@localhost.localdomain> writes:

> Hello,
>
> Does anyone know how to compile (using gcc) so that the full source filename
> paths are used when debugging with gdb (Linux i686).


try compiling with: gcc -ggdb -Og -fverbose-asm

this is a somewhat new feature for gcc.

I also use gdb -tui at the terminal or else I use DDD for X.

Back to gnu.gcc.help | Previous | Find similar


Thread

Re: setting full source filename for gdb steve g <sgonedes1977@gmail.com> - 2026-04-11 21:06 -0400

csiph-web