diff options
author | Hui Zhu <teawater@gmail.com> | 2010-07-20 05:58:53 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2010-07-20 05:58:53 +0000 |
commit | 26590820c265fc14d78de88714a57c591e22a7aa (patch) | |
tree | ddea80b3f3950724464308a58f75a0e166e1a554 /gdb | |
parent | 33740db9cdb8b52ebf1b008fa59219cb2af0ae9c (diff) | |
download | gdb-26590820c265fc14d78de88714a57c591e22a7aa.zip gdb-26590820c265fc14d78de88714a57c591e22a7aa.tar.gz gdb-26590820c265fc14d78de88714a57c591e22a7aa.tar.bz2 |
2010-07-20 Hui Zhu <teawater@gmail.com>
* inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
(inf_ptrace_attach): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/inf-ptrace.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0fd4ca2..8776c0c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-07-20 Hui Zhu <teawater@gmail.com> + + * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to. + (inf_ptrace_attach): Ditto. + 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> Make core files the process_stratum. diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index 82dfc34..440f2ed 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -124,7 +124,7 @@ inf_ptrace_create_inferior (struct target_ops *ops, /* Do not change either targets above or the same target if already present. The reason is the target stack is shared across multiple inferiors. */ int ops_already_pushed = target_is_pushed (ops); - struct cleanup *back_to; + struct cleanup *back_to = NULL; if (! ops_already_pushed) { @@ -205,7 +205,7 @@ inf_ptrace_attach (struct target_ops *ops, char *args, int from_tty) /* Do not change either targets above or the same target if already present. The reason is the target stack is shared across multiple inferiors. */ int ops_already_pushed = target_is_pushed (ops); - struct cleanup *back_to; + struct cleanup *back_to = NULL; pid = parse_pid_to_attach (args); |