old-cross-binutils/gdb/python
Tom Tromey 346d1dfebd 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.
2014-06-18 08:16:59 -06:00
..
lib/gdb Xmethod support in Python. 2014-06-03 10:03:07 -07:00
py-arch.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-auto-load.c Extension Language API 2014-02-05 19:27:58 -08:00
py-block.c constify struct block in some places 2014-06-18 08:16:52 -06:00
py-bpevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-breakpoint.c Extension Language API 2014-02-05 19:27:58 -08:00
py-cmd.c * python/py-cmd.c (cmdpy_completer): Add comment. 2014-05-13 19:44:51 -07:00
py-continueevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-event.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-event.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-events.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-evtregistry.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-evts.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-exitedevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-finishbreakpoint.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-frame.c constify struct block in some places 2014-06-18 08:16:52 -06:00
py-framefilter.c change minsym representation 2014-02-26 12:11:16 -07:00
py-function.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-gdb-readline.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-inferior.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-infthread.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-lazy-string.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-linetable.c Fix Python stack corruption 2014-02-09 18:47:40 +01:00
py-newobjfileevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-objfile.c Xmethod support in Python. 2014-06-03 10:03:07 -07:00
py-param.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-prettyprint.c Extension Language API 2014-02-05 19:27:58 -08:00
py-progspace.c Xmethod support in Python. 2014-06-03 10:03:07 -07:00
py-signalevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-stopevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-stopevent.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-symbol.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-symtab.c constify some blockvector APIs 2014-06-18 08:16:59 -06:00
py-threadevent.c Add new infrun.h header. 2014-05-22 12:29:11 +01:00
py-type.c Add missing empty line after declarations in "if" block (py-type.c). 2014-01-15 16:32:05 +04:00
py-utils.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-value.c Wrap PyObject_Get/HasAttrString in a function with second arg having const qualifier. 2014-06-10 11:52:12 -07:00
py-varobj.c Iterate over 'struct varobj_item' instead of PyObject 2014-06-12 15:27:19 +08:00
py-xmethods.c Xmethod support in Python. 2014-06-03 10:03:07 -07:00
python-config.py Add support for Python 3. 2012-12-12 16:47:30 +00:00
python-internal.h Generalize varobj iterator 2014-06-12 15:27:15 +08:00
python.c Xmethod support in Python. 2014-06-03 10:03:07 -07:00
python.h Extension Language API 2014-02-05 19:27:58 -08:00