| Summary: | Debugging With the GNU Project Debugger enhancements | ||
|---|---|---|---|
| Product: | [Documentation] Development Manual | Reporter: | anon2313 |
| Component: | development | Assignee: | Sundeep KOKKONDA <sundeep.kokkonda> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | akuster, john.kaldas.enpj, michael.opdenacker, pgowda.cve, randy.macleod, richard.purdie, sundeep.kokkonda |
| Version: | 3.0.1 | ||
| Target Milestone: | 4.1 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | NIR 04/15 - NEWCOMER | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
anon2313
2019-12-22 22:28:28 UTC
Also Maybe the tip to make a .gdbinit file should include that the commands can be in any file and use $GDB -ix file.init. I used this instead because .gdbinit is run for every every use of gdb (Yocto related or not). Maybe repeat the DEBUG_BUILD = "1" tip from the bottom of 7.30.14 in section 7.30.13. I think it's kind of easy to miss. Thanks for providing the details. I don't think this is done and M1 is over so bumping to M2. I would like to work on this ticket. Thanks for signing up John. Are you on the docs list: https://lists.yoctoproject.org/g/docs Have you cloned: http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/ I haven't worked with the new sphinx docs but I hear that it's easier and likely even documented somewhere. Just ask if you need help and I'll find someone who is better informed on docs than I am! -- Randy Any news or problems John? I had a couple of questions which were more related to the workflow and docs generation, I have had answers to it through the mail list. I will keep the ticket updated with the progress. Any news John? Do you need help? Add Naveen who might have time to work on this in a month or so. John, Any news? Hello, I analyzed the suggested doc changes, a few changes can be considered in doc update and for a few I need some more details. See my analysis/comments below for each doc change requested (Each number corresponds to the item number used by the issue reporter in the initial bug ticket). 1) IMAGE_GEN_DEBUGFS is in the documentation. The doc says 'set IMAGE_GEN_DEBUGFS to “1”, which will generate a companion debug image containing unstripped binaries and associated debug sources alongside the image.' 2) Doc will be updated as suggested. 4) The 'tmp' directory is configurable in conf/local.conf with TMPDIR switch. Anyway, the doc will be updated with default directory name 'tmp'. 5) Doc will be updated as suggested. 7) I followed the exact steps in document and I'm able to establish the gdbserver connection for debugging. Regarding the 'substitute-path' usage refer the below page. https://sourceware.org/gdb/onlinedocs/gdb/Source-Path.html#:~:text=set%20substitute%2Dpath%20is%20also,at%20the%20rewritten%20location%20instead. Let me know what is the exact issue and what change is expected in doc? 8) Can you provide here more detailed steps of your issue. I presume you're facing an issue with debugging. Can you use below switches in local.conf and try to work with gdb? (These pkgs appends debugging related info into the generated image) IMAGE_INSTALL:append = " gcc g++ binutils libgcc libgcc-dev libstdc++ libstdc++-dev libstdc++-staticdev nfs-export-root libc-mtrace gdb gdbserver openssh openssl kexec-tools" EXTRA_IMAGE_FEATURES:append = " dbg-pkgs debug-tweaks dev-pkgs eclipse-debug package-management src-pkgs tools-debug tools-sdk" Let me know your inputs for my analysis to finalize the doc changes. Hi, Can you update me on listed queries. Hello, The docs corrections which can be corrected/updated are considered and below is the patch. https://lists.yoctoproject.org/g/docs/message/2778 https://lists.yoctoproject.org/g/docs/message/2786 Changes are in 'master' branch. Commit ID - 7116c349b5074913df37aa3a7633226f42480f0d bft1@bft1-OptiPlex-7060:~/skokkonda/docs/yocto-docs$ git branch -a --contains 7116c349b5074913df37aa3a7633226f42480f0d * master The patch not taken to master. Patch taken to master & master-next branch. Below is the commit links. https://git.yoctoproject.org/yocto-docs/commit/?id=48c96378fd5edd587025f3ca138bc5114e927f2f |