From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16118 invoked by alias); 9 Oct 2013 17:18:05 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 16054 invoked by uid 89); 9 Oct 2013 17:18:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Oct 2013 17:18:04 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r99HI2jT005670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Oct 2013 13:18:02 -0400 Received: from redhat.brq.redhat.com (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r99HHgcH010424; Wed, 9 Oct 2013 13:18:01 -0400 From: Ondrej Oprala To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 11/18] poison "template" Date: Wed, 09 Oct 2013 17:18:00 -0000 Message-Id: <1381339053-14519-12-git-send-email-ooprala@redhat.com> In-Reply-To: <1381339053-14519-1-git-send-email-ooprala@redhat.com> References: <1381339053-14519-1-git-send-email-ooprala@redhat.com> X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00297.txt.bz2 From: Tom Tromey * ada-lang.c (templ) : Renamed from template. * ia64-tdep.c (templ) : Likewise. --- gdb/ChangeLog | 5 +++++ gdb/ada-lang.c | 4 ++-- gdb/ia64-tdep.c | 30 +++++++++++++++--------------- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a0728dd..2936607 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -17,6 +17,11 @@ 2013-10-09 Tom Tromey + * ada-lang.c (templ) : Renamed from template. + * ia64-tdep.c (templ) : Likewise. + +2013-10-09 Tom Tromey + * c-exp.y (oper) : Renamed from operator. * f-exp.y (oper) : Likewise. * go-exp.y (oper) : Likewise. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index cb12382..1150fd6 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -7553,9 +7553,9 @@ variant_field_index (struct type *type) /* A record type with no fields. */ static struct type * -empty_record (struct type *template) +empty_record (struct type *templ) { - struct type *type = alloc_type_copy (template); + struct type *type = alloc_type_copy (templ); TYPE_CODE (type) = TYPE_CODE_STRUCT; TYPE_NFIELDS (type) = 0; diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 44000b9..8efed4a 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -513,7 +513,7 @@ fetch_instruction (CORE_ADDR addr, instruction_type *it, long long *instr) { gdb_byte bundle[BUNDLE_LEN]; int slotnum = (int) (addr & 0x0f) / SLOT_MULTIPLIER; - long long template; + long long templ; int val; /* Warn about slot numbers greater than 2. We used to generate @@ -544,8 +544,8 @@ fetch_instruction (CORE_ADDR addr, instruction_type *it, long long *instr) return 0; *instr = slotN_contents (bundle, slotnum); - template = extract_bit_field (bundle, 0, 5); - *it = template_encoding_table[(int)template][slotnum]; + templ = extract_bit_field (bundle, 0, 5); + *it = template_encoding_table[(int)templ][slotnum]; if (slotnum == 2 || (slotnum == 1 && *it == L)) addr += 16; @@ -643,7 +643,7 @@ ia64_memory_insert_breakpoint (struct gdbarch *gdbarch, int slotnum = (int) (addr & 0x0f) / SLOT_MULTIPLIER, shadow_slotnum; long long instr_breakpoint; int val; - int template; + int templ; struct cleanup *cleanup; if (slotnum > 2) @@ -672,8 +672,8 @@ ia64_memory_insert_breakpoint (struct gdbarch *gdbarch, a breakpoint on an L-X instruction. */ bp_tgt->shadow_len = BUNDLE_LEN - shadow_slotnum; - template = extract_bit_field (bundle, 0, 5); - if (template_encoding_table[template][slotnum] == X) + templ = extract_bit_field (bundle, 0, 5); + if (template_encoding_table[templ][slotnum] == X) { /* X unit types can only be used in slot 2, and are actually part of a 2-slot L-X instruction. We cannot break at this @@ -682,7 +682,7 @@ ia64_memory_insert_breakpoint (struct gdbarch *gdbarch, gdb_assert (slotnum == 2); error (_("Can't insert breakpoint for non-existing slot X")); } - if (template_encoding_table[template][slotnum] == L) + if (template_encoding_table[templ][slotnum] == L) { /* L unit types can only be used in slot 1. But the associated opcode for that instruction is in slot 2, so bump the slot number @@ -740,7 +740,7 @@ ia64_memory_remove_breakpoint (struct gdbarch *gdbarch, int slotnum = (addr & 0x0f) / SLOT_MULTIPLIER, shadow_slotnum; long long instr_breakpoint, instr_saved; int val; - int template; + int templ; struct cleanup *cleanup; addr &= ~0x0f; @@ -762,8 +762,8 @@ ia64_memory_remove_breakpoint (struct gdbarch *gdbarch, for addressing the SHADOW_CONTENTS placement. */ shadow_slotnum = slotnum; - template = extract_bit_field (bundle_mem, 0, 5); - if (template_encoding_table[template][slotnum] == X) + templ = extract_bit_field (bundle_mem, 0, 5); + if (template_encoding_table[templ][slotnum] == X) { /* X unit types can only be used in slot 2, and are actually part of a 2-slot L-X instruction. We refuse to insert @@ -777,7 +777,7 @@ ia64_memory_remove_breakpoint (struct gdbarch *gdbarch, do_cleanups (cleanup); return -1; } - if (template_encoding_table[template][slotnum] == L) + if (template_encoding_table[templ][slotnum] == L) { /* L unit types can only be used in slot 1. But the breakpoint was actually saved using slot 2, so update the slot number @@ -830,7 +830,7 @@ ia64_breakpoint_from_pc (struct gdbarch *gdbarch, int slotnum = (int) (*pcptr & 0x0f) / SLOT_MULTIPLIER, shadow_slotnum; long long instr_fetched; int val; - int template; + int templ; struct cleanup *cleanup; if (slotnum > 2) @@ -858,13 +858,13 @@ ia64_breakpoint_from_pc (struct gdbarch *gdbarch, /* Check for L type instruction in slot 1, if present then bump up the slot number to the slot 2. */ - template = extract_bit_field (bundle, 0, 5); - if (template_encoding_table[template][slotnum] == X) + templ = extract_bit_field (bundle, 0, 5); + if (template_encoding_table[templ][slotnum] == X) { gdb_assert (slotnum == 2); error (_("Can't insert breakpoint for non-existing slot X")); } - if (template_encoding_table[template][slotnum] == L) + if (template_encoding_table[templ][slotnum] == L) { gdb_assert (slotnum == 1); slotnum = 2; -- 1.8.3.1