GNU Binutils with patches for OS216
修订版 | c63bcc5d2dcbbe5415bfcc9514781fdb52da9a02 (tree) |
---|---|
时间 | 2015-01-22 09:01:18 |
作者 | Cary Coutant <ccoutant@goog...> |
Commiter | Cary Coutant |
Track discriminator when processing line number table.
2015-01-21 Cary Coutant <ccoutant@google.com>
binutils/
* dwarf.c (process_extended_line_op): Track discriminator.
@@ -523,8 +523,14 @@ process_extended_line_op (unsigned char * data, | ||
523 | 523 | break; |
524 | 524 | |
525 | 525 | case DW_LNE_set_discriminator: |
526 | - printf (_("set Discriminator to %s\n"), | |
527 | - dwarf_vmatoa ("u", read_uleb128 (data, & bytes_read, end))); | |
526 | + { | |
527 | + unsigned int discrim; | |
528 | + | |
529 | + discrim = read_uleb128 (data, & bytes_read, end); | |
530 | + data += bytes_read; | |
531 | + printf (_("set Discriminator to %u\n"), discrim); | |
532 | + state_machine_regs.discriminator = discrim; | |
533 | + } | |
528 | 534 | break; |
529 | 535 | |
530 | 536 | /* HP extensions. */ |