bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb stub


From: Tauno Voipio
Subject: Re: gdb stub
Date: Fri, 23 Nov 2001 13:54:36 GMT

"Steven Boucque VJ63 L3 59346" <address@hidden> wrote in message
news:address@hidden
> Hi guys!
>
> I'm trying to get a gdb stub compiled in my application!
> I think I have all the necessary sources (stub, implementation of the
> platform specific things (serial, interrupt,...) , and my own app).
> Now how do I put all these things together?
> Anybody got some good links or documents?
>

1. Link the start-up code, stub and drivers needed by it to a binary
package.

2. Load the package to the target system using whatever means available
(Flash / PROM burner, JTAG debugger etc.).

3. Link the application with the drivers & libraries it needs. The linker
script shall direct the target to RAM not used by the stub.

4. Connect the target with the stub to the controlling computer with GDB,
and start the target and GDB.

5. Set GDB to remote mode to the target and download your application with
it.

6. Start up and debug your application with GDB.

Been there - done that (using ARM7TDMI, Atmel At90R40800).

Tauno Voipio
tauno voipio @ iki fi

PS. At least I had quite a lot of debugging before the stub worked
properly - luckily GDB has commands to debug the remote protocol, too.

TV




reply via email to

[Prev in Thread] Current Thread [Next in Thread]