From: Joel Brobecker <brobecker@adacore.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb@sourceware.org, vargaz@gmail.com
Subject: Re: hook-stop sees dummy frames, bug or feature?
Date: Thu, 22 Jan 2009 03:58:00 -0000 [thread overview]
Message-ID: <20090122035751.GW5709@adacore.com> (raw)
In-Reply-To: <200901220323.18225.pedro@codesourcery.com>
FWIW, I think that the gdb-6.8 behavior:
> >gdb-6.8 ./gdb
[...]
> (top-gdb) p malloc (0)
> #0 <function called from gdb> <<<<<< "frame" in hook-stop
> Current language: auto; currently asm
> $1 = 11407376 <<<<<< 'malloc (0)' result
> Current language: auto; currently c
> (top-gdb) frame <<<<<< "frame" again shows something else.
> #0 main (argc=1, argv=0x7ffff00043f8) at ../../src/gdb/gdb.c:28
> 28 memset (&args, 0, sizeof args);
To be less useful than the current CVS:
> (top-gdb) p malloc (0)
> #0 main (argc=1, argv=0x7fffffffe408) at ../../src/gdb/gdb.c:28 <<< "frame" in hook-stop.
> 28 memset (&args, 0, sizeof args);
> $1 = 11407440
> (top-gdb)
So I like the new behavior a little better.
--
Joel
prev parent reply other threads:[~2009-01-22 3:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-22 3:22 Pedro Alves
2009-01-22 3:45 ` Daniel Jacobowitz
2009-01-22 3:58 ` Joel Brobecker [this message]
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=20090122035751.GW5709@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=vargaz@gmail.com \
/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