* gdb over smbus
@ 2007-07-06 8:21 Rick.Lee
2007-07-06 11:59 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Rick.Lee @ 2007-07-06 8:21 UTC (permalink / raw)
To: gdb
hi,all,
I have a soc with smbus interface, through this smbus interface,
all kinds of resources on chip can be accessed, such as sram,
registers, to set/enable/disable breakpoint, restart soc.
I want to know if it's possible to port GDB on this soc to supoort
souce code level debug?
BTW, gcc compiler has been ported to support this kind of soc.
I know little about gdb porting, any information are appreciated!
thanks,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdb over smbus
2007-07-06 8:21 gdb over smbus Rick.Lee
@ 2007-07-06 11:59 ` Daniel Jacobowitz
2007-07-09 8:44 ` Rick.Lee
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-07-06 11:59 UTC (permalink / raw)
To: Rick.Lee; +Cc: gdb
On Fri, Jul 06, 2007 at 04:21:46PM +0800, Rick.Lee wrote:
> hi,all,
> I have a soc with smbus interface, through this smbus interface,
> all kinds of resources on chip can be accessed, such as sram,
> registers, to set/enable/disable breakpoint, restart soc.
> I want to know if it's possible to port GDB on this soc to supoort
> souce code level debug?
> BTW, gcc compiler has been ported to support this kind of soc.
> I know little about gdb porting, any information are appreciated!
Probably. You should write a convertor between your SMBus debug
interface and the GDB remote protocol, and then connect GDB to it over
TCP.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdb over smbus
2007-07-06 11:59 ` Daniel Jacobowitz
@ 2007-07-09 8:44 ` Rick.Lee
2007-07-09 11:40 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Rick.Lee @ 2007-07-09 8:44 UTC (permalink / raw)
To: Rick.Lee, gdb
thanks,Daniel,
there are some incorrect information about this soc, through
smbus interface, cpu core registers, such as status register, register
files r0-rx could not be accessed, all other peripheral registers can
be accessed,including breakpoint enable/disable.
with these restrictions, is it still possible to do such a
converter to support source level debuging?
thank you.
Rick
2007/7/6, Daniel Jacobowitz <drow@false.org>:
> On Fri, Jul 06, 2007 at 04:21:46PM +0800, Rick.Lee wrote:
> > hi,all,
> > I have a soc with smbus interface, through this smbus interface,
> > all kinds of resources on chip can be accessed, such as sram,
> > registers, to set/enable/disable breakpoint, restart soc.
> > I want to know if it's possible to port GDB on this soc to supoort
> > souce code level debug?
> > BTW, gcc compiler has been ported to support this kind of soc.
> > I know little about gdb porting, any information are appreciated!
>
> Probably. You should write a convertor between your SMBus debug
> interface and the GDB remote protocol, and then connect GDB to it over
> TCP.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdb over smbus
2007-07-09 8:44 ` Rick.Lee
@ 2007-07-09 11:40 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-07-09 11:40 UTC (permalink / raw)
To: Rick.Lee; +Cc: gdb
On Mon, Jul 09, 2007 at 04:43:42PM +0800, Rick.Lee wrote:
> thanks,Daniel,
> there are some incorrect information about this soc, through
> smbus interface, cpu core registers, such as status register, register
> files r0-rx could not be accessed, all other peripheral registers can
> be accessed,including breakpoint enable/disable.
> with these restrictions, is it still possible to do such a
> converter to support source level debuging?
You will have to come up with some way to access the core registers,
if you expect GDB to know the current PC.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-09 11:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-06 8:21 gdb over smbus Rick.Lee
2007-07-06 11:59 ` Daniel Jacobowitz
2007-07-09 8:44 ` Rick.Lee
2007-07-09 11:40 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox