libdrgn: dwarf_info: get byte order from passed file in drgn_eval_cfi_dwarf_expression()

Commit 18b12a5c7b ("libdrgn: get .eh_frame from the correct file")
missed this, but it's unlikely to matter in practice.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
Omar Sandoval 2023-07-07 15:32:47 -07:00
parent 4ea46bf283
commit 0bcef5b77f

View File

@ -8026,8 +8026,7 @@ drgn_eval_cfi_dwarf_expression(struct drgn_program *prog,
stack.data[stack.size - 1], size,
false);
} else {
copy_lsbytes(buf, size,
drgn_elf_file_is_little_endian(regs->module->debug_file),
copy_lsbytes(buf, size, drgn_elf_file_is_little_endian(file),
&stack.data[stack.size - 1], sizeof(uint64_t),
HOST_LITTLE_ENDIAN);
err = NULL;