2012-02-24 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Fri, 24 Feb 2012 16:47:56 +0000 (16:47 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 24 Feb 2012 16:47:56 +0000 (16:47 +0000)
* stack.c (set_last_displayed_sal): Issue internal_error instead
of warning, and issue it after clearing the last displayed sal.

gdb/ChangeLog
gdb/stack.c

index 80648a3..9f29018 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-24  Pedro Alves  <palves@redhat.com>
+
+       * stack.c (set_last_displayed_sal): Issue internal_error instead
+       of warning, and issue it after clearing the last displayed sal.
+
 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
            Pedro Alves  <palves@redhat.com>
 
index 070d658..22b16a5 100644 (file)
@@ -911,8 +911,9 @@ set_last_displayed_sal (int valid, struct program_space *pspace,
   last_displayed_line = line;
   if (valid && pspace == NULL)
     {
-      warning (_("Trying to set NULL pspace."));
       clear_last_displayed_sal ();
+      internal_error (__FILE__, __LINE__,
+                     _("Trying to set NULL pspace."));
     }
 }