This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 17a40b44e2aa89d2df08897ea05a42e1afedd06a
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 18 Jun 2014 14:37:34 -0000
- Subject: gdb and binutils branch master updated. 17a40b44e2aa89d2df08897ea05a42e1afedd06a
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 17a40b44e2aa89d2df08897ea05a42e1afedd06a (commit)
via 346d1dfebdbc5b7c8ce7d84f9250cbb8f4ec3e6c (commit)
via 1834676b5f9a7f425b68d181da85f96fe246e03b (commit)
via ac1a991b1c00891d29607a6f97d98d66312af83f (commit)
via 5bc98e5269423c49d5543079c824f551db4028f0 (commit)
via 8236def8eb5276731a00eb21c2e687e4484aeb59 (commit)
via 3977b71f1dfd04b6ac2c14e1405ce251c31a38aa (commit)
from 5d376983ca914e1cf36f4968cc87957f9033ebcd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=17a40b44e2aa89d2df08897ea05a42e1afedd06a
commit 17a40b44e2aa89d2df08897ea05a42e1afedd06a
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jun 11 08:02:48 2014 -0600
make common_block const
This changes general_symbol_info to make "common_block" const.
2014-06-18 Tom Tromey <tromey@redhat.com>
* f-valprint.c (info_common_command_for_block): Update.
* symtab.h (struct general_symbol_info) <common_block>: Now
const.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=346d1dfebdbc5b7c8ce7d84f9250cbb8f4ec3e6c
commit 346d1dfebdbc5b7c8ce7d84f9250cbb8f4ec3e6c
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jun 10 13:11:19 2014 -0600
constify some blockvector APIs
Generally, the blockvector ought to be readonly. So, this patch makes
the blockvector const in the symtab, and also changes various
blockvector APIs to be const.
This patch has a couple of spots that cast away const. I consider
these to be ok because they occur in mdebugread and are used while
constructing the blockvector. I have added comments at these spots.
2014-06-18 Tom Tromey <tromey@redhat.com>
* symtab.h (struct symtab) <blockvector>: Now const.
* ada-lang.c (ada_add_global_exceptions): Update.
* buildsym.c (augment_type_symtab): Update.
* dwarf2read.c (dw2_lookup_symbol): Update.
* jit.c (finalize_symtab): Update.
* jv-lang.c (add_class_symtab_symbol): Update.
* mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
Update.
* objfiles.c (objfile_relocate1): Update.
* psymtab.c (lookup_symbol_aux_psymtabs)
(maintenance_check_psymtabs): Update.
* python/py-symtab.c (stpy_global_block, stpy_static_block):
Update.
* spu-tdep.c (spu_catch_start): Update.
* symmisc.c (dump_symtab_1): Update.
* symtab.c (lookup_global_symbol_from_objfile)
(lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
(basic_lookup_transparent_type_quick)
(basic_lookup_transparent_type, find_pc_sect_symtab)
(find_pc_sect_line, search_symbols): Update.
* block.c (find_block_in_blockvector): Make "bl" const.
(blockvector_for_pc_sect, blockvector_for_pc): Make return type
const.
(blockvector_contains_pc): Make "bv" const.
(block_for_pc_sect): Update.
* block.h (blockvector_for_pc, blockvector_for_pc_sect)
(blockvector_contains_pc): Update.
* breakpoint.c (resolve_sal_pc): Update.
* inline-frame.c (block_starting_point_at): Update.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1834676b5f9a7f425b68d181da85f96fe246e03b
commit 1834676b5f9a7f425b68d181da85f96fe246e03b
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Apr 15 10:22:12 2013 -0600
constify complete_line
This changes complete_line to take a const parameter.
2014-06-18 Tom Tromey <tromey@redhat.com>
* completer.c (complete_line): Make "line_buffer" const.
* completer.h (complete_line): Update.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ac1a991b1c00891d29607a6f97d98d66312af83f
commit ac1a991b1c00891d29607a6f97d98d66312af83f
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Mar 28 11:09:08 2013 -0600
remove unneeded cast in symtab.c
This removes an unneeded const cast from symtab.c:add_macro_name.
2014-06-18 Tom Tromey <tromey@redhat.com>
* symtab.c (add_macro_name): Remove unneeded cast.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5bc98e5269423c49d5543079c824f551db4028f0
commit 5bc98e5269423c49d5543079c824f551db4028f0
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Mar 27 10:35:35 2013 -0600
constify parse_cli_boolean_value
This changes a parameter of parse_cli_boolean_value to be const.
2014-06-18 Tom Tromey <tromey@redhat.com>
* cli/cli-setshow.h (parse_cli_boolean_value): Update.
* cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8236def8eb5276731a00eb21c2e687e4484aeb59
commit 8236def8eb5276731a00eb21c2e687e4484aeb59
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jun 10 11:25:18 2014 -0600
constify probe.c function
This constifies an argument to info_probes_for_ops.
2014-06-18 Tom Tromey <tromey@redhat.com>
* probe.c (info_probes_for_ops): Make "arg" const.
* probe.h (info_probes_for_ops): Update.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3977b71f1dfd04b6ac2c14e1405ce251c31a38aa
commit 3977b71f1dfd04b6ac2c14e1405ce251c31a38aa
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Mar 12 09:51:37 2013 -0600
constify struct block in some places
This makes some spots in gdb, particularly general_symbol_info, use a
"const struct block", then fixes the fallout.
The justification is that, ordinarily, blocks ought to be readonly.
Note though that we can't add "const" in the blockvector due to block
relocation. This can be done once blocks are made independent of the
program space.
2014-06-18 Tom Tromey <tromey@redhat.com>
* varobj.c (varobj_create): Update.
* valops.c (value_of_this): Update.
* tracepoint.c (add_local_symbols, scope_info): Update.
* symtab.h (struct general_symbol_info) <block>: Now const.
* symtab.c (skip_prologue_sal)
(default_make_symbol_completion_list_break_on)
(skip_prologue_using_sal): Update.
* stack.h (iterate_over_block_locals)
(iterate_over_block_local_vars): Update.
* stack.c (print_frame_args): Update.
(iterate_over_block_locals, iterate_over_block_local_vars): Make
parameter const.
(get_selected_block): Make return type const.
* python/py-frame.c (frapy_block): Update.
* python/py-block.c (gdbpy_block_for_pc): Update.
* p-exp.y (%union) <bval>: Now const.
* mi/mi-cmd-stack.c (list_args_or_locals): Update.
* mdebugread.c (mylookup_symbol, parse_procedure): Update.
* m2-exp.y (%union) <bval>: Now const.
* linespec.c (get_current_search_block): Make return type const.
(create_sals_line_offset, find_label_symbols): Update.
* inline-frame.c (inline_frame_sniffer, skip_inline_frames):
Update.
(block_starting_point_at): Make "block" const.
* infrun.c (insert_exception_resume_breakpoint): Make "b" const.
(check_exception_resume): Update.
* guile/scm-frame.c (gdbscm_frame_block): Update.
* guile/scm-block.c (gdbscm_lookup_block): Update.
* frame.h (get_frame_block): Update.
(get_selected_block): Make return type const.
* frame.c (frame_id_inner): Update.
* f-valprint.c (info_common_command_for_block)
(info_common_command): Update.
* dwarf2loc.c (dwarf2_find_location_expression)
(dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
(locexpr_describe_location_piece): Update.
* c-exp.y (%union) <bval>: Now const.
* breakpoint.c (resolve_sal_pc): Update.
* blockframe.c (get_frame_block):Make return type const.
(get_pc_function_start, get_frame_function, find_pc_sect_function)
(block_innermost_frame): Update.
* block.h (blockvector_for_pc, blockvector_for_pc_sect)
(block_for_pc, block_for_pc_sect): Update.
* block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
'pblock' const.
(block_for_pc_sect, block_for_pc): Make return type const.
* ax-gdb.c (gen_expr): Update.
* alpha-mdebug-tdep.c (find_proc_desc): Update.
* ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
(ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
(ada_read_var_value): Update.
* ada-exp.y (struct name_info) <block>: Now const.
(%union): Likewise.
(block_lookup): Constify.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 114 +++++++++++++++++++++++++++++++++++++++++++++++
gdb/ada-exp.y | 10 ++--
gdb/ada-lang.c | 10 ++--
gdb/alpha-mdebug-tdep.c | 2 +-
gdb/ax-gdb.c | 2 +-
gdb/block.c | 22 +++++-----
gdb/block.h | 17 ++++---
gdb/blockframe.c | 12 +++---
gdb/breakpoint.c | 4 +-
gdb/buildsym.c | 2 +-
gdb/c-exp.y | 2 +-
gdb/cli/cli-setshow.c | 2 +-
gdb/cli/cli-setshow.h | 2 +-
gdb/completer.c | 2 +-
gdb/completer.h | 2 +-
gdb/dwarf2loc.c | 8 ++--
gdb/dwarf2read.c | 2 +-
gdb/f-valprint.c | 6 +-
gdb/frame.c | 2 +-
gdb/frame.h | 6 +-
gdb/guile/scm-block.c | 2 +-
gdb/guile/scm-frame.c | 2 +-
gdb/infrun.c | 4 +-
gdb/inline-frame.c | 8 ++--
gdb/jit.c | 15 +++---
gdb/jv-lang.c | 2 +-
gdb/linespec.c | 10 ++--
gdb/m2-exp.y | 2 +-
gdb/mdebugread.c | 34 ++++++++------
gdb/mi/mi-cmd-stack.c | 2 +-
gdb/objfiles.c | 2 +-
gdb/p-exp.y | 2 +-
gdb/probe.c | 9 ++--
gdb/probe.h | 2 +-
gdb/psymtab.c | 4 +-
gdb/python/py-block.c | 2 +-
gdb/python/py-frame.c | 2 +-
gdb/python/py-symtab.c | 4 +-
gdb/spu-tdep.c | 2 +-
gdb/stack.c | 12 +++---
gdb/stack.h | 4 +-
gdb/symmisc.c | 2 +-
gdb/symtab.c | 24 +++++-----
gdb/symtab.h | 6 +-
gdb/tracepoint.c | 4 +-
gdb/valops.c | 2 +-
gdb/varobj.c | 2 +-
47 files changed, 258 insertions(+), 137 deletions(-)
hooks/post-receive
--
gdb and binutils