OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 // This module provides an interface for performing ABI specific | 7 // This module provides an interface for performing ABI specific |
8 // functions needed by the Target and Host. ABI objects are provided | 8 // functions needed by the Target and Host. ABI objects are provided |
9 // to the rest of the system as "const" to prevent accidental modification. | 9 // to the rest of the system as "const" to prevent accidental modification. |
10 // None of the resources in the Abi object are actually owned by the Abi | 10 // None of the resources in the Abi object are actually owned by the Abi |
11 // object, they are assumed to be static and never destroyed. | 11 // object, they are assumed to be static and never destroyed. |
12 // | 12 // |
13 // This module will only throw standard errors | 13 // This module will only throw standard errors |
14 // std::bad_alloc - when out of memory | 14 // std::bad_alloc - when out of memory |
15 // std::out_of_range - when using an out of range regsiter index | 15 // std::out_of_range - when using an out of range regsiter index |
16 // | 16 // |
17 // It is required that Init be called prior to calling Find to ensure | 17 // It is required that Init be called prior to calling Find to ensure |
18 // the various built-in ABIs have been registered. | 18 // the various built-in ABIs have been registered. |
19 | 19 |
20 #ifndef NATIVE_CLIENT_GDB_RSP_ABI_H_ | 20 #ifndef SRC_TRUSTED_GDB_RSP_ABI_H_ |
noelallen_use_chromium
2010/12/07 23:04:44
While this probably what we SHOULD do, it's incons
mlinck
2010/12/10 21:10:27
Fair enough. I was just delinting. reverted.
| |
21 #define NATIVE_CLIENT_GDB_RSP_ABI_H_ 1 | 21 #define SRC_TRUSTED_GDB_RSP_ABI_H_ 1 |
22 | 22 |
23 #include <map> | 23 #include <map> |
24 #include <string> | 24 #include <string> |
25 | 25 |
26 #include "native_client/src/trusted/port/std_types.h" | 26 #include "native_client/src/trusted/port/std_types.h" |
27 | 27 |
28 namespace gdb_rsp { | 28 namespace gdb_rsp { |
29 | 29 |
30 class Abi { | 30 class Abi { |
31 public: | 31 public: |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 private: | 103 private: |
104 Abi(); | 104 Abi(); |
105 ~Abi(); | 105 ~Abi(); |
106 void operator =(const Abi&); | 106 void operator =(const Abi&); |
107 }; | 107 }; |
108 | 108 |
109 typedef std::map<std::string, Abi*> AbiMap_t; | 109 typedef std::map<std::string, Abi*> AbiMap_t; |
110 | 110 |
111 } // namespace gdb_rsp | 111 } // namespace gdb_rsp |
112 | 112 |
113 #endif // NATIVE_CLIENT_GDB_RSP_ABI_H_ | 113 #endif // SRC_TRUSTED_GDB_RSP_ABI_H_ |
114 | 114 |
OLD | NEW |