diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2024-03-05 12:09:44 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2024-03-06 12:35:19 +0000 |
commit | 6604b05763515f6329bf508ff1284651ebffc33e (patch) | |
tree | eb55af54f5df76ba3f639394b5d68969eda949a1 /bsd-user/main.c | |
parent | 9d456e092da670324f37f269d29300eedb915c3b (diff) | |
download | qemu-6604b05763515f6329bf508ff1284651ebffc33e.zip qemu-6604b05763515f6329bf508ff1284651ebffc33e.tar.gz qemu-6604b05763515f6329bf508ff1284651ebffc33e.tar.bz2 |
gdbstub: Call gdbserver_fork() both in parent and in child
The upcoming follow-fork-mode child support requires post-fork message
exchange between the parent and the child. Prepare gdbserver_fork() for
this purpose. Rename it to gdbserver_fork_end() to better reflect its
purpose.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20240219141628.246823-8-iii@linux.ibm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240305121005.3528075-9-alex.bennee@linaro.org>
Diffstat (limited to 'bsd-user/main.c')
-rw-r--r-- | bsd-user/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c index 0dbd1cf..3dc285e 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -138,10 +138,11 @@ void fork_end(pid_t pid) */ qemu_init_cpu_list(); get_task_state(thread_cpu)->ts_tid = qemu_get_thread_id(); - gdbserver_fork(thread_cpu, pid); + gdbserver_fork_end(thread_cpu, pid); } else { mmap_fork_end(child); cpu_list_unlock(); + gdbserver_fork_end(thread_cpu, pid); end_exclusive(); } } |