aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-08-15 16:22:51 -0700
committerDoug Evans <dje@google.com>2014-08-15 16:22:51 -0700
commit699ca60ad9d8e94cd3da1b517878cdb155aee87b (patch)
tree0f427711c2f0dd01a60d25204b665f09f7a385e2 /gdb
parent37780ee59e60da0da88b4b973653b0e49223865e (diff)
downloadgdb-699ca60ad9d8e94cd3da1b517878cdb155aee87b.zip
gdb-699ca60ad9d8e94cd3da1b517878cdb155aee87b.tar.gz
gdb-699ca60ad9d8e94cd3da1b517878cdb155aee87b.tar.bz2
(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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 632ed87..f74f1c4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
2014-08-15 Doug Evans <dje@google.com>
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))