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 - CUDA code not processing if block properly -

oracle11g - get root domain from url Oracle sql regex_substr -

xcode - Swift Playground - Files are not readable -