gdb/
* infrun.c (restore_inferior_thread_state): Use discard_inferior_thread_state to free the data. (discard_inferior_thread_state): xfree also siginfo_data.
This commit is contained in:
parent
91cd6f4fcf
commit
803b5f9525
|
@ -1,3 +1,9 @@
|
||||||
|
2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* infrun.c (restore_inferior_thread_state): Use
|
||||||
|
discard_inferior_thread_state to free the data.
|
||||||
|
(discard_inferior_thread_state): xfree also siginfo_data.
|
||||||
|
|
||||||
2010-11-05 Doug Evans <dje@google.com>
|
2010-11-05 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
Make gdb.parameter("directories") work.
|
Make gdb.parameter("directories") work.
|
||||||
|
|
|
@ -6128,9 +6128,8 @@ restore_inferior_thread_state (struct inferior_thread_state *inf_state)
|
||||||
if (target_has_execution)
|
if (target_has_execution)
|
||||||
/* NB: The register write goes through to the target. */
|
/* NB: The register write goes through to the target. */
|
||||||
regcache_cpy (regcache, inf_state->registers);
|
regcache_cpy (regcache, inf_state->registers);
|
||||||
regcache_xfree (inf_state->registers);
|
|
||||||
xfree (inf_state->siginfo_data);
|
discard_inferior_thread_state (inf_state);
|
||||||
xfree (inf_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -6149,6 +6148,7 @@ void
|
||||||
discard_inferior_thread_state (struct inferior_thread_state *inf_state)
|
discard_inferior_thread_state (struct inferior_thread_state *inf_state)
|
||||||
{
|
{
|
||||||
regcache_xfree (inf_state->registers);
|
regcache_xfree (inf_state->registers);
|
||||||
|
xfree (inf_state->siginfo_data);
|
||||||
xfree (inf_state);
|
xfree (inf_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue