From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4475 invoked by alias); 8 Jul 2003 20:35:53 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4466 invoked from network); 8 Jul 2003 20:35:52 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 8 Jul 2003 20:35:52 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id QAA30311 for ; Tue, 8 Jul 2003 16:27:12 -0400 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id QAA16965 for ; Tue, 8 Jul 2003 16:35:52 -0400 Message-ID: <062401c34590$97cd09b0$0202040a@catdog> From: "Kris Warkentin" To: "Gdb@Sources.Redhat.Com" Subject: [rfc] Print solib events in mi-mode Date: Tue, 08 Jul 2003 20:35:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-07/txt/msg00087.txt.bz2 What do you think of something like this? When stop-on-solib-events is set, this will print the reason as being a shared-lib-event. Our Eclipse team wants to be able to set breakpoints in shared libraries that aren't loaded yet. If they get notification of shlib-events, then they can re-examine the list of loaded libraries and set any breakpoints that have been enabled in the project's libs. cheers, Kris $ cvs diff -u breakpoint.c Index: breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.125 diff -u -r1.125 breakpoint.c --- breakpoint.c 2 Jul 2003 16:24:00 -0000 1.125 +++ breakpoint.c 8 Jul 2003 20:32:50 -0000 @@ -2039,8 +2039,10 @@ /* Did we stop because the user set the stop_on_solib_events variable? (If so, we report this as a generic, "Stopped due to shlib event" message.) */ - printf_filtered ("Stopped due to shared library event\n"); - return PRINT_NOTHING; + ui_out_text (uiout, "\nShared library event "); + if (ui_out_is_mi_like_p (uiout)) + ui_out_field_string (uiout, "reason", "shared-lib-event"); + return PRINT_SRC_ONLY; break; case bp_thread_event: