Wind River Support Network

HomeDefectsLIN8-10122
Fixed

LIN8-10122 : could not debug wrlinux App in workbench because the gdb.sh has extra print message which will prevent the CDT to check the gdb version

Created: Nov 21, 2018    Updated: Jan 9, 2019
Resolved Date: Dec 27, 2018
Found In Version: 8.0.0.28
Fix Version: 8.0.0.29
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Workbench Integration
Host OS: Linux 64

Description

Fail to debug wrlinux app in workbench, an error is reported as :
Could not determine GDB version using command:/dvds/wrlinux80RCPL/SDK_intel_x86_64/scripts/gdb.sh --version
Unexpected output format: 

Creating gdb init file /tmp/tmp.Fzcz1hw3Zh
GNU gdb (GDB) 7.10.1
Copyright (C) 2015 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-linux --target=x86_64-wrs-linux".
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".

The gdb.sh echo the message "Creating gdb init file /tmp/tmp.Fzcz1hw3Zh" in front of "GNU gdb (GDB) 7.10.1", CDT could not identify the gdb version by this format.

Workaround

comment out the line 64 in <platform_project_folder/SDK_folder>/scripts/gdb.sh
change
echo "Creating gdb init file $GDBINIT"
to
#echo "Creating gdb init file $GDBINIT"

or remove the line 64 directly.

Steps to Reproduce

1. build intel-x86-64 platform project with below configuration:
<installation>/wrlinux-8/wrlinux/configure --enable-reconfig --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std+debug+analysis+debug-wb --enable-build=debug --enable-parallel-pkgbuilds=8 --enable-sdkmachine=auto,x86_64-mingw32 --enable-rm-work=yes --with-rcpl-version=0028
2. boot up target with bzImage and rootfs
3. create target connection from workbench by filling IP address and the platform project foler
4. from New -> Example -> Wind River Linux Application Sample Project -> select hell_linux example 
5. build hell_linux 
6. Right-click hell_linux project, click "Debug Remote Linux Application"
7. click Debug
Live chat
Online