Changeset 001957b6 in mainline for kernel/generic/src/debug/line.c
- Timestamp:
- 2023-10-26T20:20:55Z (13 months ago)
- Branches:
- master, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0373af9
- Parents:
- 2fbb42f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/debug/line.c
r2fbb42f r001957b6 195 195 case DW_LNS_advance_pc: 196 196 arg = read_uleb128(&program, program_end); 197 DEBUGF("%s(%" PRIu64")\n", opname, arg);197 DEBUGF("%s(%" PRIu64 ")\n", opname, arg); 198 198 lp->op_advance += arg; 199 199 break; … … 267 267 case DW_LNE_set_discriminator: 268 268 uint64_t arg = read_uleb128(&program, program_end); 269 DEBUGF("%s:%zu(%" PRIu64")\n", opname, length, arg);269 DEBUGF("%s:%zu(%" PRIu64 ")\n", opname, length, arg); 270 270 break; 271 271 … … 369 369 370 370 print_format("directory_entry_format", 371 371 hdr->v5.directory_entry_format, hdr->v5.directory_entry_format_end); 372 372 373 373 FIELD(v5.directories_count, PRIu64, read_uleb128(&data, data_end)); … … 375 375 hdr->v5.directories = data; 376 376 skip_formatted_list(&data, data_end, hdr->v5.directories_count, 377 377 hdr->v5.directory_entry_format, hdr->v5.directory_entry_format_end, width); 378 378 hdr->v5.directories_end = data; 379 379 380 380 print_formatted_list("directories", hdr->v5.directories, hdr->v5.directories_end, 381 381 hdr->v5.directory_entry_format, hdr->v5.directory_entry_format_end, width); 382 382 383 383 FIELD(v5.file_name_entry_format_count, "u", read_byte(&data, data_end)); … … 388 388 389 389 print_format("file_name_entry_format", 390 390 hdr->v5.file_name_entry_format, hdr->v5.file_name_entry_format_end); 391 391 392 392 FIELD(v5.file_names_count, PRIu64, read_uleb128(&data, data_end)); … … 394 394 hdr->v5.file_names = data; 395 395 skip_formatted_list(&data, data_end, hdr->v5.file_names_count, 396 396 hdr->v5.file_name_entry_format, hdr->v5.file_name_entry_format_end, width); 397 397 hdr->v5.file_names_end = data; 398 398 399 399 print_formatted_list("file_names", hdr->v5.file_names, hdr->v5.file_names_end, 400 400 hdr->v5.file_name_entry_format, hdr->v5.file_name_entry_format_end, width); 401 401 } 402 402 } … … 655 655 656 656 /* 657 if (!lp.end_sequence) {658 659 660 }661 */657 * if (!lp.end_sequence) { 658 * debug_line_program_skip_to_sequence_end(&lp); 659 * assert(lp.truncated || lp.end_sequence); 660 * } 661 */ 662 662 } 663 663 } … … 666 666 } 667 667 668 static bool get_info(const struct debug_line_program_header *hdr, uintptr_t addr, int op_index, int *file, int *line, int *column) { 668 static bool get_info(const struct debug_line_program_header *hdr, uintptr_t addr, int op_index, int *file, int *line, int *column) 669 { 669 670 struct debug_line_program lp = debug_line_program_create( 670 671 hdr->header_end, hdr->unit_end, hdr); 671 672 672 673 int last_file = 0; … … 735 736 return true; 736 737 } 737
Note:
See TracChangeset
for help on using the changeset viewer.