This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Is Single step into C++ virtual thunk still broken?
- From: Daedalus <daedalus at projecticarus dot com>
- To: gdb at sources dot redhat dot com
- Date: 09 Jul 2002 22:13:01 +0100
- Subject: Re: Is Single step into C++ virtual thunk still broken?
On Tue, 2002-07-09 at 21:20, Daniel Jacobowitz wrote:
>
> Does this persist if you use -static? If so, please give me:
> thunk.o (compile using g++ -g3 -c thunk.cpp)
> thunk (compile using g++ -g3 -o thunk thunk.o -static)
>
> and I'll see if I can figure out what's going wrong. I doubt I can
run
> RH7.3 dynamically linked libraries.
>
Sure does:
[daedalus@mojo thunk]$ g++ -g3 -c thunk.cpp
[daedalus@mojo thunk]$ ls
thunk.cpp thunk.o
[daedalus@mojo thunk]$ g++ -g3 -o thunk thunk.o -static
[daedalus@mojo thunk]$ ls
thunk thunk.cpp thunk.o
[daedalus@mojo thunk]$ gdb ./thunk
GNU gdb 2002-07-09-cvs
Copyright 2002 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 "i686-pc-linux-gnu"...
(gdb) b 50
Breakpoint 1 at 0x804825e: file thunk.cpp, line 50.
(gdb) r
Starting program: /home/daedalus/src/thunk/thunk
Breakpoint 1, main (argc=1, argv=0xbffff9f4) at thunk.cpp:50
50 p->VirtualFn();
(gdb) s
virtual thunk to Derived::VirtualFn() () at thunk.cpp:43
43 }
(gdb) s
main (argc=1, argv=0xbffff9f4) at thunk.cpp:51
51 return 0;
(gdb)
Files attached
Andrew Walrond