linux - How can I get GDB to tell me what address caused a segfault in a core dump file -


i know when gdb attach process, can use p $_siginfo._sifields._sigfault.si_addr show address caused segfault. but, how in core dump file?

i try in core dump file:

(gdb) p $_siginfo._sifields._sigfault.si_addr unable read siginfo 


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -