Commit Graph

63471 Commits

Author SHA1 Message Date
gdbadmin 82337b2901 *** empty log message *** 2009-11-11 00:00:33 +00:00
Alan Modra a692e5cefa daily update 2009-11-10 23:00:05 +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
Keith Seitz 85feb311d3 * gdb.cp/overload.exp: Add tests for resolving overloaded
methods in expression parsing/evaluation.
2009-11-10 22:17:06 +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
Daniel Jacobowitz fa33544892 * lib/gdb.exp (default_gdb_version): Use --version instead of
--command.
2009-11-10 20:54:55 +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
Maxim Kuvyrkov 0d999f3337 * config/m68k-parse.h (enum m68k_register): Add ACR[4-7], RGPIOBAR.
* config/tc-m68k.c (mcf5206_ctrl): Fix whitespace.
	(mcf52223_ctrl): Remove non-existent registers.
	(mcf54418): Define.
	(mcf54455): Remove MBAR.
	(m68k_cpus): Add lines for MCF5441x family.
	(m68k_ip, init_table): Handle RGPIOBAR, ACR[4-7].

	* m68k-dis.c (print_insn_arg): Handle RGPIOBAR, ACR[4-7] and MBAR[01].
2009-11-10 18:05:24 +00:00
Nick Clifton 3ab904c416 PR ld/10864
* ld.texinfo (Entry Point): Mention that the default entry symbol
        is not 'start' on some targets.
2009-11-10 16:34:53 +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
Nathan Sidwell ec3c07fc0f * lib/gdb.exp (gdb_compile_test): New.
(skip_ada_tests, skip_java_tests): New.
	(gdb_compile): Use gdb_compile_test for f77.
	* lib/ada.exp (gdb_compile_ada): Use gdb_compile_test to record result.
	* lib/java.exp (compile_java_from_source): Remove runtests check,
	use gdb_compile_test to record result.
	* gdb.ada/packed_array.exp, gdb.ada/fixed_points.exp,
	gdb.ada/exec_changed.exp, gdb.ada/start.exp,
	gdb.ada/watch_arg.exp, gdb.ada/null_record.exp,
	gdb.ada/array_return.exp, gdb.ada/arrayidx.exp,
	gdb.mi/mi-var-child-f.exp, gdb.fortran/types.exp,
	gdb.fortran/array-element.exp, gdb.fortran/subarray.exp,
	gdb.fortran/derived-type.exp, gdb.fortran/exprs.exp,
	gdb.java/jmisc.exp, gdb.java/jmisc1.exp, gdb.java/jprint.exp,
	gdb.java/jv-print.exp, gdb.java/jmain.exp: Add language skip,
	adjust gdb_compile invocations.
2009-11-10 10:16:10 +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
gdbadmin db81c99eac *** empty log message *** 2009-11-10 00:00:03 +00:00
Joel Brobecker 5bc8e71ca0 * largefile.m4 (ACX_LARGEFILE): Call AC_PLUGINS. 2009-11-09 23:19:11 +00:00
Doug Kwan 43d12afeb9 2009-11-10 Doug Kwan <dougkwan@google.com>
* arm.cc (Arm_relobj::do_relocate_sections): Remove options parameter
	in method declaration.
	(Target_arm::relocate_stub): New method declaration.
	(Target_arm::default_target): Change to return a pointer instead of
	a const reference.
	(Reloc_stub::stub_type_for_reloc): Adjust for the change in
	Target_arm::default_target.
	(Arm_Relobj::do_relocate_sections): Remove options paramater in
	method definition.
	(Target_arm::relocate_section): Adjust view.
	(Target_arm::relocate_stub): New method definition.
2009-11-09 23:16:55 +00:00
Doug Kwan ac33a407ac 2009-11-10 Doug Kwan <dougkwan@google.com>
* i386.cc (Target_i386::do_calls_non_split): Add a cast to avoid
	a format warning.
	* incremental.cc (open_incremental_binary): Initialized local
	variables to avoid warnings.
	* object.cc (make_elf_object): Ditto.
	* x86_64.cc (Target_x86_64::do_calls_non_split): Add a cast to avoid
	a format warning.
2009-11-09 23:07:30 +00:00
Alan Modra 3ec0c9a0ca daily update 2009-11-09 23:00:04 +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
Jan Kratochvil b8b4e42bde gdb/testsuite/
* Makefile.in (abs_builddir): New.
	(site.exp): New target `$(abs_builddir)/site.exp'.  New comment.
	(check-single, $(TEST_TARGETS), check-gdb.base%): Change `site.exp' to
	`$(abs_builddir)/site.exp'.
2009-11-09 17:57:34 +00:00
H.J. Lu 88ee28e9fa Include "config.h".
009-11-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR gold/10930
	* testsuite/plugin_test.c: Include "config.h".
2009-11-09 16:11:34 +00:00
Doug Kwan 2daedcd627 2009-11-09 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::fake_relnum_for_stubs): New constant.
	(arm_symbol_value): Remove.
	(Arm_relocate_functions::arm_branch_common,
	Arm_relocate_functions::abs8, Arm_relocate_functions::thm_abs5,
	Arm_relocate_functions::abs12, Arm_relocate_functions::abs16,
	Arm_relocate_functions::abs32, Arm_relocate_functions::rel32,
	Arm_relocate_functions::thm_call, Arm_relocate_functions::plt32,
	Arm_relocate_functions::call, Arm_relocate_functions::jump24,
	Arm_relocate_functions::prel31, Arm_relocate_functions::mov_abs_nc,
	Arm_relocate_functions::movt_abs, Arm_relocate_functions::movw_abs_nc,
	Arm_relocate_functions::thm_mobw_abs_nc,
	Arm_relocate_functions::thm_mov_abs,
	Arm_relocate_functions::movw_prel_nc,
	Arm_relocate_functions::thm_movt_abs,
	Arm_relocate_functions::movt_prel,
	Arm_relocate_functions::thm_movw_prel_nc,
	Arm_relocate_functions::thm_movt_prel): Adjust callers of the above.
	(Target_arm::Relocate::relocate): Only decompose address into two
	parts if relocation type uses the thumb-bit and pass the actual
	bit instead of a flag indicating that the thumb-bit is used.  Adjust
	calls to methods in Arm_relocate_functions for this change.
2009-11-09 16:03:45 +00:00
H.J. Lu 57ca8ac797 Don't return on STT_GNU_IFUNC symbol when stripping.
bfd/

2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/10911
	* elflink.c (elf_link_output_extsym): Don't return on
	STT_GNU_IFUNC symbol when stripping.

ld/testsuite/

2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/10911
	* ld-ifunc/ifunc-4a-x86.d: New.
2009-11-09 14:37:16 +00:00
Tristan Gingold 46b5151381 2009-11-09 Tristan Gingold <gingold@adacore.com>
* avr/interp.c (sim_resume): Fix typo for OP_ret.
2009-11-09 13:50:30 +00:00
Ian Lance Taylor 3e4afc80cd PR 10925
* reloc.cc: Instantiate
	Sized_relobj::initialize_input_to_output_maps and
	Sized_relobj:free_input_to_output_maps.
2009-11-09 02:02:01 +00:00
gdbadmin 926036bcf7 *** empty log message *** 2009-11-09 00:00:03 +00:00
Jan Kratochvil a3029abda0 binutils/
* bucomm.c (get_file_size): Update comment for the error return value.
2009-11-08 23:01:57 +00:00
Alan Modra 41b6334fa9 daily update 2009-11-08 23:00:04 +00:00
Dave Anglin 1e456d542e * readelf.c (slurp_hppa_unwind_table): Don't relocate address twice. 2009-11-08 21:36:46 +00:00
Dave Anglin d9f4081713 * elf32-hppa.c (elf32_hppa_final_link): Don't sort unwind information
in a relocatable link.
	* elf64-hppa.c (elf_hppa_final_link): Likewise.
2009-11-08 20:47:24 +00:00
gdbadmin 197bedcdc3 *** empty log message *** 2009-11-08 00:00:04 +00:00
Alan Modra 8655941f11 daily update 2009-11-07 23:00:05 +00:00
Joel Brobecker 1eb7cd77da * gdbint.texinfo, stabs.texinfo: Move the @setchapternewpage
and @settitle directives up to help makeinfo find them.
2009-11-07 19:46:57 +00:00
Ian Lance Taylor e53ad1b5b5 PR 10876
* defstd.cc (in_segment): Set only_if_ref true for "end".
2009-11-07 02:02:29 +00:00
Joel Brobecker 8aa5642e16 * largefile.m4: New file. 2009-11-07 02:01:29 +00:00
Doug Kwan eb44217c8b 2009-11-06 Doug Kwan <dougkwan@google.com>
* arm.cc (class Reloc_stub): Correct a comment.
	(Target_arm::Target_arm): Initialize arm_input_section_map_.
	(Target_arm::scan_section_for_stubs): New method declaration.
	(Target_arm::do_make_elf_object, Target_arm::do_make_output_section):
	Change methods from private to protected.
	(Target_arm::do_may_relax): New method definition.
	(Target_arm::do_relax, Target_arm::group_sections,
	Target_arm::scan_reloc_for_stub,
	Target_arm::scan_reloc_section_for_stubs): New method declarations.
	(Target_arm::arm_input_section_map_): New data member declaration.
	(Target_arm::scan_reloc_for_stub,
	Target_arm::scan_reloc_section_for_stubs,
	Target_arm::scan_section_for_stubs, Target_arm::group_sections,
	Target_arm::do_relax): New method definitions.
2009-11-07 01:58:06 +00:00
gdbadmin 07d59916b9 *** empty log message *** 2009-11-07 00:00:33 +00:00
Sebastian Pop c48244a521 2009-11-06 Sebastian Pop <sebastian.pop@amd.com>
* opcodes/i386-dis.c (reg_table): Add XOP_8F_TABLE (XOP_09) to
	reg_table[REG_8F][1]: for XOP instructions, ModRM.reg first points to
	B.mm in the RXB.mmmmm byte, and so when B is set, we still should use
	the xop_table.
	(get_valid_dis386): Removed unused condition (from cut/n/paste) for
	XOP instructions.

	* gas/testsuite/gas/i386/x86-64-lwp.s: Updated to also contain
	patterns with r[8-15] registers.
	* gas/testsuite/gas/i386/x86-64-lwp.d: Same.
2009-11-06 23:17:26 +00:00
Alan Modra 7580967a34 daily update 2009-11-06 23:00:04 +00:00
H.J. Lu df6d8da17b 2009-11-06 H.J. Lu <hongjiu.lu@intel.com>
* doc/c-i386.texi: Move .lwp.
2009-11-06 22:59:44 +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
H.J. Lu df856bcc4d 2009-11-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10912
	* ldmain.c (add_DT_NEEDED_for_dynamic): Default to TRUE.
2009-11-06 16:50:59 +00:00
Kai Tietz e468a04693 2009-11-06 Kai Tietz <kai.tietz@onevision.com>
* pe.em (DEFAULT_PSEUDO_RELOC_VERSION): New macro.
        (gld_XXX_before_parse): Set pseudo-relocation default
        version to DEFAULT_PSEUDO_RELOC_VERSION.
        (gldXXX_handle_option): Likewise.
2009-11-06 15:50:56 +00:00