2004-12-05 Randolph Chung <tausq@debian.org>
authorRandolph Chung <tausq@debian.org>
Mon, 6 Dec 2004 03:32:26 +0000 (03:32 +0000)
committerRandolph Chung <tausq@debian.org>
Mon, 6 Dec 2004 03:32:26 +0000 (03:32 +0000)
* hppa-tdep.c (unwind_command): Print the stub type for stub unwind
records.

gdb/ChangeLog
gdb/hppa-tdep.c

index 33bdc413fd0f640e839f86967cdf5f475727f2f8..4496c6fb2c2693ccce16219b6a2b8a7de86d23d6 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-05  Randolph Chung  <tausq@debian.org>
+
+       * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
+       records.
+
 2004-12-05  Mark Kettenis  <kettenis@gnu.org>
 
        * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
index 312e16670c3349b317c7b97835454ebcb9e8fd19..98db12167eef015cc994acb29c67f2c2a027d0be 100644 (file)
@@ -2287,6 +2287,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