[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/10] hw/core: skip loading debug on all failures
From: |
Alex Bennée |
Subject: |
[PATCH 07/10] hw/core: skip loading debug on all failures |
Date: |
Wed, 15 Nov 2023 20:55:39 +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.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
hw/core/loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
- [PATCH 00/10] random fixes for 8.2 (tests, plugins, docs, semihosting), Alex Bennée, 2023/11/15
- [PATCH 02/10] .gitlab-ci.d/cirrus: Upgrade macOS to 13 (Ventura), Alex Bennée, 2023/11/15
- [PATCH 05/10] tests/tcg: fixup Aarch64 semiconsole test, Alex Bennée, 2023/11/15
- [PATCH 03/10] tests/docker: merge debian-native with debian-amd64, Alex Bennée, 2023/11/15
- [PATCH 04/10] plugins: fix win plugin tests on cross compile, Alex Bennée, 2023/11/15
- [PATCH 06/10] docs/emulation: expand warning about semihosting, Alex Bennée, 2023/11/15
- [PATCH 08/10] testing: move arm system tests into their own folder, Alex Bennée, 2023/11/15
- [PATCH 07/10] hw/core: skip loading debug on all failures,
Alex Bennée <=
- [PATCH 01/10] tests/docker: replace fedora-i386 with debian-i686, Alex Bennée, 2023/11/15
- [PATCH 10/10] tests/tcg: enable semiconsole test for Arm, Alex Bennée, 2023/11/15
- [PATCH 09/10] tests/tcg: enable arm softmmu tests, Alex Bennée, 2023/11/15