I am trying to compile and debug my code, runs on gcc 4.8.1 and using gdb version 7.5.1.
I am not sure what is causing this error, I cannot set a breakpoint or use start on gdb, all of them give the same (similar) error:
Error in re-setting breakpoint 1: Cannot access memory at address 0xe0b01c
I saw this answer gdb error in re-settings breakpoint (cannot access memory), but i am not using -fPIE
, I am using -fPIC
though, and 7.7.1 has same issue.
Is this issue due to gdb/gcc version or some flags? I am using: -g -std=c++1 -D__GCC_EXPERIMENTAL_CXX0X__=1