Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Disassembly view - Show Opcodes
Disassembly view - Show Opcodes [message #1220666] Fri, 13 December 2013 00:10 Go to next message
Alfonso Baz is currently offline Alfonso BazFriend
Messages: 5
Registered: November 2013
Junior Member
I'm having trouble getting opcodes to display in the Disassembly window whilst debugging.

If I right click the window and select "Show Opcodes" you can see the disassembly text move to the right a little but no opcode

The GDB console (in MI mode) shows the gdb commands being given
-data-disassemble -s 0x..... -e 0x.... --1

-data-disassemble -s 0x..... -e 0x.... --0


These output long lines of disassembly with the address, offset, asm etc...
done,asm_insns=[{address="0x08006964",func-name="Reset_Handler",offset="4",inst="ldr\tr1, [r0, #0]"}


According to the gdb manual it requires the option --2 to output raw hex opcode which the presumably gets parsed into the Disassembly display window

Am I missing something?

Using...
Eclipse IDE for C/C++ Developers
Version: Kepler Service Release 1
Build id: 20130919-0819

Eclipse CDT stuff
C/C++ Remote Debug Launcher 6.2.0.201309180223
CDT GCC Cross Compiler Support 1.2.0.201309180223
Eclipse C/C++ Development Tools 8.2.1.201309180223
Eclipse C/C++ Development Tools SDK 8.2.1.201309180223
Eclipse GDB Hardware Debugging Plug-in 7.2.0.201309180223
GDB Common 7.2.1.201309180223


Re: Disassembly view - Show Opcodes [message #1221119 is a reply to message #1220666] Mon, 16 December 2013 23:40 Go to previous messageGo to next message
Alfonso Baz is currently offline Alfonso BazFriend
Messages: 5
Registered: November 2013
Junior Member
I haven't looked into this any further so it may still be some obvious oversight on my part. If not here's a work around should anyone else stumble upon this thread/problem

In the gdb console type
disassemble /r
and it'll print out opcodes and asm instructions in the console. For more specific control, look up "disassemble" in the gdb manual
Re: Disassembly view - Show Opcodes [message #1237254 is a reply to message #1221119] Wed, 29 January 2014 08:46 Go to previous message
Axel Siebert is currently offline Axel SiebertFriend
Messages: 1
Registered: January 2014
Junior Member
I ran into the same problem and, after some tedious plodding through the Eclipse git repository, found out that it's a feature that was 90% implemented more than 2 years ago, but then abandoned for some reason.

This is the feature request tracking the issue:
Bug 357270

The low-level part, querying the opcodes from GDB, has been implemented and was tracked here: Bug 357073
The high-level part, the opcode column in the view and related preferences, has also been implemented and was tracked here: Bug 357440

What's missing is some tiny middle part connecting the two ends:
IInstruction.java needs a small addition to store raw opcode bytes
MIInstruction.java needs a small addition to parse the opcode bytes in the GDB response
DisassemblyBackendDsf.java needs a small addition to retrieve the opcode bytes and put them in the disassembly

I'll that it in the bug report and see what happens...
Previous Topic:Problem with breakpoints in Kepler on Windows
Next Topic:Mixed C++ FORTRAN Project Help Needed
Goto Forum:
  


Current Time: Sat Apr 27 04:07:35 GMT 2024

Powered by FUDForum. Page generated in 0.03058 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top