From: Simon Toth <happy.cerberus@gmail.com>
To: gdb@sourceware.org
Subject: Selft tracing utility
Date: Sat, 03 Feb 2007 14:59:00 -0000 [thread overview]
Message-ID: <45C4A331.1080801@gmail.com> (raw)
Hi,
I'm currently extending the debug support for my programs and trying to
find something that will dump the current call-stack.
GDB can do this, the problem is can a running process dump itself?
My idea is something like:
getpid()
dump the call-stack by running gdb ataching it to the process by pid
abort()
Is there a posibility to run gdb thru some API?
Thx for any ideas
Bc. Simon Toth
next reply other threads:[~2007-02-03 14:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-03 14:59 Simon Toth [this message]
2007-02-03 15:19 ` Andreas Schwab
2007-02-03 16:15 ` Bob Rossi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45C4A331.1080801@gmail.com \
--to=happy.cerberus@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox