aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-05 00:43:34 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-05 00:43:34 +0000
commitc1f5197edc53855a9aa0250b2e20436549bab84a (patch)
treea7ea1e6a058d9a997abc129d484d2cdf15177cdd /gdb
parent27e06d3ef06c16aee2885f589ce97531acdce7e0 (diff)
downloadgdb-c1f5197edc53855a9aa0250b2e20436549bab84a.zip
gdb-c1f5197edc53855a9aa0250b2e20436549bab84a.tar.gz
gdb-c1f5197edc53855a9aa0250b2e20436549bab84a.tar.bz2
2007-08-04 Michael Snyder <msnyder@access-company.com>
* breakpoint.c (print_one_breakpoint): Off by one error.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/breakpoint.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 511f555..66b2701 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
2007-08-04 Michael Snyder <msnyder@access-company.com>
+ * breakpoint.c (print_one_breakpoint): Off by one error.
+
* tracepoint.c (add_register): Off by one error.
(stringify_collection_list): Free malloc buffer.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 8c27a24..f59f1da 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3414,7 +3414,7 @@ print_one_breakpoint (struct breakpoint *b,
/* 2 */
annotate_field (1);
- if (((int) b->type > (sizeof (bptypes) / sizeof (bptypes[0])))
+ if (((int) b->type >= (sizeof (bptypes) / sizeof (bptypes[0])))
|| ((int) b->type != bptypes[(int) b->type].type))
internal_error (__FILE__, __LINE__,
_("bptypes table does not describe type #%d."),