mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
* breakpoint.c (decref_bp_location): Assert the reference count is
sane.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2010-08-17 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
PR breakpoints/11371
|
||||||
|
|
||||||
|
* breakpoint.c (decref_bp_location): Assert the reference count is
|
||||||
|
sane.
|
||||||
|
|
||||||
2010-08-17 Pedro Alves <pedro@codesourcery.com>
|
2010-08-17 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
PR breakpoints/11371
|
PR breakpoints/11371
|
||||||
|
@ -5423,6 +5423,8 @@ incref_bp_location (struct bp_location *bl)
|
|||||||
static void
|
static void
|
||||||
decref_bp_location (struct bp_location **blp)
|
decref_bp_location (struct bp_location **blp)
|
||||||
{
|
{
|
||||||
|
gdb_assert ((*blp)->refc > 0);
|
||||||
|
|
||||||
if (--(*blp)->refc == 0)
|
if (--(*blp)->refc == 0)
|
||||||
free_bp_location (*blp);
|
free_bp_location (*blp);
|
||||||
*blp = NULL;
|
*blp = NULL;
|
||||||
|
Reference in New Issue
Block a user