[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 10/22] system: propagate Error to gdbserver_start (and other
From: |
Alex Bennée |
Subject: |
Re: [PATCH 10/22] system: propagate Error to gdbserver_start (and other device setups) |
Date: |
Thu, 09 Jan 2025 19:45:08 +0000 |
User-agent: |
mu4e 1.12.8; emacs 29.4 |
Pierrick Bouvier <pierrick.bouvier@linaro.org> writes:
> On 1/9/25 09:06, Alex Bennée wrote:
>> This started as a clean-up to properly pass a Error handler to the
>> gdbserver_start so we could do the right thing for command line and
>> HMP invocations.
>> Now that we have cleaned up foreach_device_config_or_exit() in
>> earlier
>> patches we can further simplify by it by passing &error_fatal instead
>> of checking the return value. Having a return value is still useful
>> for HMP though so tweak the return to use a simple bool instead.
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
>>
>
> <snip>
>
>> -static int gdbserver_open_port(int port)
>> +static int gdbserver_open_port(int port, Error **errp)
>
> Did you mean:
> static bool gdbserver_open_port...?
yes, yes I did. Will fix.
>
> With that,
> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- [PATCH 07/22] semihosting/meson: Build config.o and console.o once, (continued)
- [PATCH 07/22] semihosting/meson: Build config.o and console.o once, Alex Bennée, 2025/01/09
- [PATCH 12/22] contrib/plugins/howvec: ensure we don't regress if this plugin is extended, Alex Bennée, 2025/01/09
- [PATCH 08/22] system/vl: more error exit into config enumeration code, Alex Bennée, 2025/01/09
- [PATCH 06/22] semihosting/console: Avoid including 'cpu.h', Alex Bennée, 2025/01/09
- [PATCH 03/22] semihosting/syscalls: Include missing 'exec/cpu-defs.h' header, Alex Bennée, 2025/01/09
- [PATCH 10/22] system: propagate Error to gdbserver_start (and other device setups), Alex Bennée, 2025/01/09
[PATCH 11/22] tests/tcg/plugins/insn: remove unused callback parameter, Alex Bennée, 2025/01/09
[PATCH 22/22] accel/tcg: also suppress asynchronous IRQs for cpu_io_recompile, Alex Bennée, 2025/01/09
[PATCH 17/22] contrib/plugins/hotblocks: fix 32-bit build, Alex Bennée, 2025/01/09
[PATCH 15/22] contrib/plugins/stoptrigger: fix 32-bit build, Alex Bennée, 2025/01/09
[PATCH 20/22] contrib/plugins/hotpages: fix 32-bit build, Alex Bennée, 2025/01/09