* stack.c (do_gdb_disassembly): Print the exception message if an
authorJoel Brobecker <brobecker@gnat.com>
Thu, 23 Apr 2009 18:49:20 +0000 (18:49 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 23 Apr 2009 18:49:20 +0000 (18:49 +0000)
        error was thrown while trying to perform the disassembly.

gdb/ChangeLog
gdb/stack.c

index 9cadc1541ad3d6c041a8a84cfc798cfcbd4e1629..a6917cb059ec60723c66209ba05f878e1908ba51 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-23  Joel Brobecker  <brobecker@adacore.com>
+
+       * stack.c (do_gdb_disassembly): Print the exception message if an
+       error was thrown while trying to perform the disassembly.
+
 2009-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * varobj.c (free_variable): Replace free_current_contents by xfree.
index f7bb81ecf1f726840126ba950f9e68fe9dcdaf41..868111abab797e4df6d44488848ceaa8ca79be32 100644 (file)
@@ -507,6 +507,10 @@ do_gdb_disassembly (int how_many, CORE_ADDR low, CORE_ADDR high)
     {
       gdb_disassembly_stub (&args);
     }
+  /* If an exception was thrown while doing the disassembly, print
+     the error message, to give the user a clue of what happened.  */
+  if (exception.reason == RETURN_ERROR)
+    exception_print (gdb_stderr, exception);
 }
 
 /* Print information about frame FRAME.  The output is format according