gdbserver

Remote debugging HiFive Unleashed in QEMU

丶灬走出姿态 提交于 2020-01-24 19:31:08
问题 I'm trying to get remote debugging working in QEMU for the sifive_u machine. All tools are from the Arch Linux repositories: ➜ qemu-system-riscv64 --version QEMU emulator version 4.2.0 Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers ➜ riscv64-linux-gnu-gdb --version GNU gdb (GDB) 8.3.1 Copyright (C) 2019 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

Error in initializing ST-Link Device

佐手、 提交于 2020-01-13 16:24:33
问题 I am currently using the ST-Link debugger to program my STM32F3 Discovery Board. The IDE that I am using is Atollic TrueStudio 5.5.2 but now I am facing a very weird problem which is I keep on getting the message " Error in initializing ST-Link Device. Reason : (-1) Failed to connect to device . Please check power and cabling to target." whenever I want to download the program into my STM32. I had tried some solutions that I found from internet but the problem still exists. Anyone had faced

GDB Monitor commands in CLion

醉酒当歌 提交于 2020-01-12 22:31:23
问题 I'm trying to debug an embedded project using remote GDB. My system: Target: ARM Cortex M0. SEGGER J-Link GDB Server V6.10 Command Line Version arm-none-eabi-gdb 7.10.1.20160616-cvs CLion 2016.2.2, Build #CL-162.1967.7 Ubuntu 16.04 I have the following in my .gdbinit file: target remote localhost:2331 #(I remove this line when debugging with CLion) set verbose on file "/path_to_output_file/blinky.elf" monitor reset break main The thing that has troubled me for days now, is that this works

GDB Monitor commands in CLion

喜你入骨 提交于 2020-01-12 22:31:07
问题 I'm trying to debug an embedded project using remote GDB. My system: Target: ARM Cortex M0. SEGGER J-Link GDB Server V6.10 Command Line Version arm-none-eabi-gdb 7.10.1.20160616-cvs CLion 2016.2.2, Build #CL-162.1967.7 Ubuntu 16.04 I have the following in my .gdbinit file: target remote localhost:2331 #(I remove this line when debugging with CLion) set verbose on file "/path_to_output_file/blinky.elf" monitor reset break main The thing that has troubled me for days now, is that this works

GDB hardware breakpoint don't work with remote debugging

痴心易碎 提交于 2020-01-05 07:03:59
问题 I use GDBServer to do a remote debug with an ARM11 CPU. The software breakpoint works well, but we i use "hbreak test.c:5" to set a hardware breakpoint, CPU will never stop. GDB version: 7.3.1 Target CPU: ARM11 Operation: arm-linux-gdb ./main (gdb) target remote 192.168.0.1:2345 (gdb) hbreak test.c:5 => HW breakpoint, it doesn't work. but if change to "b test.c:5", it will works (gdb) c Does anybody can tell me how to enable hardware debug with GDB7.3.1? Thanks! 回答1: Hardware breakpoints can

Only question marks in backtrace reported by gdb on ARM

这一生的挚爱 提交于 2019-12-30 03:18:09
问题 I'm trying to debug a software with gdbserver on ARM to get a backtrace of a crash. Unfortunately I get only question marks. Everywhere, I read this problem is simply related to the lack of symbols, but symbols are not stripped from my libraries. If I try to use the file command to load the symbols in the client I get: reading symbols from <path>/libQtWebKit.so.4.7.2...(no debugging symbols found)...done. and then, when the crash occurs: Program received signal SIGSEGV, Segmentation fault.

Error when Visual Studio Remote Debugging with GDB

▼魔方 西西 提交于 2019-12-24 22:39:41
问题 I have a sample c++ application which builds and runs fine in a Red Hat installation. I wanted to have the source code of this application in my windows machine so I can create a Visual Studio project and use Visual Studio 2017's new features which makes it possible to build and debug programs on a Linux server. I successfully managed the following Create a 'make file' project using Visual Studio CE 2017 Connect to the remote server and build by invoking make command at the server My remote

How to load shared libraries symbols for remote source level debugging with gdb and gdbserver?

六眼飞鱼酱① 提交于 2019-12-23 19:28:42
问题 I've installed gdb and gdbserver on an angstrom linux ARM board (with external access), and am trying to get source level debugging of a shared library working from my local machine. Currently, if I ssh into the device, I can run gdb and I am able to get everything working, including setting a breakpoint, hitting it and doing a backtrace. My problem comes when I try and do the same using gdbserver and running gdb on my host machine in order to accomplish the same thing (eventually I'd like to

gdb remote cross debugging fails with “Remote 'g' packet reply is too long”

拈花ヽ惹草 提交于 2019-12-20 11:52:26
问题 I have a problem with remote debugging. Host: laptop intel i5 with ubuntu 10.10 x86 Target: Freescale iMX35 (iMX35 PDK) arm 11 Development environment: Qt Creator 2.1RC and Qt4.7.1 libraries. Arm compiler in path: /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin arm-none-linux-gnueabi-gcc-4.1.2 arm-none-linux-gnueabi-objdump arm-none-linux-gnueabi-addr2line arm-none-linux-gnueabi-gccbug arm-none-linux-gnueabi-ranlib arm-none-linux-gnueabi-ar arm-none-linux

wrong memory locations when debugging in qemu with gdb

我们两清 提交于 2019-12-20 04:37:49
问题 I'm writing a little kernel in assembler. I'm running it in QEMU and have some problems with some bugs. Now I want to debug the kernel with dbg. So I assembled it like so: $ nasm -g -f elf -o myos.elf myos.asm $ objcopy --only-keep-debug myos.elf myos.sym $ objcopy -O binary myos.elf myos.bin Then I run it in QEMU with: $ qemu-system-i386 -s -S myos.bin Then I connect with gdb: $ gdb (gdb) target remote localhost:1234 Remote debugging using localhost:1234 0x0000fff0 in ?? () symbol-file myos