Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Kris Warkentin" <kewarken@qnx.com>
To: "Gdb-Patches@Sources.Redhat.Com" <gdb-patches@sources.redhat.com>
Subject: [ob?] nto-tdep.c: recognize powerpc as well as rs6000
Date: Tue, 17 Jun 2003 17:58:00 -0000	[thread overview]
Message-ID: <094501c334fa$08c62ea0$0202040a@catdog> (raw)

Since I'm braindead today....okay to commit?

cheers,

Kris

ChangeLog:

 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
 (nto_find_and_open_solib): Likewise.
 (nto_init_solib_absolute_prefix): Likewise.
 (_initialize_nto_tdep): Fix indentation.

Index: nto-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-tdep.c,v
retrieving revision 1.5
diff -c -r1.5 nto-tdep.c
*** nto-tdep.c 20 May 2003 21:34:56 -0000 1.5
--- nto-tdep.c 17 Jun 2003 17:54:05 -0000
***************
*** 72,78 ****
  {
    if (!strcmp (arch, "i386") || !strcmp (arch, "x86"))
      return CPUTYPE_X86;
!   if (!strcmp (arch, "rs6000") || !strcmp (arch, "ppc"))
      return CPUTYPE_PPC;
    if (!strcmp (arch, "mips"))
      return CPUTYPE_MIPS;
--- 72,78 ----
  {
    if (!strcmp (arch, "i386") || !strcmp (arch, "x86"))
      return CPUTYPE_X86;
!   if (!strcmp (arch, "rs6000") || !strcmp (arch, "powerpc"))
      return CPUTYPE_PPC;
    if (!strcmp (arch, "mips"))
      return CPUTYPE_MIPS;
***************
*** 97,103 ****
        arch = "x86";
        endian = "";
      }
!   else if (strcmp (TARGET_ARCHITECTURE->arch_name, "rs6000") == 0)
      {
        arch = "ppc";
        endian = "be";
--- 97,104 ----
        arch = "x86";
        endian = "";
      }
!   else if (strcmp (TARGET_ARCHITECTURE->arch_name, "rs6000") == 0 ||
!     strcmp (TARGET_ARCHITECTURE->arch_name, "powerpc") == 0)
      {
        arch = "ppc";
        endian = "be";
***************
*** 130,136 ****
        arch = "x86";
        endian = "";
      }
!   else if (strcmp (TARGET_ARCHITECTURE->arch_name, "rs6000") == 0)
      {
        arch = "ppc";
        endian = "be";
--- 131,138 ----
        arch = "x86";
        endian = "";
      }
!   else if (strcmp (TARGET_ARCHITECTURE->arch_name, "rs6000") == 0 ||
!     strcmp (TARGET_ARCHITECTURE->arch_name, "powerpc") == 0)
      {
        arch = "ppc";
        endian = "be";
***************
*** 269,275 ****
          int which, CORE_ADDR reg_addr)
  {
    nto_regset_t regset;
!   
  /* See corelow.c:get_core_registers for values of WHICH.  */
    if (which == 0)
      {
--- 271,277 ----
          int which, CORE_ADDR reg_addr)
  {
    nto_regset_t regset;
! 
  /* See corelow.c:get_core_registers for values of WHICH.  */
    if (which == 0)
      {
***************
*** 305,315 ****
  _initialize_nto_tdep (void)
  {
    add_setshow_cmd ("nto-debug", class_maintenance, var_zinteger,
!     &nto_internal_debugging, "Set QNX NTO internal debugging.\n\
  When non-zero, nto specific debug info is\n\
  displayed. Different information is displayed\n\
! for different positive values.",  "Show QNX NTO internal debugging.\n",
!     NULL, NULL, &setdebuglist, &showdebuglist);
  
    /* We use SIG45 for pulses, or something, so nostop, noprint
       and pass them.  */
--- 307,317 ----
  _initialize_nto_tdep (void)
  {
    add_setshow_cmd ("nto-debug", class_maintenance, var_zinteger,
!      &nto_internal_debugging, "Set QNX NTO internal debugging.\n\
  When non-zero, nto specific debug info is\n\
  displayed. Different information is displayed\n\
! for different positive values.", "Show QNX NTO internal debugging.\n",
!      NULL, NULL, &setdebuglist, &showdebuglist);
  
    /* We use SIG45 for pulses, or something, so nostop, noprint
       and pass them.  */




             reply	other threads:[~2003-06-17 17:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-17 17:58 Kris Warkentin [this message]
2003-06-17 18:17 ` Daniel Jacobowitz
2003-06-17 18:30   ` Kris Warkentin
2003-06-17 18:37     ` Daniel Jacobowitz
2003-06-17 18:55       ` Kris Warkentin

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='094501c334fa$08c62ea0$0202040a@catdog' \
    --to=kewarken@qnx.com \
    --cc=gdb-patches@sources.redhat.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