Post Generation of debug information
A message that is not in the archive (sent off-list or not yet received): 1943070027.12677279.1456155669938.JavaMail.yahoo.ref@mail.yahoo.com
I have the need to generate some scripts for a debuggertool. As a first approach, these generated scripts could contain paths on wherespecific binary files are stored on the file system.
Such purpose has been partially fulfilled with a recipe implementingthe do_compile task to generate those files, assuming not implementing thedeploying tasks, nothing gets integrated in the final image.
Therefore the debugger tool could go to build/work/temp/…/myrecipe/… (WORKDIR of the recipe) as a startpointfor such scripts.
2 Questions:
- There would be a better solution for this task?
- The task has not been as successfully asexpected. Ideally I would access variables of other recipes to know where theyare their output/intermediate files. E.g. location of an elf file for u-boot.Is there any way around this?
Regards
Quoted 15 lines · Oliver
I have the need to generate some scripts for a debugger tool. As a first approach, these generated scripts could contain paths on where specific binary files are stored on the file system.
Such purpose has been partially fulfilled with a recipe implementing the
do_compiletask to generate those files, assuming not implementing the deploying tasks, nothing gets integrated in the final image.Therefore the debugger tool could go to build/work/temp/…/myrecipe/… (WORKDIR of the recipe) as a startpoint for such scripts.
2 Questions:
(quoted diff) +0
-2- There would be a better solution for this task? - The task has not been as successfully as expected. Ideally I
Quoted 4 lines
would access variables of other recipes to know where they are their output/intermediate files. E.g. location of an elf file for u-boot. Is there any way around this?
There are ways implemented e.g. you can generate an image tarball in two pieces
1. binaries
2. Associated debug info and symbols
The untar both in same place.
Point your cross gdb to this location via setting appropriate sysroot in .gdbinit
and that will be it.
However its not clear if thats what you are looking for. If you want to point to components build directory instead of a full rootfs then you have to enhacne the .gdbinit a bit more.
I am assuming that gdb is the debugging tool you are trying to use
Quoted 8 lines
Regards
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
In this special case the tool is Lauterbach's Trace32.
If I understand properly each piece of output I would eventually need, I would need to modify its origin recipes to ensure they deploy the such files in DEPLOY_DIR_IMAGE/SOME_WHERE. There I could proceed in a similar way as the image_types classes. Paths are the first motivation, but physical addresses, offsets configurations which might could only be fetched from grepping the code could be next. Ideally I would not like to modify others recipes.
In a more generic way, is there a way a recipe accesses variables of other recipes?
El Lunes 22 de febrero de 2016 19:46, Khem Raj <[email protected]> escribió:
Quoted 11 lines · Oliver
I have the need to generate some scripts for a debugger tool. As a first approach, these generated scripts could contain paths on where specific binary files are stored on the file system.
Such purpose has been partially fulfilled with a recipe implementing the
do_compiletask to generate those files, assuming not implementing the deploying tasks, nothing gets integrated in the final image.Therefore the debugger tool could go to build/work/temp/…/myrecipe/… (WORKDIR of the recipe) as a startpoint for such scripts.
Quoted 8 lines
2 Questions:
- There would be a better solution for this task?
- The task has not been as successfully as expected. Ideally I would access variables of other recipes to know where they are their output/intermediate files. E.g. location of an elf file for u-boot. Is there any way around this?
There are ways implemented e.g. you can generate an image tarball in two pieces
1. binaries
2. Associated debug info and symbols
The untar both in same place.
Point your cross gdb to this location via setting appropriate sysroot in .gdbinit
and that will be it.
However its not clear if thats what you are looking for. If you want to point to components build directory instead of a full rootfs then you have to enhacne the .gdbinit a bit more.
I am assuming that gdb is the debugging tool you are trying to use
Quoted 8 lines
Regards
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto