🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x.kde
Article #38

Re: my program does not single step with gdb in kdevelop

#38
From: Paul Pluzhnikov
Date: Sat, 14 Aug 2004 02:44
27 lines
2034 bytes
maottawa2@yahoo.ca (TCMA) writes:

> Inside kdevelop, I set two breakpoints at lines:
> fprintf(stderr, "tcma 1 argc %d\n", argc);
> fprintf(stderr, "tcma 2\n");
> 
> When the debugger is started inside kdevelop, it stopped at the first
> breakpoint, 

It didn't stop at the first breakpoint.
It stopped *much* earlier, long before main() executed, due to the
'stop-on 1' setting.

Since the place you stopped at has no debug info, 'next' doesn't
work as you expect. You should either remove the 'stop-on 1' setting,
or repeatedly continue until you see this:

    (gdb) run
    ...
    Breakpoint 1, whateverFunction () at snmpbulkwalkap.c:200 
    200       fprintf(stderr, "tcma 1 argc %d\n", argc);
    (gdb)

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Technical Details
Message-ID: <m33c2qqvz2.fsf@salmon.parasoft.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!tethys.csu.net!nntp.csufresno.edu!sn-xit-02!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <226c0d0a.0408131640.9b064f6@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10baf0,42bb496a01bed355
X-Google-Thread: 1103af,42bb496a01bed355
X-Google-Thread: ff9be,42bb496a01bed355
X-Google-Thread: 10f557,42bb496a01bed355
X-Google-Thread: 11318c,42bb496a01bed355
X-Google-Attributes: gid10baf0,gid1103af,gidff9be,gid10f557,gid11318c,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!tethys.csu.net!nntp.csufresno.edu!sn-xit-02!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: Paul Pluzhnikov <ppluzhnikov-nsp@charter.net>
Newsgroups: comp.windows.x.kde,comp.os.linux.misc,comp.os.linux.questions,alt.os.linux.gentoo,gnu.gcc.help
Subject: Re: my program does not single step with gdb in kdevelop
Date: 13 Aug 2004 19:44:49 -0700
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <m33c2qqvz2.fsf@salmon.parasoft.com>
Sender: paul@salmon.parasoft.com
References: <226c0d0a.0408131640.9b064f6@posting.google.com>
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@supernews.com
Lines: 27