Article View: gnu.gdb.bug
Article #1047GDB debugging for a big c language project.
From: MaiTiano
Date: Wed, 11 Nov 2009 13:05
Date: Wed, 11 Nov 2009 13:05
15 lines
1802 bytes
1802 bytes
Now I have a project which include three directories **/bin**, **/ inc** and **/src**. All of header files (*.h) are included in **/inc** and all of source (*.c) files are stored in **/src**, i.e. a.c, b.c, c.c..., the final generated executable file will locate in /bin. after compling with makefile, all of obj files will be generated in **/ src/obj** like a.o, b.o, c.o, d....! Moreover an final.exe executable file will be generated in the **/bin** directory. Now if I want to debug it with GDB, how can I do it??? To debug those obj files in /src/obj? or somewhat else? Many thanks for the kind help!
Technical Details
Message-ID:
<7f5bd1ba-56de-4163-9789-9e04bae91505@w37g2000prg.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!w37g2000prg.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f0ead4270c,ebdb5ef921894b34,start X-Google-Attributes: gidf0ead4270c,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!w37g2000prg.googlegroups.com!not-for-mail From: MaiTiano <shenyuanlee@gmail.com> Newsgroups: gnu.gdb.bug Subject: GDB debugging for a big c language project. Date: Wed, 11 Nov 2009 05:05:36 -0800 (PST) Organization: http://groups.google.com Lines: 15 Message-ID: <7f5bd1ba-56de-4163-9789-9e04bae91505@w37g2000prg.googlegroups.com> NNTP-Posting-Host: 144.214.41.44 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1257944736 29872 127.0.0.1 (11 Nov 2009 13:05:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 11 Nov 2009 13:05:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w37g2000prg.googlegroups.com; posting-host=144.214.41.44; posting-account=o88GiAoAAABpO3JJb9vMC6Py0O0znYCs User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4) Gecko/20091028 Ubuntu/9.10 (karmic) Firefox/3.5.4 GTB6 GTBA,gzip(gfe),gzip(gfe)