blob: ce0cfd744f0b5f210d7668bdb1c8ab64cd18f117 [file] [log] [blame]
Chris Lattner30fdc8d2010-06-08 16:52:24 +00001//===-- SymbolFileDWARFDebugMap.h ------------------------------*- 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
Greg Claytona76dd622011-09-12 04:20:38 +000010#ifndef SymbolFileDWARF_SymbolFileDWARFDebugMap_h_
11#define SymbolFileDWARF_SymbolFileDWARFDebugMap_h_
Chris Lattner30fdc8d2010-06-08 16:52:24 +000012
13
14#include <vector>
15#include <bitset>
Greg Claytoncaab74e2012-01-28 00:48:57 +000016
17#include "clang/AST/CharUnits.h"
18
Greg Clayton9422dd62013-03-04 21:46:16 +000019#include "lldb/Core/RangeMap.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000020#include "lldb/Symbol/SymbolFile.h"
21
Greg Claytone576ab22011-02-15 00:19:15 +000022#include "UniqueDWARFASTType.h"
23
Chris Lattner30fdc8d2010-06-08 16:52:24 +000024class SymbolFileDWARF;
Greg Clayton2ccf8cf2010-11-07 21:02:03 +000025class DWARFCompileUnit;
Enrico Granatac76e60b2013-06-27 01:43:09 +000026class DWARFDebugAranges;
Greg Clayton2ccf8cf2010-11-07 21:02:03 +000027class DWARFDebugInfoEntry;
Greg Claytona8022fa2012-04-24 21:22:41 +000028class DWARFDeclContext;
Greg Clayton1f746072012-08-29 21:13:06 +000029class DebugMapModule;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000030
31class SymbolFileDWARFDebugMap : public lldb_private::SymbolFile
32{
33public:
Greg Clayton1f746072012-08-29 21:13:06 +000034
Chris Lattner30fdc8d2010-06-08 16:52:24 +000035 //------------------------------------------------------------------
36 // Static Functions
37 //------------------------------------------------------------------
38 static void
39 Initialize();
40
41 static void
42 Terminate();
43
Greg Clayton57abc5d2013-05-10 21:47:16 +000044 static lldb_private::ConstString
Chris Lattner30fdc8d2010-06-08 16:52:24 +000045 GetPluginNameStatic();
46
47 static const char *
48 GetPluginDescriptionStatic();
49
50 static lldb_private::SymbolFile *
51 CreateInstance (lldb_private::ObjectFile* obj_file);
52
53 //------------------------------------------------------------------
54 // Constructors and Destructors
55 //------------------------------------------------------------------
Greg Clayton654e0ca2015-05-25 02:58:29 +000056 SymbolFileDWARFDebugMap (lldb_private::ObjectFile* ofile);
57 ~SymbolFileDWARFDebugMap () override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000058
Greg Clayton654e0ca2015-05-25 02:58:29 +000059 uint32_t CalculateAbilities () override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000060
Greg Clayton654e0ca2015-05-25 02:58:29 +000061 void InitializeObject() override;
Greg Clayton6beaaa62011-01-17 03:46:26 +000062
Chris Lattner30fdc8d2010-06-08 16:52:24 +000063 //------------------------------------------------------------------
64 // Compile Unit function calls
65 //------------------------------------------------------------------
Greg Clayton654e0ca2015-05-25 02:58:29 +000066 uint32_t GetNumCompileUnits () override;
67 lldb::CompUnitSP ParseCompileUnitAtIndex (uint32_t index) override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000068
Greg Clayton654e0ca2015-05-25 02:58:29 +000069 lldb::LanguageType ParseCompileUnitLanguage (const lldb_private::SymbolContext& sc) override;
70 size_t ParseCompileUnitFunctions (const lldb_private::SymbolContext& sc) override;
71 bool ParseCompileUnitLineTable (const lldb_private::SymbolContext& sc) override;
72 bool ParseCompileUnitSupportFiles (const lldb_private::SymbolContext& sc, lldb_private::FileSpecList &support_files) override;
73 bool ParseImportedModules (const lldb_private::SymbolContext &sc, std::vector<lldb_private::ConstString> &imported_modules) override;
74 size_t ParseFunctionBlocks (const lldb_private::SymbolContext& sc) override;
75 size_t ParseTypes (const lldb_private::SymbolContext& sc) override;
76 size_t ParseVariablesForContext (const lldb_private::SymbolContext& sc) override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000077
Greg Clayton654e0ca2015-05-25 02:58:29 +000078 lldb_private::Type* ResolveTypeUID (lldb::user_id_t type_uid) override;
79 clang::DeclContext* GetClangDeclContextContainingTypeUID (lldb::user_id_t type_uid) override;
80 clang::DeclContext* GetClangDeclContextForTypeUID (const lldb_private::SymbolContext &sc, lldb::user_id_t type_uid) override;
81 bool ResolveClangOpaqueTypeDefinition (lldb_private::ClangASTType& clang_type) override;
82 uint32_t ResolveSymbolContext (const lldb_private::Address& so_addr, uint32_t resolve_scope, lldb_private::SymbolContext& sc) override;
83 uint32_t ResolveSymbolContext (const lldb_private::FileSpec& file_spec, uint32_t line, bool check_inlines, uint32_t resolve_scope, lldb_private::SymbolContextList& sc_list) override;
84 uint32_t FindGlobalVariables (const lldb_private::ConstString &name, const lldb_private::ClangNamespaceDecl *namespace_decl, bool append, uint32_t max_matches, lldb_private::VariableList& variables) override;
85 uint32_t FindGlobalVariables (const lldb_private::RegularExpression& regex, bool append, uint32_t max_matches, lldb_private::VariableList& variables) override;
86 uint32_t FindFunctions (const lldb_private::ConstString &name, const lldb_private::ClangNamespaceDecl *namespace_decl, uint32_t name_type_mask, bool include_inlines, bool append, lldb_private::SymbolContextList& sc_list) override;
87 uint32_t FindFunctions (const lldb_private::RegularExpression& regex, bool include_inlines, bool append, lldb_private::SymbolContextList& sc_list) override;
88 uint32_t FindTypes (const lldb_private::SymbolContext& sc, const lldb_private::ConstString &name, const lldb_private::ClangNamespaceDecl *namespace_decl, bool append, uint32_t max_matches, lldb_private::TypeList& types) override;
89 lldb_private::ClangNamespaceDecl
90 FindNamespace (const lldb_private::SymbolContext& sc,
91 const lldb_private::ConstString &name,
92 const lldb_private::ClangNamespaceDecl *parent_namespace_decl) override;
93 size_t GetTypes (lldb_private::SymbolContextScope *sc_scope,
94 uint32_t type_mask,
95 lldb_private::TypeList &type_list) override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000096
Greg Clayton6beaaa62011-01-17 03:46:26 +000097
98 //------------------------------------------------------------------
99 // ClangASTContext callbacks for external source lookups.
100 //------------------------------------------------------------------
101 static void
102 CompleteTagDecl (void *baton, clang::TagDecl *);
103
104 static void
105 CompleteObjCInterfaceDecl (void *baton, clang::ObjCInterfaceDecl *);
Greg Claytoncaab74e2012-01-28 00:48:57 +0000106
Zachary Turnera98fac22015-03-24 18:56:08 +0000107 static bool LayoutRecordType(void *baton, const clang::RecordDecl *record_decl, uint64_t &size, uint64_t &alignment,
108 llvm::DenseMap<const clang::FieldDecl *, uint64_t> &field_offsets,
109 llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits> &base_offsets,
110 llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits> &vbase_offsets);
Greg Clayton6beaaa62011-01-17 03:46:26 +0000111
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000112 //------------------------------------------------------------------
113 // PluginInterface protocol
114 //------------------------------------------------------------------
Greg Clayton654e0ca2015-05-25 02:58:29 +0000115 lldb_private::ConstString
116 GetPluginName() override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000117
Greg Clayton654e0ca2015-05-25 02:58:29 +0000118 uint32_t
119 GetPluginVersion() override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000120
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000121protected:
122 enum
123 {
124 kHaveInitializedOSOs = (1 << 0),
125 kNumFlags
126 };
127
Enrico Granatac76e60b2013-06-27 01:43:09 +0000128 friend class DWARFCompileUnit;
Greg Clayton450e3f32010-10-12 02:24:53 +0000129 friend class SymbolFileDWARF;
Greg Clayton1f746072012-08-29 21:13:06 +0000130 friend class DebugMapModule;
Greg Clayton906ba472013-02-06 00:38:25 +0000131 struct OSOInfo
132 {
133 lldb::ModuleSP module_sp;
Greg Clayton906ba472013-02-06 00:38:25 +0000134
135 OSOInfo() :
Greg Clayton57abc5d2013-05-10 21:47:16 +0000136 module_sp ()
Greg Clayton906ba472013-02-06 00:38:25 +0000137 {
138 }
139 };
140
Greg Clayton7b0992d2013-04-18 22:45:39 +0000141 typedef std::shared_ptr<OSOInfo> OSOInfoSP;
Greg Clayton906ba472013-02-06 00:38:25 +0000142
Greg Clayton9422dd62013-03-04 21:46:16 +0000143 typedef lldb_private::RangeDataVector<lldb::addr_t, lldb::addr_t, lldb::addr_t> FileRangeMap;
144
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000145 //------------------------------------------------------------------
146 // Class specific types
147 //------------------------------------------------------------------
148 struct CompileUnitInfo
149 {
150 lldb_private::FileSpec so_file;
Greg Clayton906ba472013-02-06 00:38:25 +0000151 lldb_private::ConstString oso_path;
Greg Clayton57abc5d2013-05-10 21:47:16 +0000152 lldb_private::TimeValue oso_mod_time;
Greg Clayton906ba472013-02-06 00:38:25 +0000153 OSOInfoSP oso_sp;
154 lldb::CompUnitSP compile_unit_sp;
Greg Claytonbcf2cfb2010-09-11 03:13:28 +0000155 uint32_t first_symbol_index;
156 uint32_t last_symbol_index;
Greg Clayton1f746072012-08-29 21:13:06 +0000157 uint32_t first_symbol_id;
158 uint32_t last_symbol_id;
Greg Clayton9422dd62013-03-04 21:46:16 +0000159 FileRangeMap file_range_map;
160 bool file_range_map_valid;
161
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000162
163 CompileUnitInfo() :
Greg Claytonbcf2cfb2010-09-11 03:13:28 +0000164 so_file (),
Greg Clayton906ba472013-02-06 00:38:25 +0000165 oso_path (),
Greg Clayton57abc5d2013-05-10 21:47:16 +0000166 oso_mod_time (),
Greg Clayton906ba472013-02-06 00:38:25 +0000167 oso_sp (),
168 compile_unit_sp (),
Greg Claytonbcf2cfb2010-09-11 03:13:28 +0000169 first_symbol_index (UINT32_MAX),
170 last_symbol_index (UINT32_MAX),
Greg Clayton1f746072012-08-29 21:13:06 +0000171 first_symbol_id (UINT32_MAX),
Greg Clayton9422dd62013-03-04 21:46:16 +0000172 last_symbol_id (UINT32_MAX),
173 file_range_map (),
174 file_range_map_valid (false)
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000175 {
176 }
Greg Clayton9422dd62013-03-04 21:46:16 +0000177
178 const FileRangeMap &
179 GetFileRangeMap(SymbolFileDWARFDebugMap *exe_symfile);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000180 };
181
182 //------------------------------------------------------------------
183 // Protected Member Functions
184 //------------------------------------------------------------------
185 void
186 InitOSO ();
187
Greg Clayton81c22f62011-10-19 18:09:39 +0000188 static uint32_t
189 GetOSOIndexFromUserID (lldb::user_id_t uid)
190 {
191 return (uint32_t)((uid >> 32ull) - 1ull);
192 }
Greg Clayton57abc5d2013-05-10 21:47:16 +0000193
194 static SymbolFileDWARF *
195 GetSymbolFileAsSymbolFileDWARF (SymbolFile *sym_file);
196
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000197 bool
198 GetFileSpecForSO (uint32_t oso_idx, lldb_private::FileSpec &file_spec);
199
200 CompileUnitInfo *
201 GetCompUnitInfo (const lldb_private::SymbolContext& sc);
202
Greg Clayton906ba472013-02-06 00:38:25 +0000203 size_t
204 GetCompUnitInfosForModule (const lldb_private::Module *oso_module,
205 std::vector<CompileUnitInfo *>& cu_infos);
Greg Clayton1f746072012-08-29 21:13:06 +0000206
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000207 lldb_private::Module *
208 GetModuleByCompUnitInfo (CompileUnitInfo *comp_unit_info);
209
210 lldb_private::Module *
211 GetModuleByOSOIndex (uint32_t oso_idx);
212
213 lldb_private::ObjectFile *
214 GetObjectFileByCompUnitInfo (CompileUnitInfo *comp_unit_info);
215
216 lldb_private::ObjectFile *
217 GetObjectFileByOSOIndex (uint32_t oso_idx);
218
Greg Clayton81c22f62011-10-19 18:09:39 +0000219 uint32_t
220 GetCompUnitInfoIndex (const CompileUnitInfo *comp_unit_info);
221
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000222 SymbolFileDWARF *
223 GetSymbolFile (const lldb_private::SymbolContext& sc);
224
225 SymbolFileDWARF *
226 GetSymbolFileByCompUnitInfo (CompileUnitInfo *comp_unit_info);
227
228 SymbolFileDWARF *
229 GetSymbolFileByOSOIndex (uint32_t oso_idx);
Sean Callanan0dc848c2015-04-01 20:43:23 +0000230
231 // If closure returns "false", iteration continues. If it returns
232 // "true", iteration terminates.
233 void
234 ForEachSymbolFile (std::function<bool (SymbolFileDWARF *)> closure)
235 {
236 for (uint32_t oso_idx = 0, num_oso_idxs = m_compile_unit_infos.size();
237 oso_idx < num_oso_idxs;
238 ++oso_idx)
239 {
240 if (SymbolFileDWARF *oso_dwarf = GetSymbolFileByOSOIndex (oso_idx))
241 {
242 if (closure(oso_dwarf))
243 return;
244 }
245 }
246 }
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000247
Greg Claytonbcf2cfb2010-09-11 03:13:28 +0000248 CompileUnitInfo *
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000249 GetCompileUnitInfoForSymbolWithIndex (uint32_t symbol_idx, uint32_t *oso_idx_ptr);
Greg Claytonbcf2cfb2010-09-11 03:13:28 +0000250
251 CompileUnitInfo *
252 GetCompileUnitInfoForSymbolWithID (lldb::user_id_t symbol_id, uint32_t *oso_idx_ptr);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000253
254 static int
Greg Claytonbcf2cfb2010-09-11 03:13:28 +0000255 SymbolContainsSymbolWithIndex (uint32_t *symbol_idx_ptr, const CompileUnitInfo *comp_unit_info);
256
257 static int
258 SymbolContainsSymbolWithID (lldb::user_id_t *symbol_idx_ptr, const CompileUnitInfo *comp_unit_info);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000259
260 uint32_t
261 PrivateFindGlobalVariables (const lldb_private::ConstString &name,
Sean Callanan213fdb82011-10-13 01:49:10 +0000262 const lldb_private::ClangNamespaceDecl *namespace_decl,
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000263 const std::vector<uint32_t> &name_symbol_indexes,
264 uint32_t max_matches,
265 lldb_private::VariableList& variables);
266
Greg Clayton450e3f32010-10-12 02:24:53 +0000267
268 void
269 SetCompileUnit (SymbolFileDWARF *oso_dwarf, const lldb::CompUnitSP &cu_sp);
270
Greg Clayton1f746072012-08-29 21:13:06 +0000271 lldb::CompUnitSP
272 GetCompileUnit (SymbolFileDWARF *oso_dwarf);
Greg Clayton9422dd62013-03-04 21:46:16 +0000273
274 CompileUnitInfo *
275 GetCompileUnitInfo (SymbolFileDWARF *oso_dwarf);
Greg Clayton1f746072012-08-29 21:13:06 +0000276
Greg Clayton2ccf8cf2010-11-07 21:02:03 +0000277 lldb::TypeSP
Greg Claytona8022fa2012-04-24 21:22:41 +0000278 FindDefinitionTypeForDWARFDeclContext (const DWARFDeclContext &die_decl_ctx);
Greg Clayton2ccf8cf2010-11-07 21:02:03 +0000279
Greg Claytonc7f03b62012-01-12 04:33:28 +0000280 bool
281 Supports_DW_AT_APPLE_objc_complete_type (SymbolFileDWARF *skip_dwarf_oso);
282
Greg Clayton901c5ca2011-12-03 04:40:03 +0000283 lldb::TypeSP
Greg Claytonc7f03b62012-01-12 04:33:28 +0000284 FindCompleteObjCDefinitionTypeForDIE (const DWARFDebugInfoEntry *die,
285 const lldb_private::ConstString &type_name,
286 bool must_be_implementation);
Greg Clayton901c5ca2011-12-03 04:40:03 +0000287
288
Greg Claytone576ab22011-02-15 00:19:15 +0000289 UniqueDWARFASTTypeMap &
290 GetUniqueDWARFASTTypeMap ()
291 {
292 return m_unique_ast_type_map;
293 }
Greg Clayton9422dd62013-03-04 21:46:16 +0000294
295
296 //------------------------------------------------------------------
297 // OSOEntry
298 //------------------------------------------------------------------
299 class OSOEntry
300 {
301 public:
302
303 OSOEntry () :
304 m_exe_sym_idx (UINT32_MAX),
305 m_oso_file_addr (LLDB_INVALID_ADDRESS)
306 {
307 }
308
309 OSOEntry (uint32_t exe_sym_idx,
310 lldb::addr_t oso_file_addr) :
311 m_exe_sym_idx (exe_sym_idx),
312 m_oso_file_addr (oso_file_addr)
313 {
314 }
315
316 uint32_t
317 GetExeSymbolIndex () const
318 {
319 return m_exe_sym_idx;
320 }
321
322 bool
323 operator < (const OSOEntry &rhs) const
324 {
325 return m_exe_sym_idx < rhs.m_exe_sym_idx;
326 }
327
328 lldb::addr_t
329 GetOSOFileAddress () const
330 {
331 return m_oso_file_addr;
332 }
333
334 void
335 SetOSOFileAddress (lldb::addr_t oso_file_addr)
336 {
337 m_oso_file_addr = oso_file_addr;
338 }
339 protected:
340 uint32_t m_exe_sym_idx;
341 lldb::addr_t m_oso_file_addr;
342 };
343
344 typedef lldb_private::RangeDataVector<lldb::addr_t, lldb::addr_t, OSOEntry> DebugMap;
345
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000346 //------------------------------------------------------------------
347 // Member Variables
348 //------------------------------------------------------------------
349 std::bitset<kNumFlags> m_flags;
350 std::vector<CompileUnitInfo> m_compile_unit_infos;
351 std::vector<uint32_t> m_func_indexes; // Sorted by address
352 std::vector<uint32_t> m_glob_indexes;
Greg Clayton906ba472013-02-06 00:38:25 +0000353 std::map<lldb_private::ConstString, OSOInfoSP> m_oso_map;
Greg Claytone576ab22011-02-15 00:19:15 +0000354 UniqueDWARFASTTypeMap m_unique_ast_type_map;
Greg Claytonc7f03b62012-01-12 04:33:28 +0000355 lldb_private::LazyBool m_supports_DW_AT_APPLE_objc_complete_type;
Greg Clayton9422dd62013-03-04 21:46:16 +0000356 DebugMap m_debug_map;
357
358 //------------------------------------------------------------------
359 // When an object file from the debug map gets parsed in
360 // SymbolFileDWARF, it needs to tell the debug map about the object
361 // files addresses by calling this function once for each N_FUN,
362 // N_GSYM and N_STSYM and after all entries in the debug map have
363 // been matched up, FinalizeOSOFileRanges() should be called.
364 //------------------------------------------------------------------
365 bool
366 AddOSOFileRange (CompileUnitInfo *cu_info,
367 lldb::addr_t exe_file_addr,
368 lldb::addr_t oso_file_addr,
369 lldb::addr_t oso_byte_size);
370
371 //------------------------------------------------------------------
372 // Called after calling AddOSOFileRange() for each object file debug
373 // map entry to finalize the info for the unlinked compile unit.
374 //------------------------------------------------------------------
375 void
376 FinalizeOSOFileRanges (CompileUnitInfo *cu_info);
377
378 //------------------------------------------------------------------
379 /// Convert \a addr from a .o file address, to an executable address.
380 ///
381 /// @param[in] addr
382 /// A section offset address from a .o file
383 ///
384 /// @return
385 /// Returns true if \a addr was converted to be an executable
386 /// section/offset address, false otherwise.
387 //------------------------------------------------------------------
388 bool
389 LinkOSOAddress (lldb_private::Address &addr);
390
391 //------------------------------------------------------------------
392 /// Convert a .o file "file address" to an executable "file address".
393 ///
394 /// @param[in] oso_symfile
395 /// The DWARF symbol file that contains \a oso_file_addr
396 ///
397 /// @param[in] oso_file_addr
398 /// A .o file "file address" to convert.
399 ///
400 /// @return
401 /// LLDB_INVALID_ADDRESS if \a oso_file_addr is not in the
402 /// linked executable, otherwise a valid "file address" from the
403 /// linked executable that contains the debug map.
404 //------------------------------------------------------------------
405 lldb::addr_t
406 LinkOSOFileAddress (SymbolFileDWARF *oso_symfile, lldb::addr_t oso_file_addr);
407
408 //------------------------------------------------------------------
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000409 /// Given a line table full of lines with "file addresses" that are
Greg Clayton9422dd62013-03-04 21:46:16 +0000410 /// for a .o file represented by \a oso_symfile, link a new line table
411 /// and return it.
412 ///
413 /// @param[in] oso_symfile
414 /// The DWARF symbol file that produced the \a line_table
415 ///
416 /// @param[in] addr
417 /// A section offset address from a .o file
418 ///
419 /// @return
420 /// Returns a valid line table full of linked addresses, or NULL
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000421 /// if none of the line table addresses exist in the main
Greg Clayton9422dd62013-03-04 21:46:16 +0000422 /// executable.
423 //------------------------------------------------------------------
424 lldb_private::LineTable *
425 LinkOSOLineTable (SymbolFileDWARF *oso_symfile,
426 lldb_private::LineTable *line_table);
Enrico Granatac76e60b2013-06-27 01:43:09 +0000427
428 size_t
429 AddOSOARanges (SymbolFileDWARF* dwarf2Data,
430 DWARFDebugAranges* debug_aranges);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000431};
432
Greg Claytona76dd622011-09-12 04:20:38 +0000433#endif // #ifndef SymbolFileDWARF_SymbolFileDWARFDebugMap_h_