Commit Graph

60780 Commits

Author SHA1 Message Date
H.J. Lu 3516e9841c bfd/
2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/9945
	* elf.c (assign_section_numbers): Generate symbol table if there
	is any relocation in output.
	(_bfd_elf_compute_section_file_positions): Likewise.

binutils/

2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/9945
	* objcopy.c (copy_object): Clear HAS_RELOC when stripping all.
2009-03-13 13:39:57 +00:00
Nick Clifton ce98a316e9 PR 9934
* elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
        * elflink.c (elf_link_read_relocs_from_section): Use
        NUM_SHDR_ENTRIES.  Gracefully handle the case where there are
        relocs but no symbol table.
        * elf32-arm.c (elf32_arm_check_relocs): Likewise.
2009-03-13 11:34:43 +00:00
Vladimir Prus f7c60c5e2b * gdb.mi/mi-cli.exp: Adjust for output difference in
sync and async modes.
2009-03-13 10:55:08 +00:00
Nick Clifton 9a2ee7fcfd * lib/ld-lib.exp (run_dump_test): Add verbose to list of globals.
Replace call to verbose_eval with a test of verbose level.  If
        greater than 2 always dump the contents of the dumpfile.  If equal
        to 2 only dump the contents if the regexp diff failed.
        (proc verbose_eval): Delete.
2009-03-13 09:00:59 +00:00
Nathan Sidwell 32de4b9db9 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
GPLv3, update license URL.
2009-03-13 07:57:47 +00:00
Joel Brobecker 24f818742e * source.c (source_full_path_of): Constify parameter filename.
* defs.h (source_full_path_of): Update declaration accordingly.
2009-03-13 02:34:13 +00:00
Joel Brobecker e15780428b * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
        Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
2009-03-13 02:30:55 +00:00
Joel Brobecker 383ace49f8 * gdb.ada/ptype_arith_binop.exp: Remove some commented-out code
that was checked in by mistake. Remove loading of ada.exp, since
        this is not necessary in this case.
2009-03-13 02:24:38 +00:00
Joel Brobecker 4ce102af1e * gdb.ada/ptype_arith_binop.exp: New testcase. 2009-03-13 02:15:36 +00:00
Joel Brobecker 9c2be529f5 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
2009-03-13 02:15:01 +00:00
Joel Brobecker 2360f94a42 Fix the author name in the last entry. 2009-03-13 01:52:33 +00:00
Joel Brobecker e22dccb54c * ada-tasks.c (ada_task_is_alive): Move up and make static.
* ada-lang.h (ada_task_is_alive): Remove declaration.
2009-03-13 01:51:17 +00:00
Joel Brobecker facc390f02 * ada-lang.c (ada_delta): Change the type of numerators and
denominators to DOUBLEST, as they may not fit into a long.
        (scaling_factor): Ditto.
2009-03-13 01:28:05 +00:00
Joel Brobecker 5c20fa2ae3 Improve the last changelog entry. 2009-03-13 01:13:33 +00:00
Joel Brobecker 47e729a854 * language.c (lang_bool_type): Return a builtin bool type in the
Ada case.
2009-03-13 01:12:21 +00:00
Joel Brobecker b79819baf7 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
types, if we are unable to determine the actual symbol type
        from its tag, then use the static approximation instead.
2009-03-13 00:57:52 +00:00
gdbadmin ef6f706809 *** empty log message *** 2009-03-13 00:00:32 +00:00
Alan Modra f8abd13f3d daily update 2009-03-13 00:00:04 +00:00
Joel Brobecker 529a2aefc2 * gdb.ada/mod_from_name: New testcase. 2009-03-12 23:42:05 +00:00
Joel Brobecker 0056e4d574 Fix crash printing packed record with packed array.
* ada-lang.c (ada_modulus_from_name): New function.
        (ada_modulus): In the case where the type length is bigger than
        the size of the type used to hold the bounds, try determining
        the modulus from the type name.
        (ada_value_primitive_packed_val): Fix bug in the computation of
        ntarg causing an out-of-buffer invalid access.
2009-03-12 23:41:16 +00:00
Joel Brobecker 8a38181c39 * gdb.ada/tick_last_segv: New testcase. 2009-03-12 23:19:35 +00:00
Joel Brobecker 3c513ee699 Fix segfault when printing short_integer'last.
* ada-lang.c (ada_find_any_type): Search in the primitive types
        if a symbol could not be found.
2009-03-12 23:17:33 +00:00
Joel Brobecker 680f3fadee * ada-tasks.c (task_states,long_task_states): Add new states
Activating and Acceptor_Delay_Sleep.  Update the description
            of state Acceptor_Sleep.
2009-03-12 22:53:38 +00:00
Joel Brobecker 2ab1c2d936 Fix a build failure on Darwin following some changes in
the profile of some target_ops methods.

        * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
        where missing.
        (darwin_stop_inferior, darwin_detach): Likewise.
2009-03-12 22:29:30 +00:00
Vladimir Prus 11436dee51 * gdb.mi/mi-cli.exp: Remove debug print. 2009-03-12 20:16:06 +00:00
Vladimir Prus 1f31650a61 Include token in ^running notification for CLI commands.
* mi/mi-main.c (mi_execute_command): Set current_token here.
        (mi_cmd_execute): Do not set current_token here.
2009-03-12 20:08:04 +00:00
Vladimir Prus 4333ada327 Fix MI timings.
* mi/mi-main.c (mi_print_timing_maybe): New.
        (captured_mi_execute_command): Simplify. Output timings to
        CLI commands, too.
        (mi_execute_async_cli_command): Do not print timings.
        * mi/mi-main.h (mi_print_timing_maybe): Declare.
        * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
2009-03-12 19:54:54 +00:00
Joel Brobecker c5933f6db9 * xcoffread.c (process_linenos): Check if the line in the
include table refers to the main source file and, if so,
        add them to the main subfile.
2009-03-12 17:56:20 +00:00
Joel Brobecker c7660128e8 Fix a build failure on AIX introduced after a change in the profile
of some of the "methods" in the target_ops structure.
        * aix-thread.c: Add missing target_ops parameter throughout.

        Implement Ada task switching on AIX.
        * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
        (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
2009-03-12 17:44:29 +00:00
H.J. Lu c4fb387b7c 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
PR ld/9938
	* elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
	to check ___tls_get_addr.

	* elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
	strncmp to check __tls_get_addr.
2009-03-12 17:13:41 +00:00
Andrew Stubbs 53638231ad 2009-03-12 Andrew Stubbs <ams@codesourcery.com>
* dwarf2.c (read_section): Always check the offset, even when the
	section has been read before.
2009-03-12 10:57:18 +00:00
gdbadmin e671f9d32e *** empty log message *** 2009-03-12 00:00:33 +00:00
Alan Modra b937c27c4e daily update 2009-03-12 00:00:09 +00:00
Joseph Myers c43a529852 * binutils-all/objdump.W, binutils-all/objdump.s: Don't match
literal "tmpdir/" in expected output.
2009-03-11 22:49:54 +00:00
Daniel Jacobowitz c5bc3a77a2 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
value_mark and value_free_to_mark.
	* objfiles.c (free_objfile): Call objfile_free_data before
	freeing the BFD.
2009-03-11 20:26:02 +00:00
H.J. Lu 09e8c3bf89 2009-03-11 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
	comments.
2009-03-11 16:42:23 +00:00
Chris Demetriou 36e4dce69d [bfd/ChangeLog]
2009-03-11  Chris Demetriou  <cgd@google.com>

	* bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
	* bfd-in2.h: Regenerate.
	* archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
	flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
	mode.
	(bsd_write_armap): Likewise.
	(_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
	flag is set, do nothing.
	(coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
	for timestamp.

[binutils/ChangeLog]
2009-03-11  Chris Demetriou  <cgd@google.com>

	* ar.c (deterministic): New global variable.
	(main): Recognize new 'D' option, which enables 'deterministic mode'.
	(usage): Document new 'D' option.
	(write_archive): Set BFD_DETERMINISTIC_OUTPUT in output archive's
	flags if deterministic mode was requested.
	* doc/binutils.texi (ar): Document deterministic mode ('D' option).

[binutils/testsuite/ChangeLog]
2009-03-11  Chris Demetriou  <cgd@google.com>

	* binutils-all/ar.exp (deterministic_archive): New test.
2009-03-11 04:36:40 +00:00
Hans-Peter Nilsson a07dbd482b * config/tc-cris.c (cris_create_short_jump): Remove prototype.
Rename, changing all callers, to...
	(md_create_short_jump): Adjust head comment.  Assert
	word-sized-branch distance for v32.  Bail out calling as_fatal for
	compatibility mode here.
	(md_create_long_jump): ...not here.
	* config/tc-cris.h (md_create_short_jump): Do not define.
2009-03-11 03:22:44 +00:00
Hans-Peter Nilsson 5918af22bb * gas/cris/rd-bkw5.d, gas/cris/rd-bkw5.s, gas/cris/rd-bkw5b.d,
gas/cris/rd-bkw5bpic.d, gas/cris/rd-bkw5bv32.d,
	gas/cris/rd-bkw5bv32pic.d, gas/cris/rd-bkw5pic.d,
	gas/cris/rd-bkw5v32.d, gas/cris/rd-bkw5v32pic.d: New tests.
2009-03-11 03:17:32 +00:00
Ulrich Weigand 9b175a76d1 * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
used to update stack pointer.
2009-03-11 00:18:02 +00:00
gdbadmin d6b7435fbe *** empty log message *** 2009-03-11 00:00:34 +00:00
Alan Modra 881e1e5652 daily update 2009-03-11 00:00:04 +00:00
Hans-Peter Nilsson df354742a1 * gas/cris/rd-bkw4.d, gas/cris/rd-bkw4v32.d, gas/cris/rd-bkw4.s:
New test.
2009-03-10 14:40:36 +00:00
Hans-Peter Nilsson 187af7df3b * write.c (write_object_file) [!WORKING_DOT_WORD]: When patching
the jump table for multiple overflowing entries with the same
	target, handle base symbols being different.
	(relax_segment) <case rs_broken_word, second loop>: Whenever a
	single entry overflows, arrange to redirect all entries with the
	same target.
2009-03-10 14:38:03 +00:00
Nick Clifton 34dd024a28 Add Spanish translation to gold.
Update Indonesian translation for opcodes.
2009-03-10 09:21:01 +00:00
Hui Zhu 55518360d8 * disasm.c (gdb_disassembly): Remove unused argument
"line_num".
	* disasm.h (gdb_disassembly): Ditto.
	* cli/cli-cmds.c (print_disassembly): Ditto.
	* mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
2009-03-10 08:53:53 +00:00
Alan Modra 69fe9ce501 include/opcode/
* ppc.h (ppc_parse_cpu): Declare.
opcodes/
	* ppc-dis.c: Include "opintl.h".
	(struct ppc_mopt, ppc_opts): New.
	(ppc_parse_cpu): New function.
	(powerpc_init_dialect): Use it.
	(print_ppc_disassembler_options): Dump options from ppc_opts.
	Internationalize message.
gas/
	* config/tc-ppc.c (parse_cpu): Delete.
	(md_parse_option, ppc_machine): Use ppc_parse_cpu.
gas/testsuite/
	* gas/ppc/altivec_and_spe.d (objdump): Add -Maltivec.
	* gas/ppc/common.d: Adjust for -Mcom not including -Mppc.
2009-03-10 06:53:46 +00:00
H.J. Lu 0691f7afbc binutils/
2009-03-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/9933
	* objcopy.c (filter_symbols): Properly handle common symbols
	in relocatable file.

binutils/testsuite/

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

	PR binutils/9933
	* binutils-all/copy-4.d: New.

	* binutils-all/objcopy.exp: Run copy-4.
2009-03-10 00:48:10 +00:00
gdbadmin 47d6e8f1cc *** empty log message *** 2009-03-10 00:00:33 +00:00
Alan Modra 7598b09291 daily update 2009-03-10 00:00:08 +00:00