* Fwd: Porting GDB to new architecture
[not found] <AANLkTi=kw0fJaRDKrppfq0y=SrA2URGGnSp08whozgp0@mail.gmail.com>
@ 2010-11-11 14:44 ` Dalibor Kovacevic
2010-11-11 15:51 ` Jeremy Bennett
0 siblings, 1 reply; 2+ messages in thread
From: Dalibor Kovacevic @ 2010-11-11 14:44 UTC (permalink / raw)
To: gdb
Hi,
I'm porting gdb 7.2 to a new architecture and I need a few tips to get
me started. I have read all about porting gdb that google search found
on that subject. The HOW TO from Jeremy Bennett helped me allot to
understand what I need to do. But before the start of porting I was
wondering could someone help me choose the starting template from
already ported architectures. Mine is a combination of DSP
and a microcontroller, binutils are already ported so i have BFD, it
will be debugged via stub.
Regards
Dalibor Kovacevic
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fwd: Porting GDB to new architecture
2010-11-11 14:44 ` Fwd: Porting GDB to new architecture Dalibor Kovacevic
@ 2010-11-11 15:51 ` Jeremy Bennett
0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Bennett @ 2010-11-11 15:51 UTC (permalink / raw)
To: gdb; +Cc: Dalibor Kovacevic
On Thu, 2010-11-11 at 15:43 +0100, Dalibor Kovacevic wrote:
> I'm porting gdb 7.2 to a new architecture and I need a few tips to get
> me started. I have read all about porting gdb that google search found
> on that subject. The HOW TO from Jeremy Bennett helped me allot to
> understand what I need to do. But before the start of porting I was
> wondering could someone help me choose the starting template from
> already ported architectures. Mine is a combination of DSP
> and a microcontroller, binutils are already ported so i have BFD, it
> will be debugged via stub.
Hi Dalibor,
Glad you found the HOWTO useful. I need to update it for GDB 7.x. In
particular the frame handling has changed, so the functions use THIS
frame as the handle, rather than the NEXT frame. The function names have
changed accordingly.
I took my examples from the OpenRISC 1000, which is a MIPS like RISC
architecture. It's not part of the official GDB distribution (yet!), but
you can find the source code at
http://opencores.org/openrisc,gnu_toolchain
Because I used it in the HOWTO, the code is commented rather more
verbosely than other ports, so you may find it a useful example to look
at. There is a 7.2 version, which will help you with the new function
names.
HTH,
Jeremy
--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-11 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <AANLkTi=kw0fJaRDKrppfq0y=SrA2URGGnSp08whozgp0@mail.gmail.com>
2010-11-11 14:44 ` Fwd: Porting GDB to new architecture Dalibor Kovacevic
2010-11-11 15:51 ` Jeremy Bennett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox