yocto.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* Re: #dunfell Path to sources in debugfs
       [not found] <a1ce9afc-d5e3-0065-325b-b85a296cb2ff@gmail.com>
@ 2021-10-06  7:32 ` bohdan.shubenok
  0 siblings, 0 replies; 3+ messages in thread
From: bohdan.shubenok @ 2021-10-06  7:32 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1090 bytes --]

Hi,

I`m trying to debug without connection to target at all. This are the examples of what I`m running:

# gdb-multiarch b2010_rootfs/usr/bin/noah-heatsystem var/volatile/crash/core.noah.565
(gdb) set sysroot b2010_rootfs/
(gdb) set substitute-path /usr/src/debug b2010/usr/src/debug
.... things are getting loaded .....

(gdb) bt
#0  0xb4a6a144 in saveCursorsOnList (p=0xccf34862, iRoot=3, pExcept=0xb540b350) at ../sqlite-autoconf-3310100/sqlite3.c:64883
.... more frames here .....

And this how it looks like when out of tree build disabled:

# gdb-multiarch b2010_rootfs/usr/bin/noah-heatsystem var/volatile/crash/core.noah.565
(gdb) set sysroot src_add_rootfs/
(gdb) set substitute-path /usr/src/debug src_add_rootfs/usr/src/debug
.... things are getting loaded .....

(gdb) bt
#0  0xb4a6a144 in saveCursorsOnList (p=0xccf34862, iRoot=3, pExcept=0xb540b350) at sqlite3.c:64883
.... more frames here .....

In a  first case `layout next` command shows that no source code can be found and in a second case source code is shown.

Best regards,

Bohdan.

[-- Attachment #2: Type: text/html, Size: 1226 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: #dunfell Path to sources in debugfs
       [not found] <b0446ec1-7601-b97e-567e-4cfd88c3581c@gmail.com>
@ 2021-10-06  6:18 ` bohdan.shubenok
  0 siblings, 0 replies; 3+ messages in thread
From: bohdan.shubenok @ 2021-10-06  6:18 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

Hi,

I can see this on Qt builds as well. I doubt Qt can have such strange behavior left unnoticed for a long time. The part is missing is " *include/QtCore* "

[-- Attachment #2: Type: text/html, Size: 286 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* #dunfell Path to sources in debugfs
@ 2021-10-05 14:04 bohdan.shubenok
  0 siblings, 0 replies; 3+ messages in thread
From: bohdan.shubenok @ 2021-10-05 14:04 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1: Type: text/plain, Size: 1194 bytes --]

Hi all,

I`m trying to debug coredump generated on embedded system running dunfel. The issue I`m facing is with the source files path in "-dbg.rootfs" archive and within dedug portion of a package.
When loaded in QtCreator some sources can`t be found :

The part is missing is " *build/..* ". Such notation is obviosly cancels itself and adding empty "build" folder manually helps.
This path allings with how it builds. Here is a part of Makefile found in build path for sqlite:

build/Makefile:20:VPATH = ../sqlite-autoconf-3310100
build/Makefile:313:abs_srcdir = /home/bohdan/noah/noah/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/sqlite3/3_3.31.1-r0/build/../sqlite-autoconf-3310100
build/Makefile:315:abs_top_srcdir = /home/bohdan/noah/noah/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/sqlite3/3_3.31.1-r0/build/../sqlite-autoconf-3310100
build/Makefile:358:srcdir = ../sqlite-autoconf-3310100

So I tried to disable out-of-tree build for sqlite by replacing *'inherit autotools* ' with ' *inherit autotools-brokensep* '. After building and loading new debugfs QtCreator was able to found required sources:

Is this a known issue or me doing something wrong with build setup?

[-- Attachment #1.2: Type: text/html, Size: 1521 bytes --]

[-- Attachment #2: Path_not_found.png --]
[-- Type: image/png, Size: 92763 bytes --]

[-- Attachment #3: Path_found.png --]
[-- Type: image/png, Size: 76082 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-06  7:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <a1ce9afc-d5e3-0065-325b-b85a296cb2ff@gmail.com>
2021-10-06  7:32 ` #dunfell Path to sources in debugfs bohdan.shubenok
     [not found] <b0446ec1-7601-b97e-567e-4cfd88c3581c@gmail.com>
2021-10-06  6:18 ` bohdan.shubenok
2021-10-05 14:04 bohdan.shubenok

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).