Article View: gnu.gcc.help
Article #52714Need help with gcc/gdb interaction
From: Dave Mischler
Date: Tue, 26 May 1992 23:46
Date: Tue, 26 May 1992 23:46
16 lines
1355 bytes
1355 bytes
Maybe this is obvious, but I haven't been able to see it. I am running gcc 2.1 on SCO UNIX R3.2v2. I configured gcc with "i386-sco". I have a program that reads a source file containing C statements and data definitions in an unusual format, and spits C code. I am using directives like: #line 1 "source.x" in the output to get gcc to report errors in the user C code properly so that the C language output of my program need not be examined or edited. This works fine, and EMACS locates the correct lines in the original source file, etc. Now I want GDB to display source from the original input file as well. I can do this manually if I edit the '.file' statement in the .s file that gcc -S produces, and then compile to object and link. Does anyone know how to tell gcc to do this automatically?
Technical Details
Message-ID:
<1992May26.234602.9877@cubic.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!psinntp!cubtosys!mischlerShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,7d9c0640d6e538fa,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-05-26 15:48:04 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!cubtosys!mischler From: mischler@cubic.com (Dave Mischler) Subject: Need help with gcc/gdb interaction Organization: Cubic Toll Systems Date: Tue, 26 May 92 23:46:02 GMT Message-ID: <1992May26.234602.9877@cubic.com> Followup-To: poster Summary: Want gdb to read precursor to .c file Lines: 16