Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: bfd/cpu-arm.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « bfd/cpu-arc.c ('k') | bfd/cpu-avr.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* BFD support for the ARM processor 1 /* BFD support for the ARM processor
2 Copyright 1994, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2 Copyright 1994, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007,
3 2009, 2010 Free Software Foundation, Inc. 3 2009, 2010 Free Software Foundation, Inc.
4 Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org) 4 Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
5 5
6 This file is part of BFD, the Binary File Descriptor library. 6 This file is part of BFD, the Binary File Descriptor library.
7 7
8 This program is free software; you can redistribute it and/or modify 8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or 10 the Free Software Foundation; either version 3 of the License, or
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return TRUE; 117 return TRUE;
118 118
119 /* Finally check for the default architecture. */ 119 /* Finally check for the default architecture. */
120 if (strcasecmp (string, "arm") == 0) 120 if (strcasecmp (string, "arm") == 0)
121 return info->the_default; 121 return info->the_default;
122 122
123 return FALSE; 123 return FALSE;
124 } 124 }
125 125
126 #define N(number, print, default, next) \ 126 #define N(number, print, default, next) \
127 { 32, 32, 8, bfd_arch_arm, number, "arm", print, 4, default, compatible, scan, next } 127 { 32, 32, 8, bfd_arch_arm, number, "arm", print, 4, default, compatible, \
128 scan, bfd_arch_default_fill, next }
128 129
129 static const bfd_arch_info_type arch_info_struct[] = 130 static const bfd_arch_info_type arch_info_struct[] =
130 { 131 {
131 N (bfd_mach_arm_2, "armv2", FALSE, & arch_info_struct[1]), 132 N (bfd_mach_arm_2, "armv2", FALSE, & arch_info_struct[1]),
132 N (bfd_mach_arm_2a, "armv2a", FALSE, & arch_info_struct[2]), 133 N (bfd_mach_arm_2a, "armv2a", FALSE, & arch_info_struct[2]),
133 N (bfd_mach_arm_3, "armv3", FALSE, & arch_info_struct[3]), 134 N (bfd_mach_arm_3, "armv3", FALSE, & arch_info_struct[3]),
134 N (bfd_mach_arm_3M, "armv3m", FALSE, & arch_info_struct[4]), 135 N (bfd_mach_arm_3M, "armv3m", FALSE, & arch_info_struct[4]),
135 N (bfd_mach_arm_4, "armv4", FALSE, & arch_info_struct[5]), 136 N (bfd_mach_arm_4, "armv4", FALSE, & arch_info_struct[5]),
136 N (bfd_mach_arm_4T, "armv4t", FALSE, & arch_info_struct[6]), 137 N (bfd_mach_arm_4T, "armv4t", FALSE, & arch_info_struct[6]),
137 N (bfd_mach_arm_5, "armv5", FALSE, & arch_info_struct[7]), 138 N (bfd_mach_arm_5, "armv5", FALSE, & arch_info_struct[7]),
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 else if (name[1] == 'm' || name[1] == 'f' || name[1] == 'p') 425 else if (name[1] == 'm' || name[1] == 'f' || name[1] == 'p')
425 type &= BFD_ARM_SPECIAL_SYM_TYPE_TAG; 426 type &= BFD_ARM_SPECIAL_SYM_TYPE_TAG;
426 else if (name[1] >= 'a' && name[1] <= 'z') 427 else if (name[1] >= 'a' && name[1] <= 'z')
427 type &= BFD_ARM_SPECIAL_SYM_TYPE_OTHER; 428 type &= BFD_ARM_SPECIAL_SYM_TYPE_OTHER;
428 else 429 else
429 return FALSE; 430 return FALSE;
430 431
431 return (type != 0 && (name[2] == 0 || name[2] == '.')); 432 return (type != 0 && (name[2] == 0 || name[2] == '.'));
432 } 433 }
433 434
OLDNEW
« no previous file with comments | « bfd/cpu-arc.c ('k') | bfd/cpu-avr.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698