Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Cross-dbg for ARM

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
turboscrew
Posts: 190
Joined: 2009-03-23 09:17
Location: Nokia (town), Finland

[SOLVED] Cross-dbg for ARM

#1 Post by turboscrew »

Does anyone know where to find a working gdb for remotely debugging ARM?
I've tried gdb-multiarch, but it seems to have issues with loading programs to boards.
I'm running Jessie, and the gdb-multiarch version is 7.7.1.
It seems to send corrupted data.
Last edited by turboscrew on 2015-10-05 18:54, edited 1 time in total.
De-bugging is for sissies, real men do de-monstrations.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cross-dbg for ARM

#2 Post by GarryRicketson »

I got a lot of results using these key words:
where to find a working gdb for remotely debugging ARM?
and http://startpage.com
Below , is one,

https://sourceware.org/gdb/wiki/Buildin ... dGDBserver
There were not enough details in the post to be able to figure out which ones might be of use to you, seems like there are quite a few options, as far as anything in the Debian repositories, specifically for Debian, I don't know.

turboscrew
Posts: 190
Joined: 2009-03-23 09:17
Location: Nokia (town), Finland

Re: Cross-dbg for ARM

#3 Post by turboscrew »

I'm using Debian 8.1 on Intel I3 (x86_64), and the remote target is bare metal Raspberry Pi 2B with my own gdb-stub.
So I'm after a gdb that runs on my Debian desktop and is capable to debug ARMv7 - and whose remote serial protocol works.
The gdb-multiarch from the repo seems to have problems with 'load'-command: the loaded data is corrupted.

Building the gdb myself doesn't help, if I have buggy sources.



.
De-bugging is for sissies, real men do de-monstrations.

turboscrew
Posts: 190
Joined: 2009-03-23 09:17
Location: Nokia (town), Finland

Re: Cross-dbg for ARM

#4 Post by turboscrew »

Darn. after double and triple check, I still managed to make a mistake.
The loading works fine. I just looked at a wrong disassembly.
De-bugging is for sissies, real men do de-monstrations.

Post Reply