From 877522dba4007c090d5922ae942bd48b584b48ad Mon Sep 17 00:00:00 2001
From: Paul Brook <paul@codesourcery.com>
Date: Wed, 21 Jan 2004 16:32:07 +0000
Subject: [PATCH] 	* infrun.c (handle_inferior_event): Check
 stop_stack_dummy if handling 	BPSTAT_WHAT_CHECK_SHLIBS.

---
 gdb/ChangeLog | 5 +++++
 gdb/infrun.c  | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b6198421e49..434932cd4a2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-21  Paul Brook  <paul@codesourcery.com>
+
+	* infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
+	BPSTAT_WHAT_CHECK_SHLIBS.
+
 2004-01-21  Paul Brook  <paul@codesourcery.com>
 
 	* MAINTAINERS: Add myself to write-after-approval.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index b10d65f76ff..0724546ccfe 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2301,7 +2301,7 @@ process_event_stop_test:
 	     gdb of events.  This allows the user to get control
 	     and place breakpoints in initializer routines for
 	     dynamically loaded objects (among other things).  */
-	  if (stop_on_solib_events)
+	  if (stop_on_solib_events || stop_stack_dummy)
 	    {
 	      stop_stepping (ecs);
 	      return;