This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem in using gdb 6.8 to step code in flash


On Wed, May 14, 2008 at 03:28:34PM +0100, Jiju George T wrote:
> I am using configure --target=mipsel-linux --host=i686-pc-linux-gnu for
> configuring gdb
> 
> I am trying to build a gdb that can both debug linux kernel and some code in
> flash. Is it possible? 

Try building a mips-elf GDB with --enable-targets=mips-linux.  If you
are using kgdb and the kernel does not support the single step packet,
you will have to use 'set osabi GNU/Linux' when connected to kgdb
(I don't know if you'll need that or not).

> How do these configurations affect the stepping logic? 

They don't, you're looking in the wrong file.  See mips-linux-tdep.c.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]