* Patch Gdb - target h8300 sim
@ 2003-08-30 11:47 Philip Quaife
2003-09-02 18:47 ` Andrew Cagney
0 siblings, 1 reply; 2+ messages in thread
From: Philip Quaife @ 2003-08-30 11:47 UTC (permalink / raw)
To: ac131313, gdb-patches
[-- Attachment #1: Type: text/plain, Size: 615 bytes --]
Hi,
I was given your email as address for patches to gdb. Please advice if you
are not the correct person.
Problem.
Gdb version 5.3 target h8300-coff. Machine h8300h. Simulator
Demonstration of fault.
set machine h8300h
target sim
Gdb Abort!
Cause of fault.
Incorrect definition of number of machine registers in tm-h8300.h
Patch
diff -c tm-h8300.h tm-h8300.h-orig
Fix is alpha as there is another definition of NUM_REGS in h8300-tdep.c ,
these two need to be merged and integrated into the gdb definitions for h8300
registers.
--
Philip Quaife
Q Solutions
[-- Attachment #2: pwq-h8300-reg.patch-tm-h8300.h --]
[-- Type: application/octet-stream, Size: 825 bytes --]
*** tm-h8300.h Sat Aug 30 23:21:43 2003
--- tm-h8300.h-orig Fri Aug 29 23:39:55 2003
***************
*** 100,112 ****
#define REGISTER_SIZE 4
! /*
! PWQ 30/8/03 - TEMPORARY PATCH for Wrong # REGS on h8300h machine
! This def is duplicated in h8300-tdep.c ,both should be merged into header
! file. Correct number is probably 12
! */
!
! #define NUM_REGS 13
#define REGISTER_BYTES (NUM_REGS * 4)
--- 100,106 ----
#define REGISTER_SIZE 4
! #define NUM_REGS 14
#define REGISTER_BYTES (NUM_REGS * 4)
***************
*** 318,321 ****
one that takes account of generic CALL_DUMMY frames */
#define GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval) \
generic_unwind_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
-
--- 312,314 ----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch Gdb - target h8300 sim
2003-08-30 11:47 Patch Gdb - target h8300 sim Philip Quaife
@ 2003-09-02 18:47 ` Andrew Cagney
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2003-09-02 18:47 UTC (permalink / raw)
To: Philip Quaife; +Cc: gdb-patches
Can you download a GDB 6.0 pre-release (GDB 5.3.91) from
ftp://sources.redhat.com/pub/gdb/snapshots/branch/
many things h8300 related were fixed after GDB 5.3 was released.
Andrew
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-02 18:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-30 11:47 Patch Gdb - target h8300 sim Philip Quaife
2003-09-02 18:47 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox