vscode/gdbserver/arm

36 篇文章 0 订阅
3 篇文章 0 订阅

1.  sysbol put into   $target  /usr/local/lib/debug/

 

=thread-group-added,id="i1"
GNU gdb (GDB) 7.10
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-unknown-linux-gnu --target=arm-linux-gnueabihf".
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".
=cmd-param-changed,param="pagination",value="off"
Reading /lib/ld-linux-armhf.so.3 from remote target...
Reading /lib/ld-linux-armhf.so.3 from remote target...
Reading /lib/ld-2.25.so.debug from remote target...
Reading /lib/.debug/ld-2.25.so.debug from remote target...
0xb6fcfa40 in ?? () from target:/lib/ld-linux-armhf.so.3
Loaded 'target:/lib/ld-linux-armhf.so.3'. Symbols loaded.
Reading /lib/libpthread.so.0 from remote target...
Reading /usr/lib/libcurl.so.4 from remote target...
Reading /usr/lib/libcommondbg.so from remote target...
Reading /usr/lib/libIpc.so from remote target...
Reading /usr/lib/libutils.so from remote target...
Reading /usr/lib/libEvent.so from remote target...
Reading /usr/lib/librpcinternal.so from remote target...
Reading /usr/lib/libtoi.so from remote target...
Reading /usr/lib/libstdc++.so.6 from remote target...
Reading /usr/lib/libgcc_s.so.1 from remote target...
Reading /lib/libc.so.6 from remote target...
Reading /usr/lib/libssl.so.1.0.0 from remote target...
Reading /usr/lib/libcrypto.so.1.0.0 from remote target...
Reading /usr/lib/libz.so.1 from remote target...
Reading /usr/lib/libksocket.so from remote target...
Reading /lib/libm.so.6 from remote target...
Reading /lib/librt.so.1 from remote target...
Reading /lib/libdl.so.2 from remote target...
Reading /lib/libpthread-2.25.so.debug from remote target...
Reading /lib/.debug/libpthread-2.25.so.debug from remote target...
Reading /usr/lib/libcurl.so.4.6.0.debug from remote target...
Reading /usr/lib/.debug/libcurl.so.4.6.0.debug from remote target...
Reading /usr/lib/libcommondbg.so.debug from remote target...
Reading /usr/lib/.debug/libcommondbg.so.debug from remote target...
Reading /usr/lib/libIpc.so.debug from remote target...
Reading /usr/lib/.debug/libIpc.so.debug from remote target...
Reading /usr/lib/libutils.so.debug from remote target...
Reading /usr/lib/.debug/libutils.so.debug from remote target...
Reading /usr/lib/libEvent.so.debug from remote target...
Reading /usr/lib/.debug/libEvent.so.debug from remote target...
Reading /usr/lib/librpcinternal.so.debug from remote target...
Reading /usr/lib/.debug/librpcinternal.so.debug from remote target...
Reading /usr/lib/libtoi.so.debug from remote target...
Reading /usr/lib/.debug/libtoi.so.debug from remote target...
Reading /usr/lib/libstdc++.so.6.0.20.debug from remote target...
Reading /usr/lib/.debug/libstdc++.so.6.0.20.debug from remote target...
Reading /usr/lib/libgcc_s.so.1.debug from remote target...
Reading /usr/lib/.debug/libgcc_s.so.1.debug from remote target...
Reading /lib/libc-2.25.so.debug from remote target...
Reading /lib/.debug/libc-2.25.so.debug from remote target...
Reading /usr/lib/libssl.so.1.0.0.debug from remote target...
Reading /usr/lib/.debug/libssl.so.1.0.0.debug from remote target...
Reading /usr/lib/libcrypto.so.1.0.0.debug from remote target...
Reading /usr/lib/.debug/libcrypto.so.1.0.0.debug from remote target...
Reading /usr/lib/libz.so.1.2.8.debug from remote target...
Reading /usr/lib/.debug/libz.so.1.2.8.debug from remote target...
Reading /usr/lib/libksocket.so.debug from remote target...
Reading /usr/lib/.debug/libksocket.so.debug from remote target...
Reading /lib/libm-2.25.so.debug from remote target...
Reading /lib/.debug/libm-2.25.so.debug from remote target...
Reading /lib/librt-2.25.so.debug from remote target...
Reading /lib/.debug/librt-2.25.so.debug from remote target...
Reading /lib/libdl-2.25.so.debug from remote target...
Reading /lib/.debug/libdl-2.25.so.debug from remote target...

Program received signal SIGILL, Illegal instruction.
0xb690aee8 in _armv7_tick () from target:/usr/lib/libcrypto.so.1.0.0
Loaded 'target:/lib/libpthread.so.0'. Symbols loaded.
Loaded 'target:/usr/lib/libcurl.so.4'. Symbols loaded.
Loaded 'target:/usr/lib/libcommondbg.so'. Symbols loaded.
Loaded 'target:/usr/lib/libIpc.so'. Symbols loaded.
Loaded 'target:/usr/lib/libutils.so'. Symbols loaded.
Loaded 'target:/usr/lib/libEvent.so'. Symbols loaded.
Loaded 'target:/usr/lib/librpcinternal.so'. Symbols loaded.
Loaded 'target:/usr/lib/libtoi.so'. Symbols loaded.
Loaded 'target:/usr/lib/libstdc++.so.6'. Symbols loaded.
Loaded 'target:/usr/lib/libgcc_s.so.1'. Symbols loaded.
Loaded 'target:/lib/libc.so.6'. Symbols loaded.
Loaded 'target:/usr/lib/libssl.so.1.0.0'. Symbols loaded.
Loaded 'target:/usr/lib/libcrypto.so.1.0.0'. Symbols loaded.
Loaded 'target:/usr/lib/libz.so.1'. Symbols loaded.
Loaded 'target:/usr/lib/libksocket.so'. Symbols loaded.
Loaded 'target:/lib/libm.so.6'. Symbols loaded.
Loaded 'target:/lib/librt.so.1'. Symbols loaded.
Loaded 'target:/lib/libdl.so.2'. Symbols loaded.
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger) 

Breakpoint 1, main () at main.cpp:43
43    {

Program received signal SIGABRT, Aborted.
0xb6ad9548 in ?? () from target:/lib/libc.so.6
-exec info  sharedlibrary
From        To          Syms Read   Shared Object Library
0xb6fcf740  0xb6fea634  Yes         target:/lib/ld-linux-armhf.so.3
0xb6faa100  0xb6fba1f8  Yes         target:/lib/libpthread.so.0
0xb6f4c7a0  0xb6f8df10  Yes         target:/usr/lib/libcurl.so.4
0xb6f2e994  0xb6f34614  Yes         target:/usr/lib/libcommondbg.so
0xb6f10608  0xb6f1751c  Yes         target:/usr/lib/libIpc.so
0xb6ed9588  0xb6ef2328  Yes         target:/usr/lib/libutils.so
0xb6eac370  0xb6eb29f0  Yes         target:/usr/lib/libEvent.so
0xb6e3bbf0  0xb6e7db70  Yes         target:/usr/lib/librpcinternal.so
0xb6d2e8e8  0xb6dbc8bc  Yes         target:/usr/lib/libtoi.so
0xb6c57730  0xb6c9f890  Yes         target:/usr/lib/libstdc++.so.6
0xb6bf0118  0xb6bfe9b8  Yes         target:/usr/lib/libgcc_s.so.1
0xb6ac4180  0xb6bb2710  Yes         target:/lib/libc.so.6
0xb6a5bd88  0xb6a9384c  Yes         target:/usr/lib/libssl.so.1.0.0
0xb6906d40  0xb69ff988  Yes         target:/usr/lib/libcrypto.so.1.0.0
0xb68aa710  0xb68b5878  Yes         target:/usr/lib/libz.so.1
0xb6894318  0xb6897208  Yes         target:/usr/lib/libksocket.so
0xb68145c0  0xb684a768  Yes         target:/lib/libm.so.6
0xb67fa730  0xb67fdf08  Yes         target:/lib/librt.so.1
0xb67e6998  0xb67e7710  Yes         target:/lib/libdl.so.2

 

 

2.  Could not load source  ./Yourlib/yourlibcpp.cpp: 'SourceRequest' not supported..

 

"sourceFileMap": { "./Yourlib": "/home/yourname/fullpath/host/machine/libnameInhost/src/" }

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
您的问题似乎不完整或不清楚,请提供更具体的信息和详细的上下文。如果您是在使用开发板上的Ubuntu操作系统,并且想要在VSCode中使用GDBGDBServer进行调试,您可以按照以下步骤进行操作: 1. 在Ubuntu中安装GDBGDBServer,您可以使用以下命令: ``` sudo apt-get install gdb gdbserver ``` 2. 在VSCode中安装C/C++插件,该插件可以让您在VSCode中进行C/C++开发和调试。 3. 在您的项目中配置launch.json文件,以便VSCode可以启动GDBGDBServer进行调试。以下是一个示例配置: ``` { "version": "0.2.0", "configurations": [ { "name": "Debug", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/<your_program>", "args": [], "stopAtEntry": true, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "miDebuggerPath": "/usr/bin/gdb", "setupCommands": [ { "description": "Enable gdbserver", "text": "-enable-pretty-printing", "ignoreFailures": true }, { "description": "Start gdbserver", "text": "-target-select remote :<your_port>", "ignoreFailures": false } ], "preLaunchTask": "build" } ] } ``` 在上述配置中,您需要指定您的程序的路径和端口号,以及GDBGDBServer的路径。在启动调试会话之前,您需要确保在开发板上已经启动了GDBServer,并且端口号与launch.json文件中的端口号匹配。 希望这些信息能够帮助您解决问题。如果您需要更多帮助,请提供更具体的信息。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值