aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Pouget <kpouget@sourceware.org>2011-09-15 12:18:29 +0000
committerKevin Pouget <kpouget@sourceware.org>2011-09-15 12:18:29 +0000
commit672f9b600994c1a377477b6d88b7f63aaf9c7ffe (patch)
treeddab2e27237b8e5e0daee59315d84e60d7bae164
parent43675ae423bc73a461d4addbfe6bd7fbb5e53520 (diff)
downloadbinutils-672f9b600994c1a377477b6d88b7f63aaf9c7ffe.zip
binutils-672f9b600994c1a377477b6d88b7f63aaf9c7ffe.tar.gz
binutils-672f9b600994c1a377477b6d88b7f63aaf9c7ffe.tar.bz2
2011-09-15 Kevin Pouget <kevin.pouget@st.com>
* breakpoint.c (describe_other_breakpoints): Do not write 'duplicate' note if the breakpoint is internal.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e0e8866..18af26c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2011-09-15 Kevin Pouget <kevin.pouget@st.com>
+ * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
+ note if the breakpoint is internal.
+
+2011-09-15 Kevin Pouget <kevin.pouget@st.com>
+
* MAINTAINERS (Right After Approval): Add myself to the list
2011-09-14 Pedro Alves <pedro@codesourcery.com>
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 14c8903..f995b14 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5292,7 +5292,7 @@ breakpoint_has_pc (struct breakpoint *b,
return 0;
}
-/* Print a message describing any breakpoints set at PC. This
+/* Print a message describing any user-breakpoints set at PC. This
concerns with logical breakpoints, so we match program spaces, not
address spaces. */
@@ -5305,7 +5305,8 @@ describe_other_breakpoints (struct gdbarch *gdbarch,
struct breakpoint *b;
ALL_BREAKPOINTS (b)
- others += breakpoint_has_pc (b, pspace, pc, section);
+ others += (user_breakpoint_p (b)
+ && breakpoint_has_pc (b, pspace, pc, section));
if (others > 0)
{
if (others == 1)
@@ -5313,7 +5314,7 @@ describe_other_breakpoints (struct gdbarch *gdbarch,
else /* if (others == ???) */
printf_filtered (_("Note: breakpoints "));
ALL_BREAKPOINTS (b)
- if (breakpoint_has_pc (b, pspace, pc, section))
+ if (user_breakpoint_p (b) && breakpoint_has_pc (b, pspace, pc, section))
{
others--;
printf_filtered ("%d", b->number);