[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/14] hw/core: skip loading debug on all failures
|
From: |
Alex Bennée |
|
Subject: |
[PULL 09/14] hw/core: skip loading debug on all failures |
|
Date: |
Thu, 23 Nov 2023 15:56:15 +0000 |
ELF_LOAD_FAILED is one of many negative return codes we can have. Lets
treat any positive size_t as a success for loading.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231120150833.2552739-10-alex.bennee@linaro.org>
diff --git a/hw/core/loader.c b/hw/core/loader.c
index 3c79283777..e7a9b3775b 100644
--- a/hw/core/loader.c
+++ b/hw/core/loader.c
@@ -505,7 +505,7 @@ ssize_t load_elf_ram_sym(const char *filename,
clear_lsb, data_swab, as, load_rom, sym_cb);
}
- if (ret != ELF_LOAD_FAILED) {
+ if (ret > 0) {
debuginfo_report_elf(filename, fd, 0);
}
--
2.39.2
- [PULL 03/14] tests/docker: merge debian-native with debian-amd64, (continued)
- [PULL 03/14] tests/docker: merge debian-native with debian-amd64, Alex Bennée, 2023/11/23
- [PULL 04/14] plugins: fix win plugin tests on cross compile, Alex Bennée, 2023/11/23
- [PULL 10/14] testing: move arm system tests into their own folder, Alex Bennée, 2023/11/23
- [PULL 08/14] docs/system: clarify limits of using gdbstub in system emulation, Alex Bennée, 2023/11/23
- [PULL 05/14] target/nios2: Deprecate the Nios II architecture, Alex Bennée, 2023/11/23
- [PULL 11/14] tests/tcg: enable arm softmmu tests, Alex Bennée, 2023/11/23
- [PULL 07/14] docs/emulation: expand warning about semihosting, Alex Bennée, 2023/11/23
- [PULL 12/14] tests/tcg: enable semiconsole test for Arm, Alex Bennée, 2023/11/23
- [PULL 13/14] configure: don't try a "native" cross for linux-user, Alex Bennée, 2023/11/23
- [PULL 14/14] tests/tcg: finesse the registers check for "hidden" regs, Alex Bennée, 2023/11/23
- [PULL 09/14] hw/core: skip loading debug on all failures,
Alex Bennée <=
- Re: [PULL 00/14] random fixes for 8.2 (tests, plugins, docs, semihosting), Stefan Hajnoczi, 2023/11/27