Subject: RE: remote debug from i386
To: None <port-arm@NetBSD.org>
From: None <Lin.Colin@iac.com.tw>
List: port-arm
Date: 05/24/2004 19:37:00
Hi all,
I had found out how to enable i386 GDB to understand ARM format =
executable file.
Just:
	1. cd /usr/src/gnu/dist/gdb
	2. ./configure --host=3Di386-unknown-netbsdelf1.6.2 =
--target=3Darm-unknown-netbsdelf1.6.2
	3. make

Regards,
Colin

-----Original Message-----
From: Lin, Colin(=AAL=AB=D8=A6w IAC)=20
Sent: Friday, May 21, 2004 4:24 PM
To: 'port-arm@netbsd.org'
Subject: remote debug from i386


Hi all,
I want to remote debug the embedded kernel from PC now.
When I built up a kernel supporting KGDB and was ready to debug it, I =
found that i386 gdb seems not understand the ARM format executable file.
	> gdb netbsd.gdb
	....
	....
	warning: unknown architecture file may be incompatible with i386 =
target.
	Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.

If I try to make "step" or "stepi" commands in gdb, something would be =
wrong.
So I'd like to know, is it possible to remote debug an ARM kernel in =
embedded device from i386 PC?

Thanks and regards,
Colin