mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-12 22:46:16 +00:00
2012-02-25 Luis Machado <lgustavo@codesourcery.com>
* mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation of conditions.
This commit is contained in:
parent
fb6ceddedd
commit
412c89dd53
@ -1,3 +1,8 @@
|
||||
2012-02-25 Luis Machado <lgustavo@codesourcery.com>
|
||||
|
||||
* mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
|
||||
of conditions.
|
||||
|
||||
2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
|
||||
|
||||
* linux-mips-low.c (mips_regmap): Correct the index of $f9.
|
||||
|
@ -726,20 +726,22 @@ void
|
||||
clear_gdb_breakpoint_conditions (CORE_ADDR addr)
|
||||
{
|
||||
struct breakpoint *bp = find_gdb_breakpoint_at (addr);
|
||||
struct point_cond_list *cond, **cond_p;
|
||||
struct point_cond_list *cond;
|
||||
|
||||
if (bp == NULL || bp->cond_list == NULL)
|
||||
return;
|
||||
|
||||
cond = bp->cond_list;
|
||||
cond_p = &bp->cond_list->next;
|
||||
|
||||
while (cond != NULL)
|
||||
{
|
||||
struct point_cond_list *cond_next;
|
||||
|
||||
cond_next = cond->next;
|
||||
free (cond->cond->bytes);
|
||||
free (cond->cond);
|
||||
free (cond);
|
||||
cond = *cond_p;
|
||||
cond_p = &cond->next;
|
||||
cond = cond_next;
|
||||
}
|
||||
|
||||
bp->cond_list = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user