Re: kdevelop gdb commands



Jeff wrote:

On Feb 21, 8:20 am, Jeff <j...@xxxxxxxxx> wrote:
Im new to Kdevelop.  Im trying to figure out where the gdb commands
come from when I launch gdb from kdevelop.  Ive inherited this
project
from
a former employee and it seems that not only when gdb starts to run
it
excecutes a bunch of things, but the program Im trying to debug
crashes
and then it excecutes a bunch of other commands and finally stops and
I cannot figure out where all these commands (both before startup and
after crash) are coming from?

Secondarily, I want to add 3 commands to gdb before my program
starts excuting.  Where do I add them?  Or How do I add them so it
automatically starts up with those already executed?  They are:

handle SIG64 nopass
handle SIG64 noprint
handle SIG64 nostop

Ive read the KDevelop manual and googled and cant seem to find these
answers so far.

Thanks for your help

Ok for some reason I missed it in the gdb man page that you can
use .gdbinit for startup commands. The rest is a mystery to me
still, but at least that much works. Just an FYI for the next guy who
sees this post and needs an answer :)

What version of KDevelop?

If the program cashes, it will still be active in the debugger. Use the
Stack to see where the crash (or chain of calls) occurred. If the source is
available for the function, the file containing that function should be
loaded with offending line highlighted.

If you don't know, the Stack is located at the bottom pane along with the
console, etc.

--
Chris
.



Relevant Pages

  • kdevelop gdb commands
    ... Im trying to figure out where the gdb commands ... come from when I launch gdb from kdevelop. ... handle SIG64 noprint ...
    (comp.windows.x.kde)
  • kdevelop gdb commands
    ... Im trying to figure out where the gdb commands ... come from when I launch gdb from kdevelop. ... handle SIG64 noprint ...
    (comp.os.linux.development.apps)
  • Re: kdevelop gdb commands
    ... come from when I launch gdb from kdevelop. ... I cannot figure out where all these commands (both before startup and ... handle SIG64 noprint ... Ive read the KDevelop manual and googled and cant seem to find these ...
    (comp.os.linux.development.apps)
  • GDB has problems with getting commands piped to STDIN
    ... I'm trying to pipe commands to gdb but I get the following messages: ... fgets to send commands and read the output they cause gdb to produce. ... To make sure this is not a PHP problem I already tested the following: ...
    (comp.os.linux.development.apps)
  • Re: generating stack dump in C++ application??
    ... Piping to an interactive program like gdb would not work because the pipe ... can't mimic the behavior of stdin that well. ... where commands will be a file containing the gdb commands, ... so there should be data on the stack. ...
    (comp.os.linux.development.system)