public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "Robert" <robert.melchers@drives.eurotherm.co.uk>
To: <insight@sourceware.cygnus.com>
Subject: set architecture sh2, causes core dump on latest build 20000305.
Date: Fri, 10 Mar 2000 02:17:00 -0000	[thread overview]
Message-ID: <000101bf8a78$afe82b00$c9a87995@rmelch.drives.eurotherm.co.uk> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 961 bytes --]

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     }     
,

             reply	other threads:[~2000-03-10  2:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-10  2:17 Robert [this message]
2000-03-19 23:12 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000101bf8a78$afe82b00$c9a87995@rmelch.drives.eurotherm.co.uk' \
    --to=robert.melchers@drives.eurotherm.co.uk \
    --cc=insight@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).