1

how to extract all the global variables , data structures and sub-structures (with address, type and values) from core dump,using gdb-python, generated after crashing of a C code.?

Baijnath Jaiswal
  • 377
  • 5
  • 17

1 Answers1

1

There isn't a way to iterate over symbol tables from Python yet. So, it can't be done.

However, adding support to expose this information to Python would be a reasonable thing to do.

Tom Tromey
  • 21,507
  • 2
  • 45
  • 63
  • @Tromey , Thanks. So could you please guide me how to get all the global variables(excluding libraries symbols), data structures and sub-structures (with address, type and values) from core dump manually in gdb prompt .? so i will try to do this in python. – Baijnath Jaiswal May 24 '13 at 04:41
  • It can't be done programatically from the gdb CLI, either. You have to extend the C code. – Tom Tromey May 24 '13 at 16:46