diff options
author | Dhananjay Deshpande <dhananjayd@kpitcummins.com> | 2003-12-11 06:21:12 +0000 |
---|---|---|
committer | Dhananjay Deshpande <dhananjayd@kpitcummins.com> | 2003-12-11 06:21:12 +0000 |
commit | 454d05118bc21bb4966c0cb13d3bfc526c26e3b8 (patch) | |
tree | 2710dbfbea877706f2abd2d6dc28101636aca660 /sim/h8300 | |
parent | 8f02783d3a649edcfc7bbce568918c39f1c844e9 (diff) | |
download | gdb-454d05118bc21bb4966c0cb13d3bfc526c26e3b8.zip gdb-454d05118bc21bb4966c0cb13d3bfc526c26e3b8.tar.gz gdb-454d05118bc21bb4966c0cb13d3bfc526c26e3b8.tar.bz2 |
Fix GDB crash problem when object file of different H8 cpu is loaded
Diffstat (limited to 'sim/h8300')
-rw-r--r-- | sim/h8300/ChangeLog | 4 | ||||
-rw-r--r-- | sim/h8300/compile.c | 2 |
2 files changed, 6 insertions, 0 deletions
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 <dhananjayd@kpitcummins.com> + + * compile.c (set_h8300h): Initialize globals to zero. + 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com> * 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; |