David Bélanger wrote:
> Hi,
>
> I never got debugging info for SableVM in gdb when compiled with gcc 3.x,
> though it is fine with gcc 2.95. By debugging info, I am talking about
> corresponding source code.
>
> It seems that gdb will find only sablevm.c source file and will say it
> cannot find the other source files.
>
> First I thought that could be compatibility problem with gcc and gdb and
> maybe Debian gdb was not recent enough. But now, I'm on Gentoo and
> everything should be recent :), but still the same problem...
>
> Any ideas?
>
> On Gentoo, I have:
> gdb 6.0
> gcc 3.2.3 (On Debian, happens also with gcc 3.3)
$ gdb --args sablevm Main
(gdb) break JNI_CreateJavaVM
(gdb) r
(gdb) list
works for me on the Sable systems with gdb 6.0 and gcc 3.3.2 (I had to
install these).
Maybe it's some kind of path problem. There is a big gdb 6.0 manual
that might help.
Cheers,
Chris
|