Re: examining a jump buffer
- From: Jean-David Beyer <jeandavid8@xxxxxxxxxxx>
- Date: Thu, 22 Feb 2007 11:43:27 GMT
Allan Adler wrote:
Dan Espen <daneNO@xxxxxxxxxxxxxxxxxxxxxxxxx> writes:
Allan Adler <ara@xxxxxxxxxxxxxxxxxxxx> writes:
Suppose I have a line of C code:What do you mean "examine" it? env is a type jmp_buf.
setjmp(env);
and I want to actually examine env. Is that possible and, if so, what do
I do?
If you are running under gdb, you could print it.
You could look in the header files and see what it really
is and then print the contents.
On linux, it looks like it's a struct defined in setjmp.h.
Thanks for the suggestions. I'm never sure what one can look at and
what one can't. For example, I think gdb can't really let you examine
kernel stuff. I think we (collectively) once had a thread here in which
I wanted to examine the innards of a FILE using gdb. Anyway, I'll try
what you suggest.
That would hot matter, since "env" is in your user space.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 06:40:01 up 5 days, 19:03, 4 users, load average: 4.07, 4.15, 4.09
.
- Follow-Ups:
- Re: examining a jump buffer
- From: Allan Adler
- Re: examining a jump buffer
- References:
- examining a jump buffer
- From: Allan Adler
- Re: examining a jump buffer
- From: Dan Espen
- Re: examining a jump buffer
- From: Allan Adler
- examining a jump buffer
- Prev by Date: Re: who is running 2.4.26 kernel? I need module aic7xxx.o!
- Next by Date: LINUX CD???
- Previous by thread: Re: examining a jump buffer
- Next by thread: Re: examining a jump buffer
- Index(es):
Relevant Pages
|