7

I am working on LLVM. While debugging it using Eclipse, I came across certain data structures whose contents I want to see. But while debugging, Eclipse only gives me the address of that particular data structure and not its contents.

E.g. While viewing contents of SmallVectorImpl &Ops, it gives something like this

Name :  Ops
    Details:@0xbfffef94
    Default:{...}
    Decimal:{...}
    Hex:{...}
    Binary:{...}
    Octal:{...}

Please tell me if there is any plugin available to view the contents of these data structures.

shashikiran
  • 369
  • 1
  • 5
  • 17

1 Answers1

0

This looks similar to the issue presented here (also, just seen this is massive thread necro, sorry):

How to enable gdb pretty printing for C++ STL objects in Eclipse CDT?

Of course, you'll need to change the linked pretty printing script, but it's a start.

Community
  • 1
  • 1
slugonamission
  • 9,562
  • 1
  • 34
  • 41