[commit] print stub unwind information for hppa unwind records

Randolph Chung randolph@tausq.org
Mon Dec 6 03:36:00 GMT 2004


This patch prints some additional information in the 
"maint print unwind" command for the hppa target on stub unwind frames
used for SOM targets. I added these while looking at the problems that
Joel reported earlier.

committed.
randolph


2004-12-05  Randolph Chung  <tausq@debian.org>

	* hppa-tdep.c (unwind_command): Print the stub type for stub unwind
	records.

Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.184
diff -u -p -r1.184 hppa-tdep.c
--- hppa-tdep.c	3 Dec 2004 23:59:52 -0000	1.184
+++ hppa-tdep.c	6 Dec 2004 03:28:25 -0000
@@ -2287,6 +2296,31 @@ unwind_command (char *exp, int from_tty)
   pin (Entry_FR);
   pin (Entry_GR);
   pin (Total_frame_size);
+
+  if (u->stub_unwind.stub_type)
+    {
+      printf_unfiltered ("\tstub type = ");
+      switch (u->stub_unwind.stub_type)
+        {
+	  case LONG_BRANCH:
+	    printf_unfiltered ("long branch\n");
+	    break;
+	  case PARAMETER_RELOCATION:
+	    printf_unfiltered ("parameter relocation\n");
+	    break;
+	  case EXPORT:
+	    printf_unfiltered ("export\n");
+	    break;
+	  case IMPORT:
+	    printf_unfiltered ("import\n");
+	    break;
+	  case IMPORT_SHLIB:
+	    printf_unfiltered ("import shlib\n");
+	    break;
+	  default:
+	    printf_unfiltered ("unknown (%d)\n", u->stub_unwind.stub_type);
+	}
+    }
 }
 
 int
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/



More information about the Gdb-patches mailing list