From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7559 invoked by alias); 17 Jun 2003 17:58:11 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7514 invoked from network); 17 Jun 2003 17:58:10 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 17 Jun 2003 17:58:10 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id NAA20929 for ; Tue, 17 Jun 2003 13:51:30 -0400 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id NAA10942 for ; Tue, 17 Jun 2003 13:58:08 -0400 Message-ID: <094501c334fa$08c62ea0$0202040a@catdog> From: "Kris Warkentin" To: "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 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-06/txt/msg00570.txt.bz2 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. */