Should I be able to run java(c) in gdb?

Andrew Haley aph at redhat.com
Thu Dec 22 20:44:02 UTC 2016


On 22/12/16 20:14, Will Hawkins wrote:

> I am attempting to run java/javac under gdb. Everything works a-okay
> when I run those binaries from the command line. It works okay under
> strace, too. When I run them under gdb, though, I get a segfault every
> time. Is there a reason this happens? Is there some set of flags that
> I should be passing to java/javac when I want to run it under gdb?

Type:

  handle 11 nostop noprint

and all will be well.

Andrew.



More information about the distro-pkg-dev mailing list