This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
objc/1237: next command doesn't work
- From: znek at mulle-kybernetik dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 5 Jun 2003 16:19:22 -0000
- Subject: objc/1237: next command doesn't work
- Reply-to: znek at mulle-kybernetik dot com
>Number: 1237
>Category: objc
>Synopsis: next command doesn't work
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 05 16:28:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Marcus Müller
>Release: GNU gdb 20030601
>Organization:
>Environment:
uname -a:
FreeBSD creutzfeld.z.net 4.8-STABLE FreeBSD 4.8-STABLE #5: Mon Jun 2 00:07:23 CEST 2003 znek@creutzfeld.z.net:/usr/obj/usr/src/sys/CREUTZFELD i386
gdb -v:
GNU gdb 20030601
This GDB was configured as "i386-unknown-freebsd".
gcc -v:
Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/specs
Configured with: ./..//gcc-3.2.3/configure --disable-nls --with-gnu-as --with-gnu-ld --with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include/g++-v3 --with-system-zlib --includedir=/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include/Java --disable-shared --enable-threads --enable-threads=posix --prefix=/usr/local i386-portbld-freebsd4.8
Thread model: posix
gcc version 3.2.3
>Description:
When attempting to step through an Objective-C program compiled with gcc 3.2.3 (didn't test other versions, none at hand) using the 'next' command, the PC doesn't stop correctly at the next line. Instead, the program is run until exit.
See attached sample session.
>How-To-Repeat:
see description
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="console.txt"
Content-Disposition: inline; filename="console.txt"
znek@creutzfeld:(~/Projects/mulle-anon-cvs/ed/EDCommon/Tests.subproj)$ gdb53 ./obj/EDCommonTests
GNU gdb 20030601
Copyright 2003 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-unknown-freebsd4.8"...
(gdb) b main
Breakpoint 1 at 0x8057502: file testmain.m, line 5.
(gdb) list
1 #import <Foundation/Foundation.h>
2 #import <SenTestingKit/SenTestingKit.h>
3
4 int main (int argc, const char * argv[]) {
5 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
6 NSRunLoop *loop = [NSRunLoop currentRunLoop];
7 NSString *path;
8
9 path = [[NSBundle mainBundle] bundlePath];
10 [[NSUserDefaults standardUserDefaults] setObject:SenTestScopeSelf forKey:SenTestScopeKey];
(gdb) r
Starting program: /usr/home/znek/Projects/mulle-anon-cvs/ed/EDCommon/Tests.subproj/shared_debug_obj/ix86/freebsd/gnu-gnu-gnu/EDCommonTests
Breakpoint 1, main (argc=1, argv=0xbfbff1e4) at testmain.m:5
5 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
(gdb) n
0x0804b4c4 in _init ()
(gdb) where
#0 0x0804b4c4 in _init ()
#1 0x08057522 in main (argc=1, argv=0xbfbff1e4) at testmain.m:5
(gdb) n
Single stepping until exit from function _init,
which has no line number information.
2003-06-05 18:14:10.039 EDCommonTests[11150] ** would like to run: /usr/home/znek/Projects/mulle-anon-cvs/ed/EDCommon/Tests.subproj/Resources/EDCommonTests
Program exited normally.
(gdb)