gdb opaque symbol resolution turned off

1

When inter-procedural-analysis optimization (compiler flag) is enabled, the struct debug symbols (opaque-symbol-resolution) does not work. Any one knows why? Is it possible to have this optimization enabled but not lose this convenient debug capability?

typedef struct mystruct {
  int a;
  char b;
} mystruct_t;

Without ipa enabled,

(gdb) p /x global_var
$1 = {a = 0xdeadbeef, b = 0xa}

With ipa enabled,

(gdb) p /x global_var
$1 = 0xdeadbeef
debugging
gdb
compiler-optimization
debug-symbols
asked on Stack Overflow Jun 24, 2020 by anglee

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0