set architecture sh2, causes core dump on latest build 20000305.
Robert
robert.melchers@drives.eurotherm.co.uk
Fri Mar 10 02:17:00 GMT 2000
With
GNU gdb 20000305
"--host=i686-pc-cygwin --target=sh-coff"
the command "set architecture sh2", causes a core
dump.
ÃÂ
I believe it
is because the sh_processor_type_table[] in sh-tdep.c does not include an entry
for the sh2. Adding an entry fixes the problem.
ÃÂ
The sh1 and
sh2 processors share the same register names.
ÃÂ
The following
snippet shows the necessary changes.
ÃÂ
Robert.
ÃÂ
***
sh-tdep.bakÃÂ Thu Feb 24 03:31:45 2000 --- sh-tdep.cÃÂ Thu Mar 09
17:10:05 2000 *************** *** 102,115 **** --- 102,119
---- ÃÂ sh_processor_type_table[] = ÃÂ { ÃÂ ÃÂ ÃÂ
{ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ sh_reg_names,
bfd_mach_sh ÃÂ ÃÂ ÃÂ } ÃÂ ÃÂ ÃÂ
, ÃÂ ÃÂ ÃÂ { +ÃÂ ÃÂ ÃÂ ÃÂ sh_reg_names,
bfd_mach_sh2 +ÃÂ ÃÂ } +ÃÂ ÃÂ , +ÃÂ ÃÂ
{ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ sh3_reg_names,
bfd_mach_sh3 ÃÂ ÃÂ ÃÂ } ÃÂ ÃÂ ÃÂ
, ÃÂ ÃÂ ÃÂ { ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ sh3e_reg_names,
bfd_mach_sh3e ÃÂ ÃÂ ÃÂ } ÃÂ ÃÂ ÃÂ
,
More information about the Insight
mailing list