My current setup:
- GDB compiled to run on Linux VM.
- gdbserver compiled to run on Linux Target device.
- Added a
raise(SIGSEGV);
to simulate an error.
- Target device produces core dump. Core dump copied to Linux VM.
I followed this link (https://visualgdb.com/tutorials/linux/coredump/) to examine the core dump. From the dialog, I selected the Linux VM, selected the core dump that was copied to the VM, and everything loads fine. However, the Call Stack and Thread information is pretty limited, and is completely different from what I will get if I just deploy direction from VS. It has no references to my code at all (I have ensured that gdb is reading the symbols correctly using symbol-file <path_to_debug file>
Am I doing it right? Do I have to recompile my gdb to run on the target? This is hard to do, considering my device has limited resources.
-
This topic was modified 6 years, 9 months ago by kurt.
Attachments:
You must be
logged in to view attached files.