Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Orjan Friberg <orjan.friberg@axis.com>
To: gdb-patches@sources.redhat.com
Cc: Andrew Cagney <cagney@gnu.org>
Subject: Re: CRIS port; frame cleanup crash
Date: Mon, 16 Feb 2004 18:19:00 -0000	[thread overview]
Message-ID: <40310984.5050201@axis.com> (raw)
In-Reply-To: <402E3612.50001@gnu.org>

Andrew Cagney wrote:
> 
> And callfuncs.exp, and a sequence like:
> 
> ./gdb callfuncs
> (gdb) break add
> (gdb) break main
> (gdb) run
> (gdb) print add(1,2)
> (gdb) bt
> (gdb) print add(3,4)
> (gdb) bt
> add(3,4)
> <dummy frame>
> add (1,2)
> <dummy frame>
> main ()
> (gdb)
> 
> is a good check of dummy frames

Ok, backtrace doesn't work at all.  (find_dummy_frame() isn't able to 
locate the dummy frame because fp doesn't match dummyframe->top.)  A 
couple of questions regarding this:

frame_align(): this function is only concerned with architecture issues, 
and not ABI issues, right?  What I mean is that we're not mimicking 
anything the compiler would do the way we do when we set up arguments 
for a function call.  If the architecture has no alignment restrictions 
on the stack, then we shouldn't have to do any stack alignment, although 
the compiler might align it for performance reasons.

push_dummy_call(): the CRIS code allocates more space on the stack than 
is actually needed; is this going to cause me problems?  Since, as I 
understand it, the SP returned from push_dummy_call() must match the SP 
unwound when unwinding the dummy id I'm thinking I'll either have to get 
rid of the over-allocation on the stack (preferred) or compensate for it 
when unwinding the dummy id.  Is this correct?

FWIW, everything up to and including the cmp10(...) test in 
callfuncs.exp works, so at least the argument setup seems ok.

Thanks,
Orjan

-- 
Orjan Friberg
Axis Communications



  parent reply	other threads:[~2004-02-16 18:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11 13:30 Orjan Friberg
2003-08-12 15:11 ` Orjan Friberg
2003-08-12 17:36 ` Andrew Cagney
2003-08-13 10:17   ` Orjan Friberg
2004-02-12 18:59   ` Orjan Friberg
2004-02-12 20:06     ` Andrew Cagney
2004-02-14 13:38       ` Orjan Friberg
2004-02-14 14:52         ` Andrew Cagney
2004-02-15 17:41           ` Orjan Friberg
2004-02-16 18:19           ` Orjan Friberg [this message]
2004-02-16 18:43             ` Andrew Cagney
2004-02-18 17:06               ` Orjan Friberg

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=40310984.5050201@axis.com \
    --to=orjan.friberg@axis.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