Commit Graph

15627 Commits

Author SHA1 Message Date
Daniel Jacobowitz 0d564a3135 2009-11-12 Paul Brook <paul@codesourcery.com>
Daniel Jacobowitz  <dan@codesourcery.com>

	* dwarf2read.c (dwarf2_add_member_fn): Calculate virtual function
	offset for classes without DW_AT_containing_type.
2009-11-12 19:10:06 +00:00
Daniel Jacobowitz 7d0ccb6133 2009-11-12 Paul Brook <paul@codesourcery.com>
Daniel Jacobowitz  <dan@codesourcery.com>

	* dwarf2read.c (struct field_info): Add baseclasses.
	(dwarf2_add_field): Add base classes to a separate list.
	(dwarf2_attach_fields_to_type): Merge base classes and fields.
2009-11-12 19:05:28 +00:00
Daniel Jacobowitz 328c9494f5 * dwarf2read.c (process_psymtab_comp_unit): Initialize per_cu backlink
at the same time as the forward link.
	(load_partial_comp_unit): Initialize per_cu links before calling
	init_cu_die_reader.
2009-11-12 18:59:40 +00:00
Paul Pluzhnikov 21e1bee4d2 gdb/ChangeLog:
2009-11-11  Paul Pluzhnikov  <ppluzhnikov@google.com>

	PR gdb/10838
	* linux-thread-db.c (thread_db_info): New member.
	(disable_thread_event_reporting): Call td_ta_clear_event.

gdbserver/ChangeLog:

2009-11-11  Paul Pluzhnikov  <ppluzhnikov@google.com>

	PR gdb/10838
	* thread-db.c (thread_db_free): Call td_ta_clear_event.
2009-11-12 00:47:39 +00:00
Keith Seitz 1e5a1abc15 * linespec.c (lookup_prefix_sym): Lookup the symbol
in both STRUCT_DOMAIN and VAR_DOMAIN.
2009-11-11 23:34:11 +00:00
Michael Snyder f801e1e0ba 2009-11-11 Michael Snyder <msnyder@vmware.com>
* darwin-nat-info.c: Update copyright.
	* dbxread.c: Ditto.
	* gdbarch.sh: Ditto.
	* gdbarch.c: Ditto.
	* gdbarch.h: Ditto.
	* inline-frame.c: Ditto.
	* inline-frame.h: Ditto.
2009-11-11 20:07:39 +00:00
Michael Snyder 1e061d1a6b 2009-11-11 Michael Snyder <msnyder@vmware.com>
* s390-nat.c: Update copyright.
2009-11-11 19:38:34 +00:00
Michael Snyder 5efc7e4417 ChangeLog, typo, obvious. 2009-11-11 19:30:23 +00:00
Michael Snyder 9659616a96 2009-10-28 Michael Snyder <msnyder@vmware.com>
* findvar.c (top level): Fix and add comments.
2009-11-11 19:27:02 +00:00
Keith Seitz 66c53f2b15 * c-expy. (operator_stoken): New function.
(OPERATOR): New token.
	(NEW): New token.
	(DELETE): New token.
	(operator): New rule.
	(name): Add operator.
	(ident_tokens): Add "new", "delete", and "operator".
	* gdbtypes.c (rank_one_type): Don't complain about
	void pointer conversion badness if both types are
	void pointers.
2009-11-11 16:45:46 +00:00
Jan Kratochvil 32a0e54790 gdb/
* symfile.c (separate_debug_file_exists): Change parameter parent_name
	to parent_objfile.  New variables parent_stat and abfd_stat.  Call
	strcmp and then bfd_stat functions to verify if NAME matches.
	(find_separate_debug_file): Update the passed parameter at caller.
2009-11-11 05:04:34 +00:00
Jan Kratochvil 9b14d7aa41 gdb/
* objfiles.c (objfile_relocate): Update also the field psymtabs_addrmap.

gdb/testsuite/
	* gdb.dwarf2/dw2-ranges.exp: Call runto_main.
2009-11-11 04:59:48 +00:00
Jan Kratochvil da2f07f1aa bfd/
* configure.in: Call ACX_LARGEFILE.  Stop calling AC_PLUGINS,
	AC_SYS_LARGEFILE and checking the Solaris largefile exception.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

binutils/
	* configure.in: Call ACX_LARGEFILE.  Stop calling AC_PLUGINS,
	AC_SYS_LARGEFILE and checking the Solaris largefile exception.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

gas/
	* configure.in: Call ACX_LARGEFILE.  Stop calling AC_SYS_LARGEFILE.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

gdb/
	* configure.ac: Call ACX_LARGEFILE.
	* aclocal.m4: Call m4_include for ../config/largefile.m4 and
	../config/plugins.m4.
	* configure: Regenerate.
	* config.in: Regenerate.

gprof/
	* configure.in: Call ACX_LARGEFILE.  Stop calling AC_SYS_LARGEFILE.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

ld/
	* configure.in: Call ACX_LARGEFILE.  Stop calling AC_SYS_LARGEFILE.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
2009-11-11 04:42:42 +00:00
Keith Seitz 072bba3b0f * c-exp.y: Add new rule for resolving method overloads.
* eval.c (make_params): New function.
	(free_param_types): New function.
	(evaluate_subexp_standard): Pass expect_type to value_aggregate_elt.
	Handle case TYPE_INSTANCE.
	(evaluate_subexp_for_address): Pass expect_type to value_aggregate_elt.
	* expression.h (enum exp_opcode): Add TYPE_INSTANCE.
	(compare_parameters): Add declaration.
	* parse.c (operator_length_standard): Add TYPE_INSTANCE.
	* valops.c (value_aggregate_elt): Add new expect_type parameter.
	Pass expect_type to value_struct_elt_for_reference.
	(value_struct_elt_for_reference): Add expect_type parameter and use
	compare_parameters.
	Check for overload matches with and without artificial parameters.
	Skip artificial methods.
	(compare_parameters): New function.
	* value.h (value_aggregate_elt): Add new expect_type parameter.
2009-11-10 22:17:58 +00:00
Joseph Myers de64a9acc6 * solib-svr4.c (enable_break): Call
gdbarch_convert_from_func_ptr_addr on results of looking up
	fallback symbol names.
2009-11-10 21:36:48 +00:00
Daniel Jacobowitz 751254059d 2009-11-10 Daniel Gutson <dgutson@codesourcery.com>
* procfs.c (procfs_do_thread_registers): Added a call to fetch
	register values before saving them in the core file
	through the gcore command.
	(procfs_corefile_thread_callback): Removed the backup of
	inferior_ptid before calling procfs_do_thread_registers since
	the function already saves and restores it before returning.
2009-11-10 21:00:41 +00:00
Michael Snyder e124be18d9 2009-11-10 Michael Snyder <msnyder@vmware.com>
* dcache.c: Fix typo, shorten long lines in comment.
2009-11-10 18:36:50 +00:00
Tristan Gingold 7d2552b4b6 2009-11-10 Tristan Gingold <gingold@adacore.com>
* avr-tdep.c: Add AVR_PSEUDO_PC_REGNUM and AVR_NUM_PSEUDO_REGS.
	(struct gdbarch_tdep): Add void_type, func_void_type and pc_type
	fields.
	(avr_register_name): Add "pc" name, renames "PC" to "PC2".
	(avr_register_type): Handle AVR_PSEUDO_PC_REGNUM.
	(avr_write_pc): Fix indentation.
	(avr_pseudo_register_read): New function.
	(avr_pseudo_register_write): New function.
	(avr_frame_prev_register): Handle AVR_PSEUDO_PC_REGNUM.
	(avr_gdbarch_init): Create types for pc.  Register pseudo regs.
2009-11-10 11:14:38 +00:00
Tristan Gingold 8a1d23b2ab 2009-11-10 Tristan Gingold <gingold@adacore.com>
* avr-tdep.c (avr_integer_to_address): New function.
	(avr_gdbarch_init): Set integer_to_address.
2009-11-10 10:48:51 +00:00
Tristan Gingold 8c201e543a 2009-11-10 Tristan Gingold <gingold@adacore.com>
* avr-tdep.c (avr_skip_prologue): First try to skip prologue
	using skip_prologue_using_sal.
2009-11-10 10:35:57 +00:00
Tristan Gingold 1bd0bb725f 2009-11-10 Tristan Gingold <gingold@adacore.com>
* avr-tdep.c (avr_extract_return_value): Remove.
	(avr_return_value): Mostly rewritten.  Fix handling for structures.
	(avr_push_dummy_call): Handle struct_return.

2009-11-10  Tristan Gingold  <gingold@adacore.com>

	* avr-tdep.c (avr_scan_prologue): Decode instructions used for
	small stack allocation.
	Adjust code for prologue that don't write SP.
2009-11-10 10:22:22 +00:00
Tristan Gingold ee143e8142 2009-11-10 Tristan Gingold <gingold@adacore.com>
* avr-tdep.c (avr_make_saddr): Return 0 for NULL.
2009-11-10 10:05:47 +00:00
Tristan Gingold 53f6a2c9fa 2009-11-10 Tristan Gingold <gingold@adacore.com>
* avr-tdep.c (avr_dwarf_reg_to_regnum): New function.
	(avr_gdbarch_init): Call set_gdbarch_dwarf2_reg_to_regnum.
2009-11-10 09:49:52 +00:00
Joel Brobecker 3ffc00b87a PR mi/9583:
* symtab.c (find_line_symtab, append_exact_match_to_sals)
        (expand_line_sal): Use full filename when setting breakpoints if
        available
2009-11-09 22:02:55 +00:00
Cary Coutant de4affc9ce * dwarf2read.c (read_import_statement): Don't clobber original cu. 2009-11-09 21:39:40 +00:00
Tom Tromey 86c6265d62 * python/python.c (execute_gdb_command): Copy the argument text. 2009-11-09 18:29:12 +00:00
Vladimir Prus bbaa04b8d0 * m68k-tdep.c (m68k_convert_register_p): Correct
messup.
2009-11-06 19:26:18 +00:00
Vladimir Prus 3c1ac6e7f7 * m68k-tdep.c (m68k_convert_register_p): Compare with
the actual type of fp registers, not one of the possible
	values.
2009-11-06 17:22:33 +00:00
Vladimir Prus c271b6e2b5 Prevent program output from mix with "^running".
gdb/
	* mi/mi-interp.c (mi_on_resume): Output token
	and "^running" together, so that nothing else gets
	in between.
2009-11-06 14:26:13 +00:00
Daniel Jacobowitz d85a05f07f * dwarf2read.c (struct dwarf2_cu): Remove ranges_offset and
has_ranges_offset.
	(struct partial_die_info): Remove language, has_stmt_list, dirname,
	and line_offset.
	(dwarf2_build_include_psymtabs): Take a die_info.  Handle a missing
	line table.
	(dwarf2_get_pc_bounds): Take PST argument.  Pass it
	to dwarf2_ranges_read.  Update all callers.
	(init_cu_die_reader): Move earlier.
	(dwarf2_find_base_address): New function.
	(process_psymtab_comp_unit): Rewrite to use a full DIE for the
	compilation unit.  Use dwarf2_get_pc_bounds and
	dwarf2_find_base_address.
	(load_comp_unit): Rewrite to use a full DIE for the compilation unit.
	(process_full_comp_unit): Use dwarf2_find_base_address.
	(read_partial_die): Remove support for attributes only used
	in the compilation unit DIE.
	* symfile.c (allocate_psymtab): Make FILENAME const.
	(start_psymtab_common): Likewise.
	* symfile.h (allocate_psymtab, start_psymtab_common): Update
	prototypes.
2009-11-05 23:18:01 +00:00
Tom Tromey 10abe6bf36 * symmisc.c (print_symbol_bcache_statistics): Print filename cache
statistics.
	(print_objfile_statistics): Likewise.
	* symfile.c (reread_symbols): Initialize filename_cache.
	(allocate_symtab): Cache the file name.
	(allocate_psymtab): Likewise.
	* solib-sunos.c (allocate_rt_common_objfile): Initialize
	filename_cache.
	* objfiles.h (struct objfile) <filename_cache>: New field.
	* objfiles.c (allocate_objfile): Initialize filename_cache.
	(free_objfile): Free filename_cache.
2009-11-05 22:26:10 +00:00
Tom Tromey 69a943f005 * symfile.c (add_psymbol_to_bcache): Make 'psymbol' static again.
Zero the 'value' field.
2009-11-05 22:19:09 +00:00
Doug Evans bba66b87ef * amd64-tdep.c (amd64_init_frame_cache): Enhance comment describing
saved_regs.
2009-11-05 21:17:00 +00:00
Daniel Jacobowitz 52efb61a1c * top.c (execute_command): Select a frame before checking the current
language.  Only output a message if verbose.
2009-11-05 20:43:52 +00:00
Tom Tromey 1c9e835890 * symtab.h (SYMBOL_SET_LINKAGE_NAME): Update comment.
* symfile.c (allocate_symtab): Don't use obsavestring on a
	constant string.
	* stabsread.c (define_symbol): Don't use obsavestring on a
	constant string.
	* mdebugread.c (parse_type): Don't use obsavestring on a constant
	string.
	(new_symtab): Likewise.
	* elfread.c (elf_symtab_read): Don't use obsavestring on a
	constant string.
2009-11-05 19:53:04 +00:00
Tom Tromey 8c2963fbcf * symfile.c (add_psymbol_to_bcache): Don't copy name. Make
'psymbol' non-static.
2009-11-04 23:06:50 +00:00
Paul Pluzhnikov 12b6a1106b 2009-11-03 Paul Pluzhnikov <ppluzhnikov@google.com>
* linux-thread-db.c (disable_thread_event_reporting): Adjust.
2009-11-03 17:14:56 +00:00
Joel Brobecker b06adb8115 * MAINTAINERS (Responsible Maintainers): Add Tristan Gingold as
maintainer of the avr target.
2009-11-03 14:36:11 +00:00
Daniel Jacobowitz ad09a54881 * elfread.c (elf_symfile_segments): Do not warn about
uninitialized sections outside of load segments.
2009-11-02 17:16:14 +00:00
Jan Kratochvil 24ddea6286 gdb/
* symfile.c (build_id_to_debug_filename): New variable debugdir.  Move
	variables size, s and data into a new inner block.  Change xmalloc for
	alloca, use direct BUILDID->SIZE there now.  Loop for the
	DEBUG_FILE_DIRECTORY components.
	(find_separate_debug_file): New variable debugdir and debugdir_end.
	Loop for the DEBUG_FILE_DIRECTORY components.
	(_initialize_symfile): For "debug-file-directory" use plural and note
	one can use multiple components now.

gdb/doc/
	* gdb.texinfo (set debug-file-directory, show debug-file-directory)
	(Auto-loading): Use plural and note one can use multiple components now.

gdb/testsuite/
	* gdb.base/sepdebug.exp: New test_different_dir call for multiple-dirs.
2009-11-02 14:59:53 +00:00
Jan Kratochvil 25522fae98 gdb/
* symfile.c (find_separate_debug_file): Initialize dir, debugfile and
	canon_name to NULL.  Change alloca to xmalloc, newly call xfree for it.
	New label cleanup_return_debugfile, jump to it from the failure paths.
2009-11-02 14:57:02 +00:00
Jan Kratochvil 287ccc17ed gdb/
* symfile.c (separate_debug_file_exists): When the CRCs mismatch
	print a warning.
	(find_separate_debug_file): Pass in the objfile's name.

gdb/testsuite/
	* gdb.base/sepdebug.exp (CRC mismatch is reported): New test.
	* gdb.base/sepdebug2.c: New file.
2009-11-02 14:55:05 +00:00
Jan Kratochvil abd0a5fa91 gdb/
Remove INVALID_ENTRY_POINT.
	* frame.c (inside_entry_func): New variable entry_point.  Return 0 if
	the entry point is not known.
	* solib-irix.c (enable_break): Likewise.
	* objfiles.c (init_entry_point_info): Stop using INVALID_ENTRY_POINT.
	Initialize EI.ENTRY_POINT_P.
	(entry_point_address): Rename to ...
	(entry_point_address_query): ... a new function.  Use EI.ENTRY_POINT_P.
	(entry_point_address): New function.
	(objfile_relocate): Use EI.ENTRY_POINT_P.
	* objfiles.h (struct entry_info): Simplify entry_point comment.  New
	field entry_point_p.
	(INVALID_ENTRY_POINT): Remove.
	(entry_point_address_query): New prototype.
	* solib-frv.c (enable_break): Check for NULL SYMFILE_OBJFILE and its
	EI.ENTRY_POINT_P.  Return 0 if ".interp" is not found.
2009-11-02 14:50:29 +00:00
Michael Snyder 399cd16192 2009-11-01 Michael Snyder <msnyder@vmware.com>
* NEWS (New Commands): Mention record save/restore.
2009-11-01 21:20:18 +00:00
Michael Snyder 3d947dffe0 2009-10-31 Michael Snyder <msnyder@vmware.com>
* breakpoint.c (bpstat_stop_status): Fix broken comment.
2009-10-31 18:30:40 +00:00
Pedro Alves 07b7cff327 * record.c (record_restore, cmd_record_save): Debug output goes to
gdb_stdlog.
2009-10-31 14:56:26 +00:00
Sergio Durigan Junior 08bca2595a Fixing the date format for the last ChangeLog entry. 2009-10-31 06:05:15 +00:00
Sergio Durigan Junior bccd0dd203 gdb/ChangeLog:
2009-31-10  Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>

	* breakpoint.c (catch_syscall_split_args): Remove unecessary warning
	displayed when the user provided a syscall name and there is no
	XML support.
	* xml-syscall.c: Renamed `_sysinfo' to `sysinfo'.
	(set_xml_syscall_file_name): Remove syscall_warn_user.
	(xml_init_syscalls_info): Remove warning.
	(init_sysinfo): Update warnings.

gdb/testsuite/ChangeLog:

2009-31-10  Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>

	* gdb.base/catch-syscall.exp: Adapt the testcase in order to accept
	the modified warnings for catch syscall.  Verify if GDB was compiled
	with support for lib expat, and choose which tests to run depending
	on this.
2009-10-31 06:00:13 +00:00
Vladimir Prus 5d4e2b767e Fix breakpoint commands in MI.
* mi/mi-main.c (mi_execute_command): Run bpstat_do_actions.
	* mi/mi-cmd-break.c (mi_cmd_break_commands): Pass 1 to
	read_command_line_1 to actually parse composite commands.
2009-10-30 17:34:53 +00:00
Sandra Loosemore 8a35fb51cd 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
PR gdb/10783

	gdb/
	* target.c (simple_search_memory): Correct read_addr initialization
	in loop for searching subsequent chunks.

	gdb/gdbserver/
	* server.c (handle_search_memory_1): Correct read_addr initialization
	in loop for searching subsequent chunks.
2009-10-29 20:12:26 +00:00