diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
commit | b8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch) | |
tree | 1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/infrun.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 01db98c..e934c9d 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -646,7 +646,7 @@ follow_vfork (int parent_pid, int child_pid) pending_follow.fork_event.saw_child_exec = 0; pending_follow.kind = TARGET_WAITKIND_SPURIOUS; follow_exec (inferior_pid, pending_follow.execd_pathname); - free (pending_follow.execd_pathname); + xfree (pending_follow.execd_pathname); } } @@ -1715,7 +1715,7 @@ handle_inferior_event (struct execution_control_state *ecs) /* This causes the eventpoints and symbol table to be reset. Must do this now, before trying to determine whether to stop. */ follow_exec (inferior_pid, pending_follow.execd_pathname); - free (pending_follow.execd_pathname); + xfree (pending_follow.execd_pathname); stop_pc = read_pc_pid (ecs->pid); ecs->saved_inferior_pid = inferior_pid; @@ -3891,7 +3891,7 @@ xdb_handle_command (char *args, int from_tty) else printf_filtered ("Invalid signal handling flag.\n"); if (argBuf) - free (argBuf); + xfree (argBuf); } } do_cleanups (old_chain); @@ -3982,9 +3982,9 @@ xmalloc_inferior_status (void) static void free_inferior_status (struct inferior_status *inf_status) { - free (inf_status->registers); - free (inf_status->stop_registers); - free (inf_status); + xfree (inf_status->registers); + xfree (inf_status->stop_registers); + xfree (inf_status); } void |