2007-08-04 Michael Snyder <msnyder@access-company.com>
* breakpoint.c (print_one_breakpoint): Off by one error.
This commit is contained in:
parent
27e06d3ef0
commit
c1f5197edc
|
@ -1,5 +1,7 @@
|
||||||
2007-08-04 Michael Snyder <msnyder@access-company.com>
|
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.
|
* tracepoint.c (add_register): Off by one error.
|
||||||
(stringify_collection_list): Free malloc buffer.
|
(stringify_collection_list): Free malloc buffer.
|
||||||
|
|
||||||
|
|
|
@ -3414,7 +3414,7 @@ print_one_breakpoint (struct breakpoint *b,
|
||||||
|
|
||||||
/* 2 */
|
/* 2 */
|
||||||
annotate_field (1);
|
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))
|
|| ((int) b->type != bptypes[(int) b->type].type))
|
||||||
internal_error (__FILE__, __LINE__,
|
internal_error (__FILE__, __LINE__,
|
||||||
_("bptypes table does not describe type #%d."),
|
_("bptypes table does not describe type #%d."),
|
||||||
|
|
Loading…
Reference in New Issue