LEFT | RIGHT |
1 // -*- mode: c++ -*- | 1 // -*- mode: c++ -*- |
2 | 2 |
3 // Copyright (c) 2010, Google Inc. | 3 // Copyright (c) 2010, Google Inc. |
4 // All rights reserved. | 4 // All rights reserved. |
5 // | 5 // |
6 // Redistribution and use in source and binary forms, with or without | 6 // Redistribution and use in source and binary forms, with or without |
7 // modification, are permitted provided that the following conditions are | 7 // modification, are permitted provided that the following conditions are |
8 // met: | 8 // met: |
9 // | 9 // |
10 // * Redistributions of source code must retain the above copyright | 10 // * Redistributions of source code must retain the above copyright |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 "$f21", "$f22", "$f23", "$f24", "$f25", "$f26", "$f27", | 137 "$f21", "$f22", "$f23", "$f24", "$f25", "$f26", "$f27", |
138 "$f28", "$f29", "$f30", "$f31", "$fcsr", "$fir" | 138 "$f28", "$f29", "$f30", "$f31", "$fcsr", "$fir" |
139 }; | 139 }; |
140 | 140 |
141 return MakeVector(kRegisterNames, | 141 return MakeVector(kRegisterNames, |
142 sizeof(kRegisterNames) / sizeof(kRegisterNames[0])); | 142 sizeof(kRegisterNames) / sizeof(kRegisterNames[0])); |
143 } | 143 } |
144 | 144 |
145 vector<string> DwarfCFIToModule::RegisterNames::SH4() { | 145 vector<string> DwarfCFIToModule::RegisterNames::SH4() { |
146 static const char *const names[] = { | 146 static const char *const names[] = { |
147 "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", | 147 "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", |
148 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", | 148 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", |
149 "pc", "pr", "gbr", "vbr", "mach", "macl", "sr", "fpul", | 149 "pc", "pr", "gbr", "vbr", "mach", "macl", "sr", "fpul", |
150 "fpscr", "fr0", "xfr0", "fr1", "xfr1", "fr2", "xfr2", "fr3", "xfr3", | 150 "fpscr", "fr0", "fr1", "fr2", "fr3", "fr4", "fr5", "fr6", |
151 "fr4", "xfr4", "fr5", "xfr5", "fr6", "xfr6", "fr7", "xfr7", "fr8", "xfr8", | 151 "fr7", "fr8", "fr9", "fr10", "fr11", "fr12", "fr13", "fr14", |
152 "fr9", "xfr9", "fr10", "xfr10", "fr11", "xfr11", "fr12", "xfr12", | 152 "fr15", "ssr", "spc", "", "", "", "", "", |
153 "fr13", "xfr13", "fr14", "xfr14", "fr15", "xfr15", "ssr", "spc", "" | 153 "", "", "", "", "", "", "", "", |
| 154 "", "", "", "dbr", "sgr", "xf0", "xf1", "xf2", |
| 155 "xf3", "xf4", "xf5", "xf6", "xf7", "xf8", "xf9", "xf10", |
| 156 "xf11", "xf12", "xf13", "xf14", "xf15", "", "", "", |
| 157 "", "", "", "", "", "", "", "xd0", |
| 158 "xd1", "xd2", "xd3", "xd4", "xd5", "xd6", "xd7" |
154 }; | 159 }; |
155 | 160 |
156 return MakeVector(names, sizeof(names) / sizeof(names[0])); | 161 return MakeVector(names, sizeof(names) / sizeof(names[0])); |
157 } | 162 } |
158 | 163 |
159 bool DwarfCFIToModule::Entry(size_t offset, uint64 address, uint64 length, | 164 bool DwarfCFIToModule::Entry(size_t offset, uint64 address, uint64 length, |
160 uint8 version, const string &augmentation, | 165 uint8 version, const string &augmentation, |
161 unsigned return_address) { | 166 unsigned return_address) { |
162 assert(!entry_); | 167 assert(!entry_); |
163 | 168 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 const string ®) { | 305 const string ®) { |
301 fprintf(stderr, "%s, section '%s': " | 306 fprintf(stderr, "%s, section '%s': " |
302 "the call frame entry at offset 0x%zx uses a DWARF expression to" | 307 "the call frame entry at offset 0x%zx uses a DWARF expression to" |
303 " describe how to recover register '%s', " | 308 " describe how to recover register '%s', " |
304 " but this translator cannot yet translate DWARF expressions to" | 309 " but this translator cannot yet translate DWARF expressions to" |
305 " Breakpad postfix expressions\n", | 310 " Breakpad postfix expressions\n", |
306 file_.c_str(), section_.c_str(), offset, reg.c_str()); | 311 file_.c_str(), section_.c_str(), offset, reg.c_str()); |
307 } | 312 } |
308 | 313 |
309 } // namespace google_breakpad | 314 } // namespace google_breakpad |
LEFT | RIGHT |