Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Don't treat PC == 0 specially in inside_entry_func
Date: Sat, 10 Jan 2004 00:22:00 -0000	[thread overview]
Message-ID: <200401100022.i0A0M2xS008632@elgar.kettenis.dyndns.org> (raw)

This stops us from treating a zero PC specially in inside_entry_func,
just like we did for inside_main_func.

If nobody objects, I'll check this in in a week or so.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* blockframe.c (inside_entry_func): Don't treat a zero PC specially.

Index: blockframe.c
===================================================================
RCS file: /cvs/src/src/gdb/blockframe.c,v
retrieving revision 1.85
diff -u -p -r1.85 blockframe.c
--- blockframe.c 10 Jan 2004 00:09:58 -0000 1.85
+++ blockframe.c 10 Jan 2004 00:10:57 -0000
@@ -157,15 +157,11 @@ inside_main_func (CORE_ADDR pc)
 }
 
 /* Test whether PC is inside the range of addresses that corresponds
-   to the process entry point function.
-
-   A PC of zero is always considered to be the bottom of the stack.  */
+   to the process entry point function.  */
 
 int
 inside_entry_func (CORE_ADDR pc)
 {
-  if (pc == 0)
-    return 1;
   if (symfile_objfile == 0)
     return 0;
 


             reply	other threads:[~2004-01-10  0:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-10  0:22 Mark Kettenis [this message]
2004-01-15 20:00 ` Mark Kettenis

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=200401100022.i0A0M2xS008632@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --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