This is the mail archive of the insight@sourceware.org mailing list for the Insight 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]

Re: disassembly of section .call_table_text?


Torsten Mohr wrote:

Isn't it possible to just show the disassembly of this
address?  That would be just fine for me.

Unfortunately, insight is constrained by gdb. Gdb will not disassemble just anything: it needs a function to specify lower and upper bounds.


Having said that, gdb does provide a way to do something like this, but it is not quite as nice. You can use the "x/i $pc" command to show the contents of memory at the PC, interpreted as insns. You can also add an integer modifier to the x command to show a number of insns, e.g., "x/3i $pc" will show the next three insns starting at the PC. For convenience, you could use the "display" command the same way. "display/3i $pc" will show the next three insns starting with the PC. It will redisplay this information everytime the PC changes as a result of stepping, continuing, etc.

There is currently no support for this in insight, though. Sorry.

Keith


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