hello.
i used wp7402
legato 20.04
after the crash, the program leaves a report in the folder
/tmp/legato_log/…
So I run my gdb like this
$DEBUGGER
-ex "set sysroot $SYSROOT "
-ex “set debug-file-directory …/.debug”
-ex "set solib-search-path $HOST_PROG_SOLIB:$LEGATO_FW:$SYSROOT/lib "
-ex “file $HOST_PROG”
-ex “core-file ./core-MSD”
when I want to analyze my core dump on host mashin
i get next log from GDB.
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “–host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type “help”.
Type “apropos word” to search for commands related to “word”.
Reading symbols from /home/win/legato_vsc3/_build_MSD084/wp750x/app/MSD084/staging/read-only/bin/msdComponent…Reading symbols from /home/win/legato_vsc3/.debug/.build-id/4c/05c27462816e3fd5fd836d9d6d224b14d90402.debug…done.
done.
BFD: Warning: /home/win/legato_vsc3/gdb/./core-MSD is truncated: expected core file size >= 126820352, found: 61440.
[New LWP 23284]
[New LWP 23285]
[New LWP 23288]
[New LWP 23291]
[New LWP 23279]
[New LWP 23281]
[New LWP 23287]
[New LWP 23290]
[New LWP 23277]
[New LWP 23280]
[New LWP 23282]
[New LWP 23286]
[New LWP 23292]
[New LWP 23278]
[New LWP 23283]
[New LWP 23289]
Core was generated by `msdComponent’.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0xb6da56a4 in ?? ()
[Current thread is 1 (LWP 23284)]
(gdb)
how to get the program feed string in my code?
i don`t see where my code crashed
#0 0xb6da56a4 in ?? ()