[commit] [patch] Fix "skip" for ambiguous linespec
Jan Kratochvil
jan.kratochvil@redhat.com
Mon Dec 24 19:40:00 GMT 2012
On Mon, 10 Dec 2012 22:07:37 +0100, Jan Kratochvil wrote:
> gdb/
> 2012-12-10 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * breakpoint.c (breakpoint_re_set): Remove the skip_re_set call.
> * infrun.c (handle_inferior_event): Rename the called function to
> function_name_is_marked_for_skip, pass it TMP_SAL.
> * skip.c (struct skiplist_entry): Update function_name comment. Remove
> fields pc, gdbarch and pending.
> (skip_function_pc): Rename this forward declaration to ...
> (skip_function): ... here.
> (skip_file_command): Remove variable pending and its use, remove
> initialization of E fields pending and gdbarch. Do not use SYMTAB
> filename, use the specified one.
> (skip_function_command): Remove variable func_pc, do not set it.
> Update the caller of skip_function. Replace decode_line_1 call by
> a lookup_symbol call. Remove variables orig_arg, decode_exception and
> sals. Update the caller of skip_function.
> (skip_info): Remove variable address_width and its use. Do not print
> address (PC). Renumber column 5 to 4.
> (skip_function_pc): Rename to ...
> (skip_function): ... here and remove its parameters pc, arch and
> pending. Update the function comment and no longer use those
> parameters.
> (function_pc_is_marked_for_skip): Rename to ...
> (function_name_is_marked_for_skip): ... here, update function comment
> just to a skip.h reference, replace pc parameter by function_name and
> function_sal. No longer use E field pending and pc. Remove variables
> searched_for_sal, sal and filename. Call compare_filenames_for_search
> instead of just strcmp.
> (skip_re_set): Remove the function.
> * skip.h (struct symtab_and_line): New declaration.
> (function_pc_is_marked_for_skip): Rename to ...
> (function_name_is_marked_for_skip): ... here, replace pc parameter by
> function_name and function_sal, update the function comment.
>
> gdb/testsuite/
> 2012-12-10 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * gdb.base/skip-solib.exp (info skip with pending file): Update the
> expected output.
> (info skip with pending file): Remove.
> (ignoring function in solib, info skip for function multiply): Update
> the expected output.
> * gdb.base/skip.ex (skip (main), skip function baz, info skip)
> (info skip (delete 1), info skip after disabling all)
> (info skip after enabling all, info skip after disabling 4 2-3)
> (info skip after enabling 2-3, info skip 2-3)
> (info skip after deleting 2 3): Update the expected output.
> * gdb.linespec/base/two/thefile.cc (n): New variable v, split the
> statement to its initialization and return.
> * gdb.linespec/skip-two.exp: New file.
Checked in:
http://sourceware.org/ml/gdb-cvs/2012-12/msg00180.html
Jan
More information about the Gdb-patches
mailing list