aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-03-28 19:28:26 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-03-28 19:28:26 +0000
commit0b0d6c3fa7fe45549ce89c70f896a11d5f4cff5a (patch)
tree5a14e1eb1739e4088d1d6eab86cf51ba05c797db /gdb/breakpoint.c
parent53f6119fc612d594c69e8bba420f571c65b74c17 (diff)
downloadgdb-0b0d6c3fa7fe45549ce89c70f896a11d5f4cff5a.zip
gdb-0b0d6c3fa7fe45549ce89c70f896a11d5f4cff5a.tar.gz
gdb-0b0d6c3fa7fe45549ce89c70f896a11d5f4cff5a.tar.bz2
* breakpoint.c (breakpoint_re_set_one): Fix storage leak.
* breakpoint.c (enable_breakpoint): Don't enable watchpoint if it went out of scope. * exec.c (exec_close): Fix storage leak. * exec.c (exec_file_command): Make sure that bfd doesn't realign the output sections when patching an executable. * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR when writing all registers. * mips-tdep.c (mips_push_dummy_frame): Save floating point registers at the right offset in the dummy frame. * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc, stStaticProc and stEnd symbols as they are generated by gcc-2.x. * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b9c11d0..c907f77 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2220,6 +2220,8 @@ breakpoint_re_set_one (bint)
if (b->cond_string != NULL)
{
s = b->cond_string;
+ if (b->cond)
+ free ((PTR)b->cond);
b->cond = parse_exp_1 (&s, block_for_pc (sals.sals[i].pc), 0);
}
@@ -2408,6 +2410,7 @@ enable_breakpoint (bpt)
printf_filtered ("\
Cannot enable watchpoint %d because the block in which its expression\n\
is valid is not currently in scope.\n", bpt->number);
+ bpt->enable = disabled;
return;
}