Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: Adam Fedor <fedor@doc.com>, GDB Patches <gdb-patches@sources.redhat.com>
Subject: Re: [PATCH] Step over Objective-C dispatch function
Date: Tue, 25 Mar 2003 16:41:00 -0000	[thread overview]
Message-ID: <3E8086CC.2030001@redhat.com> (raw)
In-Reply-To: <3E8082EE.2010207@redhat.com>

> +CORE_ADDR +skip_language_trampoline (CORE_ADDR pc)
> +{
> +  int i;
> +  CORE_ADDR real_pc = 0;
> +
> +  for (i = 0; i < languages_size; i++)
> +    {
> +      if (languages[i]->skip_trampoline)
> +    {
> +      real_pc = (languages[i]->skip_trampoline)(pc);
> +      if (real_pc)
> +        break;
> +    }
> +    }
> +
> +  return real_pc;
> 
> Return 0.  Otherwize, the old SKIP_TRAMPOLINE_CODE() won't kick in. 

Actually, never mind.  Although:

	CORE_ADDR real_pc = ...
	if (real_pc)
	  return real_pc;

     ...

     return 0;

might be easier to read.

Andrew




      reply	other threads:[~2003-03-25 16:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-03  3:35 Adam Fedor
2003-01-31  2:52 ` Michael Snyder
2003-01-31  3:07   ` Andrew Cagney
2003-01-31  3:54     ` Adam Fedor
2003-03-20 21:08       ` Andrew Cagney
2003-03-25 15:56         ` Adam Fedor
2003-03-25 16:25           ` Andrew Cagney
2003-03-25 16:41             ` Andrew Cagney [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=3E8086CC.2030001@redhat.com \
    --to=ac131313@redhat.com \
    --cc=fedor@doc.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