Lines Matching refs:commands_view

195                 void *data, struct macho_commands_view *commands_view,  in macho_get_view()  argument
199 commands_view->base_offset + offset, size, in macho_get_view()
206 void *data, struct macho_commands_view *commands_view, in macho_get_commands() argument
229 commands_view->bytes_swapped = 0; in macho_get_commands()
238 commands_view->bytes_swapped = 1; in macho_get_commands()
247 commands_view->bytes_swapped = 0; in macho_get_commands()
256 commands_view->bytes_swapped = 1; in macho_get_commands()
265 commands_view->bytes_swapped = 0; in macho_get_commands()
269 commands_view->bytes_swapped = 1; in macho_get_commands()
286 macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_get_commands()
303 (int) macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_get_commands()
309 macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_get_commands()
335 commands_view->bytes_swapped = 0; in macho_get_commands()
341 commands_view->bytes_swapped = 1; in macho_get_commands()
347 commands_view->bytes_swapped = 0; in macho_get_commands()
353 commands_view->bytes_swapped = 1; in macho_get_commands()
361 commands_view->base_offset = native_slice_offset; in macho_get_commands()
364 commands_view->base_offset = 0; in macho_get_commands()
367 commands_view->commands_count = in macho_get_commands()
368 macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_get_commands()
370 commands_view->commands_total_size = in macho_get_commands()
371 macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_get_commands()
374 commands_view->base_offset + sizeof (mach_header_native_t); in macho_get_commands()
377 commands_view->commands_total_size, error_callback, in macho_get_commands()
378 data, &commands_view->view)) in macho_get_commands()
395 void *data, struct macho_commands_view *commands_view, in macho_get_uuid() argument
401 for (i = 0; i < commands_view->commands_count; i++) in macho_get_uuid()
407 > commands_view->commands_total_size) in macho_get_uuid()
416 commands_view->view.data + offset; in macho_get_uuid()
417 command.cmd = macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_get_uuid()
419 command.cmdsize = macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_get_uuid()
427 > commands_view->commands_total_size) in macho_get_uuid()
456 void *data, struct macho_commands_view *commands_view, in macho_get_addr_range() argument
465 for (i = 0; i < commands_view->commands_count; i++) in macho_get_addr_range()
471 > commands_view->commands_total_size) in macho_get_addr_range()
479 raw_command = commands_view->view.data + offset; in macho_get_addr_range()
480 command.cmd = macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_get_addr_range()
482 command.cmdsize = macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_get_addr_range()
494 > commands_view->commands_total_size) in macho_get_addr_range()
505 commands_view->bytes_swapped, raw_segment->vmaddr); in macho_get_addr_range()
507 commands_view->bytes_swapped, raw_segment->vmsize); in macho_get_addr_range()
514 commands_view->bytes_swapped, raw_segment->fileoff); in macho_get_addr_range()
563 struct macho_commands_view *commands_view, in macho_add_symtab() argument
583 for (i = 0; i < commands_view->commands_count; i++) in macho_add_symtab()
589 > commands_view->commands_total_size) in macho_add_symtab()
597 raw_command = commands_view->view.data + offset; in macho_add_symtab()
598 command.cmd = macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_add_symtab()
600 command.cmdsize = macho_file_to_host_u32 (commands_view->bytes_swapped, in macho_add_symtab()
612 > commands_view->commands_total_size) in macho_add_symtab()
623 commands_view->bytes_swapped, symtab_command->symoff); in macho_add_symtab()
625 commands_view->bytes_swapped, symtab_command->nsyms); in macho_add_symtab()
627 commands_view->bytes_swapped, symtab_command->stroff); in macho_add_symtab()
629 commands_view->bytes_swapped, symtab_command->strsize); in macho_add_symtab()
634 error_callback, data, commands_view, in macho_add_symtab()
641 commands_view, &strtab_view)) in macho_add_symtab()
692 macho_file_to_host_usize (commands_view->bytes_swapped, in macho_add_symtab()
696 commands_view->bytes_swapped, in macho_add_symtab()
825 struct macho_commands_view commands_view; in macho_try_dwarf() local
848 &commands_view, &incompatible)) in macho_try_dwarf()
862 &commands_view, &dwarf_uuid)) in macho_try_dwarf()
878 &commands_view, base_address, max_image_address, in macho_try_dwarf()
886 for (i = 0; i < commands_view.commands_count; i++) in macho_try_dwarf()
892 > commands_view.commands_total_size) in macho_try_dwarf()
899 raw_command = commands_view.view.data + offset; in macho_try_dwarf()
900 command.cmd = macho_file_to_host_u32 (commands_view.bytes_swapped, in macho_try_dwarf()
902 command.cmdsize = macho_file_to_host_u32 (commands_view.bytes_swapped, in macho_try_dwarf()
912 > commands_view.commands_total_size) in macho_try_dwarf()
926 commands_view.bytes_swapped, in macho_try_dwarf()
937 commands_view.commands_total_size) in macho_try_dwarf()
945 raw_section = commands_view.view.data + section_offset; in macho_try_dwarf()
959 commands_view.bytes_swapped, in macho_try_dwarf()
963 commands_view.bytes_swapped, in macho_try_dwarf()
1000 data, &commands_view, &dwarf_view)) in macho_try_dwarf()
1025 ^ commands_view.bytes_swapped), in macho_try_dwarf()
1038 backtrace_release_view (state, &commands_view.view, error_callback, data); in macho_try_dwarf()
1125 struct macho_commands_view commands_view; in macho_add() local
1143 &commands_view, &incompatible)) in macho_add()
1149 if (!macho_get_uuid (state, descriptor, error_callback, data, &commands_view, in macho_add()
1156 &commands_view, in macho_add()
1240 backtrace_release_view (state, &commands_view.view, error_callback, in macho_add()