title: GDB C++ started from Java
body: <p>I am trying to debug a C++ process started from a Java server. The Java server starts the C++ process. I step through the Java code with IntelliJ, figure out the C++ process number, start gdb on that process (already started by the Java server), while IntelliJ waits at a given step in the Java code, then set a breakpoint in gdb in a C++ function I'm sure is executed (I see the trace), then continue stepping in IntelliJ, but gdb doesn't stop at my breakpoint, the process finishes on the Java side, and nothing happens on the gdb/C++ side. </p>
  
  <p>Is this kind of debugging session possible (between Java and C++)? If so, did I miss something in how I'm starting gdb?</p>