From 454d05118bc21bb4966c0cb13d3bfc526c26e3b8 Mon Sep 17 00:00:00 2001 From: Dhananjay Deshpande Date: Thu, 11 Dec 2003 06:21:12 +0000 Subject: Fix GDB crash problem when object file of different H8 cpu is loaded --- sim/h8300/ChangeLog | 4 ++++ sim/h8300/compile.c | 2 ++ 2 files changed, 6 insertions(+) (limited to 'sim/h8300') diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog index 4d9f33c..7aa1a75 100644 --- a/sim/h8300/ChangeLog +++ b/sim/h8300/ChangeLog @@ -1,3 +1,7 @@ +2003-12-11 Dhananjay Deshpande + + * compile.c (set_h8300h): Initialize globals to zero. + 2003-10-17 Shrinivas Atre * compile.c (h8300_normal_mode): New. diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index f123878..462240c 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -4930,6 +4930,8 @@ set_h8300h (unsigned long machine) This function being replaced by a sim_open:ARGV configuration option. */ + h8300hmode = h8300smode = h8300sxmode = h8300_normal_mode = 0; + if (machine == bfd_mach_h8300sx || machine == bfd_mach_h8300sxn) h8300sxmode = 1; -- cgit v1.1