Re: #dunfell Path to sources in debugfs #dunfell
My comments are inline.
On 05/10/2021 17:04, firstname.lastname@example.org wrote:
Hi all,Just to clarify your user space applications crashes and you try to see why? In other words you would like to load the application and the core file into your debugger and inspect it?
The issue I`m facing is with the source files path in "-dbg.rootfs" archive and within dedug portion of a package.This is very strange, but also I am not quite sure how exactly you debug.
I assume you run gdbserver on the target and connect from some cross-gdb on your host to it.
You could try to install gdb onto your target plus debug info and sources to exclude the cross-gdb configuration problem as I describe below.
If you use gdbserver/cross-gdb I assume directories on your target rootfs and host roots are different. So you need to tell your cross-gdb on the host where to find the debug info and the sources.
Can you please try something like this?
What I would inspect carefully is something like that:
$ cd directory-holding-the-debugfs-directory
(gdb) set sysroot debugfs
(gdb) set substitute-path /usr/src/debug debugfs/usr/src/debug
(gdb) target remote IP-of-target:1234
At least in the latest and greatest version this works. I remember a bug a long time ago with some ancient yocto release with cross-debugging, but this was resolved with some upgrade and was certainly older than dunfell.