This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] (dwarf_decode_lines_1): Move definition of adj_opcode
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 15 Aug 2014 16:25:17 -0700
- Subject: [commit] (dwarf_decode_lines_1): Move definition of adj_opcode
- Authentication-results: sourceware.org; auth=none
Hi.
Just a simple cleanup.
2014-08-15 Doug Evans <dje@google.com>
* dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
closer to use.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 6bc5793..801f05d 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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_end;
unsigned int bytes_read, extended_len;
- unsigned char op_code, extended_op, adj_opcode;
+ unsigned char op_code, extended_op;
CORE_ADDR baseaddr;
struct objfile *objfile = cu->objfile;
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)
{
/* Special opcode. */
+ unsigned char adj_opcode;
adj_opcode = op_code - lh->opcode_base;
address += (((op_index + (adj_opcode / lh->line_range))