List Info

Thread: gdb over smbus




gdb over smbus
user name
2007-07-06 03:21:46
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,

Re: gdb over smbus
country flaguser name
United States
2007-07-06 06:59:20
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

Re: gdb over smbus
user name
2007-07-09 03:43:42
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 <drowfalse.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
>

Re: gdb over smbus
country flaguser name
United States
2007-07-09 06:40:50
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

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )