diff options
author | Yao Qi <yao@codesourcery.com> | 2014-07-30 16:50:49 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-08-06 09:33:28 +0800 |
commit | 8e07a239c12ba3b746ef0cf2c53d572315aef654 (patch) | |
tree | 5573961f2e388dea7e601552bc3283693a46036d | |
parent | d37497d68fd80e0b6edd08604eab7d0472b7e0ac (diff) | |
download | gdb-8e07a239c12ba3b746ef0cf2c53d572315aef654.zip gdb-8e07a239c12ba3b746ef0cf2c53d572315aef654.tar.gz gdb-8e07a239c12ba3b746ef0cf2c53d572315aef654.tar.bz2 |
Fix comment in dwarf_decode_lines_1
When I read dwarf_decode_lines_1 comments today, it should be called
"special opcode" rather than "special operand", as said in DWARF spec.
It is obvious to me. I'll push it in if no comments in three days.
gdb:
2014-08-06 Yao Qi <yao@codesourcery.com>
* dwarf2read.c (dwarf_decode_lines_1): Replace "Special
operand" with "Special opcode" in comments.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f61f928..b02a94f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-08-06 Yao Qi <yao@codesourcery.com> + + * dwarf2read.c (dwarf_decode_lines_1): Replace "Special + operand" with "Special opcode" in comments. + 2014-08-05 Gary Benson <gbenson@redhat.com> * interps.c (initialize_interps): Remove prototype. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 276d2f1..837b1c1 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -17241,7 +17241,8 @@ dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir, if (op_code >= lh->opcode_base) { - /* Special operand. */ + /* Special opcode. */ + adj_opcode = op_code - lh->opcode_base; address += (((op_index + (adj_opcode / lh->line_range)) / lh->maximum_ops_per_instruction) |