Gdb debugging remote kernel

I have a server written to C++crash in a production environment that I do not have direct access to. The crash generates a huge ~ 34G core dump, which I cannot copy locally. I need to analyze the main dump, but I don’t know how to do this without copying it. I tried to run gdbserverto the target, but it does not accept the main file as a parameter and seems to be suitable only for debugging running remote applications from the host machine. Is there any way to do this?

+5
source share
1 answer

I need to analyze a core dump, but I don’t know how to do this without copying it.

You can not. You will need to get a core dump where you can run GDB.

ssh , sys admin - gdbserver, .

sysadmin -. GDB . .

where
thread apply all where
info registers
disas

... , 5 .

, gdb, .

. . , , .

+1

All Articles