From 55409f9d5fa988a19cd0b69fff68fe83b306bfd2 Mon Sep 17 00:00:00 2001
From: Daniel Jacobowitz <drow@false.org>
Date: Fri, 13 Nov 2009 22:00:24 +0000
Subject: 2009-11-13  Pedro Alves  <pedro@codesourcery.com>

	* infrun.c (handle_inferior_event): Set stop_print_frame on
	TARGET_WAITKIND_LOADED events, if stopping on solib-events.
---
 gdb/ChangeLog | 5 +++++
 gdb/infrun.c  | 4 ++++
 2 files changed, 9 insertions(+)

(limited to 'gdb')

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 59cc5c5..cf4d2c0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-13  Pedro Alves  <pedro@codesourcery.com>
+
+	* infrun.c (handle_inferior_event): Set stop_print_frame on
+	TARGET_WAITKIND_LOADED events, if stopping on solib-events.
+
 2009-11-13  Doug Evans  <dje@google.com>
 
 	* dcache.c (dcache_block): Replace member newer with next,prev.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 842ff6b..9d8ab68 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2821,6 +2821,10 @@ handle_inferior_event (struct execution_control_state *ecs)
 	     dynamically loaded objects (among other things).  */
 	  if (stop_on_solib_events)
 	    {
+	      /* Make sure we print "Stopped due to solib-event" in
+		 normal_stop.  */
+	      stop_print_frame = 1;
+
 	      stop_stepping (ecs);
 	      return;
 	    }
-- 
cgit v1.1