init_registers

Daniel Jacobowitz drow@mvista.com
Wed Jun 18 13:26:00 GMT 2003


On Wed, Jun 18, 2003 at 01:25:29PM +0900, saleru.raja@iap-online.com wrote:
> 
> Hello, 
> Please look at the following function, which is in file "regdat.sh" in
> GDB
> 
> void
> init_registers ()
> {
>     set_register_cache (regs_${name},
> 			sizeof (regs_${name}) / sizeof (regs_${name}[0]));
>     gdbserver_expedite_regs = expedite_regs_${name};
> }
> 
> If the target is "sh-elf", then what will be the modified function after
> compiling ?

It won't be used, because this function is used for gdbserver, not
currently for gdb.  Build for sh-linux and take a look yourself.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list