🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1155

breakpoint not reached by in cli

#1155
From: wong_powah
Date: Wed, 11 Jul 2007 22:12
17 lines
1511 bytes
I had written a command line interface program cli.c.
# useradd -m -G users,wheel -s /home/powah/cli/cli operator
# su - operator
#ps -ef |grep cli

Attach gdb to the cli process id:
#gdb -p <pid>

Set a breakpoint:
(gdb) b func
(gdb) cont

When the cli function is executed, the func breakpoint is not reached.
cli>users list

I am sure I have set the breakpoint at the right function, so what is
wrong?
Technical Details
Message-ID: <1184191935.288020.200740@w3g2000hsg.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!w3g2000hsg.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5053,7b9aa125bb9bda02,start
X-Google-Attributes: gidf5053,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!w3g2000hsg.googlegroups.com!not-for-mail
From:  wong_powah@yahoo.ca
Newsgroups: gnu.gdb.bug
Subject: breakpoint not reached by in cli
Date: Wed, 11 Jul 2007 15:12:15 -0700
Organization: http://groups.google.com
Lines: 18
Message-ID: <1184191935.288020.200740@w3g2000hsg.googlegroups.com>
NNTP-Posting-Host: 142.46.196.26
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1184191935 29339 127.0.0.1 (11 Jul 2007 22:12:15 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 11 Jul 2007 22:12:15 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20061011 Fedora/1.5.0.7-7.fc6 Firefox/1.5.0.7,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: w3g2000hsg.googlegroups.com; posting-host=142.46.196.26;
   posting-account=dxocXQ0AAAAev-KWiltLQ8DNpn9rK29v