mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
(dwarf_decode_lines_1): Move definition of adj_opcode closer to use.
* dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode closer to use.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-08-15 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
|
||||||
|
closer to use.
|
||||||
|
|
||||||
2014-08-15 Doug Evans <dje@google.com>
|
2014-08-15 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* dwarf2read.c (dwarf_decode_lines_1): Add comment.
|
* dwarf2read.c (dwarf_decode_lines_1): Add comment.
|
||||||
|
@ -17182,7 +17182,7 @@ dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir,
|
|||||||
const gdb_byte *line_ptr, *extended_end;
|
const gdb_byte *line_ptr, *extended_end;
|
||||||
const gdb_byte *line_end;
|
const gdb_byte *line_end;
|
||||||
unsigned int bytes_read, extended_len;
|
unsigned int bytes_read, extended_len;
|
||||||
unsigned char op_code, extended_op, adj_opcode;
|
unsigned char op_code, extended_op;
|
||||||
CORE_ADDR baseaddr;
|
CORE_ADDR baseaddr;
|
||||||
struct objfile *objfile = cu->objfile;
|
struct objfile *objfile = cu->objfile;
|
||||||
bfd *abfd = objfile->obfd;
|
bfd *abfd = objfile->obfd;
|
||||||
@ -17237,6 +17237,7 @@ dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir,
|
|||||||
if (op_code >= lh->opcode_base)
|
if (op_code >= lh->opcode_base)
|
||||||
{
|
{
|
||||||
/* Special opcode. */
|
/* Special opcode. */
|
||||||
|
unsigned char adj_opcode;
|
||||||
|
|
||||||
adj_opcode = op_code - lh->opcode_base;
|
adj_opcode = op_code - lh->opcode_base;
|
||||||
address += (((op_index + (adj_opcode / lh->line_range))
|
address += (((op_index + (adj_opcode / lh->line_range))
|
||||||
|
Reference in New Issue
Block a user