summaryrefslogtreecommitdiff
path: root/gdb/record.c
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2015-09-21 13:19:15 +0200
committerMarkus Metzger <markus.t.metzger@intel.com>2015-09-22 08:42:30 +0200
commit5fb809b9ffac08ded7ffa8cfb76283fc4f9c2fc5 (patch)
tree5ecdff841d9fb566e950034accba3a438f1c4585 /gdb/record.c
parent665822460dd08b1635b071ab855e51b15fe272aa (diff)
downloadbinutils-gdb-5fb809b9ffac08ded7ffa8cfb76283fc4f9c2fc5.tar.gz
disasm: determine preceding lines independent of last_line
In do_mixed_source_and_assembly, we check for source lines without code between the last line that was printed and the next line to be printed. We print those extra source lines before the line for the next instruction. Since instructions can now be in any order, it is no longer guaranteed that last_line corresponds to the previous instruction. Change the boundary from last_line to the first line in the same function and remove the first-line-to-be-printed check. This will now print source lines without code also before the first instruction. Signed-off-by: Markus Metzger <markus.t.metzger@intel.com> * disasm.c: Include block.h (first_line_in_pc_function): New. (do_mixed_source_and_assembly): Search for lines without code until the first line in the same function.
Diffstat (limited to 'gdb/record.c')
0 files changed, 0 insertions, 0 deletions