Commit Graph

66971 Commits

Author SHA1 Message Date
Daniel Jacobowitz 60430eff89 * dwarf2read.c (dwarf2_compute_name): Check that the first
argument is a pointer.
2010-09-08 23:34:11 +00:00
Daniel Jacobowitz f1078f667a * dwarf2read.c (read_func_scope, read_structure_type)
(read_common_block): Check for a NULL return from new_symbol.
2010-09-08 23:14:52 +00:00
Rafael Ávila de Espíndola 41a8542a7f 2010-09-08 Rafael Espindola <espindola@google.com>
* Makefile.am (memory_test.stdout): Run readelf with -W
	* Makefile.in: Regenerate.
	* testsuite/memory_test.sh: Make the regexps accept both 32 and 64 bit outputs.
2010-09-08 21:06:53 +00:00
Rafael Ávila de Espíndola 33dbc70199 2010-09-08 Rafael Espindola <espindola@google.com>
* script-sections.cc (Script_sections::add_memory_region): Convert
	field precision to int.
	* script.cc (script_set_section_region, script_set_section_region):
	Convert field precision to int.
2010-09-08 20:08:14 +00:00
Jan Kratochvil 824308520b gdb/
* dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2010-09-08 19:49:28 +00:00
Daniel Jacobowitz c767944bf2 gdb/
* dwarf2read.c (read_structure_type): Move processing of
	fields and member functions from here...
	(process_structure_scope): ... to here.

	gdb/testsuite/
	* gdb.cp/templates.cc (Empty, FunctionArg): New classes.
	(FunctionArg::method): New function.
	(empty, arg): New variables.
	(main): Call arg.method.
	* gdb.cp/templates.exp (test_template_args): New function.
	(do_tests): Call it.
2010-09-08 19:09:43 +00:00
Daniel Jacobowitz 561d38252c * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
the domain type.
	(gnuv3_make_method_ptr): Likewise.
2010-09-08 18:53:34 +00:00
Rafael Ávila de Espíndola 731ca54a85 2010-09-08 Rafael Espindola <espindola@google.com>
* arm.cc (do_finalize_sections): Create the __exidx_start and
	__exdix_end symbols even when the section is missing.
2010-09-08 18:31:35 +00:00
Tom Tromey 9bd89d67b6 * breakpoint.c (create_breakpoint): Add missing _(). 2010-09-08 18:05:42 +00:00
Doug Evans 1d040b0d09 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused. 2010-09-08 17:52:50 +00:00
Ulrich Weigand 27d3a3fc59 * gdb.threads/threxit-hop-specific.exp: Use "continue" instead
of "next" to proceed over pthread_exit call.
2010-09-08 17:49:54 +00:00
Nathan Sidwell 15735687c6 * config/tc-arm.c (create_neon_reg_alias): Deal with case
sensitivity.
2010-09-08 17:49:21 +00:00
Ulrich Weigand 55b7ce7f0a * gdb.base/maint.exp: Avoid wildcards against potentially very long
"maint print statistics" output to prevent expect timeouts.
2010-09-08 17:22:26 +00:00
Tom Tromey 774b6a14e0 Revert:
2010-09-01  Tom Tromey  <tromey@redhat.com>
	* dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
	symtab.h: Revert earlier change.
2010-09-08 17:17:42 +00:00
Nick Clifton 7f8cd84403 * README: Remove claim that MEMORY is not supported.
* expression.cc (script_exp_function_origin)
        (script_exp_function_length): Move from here to ...
        * script.cc: ... here.
        (script_set_section_region, script_add_memory)
        (script_parse_memory_attr, script_include_directive): New
        functions.
        * script-sections.cc
        (class Memory_region): New class.
        (class Output_section_definition): Add set_memory_region,
        set_section_vma, set_section_lma and get_section_name methods.
        (class Script_Sections): Add add_memory_region,
        find_memory_region, find_memory_region_origin,
        find_memory_region_length and set_memory_region methods.
        Have set_section_addresses method walk the list of set memory
        regions.
        Extend the print methos to display memory regions.
        * script-sections.h: Add prototypes for new methods.
        Add enum for MEMORY region attributes.
        * yyscript.y: Add support for parsing MEMORY regions.
        * script-c.h: Add prototypes for new functions.
        * testsuite/Makefile.am: Add test of MEMORY region functionality.
        * testsuite/Makefile.in: Regenerate.
        * testsuite/memory_test.sh: New script.
        * testsuite/memory_test.s: New assembler source file.
        * testsuite/memory_test.t: New linker script.
2010-09-08 16:10:33 +00:00
Nick Clifton ab3e2b4a1c PR gas/11973
* config/tc-mn10300.c (md_convert_frag): Zero out top two bytes of
        long call instruction's displacement.
2010-09-08 11:07:39 +00:00
gdbadmin 2ba6fc7f56 *** empty log message *** 2010-09-08 00:00:33 +00:00
Alan Modra d597a9c12b daily update 2010-09-08 00:00:05 +00:00
DJ Delorie af8b82c474 merge from gcc 2010-09-07 19:28:01 +00:00
H.J. Lu f4923a1611 Add missing files. 2010-09-07 17:52:32 +00:00
Nick Clifton 3dbcc61de6 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
newly cloned section.
        * ld-x86-64/split-by-file.rd: New test.
        * ld-x86-64/split-by-file1.s: New test source code.
        * ld-x86-64/split-by-file2.s: New test source code.
        * ld-x86-64/x86-64.exp: Run the new test.
        * readelf.c (process_section_headers): Mention meaning of 'l'
        section flag for x86-64 targets.
2010-09-07 15:02:17 +00:00
Sami Wagiaalla fc95672973 Fix custom bcache hash regression.
2010-09-09  Sami Wagiaalla  <swagiaal@redhat.com>

	* psymtab.c (add_psymbol_to_bcache): Initialize
	obj_section.
	memset psymbol.ginfo.value to 0.
2010-09-07 15:00:00 +00:00
gdbadmin 23a12aacb2 *** empty log message *** 2010-09-07 00:00:34 +00:00
Alan Modra 8d9d691cdc daily update 2010-09-07 00:00:04 +00:00
Alan Modra 4e1fc5994d * peXXigen.c: Whitespace.
(pe_print_idata): Correct section limit calculations.  Tidy array
	indexing.
	(_bfd_XX_print_ce_compressed_pdata): Don't leak memory.
2010-09-06 23:55:10 +00:00
Jan Kratochvil 809df4465f gdb/testsuite/
* gdb.base/printcmds.exp (test_float_accepted): Import gdb_prompt.
	Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
	(test_float_rejected): ... here.
	* gdb.java/jv-print.exp (test_float_accepted): Import gdb_prompt.
	Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
	(test_float_rejected): ... here.
	* gdb.objc/print.exp (test_float_accepted): Import gdb_prompt.
	Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
	(test_float_rejected): ... here.
	* gdb.pascal/print.exp (test_float_accepted): Import gdb_prompt.
	Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
	(test_float_rejected): ... here.
2010-09-06 15:48:34 +00:00
H.J. Lu bbb3c81a44 Sync bootstrap-lto.mk and dfp.m4 with gcc. 2010-09-06 15:46:09 +00:00
Yao Qi 32fcada322 2010-09-06 Yao Qi <yao@codesourcery.com>
* linux-low.c (linux_kill): Remove unused variable.
	(linux_stabilize_threads): Likewise.
	* server.c (start_inferior): Likewise.
	(queue_stop_reply_callback): Likewise.
	* tracepoint.c (do_action_at_tracepoint): Likewise.
2010-09-06 15:15:50 +00:00
Yao Qi 0cccb68320 2010-09-06 Yao Qi <yao@codesourcery.com>
* linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
	on return.
2010-09-06 15:10:15 +00:00
Pedro Alves 48f9886d47 * infrun.c (resume): Extend comment on ignoring single-step
requests on vfork parents waiting for a vfork-done.
2010-09-06 14:22:07 +00:00
Jan Kratochvil 423ec54cd3 gdb/
* corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
	is NULL.
	* fork-child.c (startup_inferior) <resume_signal>: Use enum
	target_signal type.
	* linux-nat.c (linux_nat_resume): Use target_signal_to_host before
	calling strsignal.  Use enum target_signal type for saved_signo.
	(linux_handle_extended_wait) <signo>: Use enum target_signal type.
	(linux_nat_wait_1): Use enum target_signal type for signo.  Use
	target_signal_to_host before calling strsignal.
	* remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
	TARGET_SIGNAL_0.

gdb/gdbserver/
	* target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
2010-09-06 13:59:03 +00:00
Jan Kratochvil a6eb9bc860 gdb/
* common/signals.c (ANY): Remove.
	(SET): No longer use ANY.

include/gdb/
	* signals.def: Replace all ANY uses by SET with specific numbers.
	* signals.h (ANY): Remove.
2010-09-06 13:34:03 +00:00
Yao Qi 74609e7188 2010-09-06 Yao Qi <yao@codesourcery.com>
* infrunc(resume): When inferior is waiting_for_vfork_done,
	clear step and don't use displaced stepping.
2010-09-06 13:10:28 +00:00
Pedro Alves 12ac6819b6 * Makefile.in (install-only): Replace $IPA_DEPFILES with
"$(IPA_DEPFILES)".
2010-09-06 10:43:58 +00:00
Alan Modra fee65560ca daily update 2010-09-06 00:00:05 +00:00
gdbadmin 1ac5187e94 *** empty log message *** 2010-09-06 00:00:03 +00:00
gdbadmin f40ca12f45 *** empty log message *** 2010-09-05 00:00:33 +00:00
Alan Modra 55a1eecc95 daily update 2010-09-05 00:00:05 +00:00
Daniel Jacobowitz 8464be7681 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
value specially.

	testsuite/
	* gdb.base/watchpoint.exp: Call test_inaccessible_watchpoint
	before disabling hardware watchpoints.
	(test_inaccessible_watchpoint): Check that hardware watchpoints
	are used.  Test for watchpoints on a constant address.
2010-09-04 15:30:09 +00:00
Jan Kratochvil 33d62d6487 gdb/
Code cleanup - split print_stop_reason.
	* infrun.c (enum inferior_stop_reason): Remove.
	(print_stop_reason): Remove by splitting into ...
	(print_exited_reason, print_signal_exited_reason)
	(print_no_history_reason, print_signal_received_reason)
	(print_end_stepping_range_reason): ... these new functions.  Update
	the preceding comment.
	(handle_inferior_event): Change the calls to print_exited_reason,
	print_signal_exited_reason, print_no_history_reason,
	print_signal_received_reason, print_end_stepping_range_reason.
	(handle_step_into_function, handle_step_into_function_backward):
	Change the calls to print_end_stepping_range_reason.
2010-09-04 14:27:46 +00:00
gdbadmin 4ab0ad8083 *** empty log message *** 2010-09-04 00:00:33 +00:00
Alan Modra 2bd082b0eb daily update 2010-09-04 00:00:05 +00:00
H.J. Lu 13f864aed8 Check flag_code instead of use_rela_relocations for 64bit.
gas/

2010-09-03  H.J. Lu  <hongjiu.lu@intel.com>

	PR gas/11974
	* config/tc-i386.c (i386_finalize_immediate): Check flag_code
	instead of use_rela_relocations for 64bit.

gas/testsuite/

2010-09-03  H.J. Lu  <hongjiu.lu@intel.com>

	PR gas/11974
	* gas/i386/immed64.s: Add more movabs tests.
	* gas/i386/immed64.d: Updated.
2010-09-03 17:38:38 +00:00
Jan Kratochvil 18464d4d31 binutils/
* dwarf.c (regname): New declaration.
	(decode_location_expression): Print for registers also regname output.

binutils/testsuite/
	* binutils-all/objdump.W: Update DW_OP_reg5 expected output.

gas/testsuite/
	* gas/elf/dwarf2-1.d: Update DW_OP_reg5 expected output.
	* gas/elf/dwarf2-2.d: Likewise.
	* gas/i386/dw2-compress-1.d: Likewise.
2010-09-03 15:54:32 +00:00
Jan Kratochvil 14dba4b472 gdb/
* breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
	* cli-out.c: Include vec.h.
	(cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
	variable stream, initialize it, use it.
	(cli_redirect): New function comment.  Replace the stream and
	original_stream fields by the new streams field.  Remove the
	original_stream != NULL conditional, assert error on NULL instead.
	(out_field_fmt, field_separator): New variable stream, initialize it, use it.
	(cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
	original_stream fields by the new streams field.
	(cli_out_set_stream): Replace the stream field by the new streams
	field.
	* cli-out.h: Include vec.h.
	(ui_filep): New typedef, call DEF_VEC_P for it.
	(struct cli_ui_out_data): Replace the stream and original_stream
	fields by the new streams field.
	* cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
	NULL first.  Extend the comment.
	(handle_redirections): Call ui_out_redirect with output.
	* python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
	calls outside of the TRY_CATCH block.

gdb/testsuite/
	* gdb.base/ui-redirect.exp: New file.
2010-09-03 15:42:04 +00:00
Richard Henderson c8cbd2725a * gas/cfi/cfi-i386.d: Use objdump -Wf instead of readelf.
* gas/cfi/cfi-i386.s: Remove .type directives.
        * gas/cfi/reloc-pe-i386.d: Adjust test for i386.
2010-09-03 14:57:56 +00:00
Andreas Krebbel 0b51ce0075 libdecnumber/
2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	    * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
	    * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
	    * configure: Regenerate.
	    * aclocal.m4: Regenerate.
config/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	    * dfp.m4: New file.
2010-09-03 13:30:58 +00:00
gdbadmin b04bc5d4a7 GDB 7.2 released. 2010-09-03 01:29:09 +00:00
Alan Modra 1de45804f6 daily update 2010-09-03 00:00:05 +00:00
gdbadmin 9724bc6c3b *** empty log message *** 2010-09-03 00:00:03 +00:00