Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to prevent infinite scrolling in Disassembly View?

There are preferences for the valid address range which you could use.

Those preferences are not exposed in the UI, but might help to create  a workaround.

Ideally, the valid address range could be obtained from the target itself, but this is not always possible.

 

I suggest to open a bug to discuss possible solutions.

 

Toni

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Abeer Bagul
Sent: Friday, March 04, 2011 08:44
To: CDT General developers list.
Subject: [cdt-dev] How to prevent infinite scrolling in Disassembly View?

 

Hi All,

The Disassembly view in DSF supports "infinite scrolling", i.e. when user scrolls up or down, view requests more disassembly from the target, effectively never allowing the scrollbar to end. This is sometimes not desirable behaviour, especially with embedded targets.
Example: An embedded target has a small 64k memory from 0x4000_0000 to 0x4000_FFFF. There is a function at the start of this memory, lets call it _reset(). If user opens disassembly view to see this function, and then he scrolls up, the view tries to retrieve disassembly data from addresses lower than 0x4000_0000. SInce there is no physical memory before 0x4000_0000, gdb returns garbage disassembly.

Is there a way to prevent the disassembly view from scrolling infinitely, i.e. it should only scroll that much content as was retrieved in the first request.

Thanks
Abeer


Back to the top