This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[rfa/nbsdppc] Set frame chain valid


Hello,

The attached gets NetBSD/PPC to stop backtracing at main() instead of 
below it.

(I suspect this should be made the default for all NetBSD targets 
however, for that, there is a better fix ...)

anyway, ok?  8 fails disappear.

Andrew
2002-06-01  Andrew Cagney  <ac131313@redhat.com>

	* ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
	generic_func_frame_chain_valid.

Index: ppcnbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ppcnbsd-tdep.c,v
retrieving revision 1.1
diff -u -r1.1 ppcnbsd-tdep.c
--- ppcnbsd-tdep.c	28 May 2002 18:43:07 -0000	1.1
+++ ppcnbsd-tdep.c	1 Jun 2002 21:44:33 -0000
@@ -200,6 +200,9 @@
 ppcnbsd_init_abi (struct gdbarch_info info,
                   struct gdbarch *gdbarch)
 {
+  /* Stop at main.  */
+  set_gdbarch_frame_chain_valid (gdbarch, generic_func_frame_chain_valid);
+
   /* Until November 2001, gcc was not complying to the SYSV ABI for
      returning structures less than or equal to 8 bytes in size. It was
      returning everything in memory. When this was corrected, it wasn't

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]