aboutsummaryrefslogtreecommitdiff
path: root/gdbstub
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2023-03-02 18:57:40 -0800
committerAlex Bennée <alex.bennee@linaro.org>2023-03-07 17:06:26 +0000
commitad9e4585b3c7425759d3eea697afbca71d2c2082 (patch)
tree8fc18074571b64a52d0802cb3af4d4844e4a8960 /gdbstub
parent1c4517b8b68cdb0965559a39922220e7aeb4acf2 (diff)
downloadqemu-ad9e4585b3c7425759d3eea697afbca71d2c2082.zip
qemu-ad9e4585b3c7425759d3eea697afbca71d2c2082.tar.gz
qemu-ad9e4585b3c7425759d3eea697afbca71d2c2082.tar.bz2
gdbstub: clean-up indent on gdb_exit
Otherwise checkpatch will throw a hissy fit on the later patches that split this function up. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-Id: <20230302190846.2593720-5-alex.bennee@linaro.org> Message-Id: <20230303025805.625589-5-richard.henderson@linaro.org>
Diffstat (limited to 'gdbstub')
-rw-r--r--gdbstub/gdbstub.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c
index fb9c49e..63b56f0 100644
--- a/gdbstub/gdbstub.c
+++ b/gdbstub/gdbstub.c
@@ -3021,27 +3021,27 @@ static void gdb_read_byte(uint8_t ch)
/* Tell the remote gdb that the process has exited. */
void gdb_exit(int code)
{
- char buf[4];
+ char buf[4];
- if (!gdbserver_state.init) {
- return;
- }
+ if (!gdbserver_state.init) {
+ return;
+ }
#ifdef CONFIG_USER_ONLY
- if (gdbserver_state.socket_path) {
- unlink(gdbserver_state.socket_path);
- }
- if (gdbserver_state.fd < 0) {
- return;
- }
+ if (gdbserver_state.socket_path) {
+ unlink(gdbserver_state.socket_path);
+ }
+ if (gdbserver_state.fd < 0) {
+ return;
+ }
#endif
- trace_gdbstub_op_exiting((uint8_t)code);
+ trace_gdbstub_op_exiting((uint8_t)code);
- snprintf(buf, sizeof(buf), "W%02x", (uint8_t)code);
- put_packet(buf);
+ snprintf(buf, sizeof(buf), "W%02x", (uint8_t)code);
+ put_packet(buf);
#ifndef CONFIG_USER_ONLY
- qemu_chr_fe_deinit(&gdbserver_state.chr, true);
+ qemu_chr_fe_deinit(&gdbserver_state.chr, true);
#endif
}