🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #1

Re: setting full source filename for gdb

#1
From: steve g
Date: Sun, 12 Apr 2026 01:06
14 lines
1692 bytes
"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.
Technical Details
Message-ID: <87se91c7if.fsf@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!border-3.nntp.ord.giganews.com!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <pGEMc.181495$Oq2.4640@attbi_s52>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!border-3.nntp.ord.giganews.com!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 12 Apr 2026 01:06:52 +0000
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: Sat, 11 Apr 2026 21:06:00 -0400
Message-ID: <87se91c7if.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:yRbT/Htjox3eiSe1Sycy8eb+BlU=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 14
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-u6HxLHy2Awka4zghG24kPoONmNXqV9AVAcKZV/xfP0jcS01zZZp3eYENXy6xu1mnu4kskZJ9o7ul0xn!OG2fmU0Ho0HtMsXzXMNJyCm/HGsUgUefEF1cl3CuAGnVX8s=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40