8sa1-binutils-gdb/gdb/python
Jan Kratochvil 8e3b41a906 gdb/
Implement basic support for DW_TAG_GNU_call_site.
	* block.c: Include gdbtypes.h and exceptions.h.
	(call_site_for_pc): New function.
	* block.h (call_site_for_pc): New declaration.
	* defs.h: Include hashtab.h.
	(make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
	declarations.
	* dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
	ctx_no_push_dwarf_reg_entry_value.
	* dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
	(dwarf_block_to_dwarf_reg): New function.
	(execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
	(ctx_no_push_dwarf_reg_entry_value): New function.
	* dwarf2expr.h (struct dwarf_expr_context_funcs): New field
	push_dwarf_reg_entry_value.
	(ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
	declarations.
	* dwarf2loc.c: Include gdbcmd.h.
	(dwarf_expr_ctx_funcs): New forward declaration.
	(entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
	(dwarf_expr_reg_to_entry_parameter)
	(dwarf_expr_push_dwarf_reg_entry_value): New.
	(dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
	(dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
	(needs_dwarf_reg_entry_value): New function.
	(needs_frame_ctx_funcs): Install it.
	(_initialize_dwarf2loc): New function.
	* dwarf2loc.h (entry_values_debug): New declaration.
	* dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
	(read_call_site_scope): New forward declaration.
	(process_full_comp_unit): Copy call_site_htab.
	(process_die): Support DW_TAG_GNU_call_site.
	(read_call_site_scope): New function.
	(dwarf2_get_pc_bounds): Support NULL HIGHPC.
	(dwarf_tag_name): Support DW_TAG_GNU_call_site.
	(cleanup_htab): Delete.
	(write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
	* exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
	* gdb-gdb.py (StructMainTypePrettyPrinter): Support
	FIELD_LOC_KIND_DWARF_BLOCK.
	* gdbtypes.h (enum field_loc_kind): New entry
	FIELD_LOC_KIND_DWARF_BLOCK.
	(struct main_type): New loc entry dwarf_block.
	(struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
	(TYPE_FIELD_DWARF_BLOCK): New.
	* python/py-type.c: Include dwarf2loc.h.
	(check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
	internal_error call on unknown FIELD_LOC_KIND.
	* symtab.h (struct symtab): New field call_site_htab.
	* utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
	(core_addr_hash, core_addr_eq): New functions.

gdb/testsuite/
	Implement basic support for DW_TAG_GNU_call_site.
	* gdb.arch/Makefile.in (EXECUTABLES): Add amd64-entry-value.
	* gdb.arch/amd64-entry-value.cc: New file.
	* gdb.arch/amd64-entry-value.exp: New file.
2011-10-09 19:21:39 +00:00
..
lib/gdb * python/lib/gdb/printing.py (register_pretty_printer): New argument 2011-10-07 22:46:15 +00:00
py-auto-load.c * python/py-auto-load.c (source_section_scripts): Fix file 2011-09-19 19:01:40 +00:00
py-block.c 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> 2011-03-17 09:36:17 +00:00
py-bpevent.c 2011-09-15 Kevin Pouget <kevin.pouget@st.com> 2011-09-15 12:27:20 +00:00
py-breakpoint.c * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the 2011-08-05 14:24:10 +00:00
py-cmd.c * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference 2011-09-15 18:33:15 +00:00
py-continueevent.c Add the file that prev commit forget. 2011-02-05 05:27:23 +00:00
py-event.c Add the file that prev commit forget. 2011-02-05 05:27:23 +00:00
py-event.h Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
py-events.h Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
py-evtregistry.c 2011-06-16 Tristan Gingold <gingold@adacore.com> 2011-06-16 05:54:09 +00:00
py-evts.c Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
py-exitedevent.c 2011-10-04 Kevin Pouget <kevin.pouget@st.com> 2011-10-04 08:04:13 +00:00
py-frame.c gdb/ 2011-09-08 15:26:08 +00:00
py-function.c * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the 2011-08-05 14:24:10 +00:00
py-inferior.c Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
py-infthread.c 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> 2011-07-11 12:10:19 +00:00
py-lazy-string.c
py-newobjfileevent.c Add missing files to previous commit (Allow Python notification of new object-file loadings.) 2011-10-07 08:39:57 +00:00
py-objfile.c 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> 2011-03-17 09:36:17 +00:00
py-param.c * py-cmd.c: Some minor formatting fixes. 2011-09-08 19:51:27 +00:00
py-prettyprint.c * varobj.c (update_dynamic_varobj_children): Make 'name' const. 2011-06-24 19:47:37 +00:00
py-progspace.c
py-signalevent.c Add the file that prev commit forget. 2011-02-05 05:27:23 +00:00
py-stopevent.c 2011-09-15 Kevin Pouget <kevin.pouget@st.com> 2011-09-15 12:27:20 +00:00
py-stopevent.h 2011-09-15 Kevin Pouget <kevin.pouget@st.com> 2011-09-15 12:27:20 +00:00
py-symbol.c * NEWS: Mention new "type" attribute of python gdb.Symbol objects. 2011-08-12 22:21:57 +00:00
py-symtab.c 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> 2011-03-17 09:36:17 +00:00
py-threadevent.c Add the file that prev commit forget. 2011-02-05 05:27:23 +00:00
py-type.c gdb/ 2011-10-09 19:21:39 +00:00
py-utils.c 2011-02-28 Michael Snyder <msnyder@vmware.com> 2011-03-01 19:00:16 +00:00
py-value.c * python/py-value.c (valpy_call): Initialize ftype to avoid compiler 2011-10-07 22:02:42 +00:00
python-config.py allow building GDB with Python support on MinGW 2011-01-31 04:42:08 +00:00
python-internal.h Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
python.c Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
python.h 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> 2011-03-14 16:09:55 +00:00