diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-07-24 14:40:34 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-07-24 14:40:34 +0100 |
commit | 5ae3ebbae55482a9fdd01bd21455b396e23e4077 (patch) | |
tree | 158553fc5247edac1028633bb2675bd2a50b9283 /missing | |
parent | eb97750bce2bf37176f745636815600177fbdba8 (diff) | |
download | gdb-5ae3ebbae55482a9fdd01bd21455b396e23e4077.zip gdb-5ae3ebbae55482a9fdd01bd21455b396e23e4077.tar.gz gdb-5ae3ebbae55482a9fdd01bd21455b396e23e4077.tar.bz2 |
Set proc->priv->new_inferior out of linux_add_process
Nowadays, we set proc->priv->new_inferior to 1 inside linux_add_process,
and new_inferior is used as a flag to initialise target description later.
linux_add_process is used for the three cases, fork/vfork event
(handle_extended_wait), run the program (linux_create_inferior), and
attach to the process (linux_attach). In the first case, the child's
target description is copied from parent's, so we don't need to initialise
target description again later, which means we don't need to set
proc->priv->new_inferior to 1 in this case. For the rest of two cases,
we need this flag.
This patch move the code setting proc->priv->new_inferior to 1 inside
linux_add_process to linux_create_inferior and linux_attach. No
functionality is changed.
gdb/gdbserver:
2015-07-24 Yao Qi <yao.qi@linaro.org>
* linux-low.c (linux_add_process): Don't set
proc->priv->new_inferior.
(linux_create_inferior): Set proc->priv->new_inferior to 1.
(linux_attach): Likewise.
Diffstat (limited to 'missing')
0 files changed, 0 insertions, 0 deletions