mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
* dwarf_reader.cc (Sized_dwarf_line_info::process_one_opcode): Fix
handling of DW_LNE_define_file.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-03-12 Cary Coutant <ccoutant@google.com>
|
||||||
|
|
||||||
|
* dwarf_reader.cc (Sized_dwarf_line_info::process_one_opcode): Fix
|
||||||
|
handling of DW_LNE_define_file.
|
||||||
|
|
||||||
2012-03-12 Cary Coutant <ccoutant@google.com>
|
2012-03-12 Cary Coutant <ccoutant@google.com>
|
||||||
|
|
||||||
* reduced_debug_output.cc
|
* reduced_debug_output.cc
|
||||||
|
@ -413,17 +413,16 @@ Sized_dwarf_line_info<size, big_endian>::process_one_opcode(
|
|||||||
start += templen;
|
start += templen;
|
||||||
|
|
||||||
uint64_t dirindex = read_unsigned_LEB_128(start, &templen);
|
uint64_t dirindex = read_unsigned_LEB_128(start, &templen);
|
||||||
oplen += templen;
|
|
||||||
|
|
||||||
if (dirindex >= this->directories_.back().size())
|
if (dirindex >= this->directories_.back().size())
|
||||||
dirindex = 0;
|
dirindex = 0;
|
||||||
int dirindexi = static_cast<int>(dirindex);
|
int dirindexi = static_cast<int>(dirindex);
|
||||||
|
|
||||||
read_unsigned_LEB_128(start, &templen); // mod_time
|
// This opcode takes two additional ULEB128 parameters
|
||||||
oplen += templen;
|
// (mod_time and filelength), but we don't use those
|
||||||
|
// values. Because OPLEN already tells us how far to
|
||||||
read_unsigned_LEB_128(start, &templen); // filelength
|
// skip to the next opcode, we don't need to read
|
||||||
oplen += templen;
|
// them at all.
|
||||||
|
|
||||||
this->files_.back().push_back(std::make_pair(dirindexi,
|
this->files_.back().push_back(std::make_pair(dirindexi,
|
||||||
filename));
|
filename));
|
||||||
|
Reference in New Issue
Block a user