Lines Matching refs:std
34 void get_translation_ranges( std::ifstream& proc_maps,
35 const std::string& file_name,
36 std::vector<address_translation>& result )
40 const std::regex rexpr(
43 std::smatch match;
45 std::string line;
46 std::getline( proc_maps, line );
48 if ( std::regex_match( line, match, rexpr ) ) {
50 unsigned long start = std::stoul( match[1].str(), 0, 16 );
51 unsigned long end = std::stoul( match[2].str(), 0, 16 );
52 unsigned long actual = std::stoul( match[4].str(), 0, 16 );
63 std::cout << "Usage: proc_mem <pid> <full_file_path>" << std::endl;
68 std::ifstream proc_maps( std::string( "/proc/" ) + argv[1] + "/maps" );
70 std::cout << "Can't open "
71 << std::string( "/proc/" ) + argv[1] + "/maps"
72 << " file" << std::endl;
77 std::vector<address_translation> ranges;
85 if ( elffile.load( std::string( "/proc/" ) + argv[1] + "/mem", true ) ) {
86 dump::header( std::cout, elffile );
87 dump::segment_headers( std::cout, elffile );
88 dump::segment_datas( std::cout, elffile );
91 std::cout << "Can't open " << std::string( "/proc/" ) + argv[1] + "/mem"
92 << " file" << std::endl;