From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28913 invoked by alias); 28 Feb 2013 18:30:38 -0000 Received: (qmail 28734 invoked by uid 22791); 28 Feb 2013 18:30:31 -0000 X-SWARE-Spam-Status: No, hits=-8.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Feb 2013 18:30:25 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 28 Feb 2013 10:30:25 -0800 X-ExtLoop1: 1 Received: from swsutil001.isw.intel.com ([10.237.237.11]) by fmsmga002.fm.intel.com with ESMTP; 28 Feb 2013 10:30:23 -0800 Received: from ulslx001.iul.intel.com (ulslx001.iul.intel.com [172.28.207.63]) by swsutil001.isw.intel.com (8.13.6/8.13.6/MailSET/Hub) with ESMTP id r1SIULbo013632; Thu, 28 Feb 2013 18:30:21 GMT Received: from ulslx001.iul.intel.com (localhost [127.0.0.1]) by ulslx001.iul.intel.com with ESMTP id r1SIULNL015600; Thu, 28 Feb 2013 19:30:21 +0100 Received: (from mgherza1@localhost) by ulslx001.iul.intel.com with id r1SIULKx015596; Thu, 28 Feb 2013 19:30:21 +0100 From: Mircea Gherzan To: tromey@redhat.com, vladimir@codesourcery.com, marc.khouzam@ericsson.com Cc: gdb-patches@sourceware.org, mgherzan@gmail.com, Mircea Gherzan Subject: [PATCH 3/3] MI: document the format for breakpoints with multiple locations Date: Thu, 28 Feb 2013 18:56:00 -0000 Message-Id: <1362076197-15363-3-git-send-email-mircea.gherzan@intel.com> In-Reply-To: <1362076197-15363-1-git-send-email-mircea.gherzan@intel.com> References: <1362076197-15363-1-git-send-email-mircea.gherzan@intel.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00756.txt.bz2 2013-02-28 Mircea Gherzan gdb/doc: * gdb.texinfo (GDB/MI Breakpoint Information): Add a description and an example for the locations field. Signed-off-by: Mircea Gherzan --- gdb/doc/gdb.texinfo | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 5f39d2e..d75b1af 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -28140,6 +28140,11 @@ This field is only given for tracepoints. This is either @samp{y}, meaning that the tracepoint is installed, or @samp{n}, meaning that it is not. +@item locations +This field is only given for breakpoints with multiple locations. It is +a list of breakpoint tuples with actual addresses and line information, +one tuple for every location of the breakpoint. + @item what Some extra data, the exact contents of which are type-dependent. @@ -28157,6 +28162,20 @@ For example, here is what the output of @code{-break-insert} <- (gdb) @end smallexample +For a breakpoint with multiple locations: + +@smallexample +-> -break-insert foo +<- ^done,bkpt=@{number="2",type="breakpoint",disp="keep",enabled="y", + addr="",times="0",original-location="foo", + locations=[@{number="2.1",enabled="y",addr="0x00000000004005a8", + func="foo()",file="overloaded.cc",fullname="/home/mircea/overloaded.cc", + line="25",thread-groups=["i1"]@},@{number="2.2",enabled="y", + addr="0x00000000004005ba",func="foo(int)",file="overloaded.cc", + fullname="/home/mircea/overloaded.cc",line="31",thread-groups=["i1"]@}]@} +<- (gdb) +@end smallexample + @node GDB/MI Frame Information @subsection @sc{gdb/mi} Frame Information -- 1.7.1