mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
dump: Add more offset variables
Offset calculations are easy enough to get wrong. Let's add a few variables to make moving around elf headers and data sections easier. Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220330123603.107120-6-frankja@linux.ibm.com>
This commit is contained in:
parent
344107e07b
commit
e71d353360
2 changed files with 19 additions and 20 deletions
|
@ -159,6 +159,10 @@ typedef struct DumpState {
|
|||
bool resume;
|
||||
bool detached;
|
||||
ssize_t note_size;
|
||||
hwaddr shdr_offset;
|
||||
hwaddr phdr_offset;
|
||||
hwaddr section_offset;
|
||||
hwaddr note_offset;
|
||||
hwaddr memory_offset;
|
||||
int fd;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue