Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@gnat.com>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA/RFC] fix problems with unwinder on mips-irix
Date: Thu, 02 Sep 2004 23:09:00 -0000	[thread overview]
Message-ID: <20040902230928.GF1216@gnat.com> (raw)
In-Reply-To: <41338063.7020500@gnu.org>

Andrew,

FYI: This is something I have started investigating but can't finish
just yet because I have to move off to something else. You said:

> This kernel_trap stuff isn't applicable here.
> 
> >  kernel_trap = PROC_REG_MASK (proc_desc) & 1;
> >  gen_mask = kernel_trap ? 0xFFFFFFFF : PROC_REG_MASK (proc_desc);
> >  float_mask = kernel_trap ? 0xFFFFFFFF : PROC_FREG_MASK (proc_desc);

But in fact for a reason I don't completely understand just yet, we
do have kernel_trap set occasionally (I measured ~300+ times in our
testsuite). For instance, in all-bin.exp, debugging all-types:

        (gdb) break main
        (gdb) run 
        Starting program: /[...]/all-types 
        
        Breakpoint 1, main () at all-types.c:35
        35          dummy();
        (gdb) next
 !! ->  *** DEBUG: kernel_trap in mips_insn32_frame_cache ***
        36          return 0;

I don't have all the details just yet, but my semi-educated guess
is that the sequence of events that lead to this is the following:
   . User enters next command
   . GDB does a next, and waits for events
   . We land inside dummy (unverified)
   . Put a temporary breakpoint at return address, continue (unverified)
   . Land at return address
   . and somehow find ourselves unwinding past main inside __start.
     (and no, I don't think this qualifies as a kernel trap - but if
     I remove this code, I get lots of new failures)

I'll look at this and all your other suggestion a bit later, when
I have some time again.

-- 
Joel


  parent reply	other threads:[~2004-09-02 23:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23  1:11 Joel Brobecker
2004-07-30  0:22 ` Andrew Cagney
2004-08-03  4:44   ` Joel Brobecker
2004-08-04  1:43     ` Andrew Cagney
2004-08-06 18:31       ` Joel Brobecker
2004-08-06 19:13         ` Andrew Cagney
2004-08-30 18:18       ` Joel Brobecker
2004-08-30 19:32         ` Andrew Cagney
2004-08-31 23:44           ` Joel Brobecker
2004-09-01 14:57           ` Andrew Cagney
2004-09-02 23:09           ` Joel Brobecker [this message]
2004-09-03 20:17             ` Andrew Cagney

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=20040902230928.GF1216@gnat.com \
    --to=brobecker@gnat.com \
    --cc=cagney@gnu.org \
    --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