*stack.c: Include valprint.h.
authorHui Zhu <teawater@gmail.com>
Tue, 17 Mar 2009 05:11:40 +0000 (05:11 +0000)
committerHui Zhu <teawater@gmail.com>
Tue, 17 Mar 2009 05:11:40 +0000 (05:11 +0000)
commit30c33a9f4b1132803f7f30fab64ad6b9da075d39
tree747d76d87816f1ed2f44adbb9a4a5f002f26f876
parenteccbf555f3ce464cc9f9a7b84347ffa79181e9bb
*stack.c: Include valprint.h.
(disassemble_next_line): New enum.
(show_disassemble_next_line): New function.  Show the current
value of disassemble-next-line.
(gdb_disassembly_stub_args): New struct for argument passing
between function do_gdb_disassembly and function
gdb_disassembly_stub.
(gdb_disassembly_stub): New function.  Helper for
gdb_disassembly.
(do_gdb_disassembly): New function.  Use TRY_CATCH to catch
the exception from the gdb_disassembly because it will be
broken by filter sometime.
(print_frame_info): If disassemble-next-line is set to auto
or on and doesn't have the line debug messages for $pc,
output the next instruction.
If disassemble-next-line is set to on and there is line debug
messages, output assembly codes for next line.
(_initialize_stack): Make the "set disassemble-next-line"
command an auto-boolean command.  Change its class to
class_stack.  Place it in the top level set list.  Extend help
to describe the auto mode.
gdb/ChangeLog
gdb/stack.c