Article View: gnu.gcc.help
Article #46512Can somebody help me with gdb.
From: George Daswani
Date: Fri, 11 Nov 1994 07:53
Date: Fri, 11 Nov 1994 07:53
25 lines
1619 bytes
1619 bytes
Hello out there, Can somebody help me with gdb? Well I can't seem to make it work... Well I compile my program with cc -g -o program program.c gdb program .. this is the part where i'm stuck.. I can't do anything. I have been using "dbx" for a while and it is good but I would rather use gdb... On dbx when I type step, it goes step by step , etc.. However when I do the same on gdb all I get is "program is not running" or something like that.. When I type the run command it just runs the program but it doesn't do it step by step... I'm pretty sure I'm doing something really stupid and missing something... program however it doesn't stop step by step.. I would like to know how I can make gdb act like dbx.. When I type help running, it shows me a list of the commands.. However I can't run them because the program needs to be running.. Any help appreciated..
Technical Details
Message-ID:
<39v7ta$ngn@news.csus.edu>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!netnews.upenn.edu!news.amherst.edu!news.mtholyoke.edu!uhog.mit.edu!news.mathworks.com!yeshua.marcam.com!charnel.ecst.csuchico.edu!csusac!csus.edu!gdaswaniShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,100a77b2db679587,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-11-10 23:53:14 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!netnews.upenn.edu!news.amherst.edu!news.mtholyoke.edu!uhog.mit.edu!news.mathworks.com!yeshua.marcam.com!charnel.ecst.csuchico.edu!csusac!csus.edu!gdaswani From: gdaswani@silicon.csci.csusb.edu (George Daswani) Newsgroups: gnu.gcc.help Subject: Can somebody help me with gdb. Date: 11 Nov 1994 07:53:14 GMT Organization: California State University Sacramento Lines: 27 Message-ID: <39v7ta$ngn@news.csus.edu> NNTP-Posting-Host: sun35.csci.csusb.edu X-Newsreader: TIN [version 1.2 PL2]