Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@wins.uva.nl>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Fix FreeBSD/Alpha outermost frame detection mechanism
Date: Sat, 06 Oct 2001 12:21:00 -0000	[thread overview]
Message-ID: <200110061921.f96JLLH00356@delius.kettenis.local> (raw)

Apparently FreeBSD-current on Alpha no longer contains the .mdebug
info that helped us to determine what's the outermost frame.  Fixed by
#defining FRAME_CHAIN_VALID to use func_frame_chain_valid.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@beast.freebsd.org>

	* config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.

Index: config/alpha/tm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/tm-fbsd.h,v
retrieving revision 1.2
diff -u -p -r1.2 tm-fbsd.h
--- config/alpha/tm-fbsd.h 2001/01/25 18:41:22 1.2
+++ config/alpha/tm-fbsd.h 2001/10/06 19:17:48
@@ -29,6 +29,13 @@
 #define USE_STRUCT_CONVENTION(gcc_p, type) \
   alphafbsd_use_struct_convention (gcc_p, type)
 
+/* FreeBSD doesn't mark the outermost frame.  While some FreeBSD/Alpha
+   releases include (a minimal amount of) debugging info in its
+   startup code (crt1.o), the safest thing is to consider the user
+   code entry point as the outermost frame.  */
+#define FRAME_CHAIN_VALID(chain, thisframe) \
+  func_frame_chain_valid(chain, thisframe)
+
 /* Number of traps that happen between exec'ing the shell to run an
    inferior, and when we finally get to the inferior code.  The
    default is right for FreeBSD.  */


                 reply	other threads:[~2001-10-06 12:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200110061921.f96JLLH00356@delius.kettenis.local \
    --to=kettenis@wins.uva.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