Changeset f199d42 in rtems-tools
- Timestamp:
- 05/18/22 08:13:30 (7 weeks ago)
- Branches:
- master
- Children:
- 43843b8
- Parents:
- ff68bcc
- git-author:
- Chris Johns <chrisj@…> (05/18/22 08:13:30)
- git-committer:
- Chris Johns <chrisj@…> (05/18/22 08:17:33)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
linkers/rtems-exeinfo.cpp
rff68bcc rf199d42 145 145 * Load the executable file. 146 146 */ 147 image (const std::string exe_name );147 image (const std::string exe_name, bool load_functions); 148 148 149 149 /** … … 284 284 } 285 285 286 image::image (const std::string exe_name )286 image::image (const std::string exe_name, bool load_functions) 287 287 : exe (exe_name), 288 288 init (0), … … 322 322 debug.load_types (); 323 323 debug.load_variables (); 324 debug.load_functions (); 324 if (load_functions) 325 { 326 std::cout << "May take a while ..." << std::endl; 327 debug.load_functions (); 328 } 325 329 symbols.globals (addresses); 326 330 symbols.weaks (addresses); … … 611 615 symbols::symbol* sym; 612 616 sec.data >> address; 613 sym = addresses[address]; 614 std::cout << " " 615 << std::hex << std::setfill ('0') 616 << "0x" << std::setw (8) << address 617 << std::dec << std::setfill ('0'); 618 if (sym) 617 if (address != 0) 619 618 { 620 std::string label = sym->name (); 621 if (rld::symbols::is_cplusplus (label)) 622 rld::symbols::demangle_name (label, label); 623 std::cout << " " << label; 619 sym = addresses[address]; 620 std::cout << " " 621 << std::hex << std::setfill ('0') 622 << "0x" << std::setw (8) << address 623 << std::dec << std::setfill ('0'); 624 if (sym) 625 { 626 std::string label = sym->name (); 627 if (rld::symbols::is_cplusplus (label)) 628 rld::symbols::demangle_name (label, label); 629 std::cout << " " << label; 630 } 631 else 632 { 633 std::cout << " no symbol (maybe static to a module)"; 634 } 635 std::cout << std::endl; 624 636 } 625 else626 {627 std::cout << " no symbol";628 }629 std::cout << std::endl;630 637 } 631 638 } … … 1115 1122 * Open the executable and read the symbols. 1116 1123 */ 1117 rld::exeinfo::image exe (exe_name );1124 rld::exeinfo::image exe (exe_name, inlined | dwarf_data); 1118 1125 1119 1126 std::cout << "exe: " << exe.exe.name ().full () << std::endl -
rtemstoolkit/rld-dwarf.cpp
rff68bcc rf199d42 1813 1813 1814 1814 if (die.get_child (next)) 1815 load_ functions (next);1815 load_variables (next); 1816 1816 1817 1817 if (!die.get_sibling (next))
Note: See TracChangeset
for help on using the changeset viewer.