Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mircea Gherzan <mircea.gherzan@intel.com>
To: tromey@redhat.com, vladimir@codesourcery.com, marc.khouzam@ericsson.com
Cc: gdb-patches@sourceware.org, mgherzan@gmail.com,
	       Mircea Gherzan <mircea.gherzan@intel.com>
Subject: [PATCH 3/3] MI: document the format for breakpoints with multiple locations
Date: Thu, 28 Feb 2013 18:56:00 -0000	[thread overview]
Message-ID: <1362076197-15363-3-git-send-email-mircea.gherzan@intel.com> (raw)
In-Reply-To: <1362076197-15363-1-git-send-email-mircea.gherzan@intel.com>

2013-02-28  Mircea Gherzan  <mircea.gherzan@intel.com>

gdb/doc:
	* gdb.texinfo (GDB/MI Breakpoint Information): Add a description
	and an example for the locations field.

Signed-off-by: Mircea Gherzan <mircea.gherzan@intel.com>
---
 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="<MULTIPLE>",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


  parent reply	other threads:[~2013-02-28 18:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-28 18:30 [PATCH 1/3] MI: fix the result of -break-insert " Mircea Gherzan
2013-02-28 18:50 ` [PATCH 2/3] MI: add tests for breakpoints " Mircea Gherzan
2013-02-28 18:56 ` Mircea Gherzan [this message]
2013-02-28 18:59   ` [PATCH 3/3] MI: document the format " Eli Zaretskii
2013-03-02 16:53 ` [PATCH 1/3] MI: fix the result of -break-insert " André Pönitz
2013-03-07 16:32   ` Mircea Gherzan
2013-03-07 20:54     ` André Pönitz
2013-03-07 21:44       ` Marc Khouzam
2013-03-08  0:15         ` André Pönitz
2013-03-11 15:06           ` Mircea Gherzan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1362076197-15363-3-git-send-email-mircea.gherzan@intel.com \
    --to=mircea.gherzan@intel.com \
    --cc=gdb-patches@sourceware.org \
    --cc=marc.khouzam@ericsson.com \
    --cc=mgherzan@gmail.com \
    --cc=tromey@redhat.com \
    --cc=vladimir@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox