Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@act-europe.fr>
To: Kevin Buettner <kevinb@cygnus.com>
Cc: Michael Snyder <msnyder@cygnus.com>, gdb-patches@sources.redhat.com
Subject: Re: Pb when calling a nested function in the inferior
Date: Mon, 30 Jul 2001 14:24:00 -0000	[thread overview]
Message-ID: <20010730232457.A8362@act-europe.fr> (raw)
In-Reply-To: <1010730183050.ZM5116@ocotillo.lan>

> > I've personally never used (or even seen) this
> > nested function syntax, so I don't know anything
> > useful about it.		-- Michael

Yes, I hesitated a bit before posting this example, knowing that it was
a gcc extension. However, I thought it would make an easier to undertand
example rather than posting Ada95 code.

> It's a gcc extension.  Apparently, on i386, a pointer to the static
> chain is passed in ecx.  If Joel wants to fix this problem, it'd be a
> good idea to see if the relevant ABI addresses this issue and then
> make the appropriate changes.  (The trick, I think, is to figure out
> the correct value to load into ecx.)

OK, I'll have a look and see what can be done. But before doing
anything, is there a way for gdb to detect that the function it is about
to call is nested? I think that, as a first step, having gdb diagnose
such cases and report a warning or an error would be an improvement.
Right now, it gives either an incorrect value or even crashes the
inferior.

Thanks for your help.
-- 
Joel


  reply	other threads:[~2001-07-30 14:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-30  5:47 Joel Brobecker
2001-07-30 10:32 ` Michael Snyder
2001-07-30 11:31   ` Kevin Buettner
2001-07-30 14:24     ` Joel Brobecker [this message]
2001-07-30 15:41       ` Andrew Cagney
2001-07-30 15:49       ` Kevin Buettner
2001-07-31  0:24         ` Joel Brobecker
2001-07-31  1:20           ` Kevin Buettner
2001-07-31  1:36             ` Joel Brobecker
2001-07-31  1:29           ` Kevin Buettner
2001-08-23  3:40         ` Joel Brobecker
  -- strict thread matches above, loose matches on Subject: below --
2001-03-05 18:58 [PATCH RFA] procfs.c related changes for AIX 5 Kevin Buettner
2001-03-06  1:11 ` Eli Zaretskii
2001-03-06  1:29   ` Kevin Buettner
2001-03-06  1:41     ` Eli Zaretskii
     [not found] ` <3AAEC861.2756C62A@cygnus.com>
     [not found]   ` <msnyder@cygnus.com>
2001-03-26 18:24     ` Kevin Buettner

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=20010730232457.A8362@act-europe.fr \
    --to=brobecker@act-europe.fr \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@cygnus.com \
    --cc=msnyder@cygnus.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