Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!vixen.cso.uiuc.edu!news.uoregon.edu!usenet.coe.montana.edu!bsd.coe.montana.edu!nate From: nate@bsd.coe.montana.edu (Nate Williams) Newsgroups: comp.os.386bsd.questions Subject: Re: GDB dosent find symbols?! Date: 9 Jul 1994 16:05:04 GMT Organization: Montana State University, Bozeman Montana Lines: 20 Message-ID: <2vmhrg$srb@pdq.coe.montana.edu> References: <2vk8k1$f2d@oak.zilker.net> NNTP-Posting-Host: 153.90.192.29 In article <2vk8k1$f2d@oak.zilker.net>, Matt Helgren <ross@zilker.net> wrote: > Im running FreeBSD 1.1.5.1 and having trouble wiht gdb and gcc. My >problem is im compiling some code with -g to gcc but when invoking gdb >on the new binary it complains about not finding any symbols. This is a 'bug/feature' in the make macros, and just came up on the BSDI lists as well. '-g' in the CCOPTS doesn't get passed onto the linker, so the program is NOT linked with debugging information even though the object files contain that information. Try adding a line such as this to your Makefile LDFLAGS += -g Nate -- nate@bsd.coe.montana.edu | FreeBSD core member and all around tech. nate@cs.montana.edu | weenie. work #: (406) 994-4836 | home #: (406) 586-0579 | Available for contract/otherwise work.