(dwarf_decode_lines_1): Move definition of adj_opcode closer to use.
authorDoug Evans <dje@google.com>
Fri, 15 Aug 2014 23:22:51 +0000 (16:22 -0700)
committerDoug Evans <dje@google.com>
Fri, 15 Aug 2014 23:22:51 +0000 (16:22 -0700)
* dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
closer to use.

gdb/ChangeLog
gdb/dwarf2read.c

index 632ed878e844ea05fca7acf68839e68ee9234624..f74f1c46609922389d289572d5b951c47f479fb1 100644 (file)
@@ -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>
 
        * dwarf2read.c (dwarf_decode_lines_1): Add comment.
index 6bc57939a84fb51af90d8952147fb19531ce32f1..801f05d9b996887da7bbb99e1114a83f36e5ed10 100644 (file)
@@ -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))