Bug 4611 - Memory Window: Spin buttons for address range have incorrect upper bound
Summary: Memory Window: Spin buttons for address range have incorrect upper bound
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Kris Van Hees
URL:
Keywords:
Depends on:
Blocks: 3119 3200
  Show dependency treegraph
 
Reported: 2007-06-11 18:13 UTC by Kris Van Hees
Modified: 2007-06-21 01:54 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kris Van Hees 2007-06-11 18:13:26 UTC
The spin buttons in the memory window are defined with an upper bound that does
not allow access to the full 64-bit address range.  When the memory window is
opened with a base address that is above the upper bound for the spin button,
memory at the address indicated by the upper bound is accessed, which often
causes a ptrace exception.
Comment 1 Kris Van Hees 2007-06-11 18:58:38 UTC
This also applies to the disassembly window.
Comment 2 Andrew Cagney 2007-06-20 17:18:01 UTC
Need to set upper bound based on task's ISA
Comment 3 Kris Van Hees 2007-06-20 18:49:57 UTC
That was my suggestion indeed, and is currently being implemented. An extension
of this will be that once segment selection is implemented, the bounds should be
set based on the segment boundaries.  Selecting the default segment of the
entire addressable space would result in the default 0 through
end-of-address-space boundaries being set, allowing full access to any arbitrary
address on the platform.
Comment 4 Kris Van Hees 2007-06-21 01:54:18 UTC
2007-06-20  Kris Van Hees  <kris.van.hees@oracle.com>

        * memory/MemoryWindow.java (setTask, resetTask): Set the valid range
        of the fromSpin and toSpin buttons from 0 to the highest address for
        the task's ISA (2^wordsize - 1).
        * disassembler/DisassemblyWindow.java (setTask, resetTask): Set the
        valid range of the fromSpin and toSpin buttons from 0 to the highest
        address for the task's ISA (2^wordsize - 1).