This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/13519] [avr] disassemble command attempts to disassembleSRAM rather than program memory


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]