[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wacked out stepping and watch info, C++
From: |
isaac |
Subject: |
wacked out stepping and watch info, C++ |
Date: |
27 Mar 2002 22:58:30 -0800 |
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
- wacked out stepping and watch info, C++,
isaac <=