Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: GDB Patches <gdb-patches@sources.redhat.com>
Subject: Re: [offbyone RFC] Merge i386newframe
Date: Wed, 12 Mar 2003 22:42:00 -0000	[thread overview]
Message-ID: <20030312224224.GB8247@nevyn.them.org> (raw)
In-Reply-To: <3E6FAF64.7070304@suse.cz>

On Wed, Mar 12, 2003 at 11:06:28PM +0100, Michal Ludvig wrote:
> Hi Andrew,
> this patch is a merge of Mark's i386newframe-branch to your 
> offbyone-branch. It works quite well, unwinds through signal frames and 
> frameless functions, but still has some strange regressions that aren't 
> present in i386newframe branch.
> 
> For example this program:
> int var;
> void foo ()
> {
>   var = 0x1234;
> }
> int main ()
> {
>   foo ();
>   return 0;
> }
> 
> Running it in the GDB:
> (gdb) b main
> Breakpoint 1 at 0x804832c: file tst.c, line 8.
> (gdb) r
> Starting program: tst
> 
> Breakpoint 1, main () at tst.c:8
> 8         foo ();
> (gdb) n
> 
> Program exited normally.
> (gdb)
> 
> Why it didn't stop on "return 0" but exitted immediately instead? Did 
> you observe this behaviour in offbyone branch too, or is it caused by 
> this patch? It seems to have something to do with symbols, linetables, 
> ... but I can't see how it could be related to this patch. It doesn't 
> matter if I compile the program with stabs or dwarf2 debug info. Ideas?

Hmm, what usually causes this for me is that the frame ID has changed
between two stops in main (the one where the user types next and
the one returning from foo).



-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2003-03-12 22:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-12 22:06 Michal Ludvig
2003-03-12 22:42 ` Daniel Jacobowitz [this message]
2003-03-13 19:05 ` Andrew Cagney
2003-03-13 22:46   ` Mark Kettenis
2003-03-14 15:48     ` Andrew Cagney
2003-03-14 16:19       ` Andrew Cagney
2003-03-14 18:20       ` Andrew Cagney
2003-04-06 17:10     ` Andrew Cagney
2003-04-07 18:53       ` Mark Kettenis
2003-03-14 11:54   ` Michal Ludvig
2003-03-14 15:59     ` Andrew Cagney
2003-03-14 15:43 ` Michal Ludvig
2003-03-16 12:48   ` Mark Kettenis
2003-03-17  7:52     ` Michal Ludvig

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=20030312224224.GB8247@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.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