mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Fix GDB crash problem when object file of different H8 cpu is loaded
This commit is contained in:
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user