[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems with gdb (revision)
From: |
Matej Kosik |
Subject: |
problems with gdb (revision) |
Date: |
Sun, 22 Jul 2001 23:39:13 +0200 |
hm, I am still trying to get gdb to debug ObjectiveC code but
my endeavour has little results.
when I `type' following
------------------------------------------------------------------------------------------------------------------
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 ; date ; printf "\a"
------------------------------------------------------------------------------------------------------------------
gdb compilation ends without errors
[and my $PATH contains something like this
/opt/GNUstep/System/bin
...<something>...
/usr/local/bin
/sbin
/usr/sbin
/usr/bin
/bin
so when I run `gdb' I really run the new gdb
]
My new gdb recognizes ObjectiveC source code, but I can't step into any
particular method
in the message expression ... as shown in my unsuccessful `gdb.session'
attachment
? ... why can't I make a `step' ? [gdb tryies to step into some file,
like
/usr/src/redhat/SOURCES/gcc-3.0/libobjc/class.c
in case of class-method or into a
/usr/src/redhat/SOURCES/gcc-3.0/libobjc/sendmsg.c:169
in case of instance-method.
? ... why `gdb' gives me the message
Current language: auto; currently c
? ... why can't I re-`run' any ObjectiveC program after it is ends ?
When I attempt to
re run the program, I obtain
(gdb) r
Starting program:
/root/work/objc/shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/p2
warning: Cannot insert breakpoint -2:
Cannot access memory at address 0x40280d38
or suchlike
can somebody tell me some tips how to solve these problems?
thank you.
Matej Kosik
--
mailto:kosikmat@decef.elf.stuba.sk
http://decef.elf.stuba.sk/~kosikmat
[root@localhost obj]# gdb p3
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 0x8052224: file p3.m, line 6.
(gdb) r
Starting program:
/root/work/objc/shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu/p3
[New Thread 1024 (LWP 31717)]
[Switching to Thread 1024 (LWP 31717)]
Breakpoint 1, main () at p3.m:6
6 id lorry = [NakladneAuto
(gdb) n
10 [lorry vypisSoZarovnanim:5];
(gdb) s
objc_msg_lookup (receiver=0x80e4928, op=0x80ad928) at
/usr/src/redhat/SOURCES/gcc-3.0/libobjc/sendmsg.c:169
169 /usr/src/redhat/SOURCES/gcc-3.0/libobjc/sendmsg.c: No such file or
directory.
Current language: auto; currently c
(gdb) n
171 in /usr/src/redhat/SOURCES/gcc-3.0/libobjc/sendmsg.c
(gdb)
173 in /usr/src/redhat/SOURCES/gcc-3.0/libobjc/sendmsg.c
(gdb)
197 in /usr/src/redhat/SOURCES/gcc-3.0/libobjc/sendmsg.c
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- problems with gdb (revision),
Matej Kosik <=