]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/cli/cli-cmds.c
* source.c (get_current_or_default_source_symtab_and_line): Remove
authorFernando Nasser <fnasser@redhat.com>
Sun, 22 Sep 2002 22:18:41 +0000 (22:18 +0000)
committerFernando Nasser <fnasser@redhat.com>
Sun, 22 Sep 2002 22:18:41 +0000 (22:18 +0000)
commit53cb0458d6870af83b2bc9fab8738a29b64f702e
treeb264bc0d29862d82e707c49717eafad38055c402
parentc214a6fd4d4e7d6d8bfd1dc355442070a63ca61a
* source.c (get_current_or_default_source_symtab_and_line): Remove
function.
(set_default_source_symtab_and_line): New function. Attempts to
determine a source file to list lines from if one is not currently
defined.
(get_current_source_symtab_and_line): Initialize sal.pc and
        sal.end fields.
(set_current_source_symtab_and_line): Mark argument as const.
* source.h: Update declarations and comments.
* linespec.c (decode_line_1): Replace call to removed routine above.
* stack.c (print_frame_info_base): Ditto.
* cli/cli-cmds.c (edit_command): Ditto.
(list_command): Ditto.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/linespec.c
gdb/source.c
gdb/source.h
gdb/stack.c