Article View: gnu.gcc.help
Article #46457Re: Can somebody help me with gdb.
From: Peter Sherwood
Date: Wed, 16 Nov 1994 17:46
Date: Wed, 16 Nov 1994 17:46
21 lines
1712 bytes
1712 bytes
George Daswani (gdaswani@silicon.csci.csusb.edu) wrote: : 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... Here's how I do it: Before typing 'run', set a breakpoint somewhere. If you want to step from the start of the program, 'b main'. Once you're at a breakpoint, 'n' steps a single line, 'n N' steps N lines, etc. ----------------------------------------------------------------------------- Peter Sherwood (617) 332-8880 (voice) (617) 332-1675 (fax) gbcacm@ccs.neu.edu -----------------------------------------------------------------------------
Technical Details
Message-ID:
<3adggp$c6f@narnia.ccs.neu.edu>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!hudson.lm.com!godot.cc.duq.edu!news.duke.edu!news.mathworks.com!uhog.mit.edu!grapevine.lcs.mit.edu!chaos.dac.neu.edu!narnia.ccs.neu.edu!gbcacmReferences:
<39v7ta$ngn@news.csus.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,100a77b2db679587 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-11-16 10:20:22 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!hudson.lm.com!godot.cc.duq.edu!news.duke.edu!news.mathworks.com!uhog.mit.edu!grapevine.lcs.mit.edu!chaos.dac.neu.edu!narnia.ccs.neu.edu!gbcacm From: gbcacm@ccs.neu.edu (Peter Sherwood) Newsgroups: gnu.gcc.help Subject: Re: Can somebody help me with gdb. Date: 16 Nov 1994 17:46:01 GMT Organization: College of Computer Science, Northeastern University. Lines: 21 Message-ID: <3adggp$c6f@narnia.ccs.neu.edu> References: <39v7ta$ngn@news.csus.edu> NNTP-Posting-Host: denali.ccs.neu.edu X-Newsreader: TIN [version 1.2 PL2]