🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #2398

wacked out stepping and watch info, C++

#2398
From: isaac
Date: Thu, 28 Mar 2002 06:58
21 lines
2115 bytes
I have a small program in C++.  When I try to run it in GDB, it seems
to step through the program OK, but it sometimes shows me the wrong
location in the source files.  Also, it cannot show me variables that
I know must be visible ( like argc when I'm in main() ).

I'm running gdb 4.14 + gcc 2.95.2 on Solaris 2.7.  

The project has just two small source files: Vector.cc and
extendGeneModels.cc ( + .h files ).  I'm compiling with these options:
(note I'm using mysql )
gcc -g -I/usr/common/usg/gnu/include -DUSE_MYSQL
-I/opt/local/mysql/include  -I/usr/include extendGeneModels.cc
Vector.cc -o extendGeneModels -lnsl -lm -ldl -lsocket 
-L/usr/common/usg/gnu/lib -lgdbm -lpthread -L/usr/openwin/lib -lX11
-L/opt/local/mysql/lib -lmysqlclient

Note that these options worked fine with gdb on all previous c
programs ( dozens of large ones ) written on this platform: this is my
first attempt to use C++ and gdb on this platform.  Any ideas?

Isaac
Technical Details
Message-ID: <8c3264f8.0203272258.1d790558@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!wesley.videotron.net!news-out.visi.com!hermes.visi.com!nntp5.savvis.net!uunet!dfw.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,5ebf9e787f5422ab,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-03-27 22:58:36 PST
x-uunet-gateway: sjc3sosrv11.alter.net from bug-gdb to gnu.gdb.bug; Thu, 28 Mar 2002 06:58:34 GMT
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!wesley.videotron.net!news-out.visi.com!hermes.visi.com!nntp5.savvis.net!uunet!dfw.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail
From: isaacjunk@hotmail.com (isaac)
Subject: wacked out stepping and watch info, C++
Date: 27 Mar 2002 22:58:30 -0800
Organization: http://groups.google.com/
Message-ID: <8c3264f8.0203272258.1d790558@posting.google.com>
NNTP-Posting-Host: 66.127.50.202
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1017298710 24264 127.0.0.1 (28 Mar 2002 06:58:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 28 Mar 2002 06:58:30 GMT
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Sender: bug-gdb-request@mail.gnu.org
Lines: 21