This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
make redboot tx49 gdb stub send 32 bit register info to host gdb
- From: "Andy Dyer" <adyer at righthandtech dot com>
- To: <ecos-patches at sources dot redhat dot com>
- Date: Tue, 5 Aug 2003 20:03:05 -0500
- Subject: make redboot tx49 gdb stub send 32 bit register info to host gdb
This patch forces the gdb stub to send MIPS registers as 32-bit
values for tx49 architecture. This was tested with
$ mips-tx49-elf-gdb -v
GNU gdb 5.3
...
This GDB was configured as "--host=i686-pc-cygwin
--target=mips-tx49-elf".
Index: arch/current/include/mips-stub.h
===================================================================
RCS file:
/cvs/ecos/ecos/packages/hal/mips/arch/current/include/mips-stub.h,v
retrieving revision 1.18
diff -U5 -p -r1.18 mips-stub.h
--- arch/current/include/mips-stub.h 27 Feb 2003 18:28:37 -0000
1.18
+++ arch/current/include/mips-stub.h 6 Aug 2003 00:40:53 -0000
@@ -95,11 +95,11 @@ typedef unsigned long target_register_t;
// Even though we are only working with 32 bit registers, GDB expects
64 bits
#define REGSIZE(X) 8
typedef unsigned long long target_register_t;
// We need to sign-extend the registers so GDB doesn't get confused.
#define CYGARC_SIGN_EXTEND_REGISTERS
-#elif defined(CYGPKG_HAL_MIPS_TX49)
+#elif 0 //defined(CYGPKG_HAL_MIPS_TX49)
// Even though we are only working with 32 bit registers, GDB expects
64 bits
#define REGSIZE(X) 8
typedef unsigned long target_register_t;
// We need to sign-extend the registers so GDB doesn't get confused.
--
Andrew Dyer | adyer@righthandtech.com
Sr. Engineer | (630) 238-0789
RightHand Technologies | (630) 238-0469 (fax)
735 N. Edgewood Ave. |
Suite D |
Wood Dale, IL 60191-1261 |
USA |