This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/13519] [avr] disassemble command attempts to disassembleSRAM rather than program memory
- From: "j at uriah dot heep.sax.de" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 19 Dec 2011 13:36:13 +0000
- Subject: [Bug gdb/13519] [avr] disassemble command attempts to disassembleSRAM rather than program memory
- Auto-submitted: auto-generated
- References: <bug-13519-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13519
--- Comment #1 from Joerg Wunsch <j at uriah dot heep.sax.de> 2011-12-19 13:36:13 UTC ---
Some more analysis:
disassemble_command() calls value_as_address() on the first argument
(and eventually parse_and_eval_address() on the second one).
This function has a lengthy comment about Harvard-architecture address
mapping and its side effects. It then calls
gdbarch_integer_to_address(), from there avr_integer_to_address(),
which eventually calls avr_make_saddr(). This functions adds
AVR_SMEM_START to everything except 0.
Something in that sequence is not quite right ;-), but I can't decide
what.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.