Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-dd-dev] DSF remote debug error

 

> -----Original Message-----
> From: dsdp-dd-dev-bounces@xxxxxxxxxxx 
> [mailto:dsdp-dd-dev-bounces@xxxxxxxxxxx] On Behalf Of Serhat Aydin
> Sent: Thursday, May 07, 2009 2:25 AM
> To: Device Debugging developer discussions
> Subject: [dsdp-dd-dev] DSF remote debug error
> 
> Hi,
> I'm trying to debug an application running on linux using 
> DSF. I cross 
> compiled the application using cygwin and runs on linux 
> without a problem.
> But when I try to debug it from Windows with DSF I have an error :
> 
> *warning: A handler for the OS ABI "GNU/Linux" is not built into this 
> configuration
> of GDB.  Attempting to continue with the default i386 settings.
> 
> Remote 'g' packet reply is too long: 
> 00000000f2b6f0b901000000f45ff1b7705ad5bf885ad5bf2c83
>                                                        
> 0408c0830408c584040882020000730000007b0000007b0000007b.........*
> 
> I think the problem arises from cygwin gdb. Because it's not 
> configured 
> for linux.
> Should I use a cross gdb on cygwin to fix the problem, if so 
> how can i 
> find cygwin cross gdb configured for linux ?

Yes, you need a GDB that is built for windows but has a Linux target
enabled.
After starting GDB, try the command 
show osabi
it must mention GNU/Linux

Usually, I build my own GDB and I specify the target to the configure
script
like this
configure --targets=i686-pc-linux-gnu
or you can even have it work for both Windows and Linux by doing
configure --enable-targets=i686-pc-linux-gnu

I assume that with cygwin, you can build your own gdb.

Marc


Back to the top