Instruct GDB to show multiple lines of assembly code

0

I have establised a conncetion to simulavr and want to debug the startup code of the program stored in an ELF file. But if I use the disassemble command it doesn't show the requested memory:

(gdb) set disassemble-next-line on
(gdb) si
0x0000001a in __trampolines_start ()
=> 0x0000001a <__trampolines_start+0>:  11 24   eor     r1, r1
(gdb) disas 0x1a,0x20
Dump of assembler code from 0x80001a to 0x800020:
   0x0080001a:  nop
   0x0080001c:  nop
   0x0080001e:  nop
End of assembler dump.
(gdb)

As you can see the requested address 0x1a is converted to 0x0080001a. The simulavr comments this with

WARNING: file rwmem.cpp: line 115: Invalid read access from IO[0x20], PC=0x1a

How can I disassemble the code (fragment) at the desired location?

gdb
asked on Stack Overflow Oct 24, 2020 by harper

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0