As far as I know you can’t get such information with help of gdb, but for these purpose you can try valgrind memcheck with option –track-origins
More Related Contents:
- Can I set a breakpoint on ‘memory access’ in GDB?
- Debugging core files generated on a Customer’s box
- GDB complaining about missing raise.c
- How to enable gdb pretty printing for C++ STL objects in Eclipse CDT?
- How do I print the elements of a C++ vector in GDB?
- Inspecting standard container (std::map) contents with gdb
- Tell gdb to skip standard files
- Run an Application in GDB Until an Exception Occurs
- Why is std::cout not printing the correct value for my int8_t number?
- How do I print the full value of a long string in gdb?
- How to pretty-print STL containers in GDB?
- Is there any way to set a breakpoint in gdb that is conditional on the call stack?
- How to set breakpoints on future shared libraries with a command flag
- How to get a “codesigned” gdb on OSX?
- Get function names from call stack
- Stopping the debugger when a NaN floating point number is produced
- “Cannot evaluate function — may be in-lined” error in GDB for STL template container
- How to set a breakpoint in GDB where the function returns?
- gdb is jumping over lines
- How do I use the MinGW gdb debugger to debug a C++ program in Windows?
- How to pass arguments and redirect stdin from a file to program run in gdb?
- How to break when a specific exception type is thrown in GDB?
- “please check gdb is codesigned – see taskgated(8)” – How to get gdb installed with homebrew code signed?
- gdb Could not find operator[]
- calling operator
- Is it possible to set a gdb watchpoint programmatically?
- C++ GDB Python Pretty Printing Tutorial?
- How to avoid entering library’s source files while debugging in Qt Creator with gdb?
- Remote debugging C++ applications with Eclipse CDT/RSE/RDT
- Why can’t variable names start with numbers?