public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Small backtrace tool?
@ 2004-06-12  1:06 Ronny L Nilsson
  2004-06-14 13:17 ` Ronny L Nilsson
  0 siblings, 1 reply; 4+ messages in thread
From: Ronny L Nilsson @ 2004-06-12  1:06 UTC (permalink / raw)
  To: gdb


Hi
I'm wondering if anyone can tip me with how/where to get a 
minimalistic, stript gdb for doing embedded backtraces? For an embedded 
project of mine I would like to insert the backtrace feature into the 
system. This way it can do "self" diagnostics of app-crashes. (Only 
text based logfiles are availible as feedback, can't get the binary 
corefiles. Hence the analyze must be made onboard.)

Since GDB is quite big on disk and ain't suited for non-interactive 
small-sized embedding I've created a backtracetool of my own. Sized to 
about 12 kb it sure ain't full of features but can parse a Linux i386 
corefile and show a simplified backtrace. My question is, are there any 
tools available doing this already (besides gdb), or is it worth the 
effort continue my work?

Best regards
/Ronny Nilsson


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small backtrace tool?
  2004-06-12  1:06 Small backtrace tool? Ronny L Nilsson
@ 2004-06-14 13:17 ` Ronny L Nilsson
  0 siblings, 0 replies; 4+ messages in thread
From: Ronny L Nilsson @ 2004-06-14 13:17 UTC (permalink / raw)
  To: gdb


> Since GDB is quite big on disk and ain't suited for non-interactive
> small-sized embedding I've created a backtracetool of my own. Sized
> to about 12 kb it sure ain't full of features but can parse a Linux
> i386 corefile and show a simplified backtrace. My question is, are
> there any tools available doing this already (besides gdb), or is it
> worth the effort continue my work?


Hi
Regarding this issue I'm woundering if anyone could give me a hint of 
when Linux is using "signal trampolines"? When reading in 
gdb/i386-linux-tdep.c large portion of it handles them but I can't get 
the kernel to generate them. Using a simple signal handler in my 
userspace test-app seems not enough.

regards
/Ronny


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small backtrace tool?
  2004-06-14 13:52 Bloch, Jack
@ 2004-06-14 14:00 ` Ronny L Nilsson
  0 siblings, 0 replies; 4+ messages in thread
From: Ronny L Nilsson @ 2004-06-14 14:00 UTC (permalink / raw)
  To: Bloch, Jack, gdb


> There are tools such as lsstack and pstack which work on running
> processes, but nothing which does core dump analysis. Does your tool
> already work? I have a requirement for exactly such a tool. Any
> possibility of getting it?
>


There might be, in a week or two. (Must clean it up first).

/Ronny

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Small backtrace tool?
@ 2004-06-14 13:52 Bloch, Jack
  2004-06-14 14:00 ` Ronny L Nilsson
  0 siblings, 1 reply; 4+ messages in thread
From: Bloch, Jack @ 2004-06-14 13:52 UTC (permalink / raw)
  To: 'Ronny L Nilsson', gdb

There are tools such as lsstack and pstack which work on running processes,
but nothing which does core dump analysis. Does your tool already work? I
have a requirement for exactly such a tool. Any possibility of getting it?

Jack Bloch 
Siemens ICN
phone                (561) 923-6550
e-mail                jack.bloch@icn.siemens.com


-----Original Message-----
From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com]On Behalf Of Ronny L Nilsson
Sent: Monday, June 14, 2004 9:16 AM
To: gdb@sources.redhat.com
Subject: Re: Small backtrace tool?



> Since GDB is quite big on disk and ain't suited for non-interactive
> small-sized embedding I've created a backtracetool of my own. Sized
> to about 12 kb it sure ain't full of features but can parse a Linux
> i386 corefile and show a simplified backtrace. My question is, are
> there any tools available doing this already (besides gdb), or is it
> worth the effort continue my work?


Hi
Regarding this issue I'm woundering if anyone could give me a hint of 
when Linux is using "signal trampolines"? When reading in 
gdb/i386-linux-tdep.c large portion of it handles them but I can't get 
the kernel to generate them. Using a simple signal handler in my 
userspace test-app seems not enough.

regards
/Ronny

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-06-14 14:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-12  1:06 Small backtrace tool? Ronny L Nilsson
2004-06-14 13:17 ` Ronny L Nilsson
2004-06-14 13:52 Bloch, Jack
2004-06-14 14:00 ` Ronny L Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).