[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems with gdb
From: |
Matej Kosik |
Subject: |
problems with gdb |
Date: |
Sat, 21 Jul 2001 10:39:22 +0200 |
I am using Redhat 7.0, gcc-3.0, patched gdb-5.0 and just updated and
compiled gnustep-cvs
my attempt
[root@localhost objc]# cd shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/
# the program was compiled without problems and works as I expected
[root@localhost gnu-gnu-gnu]# ./LogTest
Jul 21 07:54:22 LogTest[11266] No local time zone specified.
Jul 21 07:54:23 LogTest[11266] Using time zone with absolute offset 0.
Jul 21 07:54:22 LogTest[11266] Executing
# but my `gdb' session looks like this
[root@localhost gnu-gnu-gnu]# gdb LogTest
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-pc-linux"...
(gdb) b main
Breakpoint 1 at 0x8051d94
# THE FIRST PROBLEM ... I can't see the source code [when I was using
stable versions of gnustep packages
# from `ftp.gnustep.org' I did not have this problem]
(gdb) l
1 init.c: No such file or directory.
(gdb) r
Starting program:
/root/work/objc/shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/LogTest
Breakpoint 1 at 0x40143156
[New Thread 1024 (LWP 11268)]
[Switching to Thread 1024 (LWP 11268)]
Breakpoint 1, 0x40143156 in main () from
/opt/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-base.so.1
(gdb) l
1 in init.c
# THE SECOND PROBLEM ... I can't step through my program [when I was
using stable versions of gnustep packages
# from `ftp.gnustep.org' I did not have this problem]
(gdb) n
Single stepping until exit from function main,
which has no line number information.
Jul 21 07:55:07 LogTest[11268] No local time zone specified.
Jul 21 07:55:07 LogTest[11268] Using time zone with absolute offset 0.
Jul 21 07:55:04 LogTest[11268] Executing
Program exited normally.
# THE THIRD PROBLEM I can't run my program in the debugger more than
once [It occured also when I was using
# gnustep-base from `ftp.gnustep.org']
(gdb) r
Starting program:
/root/work/objc/shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/LogTest
warning: Cannot insert breakpoint -2:
Cannot access memory at address 0x40280d38
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program:
/root/work/objc/shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/LogTest
warning: Cannot insert breakpoint -2:
Cannot access memory at address 0x40280d38
(gdb) q
The program is running. Exit anyway? (y or n) y
[root@localhost gnu-gnu-gnu]#
yesterday when I noticed this problem I guested my `gdb' went somehow
wrong, so I successfully recompiled it
with ObjectiveC support [`gdb.compilation' file contains the command by
which I made it]
this did not helped me, so I have recompiled my testing program again
[`LogTest.compile contains the commands
which I have performed and messages which I have obtained]
this did not helped me, so I have updated my gnustep-cvs and
successfully recompiled [`gs.compilation']
? PROBLEM 1 and 2 surprised me ... what am doing wrong?
? does anybody have PROBLEM 3
Matej Kosik
--
mailto:kosikmat@decef.elf.stuba.sk
http://decef.elf.stuba.sk/~kosikmat
cd && rm -r -f /usr/local/src/gdb-* && cp
~/MyDocuments/gdb/downloaded/gdb-5.0.tar.gz
~/MyDocuments/gdb/downloaded/gdb-5.0-objc-unoff.20010211.tgz /usr/local/src &&
cd /usr/local/src && tar xvzf gdb-5.0.tar.gz && tar xvzf
gdb-5.0-objc-unoff.20010211.tgz && rm gdb-5.0.tar.gz
gdb-5.0-objc-unoff.20010211.tgz && cd gdb-5.0 && patch -b -p1 -i
gdb-5.0-objc-unoff.20010211.patch && cp
~/MyDocuments/gdb/downloaded/configure.gdb-5.0 configure && ./configure
--host=i386-pc-linux --prefix=$GNUSTEP_SYSTEM_ROOT && make && make install &&
cp /usr/local/src/gdb-5.0/gdb/gdb /usr/local/bin
[root@localhost objc]# make distclean
rm -rf *~ obj
rm -rf shared_obj/ix86/linux-gnu/gnu-gnu-gnu
rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
static_debug_obj static_profile_obj shared_profile_debug_obj \
static_profile_debug_obj
[root@localhost objc]# make debug=yes distclean
rm -rf *~ obj
rm -rf shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu
rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
static_debug_obj static_profile_obj shared_profile_debug_obj \
static_profile_debug_obj
[root@localhost objc]# make debug=yes
Making all for tool LogTest...
mkdir -p ./shared_debug_obj
mkdir -p ./shared_debug_obj/ix86
mkdir -p ./shared_debug_obj/ix86/linux-gnu
mkdir -p ./shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu
gcc source.m -c -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG
-fno-omit-frame-pointer -DGSWARN -Wno-import -fgnu-runtime -I.
-fgnu-runtime -I/opt/GNUstep/System/Headers -I/usr/local/include/libxml
-I/usr/local/include -fconstant-string-class=NSConstantString
-I/root/GNUstep/Library/Headers -I/opt/GNUstep/Local/Library/Headers
-I/opt/GNUstep/Network/Library/Headers -I/opt/GNUstep/System/Library/Headers
-I/opt/GNUstep/Network/Headers/gnustep -I/root/GNUstep/Headers/gnustep
-I/opt/GNUstep/Local/Headers/gnustep -I/opt/GNUstep/System/Headers/gnustep
-I/opt/GNUstep/Network/Headers/ix86/linux-gnu
-I/root/GNUstep/Headers/ix86/linux-gnu
-I/opt/GNUstep/Local/Headers/ix86/linux-gnu
-I/opt/GNUstep/System/Headers/ix86/linux-gnu -I/root/GNUstep/Headers
-I/opt/GNUstep/Local/Headers -I/opt/GNUstep/Network/Headers
-I/opt/GNUstep/System/Headers -o
shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/source.o
gcc -rdynamic -L/usr/local/lib/gcc-lib/i586-pc-linux-gnu/3.0 -o
shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/LogTest \
shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/source.o \
-L/root/GNUstep/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Local/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Network/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/root/GNUstep/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/root/GNUstep/Libraries/ix86/linux-gnu
-L/opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Network/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Network/Libraries/ix86/linux-gnu
-L/opt/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/System/Libraries/ix86/linux-gnu
-L/root/GNUstep/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/root/GNUstep/Libraries/ix86/linux-gnu
-L/opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Network/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Network/Libraries/ix86/linux-gnu
-L/opt/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/System/Libraries/ix86/linux-gnu -L/usr/local/lib -lgnustep-base
-lobjc -lcallback -lavcall -lxml2 -lz -lm -lgmp -lpthread -ldl -lm
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_NSConstantString' are not defined
cd /opt
cvs -z3 -d :pserver:anoncvs@cvs.gnustep.org:/cvsroot update core
cvs -z3 -d :pserver:anoncvs@cvs.gnustep.org:/cvsroot update dev-apps
cvs -z3 -d :pserver:anoncvs@cvs.gnustep.org:/cvsroot update dev-libs
cd /opt/core/base && make install && cd /opt/dev-libs/guile && make install &&
cd /opt/core/gui && make install ; printf "\a" ; date
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- problems with gdb,
Matej Kosik <=