| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 1 | //===-- SymbolFileSymtab.cpp ------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "SymbolFileSymtab.h" |
| 11 | #include "lldb/Core/Module.h" |
| 12 | #include "lldb/Core/PluginManager.h" |
| 13 | #include "lldb/Core/RegularExpression.h" |
| 14 | #include "lldb/Core/Timer.h" |
| 15 | #include "lldb/Symbol/ObjectFile.h" |
| 16 | #include "lldb/Symbol/Symtab.h" |
| 17 | #include "lldb/Symbol/ObjectFile.h" |
| 18 | #include "lldb/Symbol/Symbol.h" |
| 19 | #include "lldb/Symbol/CompileUnit.h" |
| 20 | #include "lldb/Symbol/SymbolContext.h" |
| 21 | #include "lldb/Symbol/Function.h" |
| 22 | |
| 23 | using namespace lldb; |
| 24 | using namespace lldb_private; |
| 25 | |
| 26 | void |
| 27 | SymbolFileSymtab::Initialize() |
| 28 | { |
| 29 | PluginManager::RegisterPlugin (GetPluginNameStatic(), |
| 30 | GetPluginDescriptionStatic(), |
| 31 | CreateInstance); |
| 32 | } |
| 33 | |
| 34 | void |
| 35 | SymbolFileSymtab::Terminate() |
| 36 | { |
| 37 | PluginManager::UnregisterPlugin (CreateInstance); |
| 38 | } |
| 39 | |
| 40 | |
| 41 | const char * |
| 42 | SymbolFileSymtab::GetPluginNameStatic() |
| 43 | { |
| 44 | return "symbol-file.symtab"; |
| 45 | } |
| 46 | |
| 47 | const char * |
| 48 | SymbolFileSymtab::GetPluginDescriptionStatic() |
| 49 | { |
| 50 | return "Reads debug symbols from an object file's symbol table."; |
| 51 | } |
| 52 | |
| 53 | |
| 54 | SymbolFile* |
| 55 | SymbolFileSymtab::CreateInstance (ObjectFile* obj_file) |
| 56 | { |
| 57 | return new SymbolFileSymtab(obj_file); |
| 58 | } |
| 59 | |
| 60 | SymbolFileSymtab::SymbolFileSymtab(ObjectFile* obj_file) : |
| 61 | SymbolFile(obj_file), |
| 62 | m_source_indexes(), |
| 63 | m_func_indexes(), |
| 64 | m_code_indexes(), |
| 65 | m_data_indexes(), |
| Sean Callanan | 09ab4b7 | 2011-11-30 22:11:59 +0000 | [diff] [blame^] | 66 | m_addr_indexes(), |
| 67 | m_has_objc_symbols(eLazyBoolCalculate) |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 68 | { |
| 69 | } |
| 70 | |
| 71 | SymbolFileSymtab::~SymbolFileSymtab() |
| 72 | { |
| 73 | } |
| 74 | |
| Sean Callanan | 09ab4b7 | 2011-11-30 22:11:59 +0000 | [diff] [blame^] | 75 | ClangASTContext & |
| 76 | SymbolFileSymtab::GetClangASTContext () |
| 77 | { |
| 78 | ClangASTContext &ast = m_obj_file->GetModule()->GetClangASTContext(); |
| 79 | |
| 80 | return ast; |
| 81 | } |
| 82 | |
| 83 | bool |
| 84 | SymbolFileSymtab::HasObjCSymbols () |
| 85 | { |
| 86 | if (m_has_objc_symbols == eLazyBoolCalculate) |
| 87 | { |
| 88 | if (m_obj_file->GetSectionList()->FindSectionByName(ConstString("__objc_data"))) |
| 89 | m_has_objc_symbols = eLazyBoolYes; |
| 90 | else |
| 91 | m_has_objc_symbols = eLazyBoolNo; |
| 92 | } |
| 93 | |
| 94 | return m_has_objc_symbols == eLazyBoolYes; |
| 95 | } |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 96 | |
| 97 | uint32_t |
| 98 | SymbolFileSymtab::GetAbilities () |
| 99 | { |
| 100 | uint32_t abilities = 0; |
| Greg Clayton | 5861d3e | 2011-06-19 04:02:02 +0000 | [diff] [blame] | 101 | if (m_obj_file) |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 102 | { |
| Greg Clayton | 5861d3e | 2011-06-19 04:02:02 +0000 | [diff] [blame] | 103 | const Symtab *symtab = m_obj_file->GetSymtab(); |
| 104 | if (symtab) |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 105 | { |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 106 | |
| Greg Clayton | 5861d3e | 2011-06-19 04:02:02 +0000 | [diff] [blame] | 107 | //---------------------------------------------------------------------- |
| 108 | // The snippet of code below will get the indexes the module symbol |
| 109 | // table entries that are code, data, or function related (debug info), |
| 110 | // sort them by value (address) and dump the sorted symbols. |
| 111 | //---------------------------------------------------------------------- |
| 112 | symtab->AppendSymbolIndexesWithType(eSymbolTypeSourceFile, m_source_indexes); |
| 113 | if (!m_source_indexes.empty()) |
| 114 | { |
| 115 | abilities |= CompileUnits; |
| 116 | } |
| 117 | symtab->AppendSymbolIndexesWithType(eSymbolTypeCode, Symtab::eDebugYes, Symtab::eVisibilityAny, m_func_indexes); |
| 118 | if (!m_func_indexes.empty()) |
| 119 | { |
| 120 | symtab->SortSymbolIndexesByValue(m_func_indexes, true); |
| 121 | abilities |= Functions; |
| 122 | } |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 123 | |
| Greg Clayton | 5861d3e | 2011-06-19 04:02:02 +0000 | [diff] [blame] | 124 | symtab->AppendSymbolIndexesWithType(eSymbolTypeCode, Symtab::eDebugNo, Symtab::eVisibilityAny, m_code_indexes); |
| 125 | if (!m_code_indexes.empty()) |
| 126 | { |
| 127 | symtab->SortSymbolIndexesByValue(m_code_indexes, true); |
| 128 | abilities |= Labels; |
| 129 | } |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 130 | |
| Greg Clayton | 5861d3e | 2011-06-19 04:02:02 +0000 | [diff] [blame] | 131 | symtab->AppendSymbolIndexesWithType(eSymbolTypeData, m_data_indexes); |
| 132 | |
| 133 | if (!m_data_indexes.empty()) |
| 134 | { |
| 135 | symtab->SortSymbolIndexesByValue(m_data_indexes, true); |
| 136 | abilities |= GlobalVariables; |
| 137 | } |
| Sean Callanan | 09ab4b7 | 2011-11-30 22:11:59 +0000 | [diff] [blame^] | 138 | |
| 139 | if (HasObjCSymbols()) |
| 140 | { |
| 141 | abilities |= RuntimeTypes; |
| 142 | } |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 143 | } |
| 144 | } |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 145 | return abilities; |
| 146 | } |
| 147 | |
| 148 | uint32_t |
| 149 | SymbolFileSymtab::GetNumCompileUnits() |
| 150 | { |
| 151 | // If we don't have any source file symbols we will just have one compile unit for |
| 152 | // the entire object file |
| 153 | if (m_source_indexes.empty()) |
| Jim Ingham | 969795f | 2011-09-21 01:17:13 +0000 | [diff] [blame] | 154 | return 0; |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 155 | |
| 156 | // If we have any source file symbols we will logically orgnize the object symbols |
| 157 | // using these. |
| 158 | return m_source_indexes.size(); |
| 159 | } |
| 160 | |
| 161 | CompUnitSP |
| 162 | SymbolFileSymtab::ParseCompileUnitAtIndex(uint32_t idx) |
| 163 | { |
| 164 | CompUnitSP cu_sp; |
| 165 | |
| 166 | // If we don't have any source file symbols we will just have one compile unit for |
| 167 | // the entire object file |
| Jim Ingham | 969795f | 2011-09-21 01:17:13 +0000 | [diff] [blame] | 168 | // if (m_source_indexes.empty()) |
| 169 | // { |
| 170 | // const FileSpec &obj_file_spec = m_obj_file->GetFileSpec(); |
| 171 | // if (obj_file_spec) |
| 172 | // cu_sp.reset(new CompileUnit(m_obj_file->GetModule(), NULL, obj_file_spec, 0, eLanguageTypeUnknown)); |
| 173 | // |
| 174 | // } |
| 175 | /* else */ if (idx < m_source_indexes.size()) |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 176 | { |
| 177 | const Symbol *cu_symbol = m_obj_file->GetSymtab()->SymbolAtIndex(m_source_indexes[idx]); |
| 178 | if (cu_symbol) |
| Greg Clayton | 9e40956 | 2010-07-28 02:04:09 +0000 | [diff] [blame] | 179 | cu_sp.reset(new CompileUnit(m_obj_file->GetModule(), NULL, cu_symbol->GetMangled().GetName().AsCString(), 0, eLanguageTypeUnknown)); |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 180 | } |
| 181 | return cu_sp; |
| 182 | } |
| 183 | |
| 184 | size_t |
| 185 | SymbolFileSymtab::ParseCompileUnitFunctions (const SymbolContext &sc) |
| 186 | { |
| 187 | size_t num_added = 0; |
| 188 | // We must at least have a valid compile unit |
| 189 | assert (sc.comp_unit != NULL); |
| 190 | const Symtab *symtab = m_obj_file->GetSymtab(); |
| 191 | const Symbol *curr_symbol = NULL; |
| 192 | const Symbol *next_symbol = NULL; |
| 193 | // const char *prefix = m_obj_file->SymbolPrefix(); |
| 194 | // if (prefix == NULL) |
| 195 | // prefix == ""; |
| 196 | // |
| 197 | // const uint32_t prefix_len = strlen(prefix); |
| 198 | |
| 199 | // If we don't have any source file symbols we will just have one compile unit for |
| 200 | // the entire object file |
| 201 | if (m_source_indexes.empty()) |
| 202 | { |
| 203 | // The only time we will have a user ID of zero is when we don't have |
| 204 | // and source file symbols and we declare one compile unit for the |
| 205 | // entire object file |
| 206 | if (!m_func_indexes.empty()) |
| 207 | { |
| 208 | |
| 209 | } |
| 210 | |
| 211 | if (!m_code_indexes.empty()) |
| 212 | { |
| 213 | // StreamFile s(stdout); |
| 214 | // symtab->Dump(&s, m_code_indexes); |
| 215 | |
| 216 | uint32_t idx = 0; // Index into the indexes |
| 217 | const uint32_t num_indexes = m_code_indexes.size(); |
| 218 | for (idx = 0; idx < num_indexes; ++idx) |
| 219 | { |
| 220 | uint32_t symbol_idx = m_code_indexes[idx]; |
| 221 | curr_symbol = symtab->SymbolAtIndex(symbol_idx); |
| 222 | if (curr_symbol) |
| 223 | { |
| 224 | // Union of all ranges in the function DIE (if the function is discontiguous) |
| 225 | AddressRange func_range(curr_symbol->GetValue(), 0); |
| 226 | if (func_range.GetBaseAddress().IsSectionOffset()) |
| 227 | { |
| 228 | uint32_t symbol_size = curr_symbol->GetByteSize(); |
| 229 | if (symbol_size != 0 && !curr_symbol->GetSizeIsSibling()) |
| 230 | func_range.SetByteSize(symbol_size); |
| 231 | else if (idx + 1 < num_indexes) |
| 232 | { |
| 233 | next_symbol = symtab->SymbolAtIndex(m_code_indexes[idx + 1]); |
| 234 | if (next_symbol) |
| 235 | { |
| 236 | func_range.SetByteSize(next_symbol->GetValue().GetOffset() - curr_symbol->GetValue().GetOffset()); |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | FunctionSP func_sp(new Function(sc.comp_unit, |
| 241 | symbol_idx, // UserID is the DIE offset |
| 242 | LLDB_INVALID_UID, // We don't have any type info for this function |
| 243 | curr_symbol->GetMangled(), // Linker/mangled name |
| 244 | NULL, // no return type for a code symbol... |
| 245 | func_range)); // first address range |
| 246 | |
| 247 | if (func_sp.get() != NULL) |
| 248 | { |
| 249 | sc.comp_unit->AddFunction(func_sp); |
| 250 | ++num_added; |
| 251 | } |
| 252 | } |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | } |
| 257 | } |
| 258 | else |
| 259 | { |
| 260 | // We assume we |
| 261 | } |
| 262 | return num_added; |
| 263 | } |
| 264 | |
| 265 | bool |
| 266 | SymbolFileSymtab::ParseCompileUnitLineTable (const SymbolContext &sc) |
| 267 | { |
| 268 | return false; |
| 269 | } |
| 270 | |
| 271 | bool |
| 272 | SymbolFileSymtab::ParseCompileUnitSupportFiles (const SymbolContext& sc, FileSpecList &support_files) |
| 273 | { |
| 274 | return false; |
| 275 | } |
| 276 | |
| 277 | size_t |
| 278 | SymbolFileSymtab::ParseFunctionBlocks (const SymbolContext &sc) |
| 279 | { |
| 280 | return 0; |
| 281 | } |
| 282 | |
| 283 | |
| 284 | size_t |
| 285 | SymbolFileSymtab::ParseTypes (const SymbolContext &sc) |
| 286 | { |
| 287 | return 0; |
| 288 | } |
| 289 | |
| 290 | |
| 291 | size_t |
| 292 | SymbolFileSymtab::ParseVariablesForContext (const SymbolContext& sc) |
| 293 | { |
| 294 | return 0; |
| 295 | } |
| 296 | |
| 297 | Type* |
| 298 | SymbolFileSymtab::ResolveTypeUID(lldb::user_id_t type_uid) |
| 299 | { |
| 300 | return NULL; |
| 301 | } |
| 302 | |
| Greg Clayton | 1be10fc | 2010-09-29 01:12:09 +0000 | [diff] [blame] | 303 | lldb::clang_type_t |
| 304 | SymbolFileSymtab::ResolveClangOpaqueTypeDefinition (lldb::clang_type_t clang_Type) |
| 305 | { |
| 306 | return NULL; |
| 307 | } |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 308 | |
| Greg Clayton | 526e5af | 2010-11-13 03:52:47 +0000 | [diff] [blame] | 309 | ClangNamespaceDecl |
| Sean Callanan | 213fdb8 | 2011-10-13 01:49:10 +0000 | [diff] [blame] | 310 | SymbolFileSymtab::FindNamespace (const SymbolContext& sc, const ConstString &name, const ClangNamespaceDecl *namespace_decl) |
| Greg Clayton | 96d7d74 | 2010-11-10 23:42:09 +0000 | [diff] [blame] | 311 | { |
| Greg Clayton | 526e5af | 2010-11-13 03:52:47 +0000 | [diff] [blame] | 312 | return ClangNamespaceDecl(); |
| Greg Clayton | 96d7d74 | 2010-11-10 23:42:09 +0000 | [diff] [blame] | 313 | } |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 314 | |
| 315 | uint32_t |
| 316 | SymbolFileSymtab::ResolveSymbolContext (const Address& so_addr, uint32_t resolve_scope, SymbolContext& sc) |
| 317 | { |
| 318 | if (m_obj_file->GetSymtab() == NULL) |
| 319 | return 0; |
| 320 | |
| 321 | uint32_t resolved_flags = 0; |
| 322 | if (resolve_scope & eSymbolContextSymbol) |
| 323 | { |
| 324 | sc.symbol = m_obj_file->GetSymtab()->FindSymbolContainingFileAddress(so_addr.GetFileAddress()); |
| 325 | if (sc.symbol) |
| 326 | resolved_flags |= eSymbolContextSymbol; |
| 327 | } |
| 328 | return resolved_flags; |
| 329 | } |
| 330 | |
| 331 | uint32_t |
| 332 | SymbolFileSymtab::ResolveSymbolContext (const FileSpec& file_spec, uint32_t line, bool check_inlines, uint32_t resolve_scope, SymbolContextList& sc_list) |
| 333 | { |
| 334 | return 0; |
| 335 | } |
| 336 | |
| 337 | uint32_t |
| Sean Callanan | 213fdb8 | 2011-10-13 01:49:10 +0000 | [diff] [blame] | 338 | SymbolFileSymtab::FindGlobalVariables(const ConstString &name, const ClangNamespaceDecl *namespace_decl, bool append, uint32_t max_matches, VariableList& variables) |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 339 | { |
| 340 | return 0; |
| 341 | } |
| 342 | |
| 343 | uint32_t |
| 344 | SymbolFileSymtab::FindGlobalVariables(const RegularExpression& regex, bool append, uint32_t max_matches, VariableList& variables) |
| 345 | { |
| 346 | return 0; |
| 347 | } |
| 348 | |
| 349 | uint32_t |
| Sean Callanan | 213fdb8 | 2011-10-13 01:49:10 +0000 | [diff] [blame] | 350 | SymbolFileSymtab::FindFunctions(const ConstString &name, const ClangNamespaceDecl *namespace_decl, uint32_t name_type_mask, bool append, SymbolContextList& sc_list) |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 351 | { |
| 352 | Timer scoped_timer (__PRETTY_FUNCTION__, |
| 353 | "SymbolFileSymtab::FindFunctions (name = '%s')", |
| 354 | name.GetCString()); |
| Greg Clayton | 931180e | 2011-01-27 06:44:37 +0000 | [diff] [blame] | 355 | // If we ever support finding STABS or COFF debug info symbols, |
| 356 | // we will need to add support here. We are not trying to find symbols |
| 357 | // here, just "lldb_private::Function" objects that come from complete |
| 358 | // debug information. Any symbol queries should go through the symbol |
| 359 | // table itself in the module's object file. |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 360 | return 0; |
| 361 | } |
| 362 | |
| 363 | uint32_t |
| 364 | SymbolFileSymtab::FindFunctions(const RegularExpression& regex, bool append, SymbolContextList& sc_list) |
| 365 | { |
| 366 | Timer scoped_timer (__PRETTY_FUNCTION__, |
| 367 | "SymbolFileSymtab::FindFunctions (regex = '%s')", |
| 368 | regex.GetText()); |
| Greg Clayton | 931180e | 2011-01-27 06:44:37 +0000 | [diff] [blame] | 369 | // If we ever support finding STABS or COFF debug info symbols, |
| 370 | // we will need to add support here. We are not trying to find symbols |
| 371 | // here, just "lldb_private::Function" objects that come from complete |
| 372 | // debug information. Any symbol queries should go through the symbol |
| 373 | // table itself in the module's object file. |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 374 | return 0; |
| 375 | } |
| 376 | |
| Greg Clayton | b0b9fe6 | 2010-08-03 00:35:52 +0000 | [diff] [blame] | 377 | uint32_t |
| Sean Callanan | 213fdb8 | 2011-10-13 01:49:10 +0000 | [diff] [blame] | 378 | SymbolFileSymtab::FindTypes (const lldb_private::SymbolContext& sc, const lldb_private::ConstString &name, const ClangNamespaceDecl *namespace_decl, bool append, uint32_t max_matches, lldb_private::TypeList& types) |
| Greg Clayton | b0b9fe6 | 2010-08-03 00:35:52 +0000 | [diff] [blame] | 379 | { |
| 380 | if (!append) |
| 381 | types.Clear(); |
| Sean Callanan | 09ab4b7 | 2011-11-30 22:11:59 +0000 | [diff] [blame^] | 382 | |
| 383 | if (HasObjCSymbols()) |
| 384 | { |
| 385 | std::string symbol_name("OBJC_CLASS_$_"); |
| 386 | symbol_name.append(name.AsCString()); |
| 387 | ConstString symbol_const_string(symbol_name.c_str()); |
| 388 | |
| 389 | std::vector<uint32_t> indices; |
| 390 | |
| 391 | if (m_obj_file->GetSymtab()->FindAllSymbolsWithNameAndType(symbol_const_string, lldb::eSymbolTypeRuntime, indices) == 0) |
| 392 | return 0; |
| 393 | |
| 394 | const bool isForwardDecl = false; |
| 395 | const bool isInternal = true; |
| 396 | |
| 397 | ClangASTContext &clang_ast_ctx = GetClangASTContext(); |
| 398 | |
| 399 | lldb::clang_type_t objc_object_type = clang_ast_ctx.CreateObjCClass(name.AsCString(), clang_ast_ctx.GetTranslationUnitDecl(), isForwardDecl, isInternal); |
| 400 | |
| 401 | Declaration decl; |
| 402 | |
| 403 | lldb::TypeSP type(new Type (indices[0], |
| 404 | this, |
| 405 | name, |
| 406 | 0 /*byte_size*/, |
| 407 | NULL /*SymbolContextScope*/, |
| 408 | 0 /*encoding_uid*/, |
| 409 | Type::eEncodingInvalid, |
| 410 | decl, |
| 411 | objc_object_type, |
| 412 | Type::eResolveStateForward)); |
| 413 | |
| 414 | types.Insert(type); |
| 415 | |
| 416 | return 1; |
| 417 | } |
| Greg Clayton | b0b9fe6 | 2010-08-03 00:35:52 +0000 | [diff] [blame] | 418 | |
| 419 | return 0; |
| 420 | } |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 421 | // |
| 422 | //uint32_t |
| Greg Clayton | b0b9fe6 | 2010-08-03 00:35:52 +0000 | [diff] [blame] | 423 | //SymbolFileSymtab::FindTypes(const SymbolContext& sc, const RegularExpression& regex, bool append, uint32_t max_matches, TypeList& types) |
| Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 424 | //{ |
| 425 | // return 0; |
| 426 | //} |
| 427 | |
| 428 | |
| 429 | //------------------------------------------------------------------ |
| 430 | // PluginInterface protocol |
| 431 | //------------------------------------------------------------------ |
| 432 | const char * |
| 433 | SymbolFileSymtab::GetPluginName() |
| 434 | { |
| 435 | return "SymbolFileSymtab"; |
| 436 | } |
| 437 | |
| 438 | const char * |
| 439 | SymbolFileSymtab::GetShortPluginName() |
| 440 | { |
| 441 | return GetPluginNameStatic(); |
| 442 | } |
| 443 | |
| 444 | uint32_t |
| 445 | SymbolFileSymtab::GetPluginVersion() |
| 446 | { |
| 447 | return 1; |
| 448 | } |