binutils-gdb.git
16 years agoFix date.
Pedro Alves [Fri, 27 Jun 2008 11:32:17 +0000 (11:32 +0000)]
Fix date.

16 years ago Use ptid_t.tid to store thread ids instead of ptid_t.pid.
Pedro Alves [Fri, 27 Jun 2008 11:31:40 +0000 (11:31 +0000)]
Use ptid_t.tid to store thread ids instead of ptid_t.pid.

* remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
globals.
(general_thread, continue_thread): Change type to ptid_t.
(record_currthread): Take a ptid_t parameter instead of an
integer.
(MAGIC_NULL_PID): Delete.
(set_thread): Take a ptid_t parameter and adjust.
(set_general_thread, set_continue_thread): New.
(remote_thread_alive, remote_newthread_step)
(remote_current_thread, remote_find_new_threads)
(remote_threads_info, remote_start_remote, remote_vcont_resume)
(remote_resume_1, remote_wait, extended_remote_create_inferior_1)
(threadalive_test, remote_pid_to_str)
(remote_get_thread_local_address): Adjust.
(_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
and any_thread_ptid.

16 years ago*** empty log message ***
gdbadmin [Fri, 27 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Fri, 27 Jun 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
Jan Kratochvil [Thu, 26 Jun 2008 19:20:42 +0000 (19:20 +0000)]
* configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
* configure: Regenerated.

16 years ago * dwarf2read.c (read_attribute_value): Treat size attribute
Joel Brobecker [Thu, 26 Jun 2008 19:08:10 +0000 (19:08 +0000)]
    * dwarf2read.c (read_attribute_value): Treat size attribute
        values of 0xffffffff as if the attribute value was zero.

16 years ago * linux-nat.c: Add description of overall logic.
Vladimir Prus [Thu, 26 Jun 2008 17:40:23 +0000 (17:40 +0000)]
* linux-nat.c: Add description of overall logic.

16 years ago * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
Daniel Jacobowitz [Thu, 26 Jun 2008 15:51:28 +0000 (15:51 +0000)]
* Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
(gdb_stdint_h, gdb_stdint.h, stamp-int): Delete.  Remove
all dependencies on $(gdb_stdint_h).
(distclean): Do not delete gdb_stdint.h.
* acinclude.m4: Do not use stdint.m4.
* configure.ac: Set GNULIB_STDINT_H.  Remove tests for stdint.h,
uintptr_t, and gdb_stdint.h.
* defs.h: Include <stdint.h>.
* gdb_thread_db.h: Assume stdint.h is already included.
* breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
include gdb_stdint.h.
* configure, config.in: Regenerate.

16 years ago * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
Joseph Myers [Thu, 26 Jun 2008 15:38:39 +0000 (15:38 +0000)]
* ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
decimal floating-point values in GPRs for soft-float.
(do_ppc_sysv_return_value): Handle returning decimal
floating-point values in GPRs for soft-float.

16 years ago * target.c (target_read_until_error): New.
Vladimir Prus [Thu, 26 Jun 2008 15:10:48 +0000 (15:10 +0000)]
* target.c (target_read_until_error): New.
        * target.h (target_read_until_error): Declare.
        * mi/mi-main.c (mi_cmd_data_read_memory): Use
        target_read_until_error.

16 years agodaily update
Alan Modra [Thu, 26 Jun 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Thu, 26 Jun 2008 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago2008-06-25 Cary Coutant <ccoutant@google.com>
Cary Coutant [Wed, 25 Jun 2008 17:10:08 +0000 (17:10 +0000)]
2008-06-25  Cary Coutant  <ccoutant@google.com>

* fileread.cc (File_read::make_view): Assert on zero-length view.
* object.cc (Sized_relobj::do_read_symbols): Don't try to read
symbol table when there are no symbols to read.

16 years agogas/
Peter Bergner [Wed, 25 Jun 2008 16:49:03 +0000 (16:49 +0000)]
gas/
* config/tc-ppc.c (parse_cpu): Handle -m464.
(md_show_usage): Likewise.

opcodes/
* ppc-dis.c (powerpc_init_dialect): Handle -M464.
(print_ppc_disassembler_options): Likewise.
* ppc-opc.c (PPC464): Define.
(powerpc_opcodes): Add mfdcrux and mtdcrux.

16 years ago/gas:
Eric B. Weddington [Wed, 25 Jun 2008 16:19:11 +0000 (16:19 +0000)]
/gas:
2008-06-24  Eric B. Weddington  <eric.weddington@atmel.com>

Add support for ATtiny13A.
* config/tc-avr.c (mcu_types): Add attiny13a.
* doc/c-avr.texi: Likewise.

16 years ago * lib/gdb.exp (prepare_for_testing): Do not drop the OPTIONS argument.
Jan Kratochvil [Wed, 25 Jun 2008 15:52:15 +0000 (15:52 +0000)]
* lib/gdb.exp (prepare_for_testing): Do not drop the OPTIONS argument.

16 years ago Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
Jan Kratochvil [Wed, 25 Jun 2008 15:49:20 +0000 (15:49 +0000)]
Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
* c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
after the DECFLOAT detection to fix a memory leak.  Remove the
redundant NUM initialization.  Protect the DECFLOAT detection memory
access before the P block.  Restore the P memory content for the
DECFLOAT detection.

16 years agoRevert accidental commit.
Daniel Jacobowitz [Wed, 25 Jun 2008 15:21:21 +0000 (15:21 +0000)]
Revert accidental commit.

16 years ago Kill the return value for all MI command functions.
Vladimir Prus [Wed, 25 Jun 2008 15:15:42 +0000 (15:15 +0000)]
Kill the return value for all MI command functions.
* mi/mi-cmds.h (enum mi_cmd_result): Remove.
(mi_cmd_argv_ftype): Change return type to void.

* mi/mi-main.c: Adjust all function that implement
MI commands to return nothing.
(struct captured_mi_execute_command_actions):
Remove the rc field.
(mi_cmd_execute): Return nothing.
(mi_execute_async_cli_command): Return nothing.
(mi_cmd_exec_interrupt): Don't print ^done here.
(mi_cmd_target_select): Don't print ^connected here.
(captured_mi_execute_command): Don't check for MI_CMD_DONE.
Special-case -target-select and output ^connected, not ^done.

* mi/mi-cmd-break.c: Adjust.
* mi/mi-cmd-disas.c: Adjust.
* mi/mi-cmd-env.c: Adjust.
* mi/mi-cmd-file.c: Adjust.
* mi/mi-cmd-stack.c: Adjust.
* mi/mi-cmd-target.c: Adjust.
* mi/mi-cmd-var.c: Adjust.
* mi/mi-interp.c: Adjust.
* mi/mi-symbol-cmds.c: Adjust.

16 years ago Emit ^running via observer.
Vladimir Prus [Wed, 25 Jun 2008 14:32:34 +0000 (14:32 +0000)]
Emit ^running via observer.
* mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
        ^running here.
        (mi_on_resume): Print ^running if not previously output.
        * mi/mi-main.c (running_result_record_printed): New.
        (captured_mi_execute_command): Reset
        running_result_record_printed.  Use running_result_record_printed
        to decide if we should skip ^done.
        (mi_execute_async_cli_command): Don't print ^running here.
        * mi/mi-main.h (current_token, running_result_record_printed):
        Declare.

16 years ago * elf32-arm.c (STUB_ENTRY_NAME): Define.
Daniel Jacobowitz [Wed, 25 Jun 2008 14:28:48 +0000 (14:28 +0000)]
* elf32-arm.c (STUB_ENTRY_NAME): Define.
(arm_thumb_thumb_long_branch_stub): Use bx instead of b.n.
(arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of
R_ARM_ABS32.
(struct elf32_arm_stub_hash_entry): Add output_name.
(arm_build_one_stub): Move offsets into the offset argument
of _bfd_final_link_relocate.  Correct offset for
arm_thumb_arm_v4t_stub_long_branch.
(elf32_arm_size_stubs): Set stub_entry->output_name.
(elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym.
Update all callers.
(elf32_arm_output_stub_sym): New.
(arm_map_one_stub): Correct formatting.  Use elf32_arm_output_stub_sym.

* ld-arm/farcall-arm-arm-be8.d, ld-arm/farcall-arm-arm-pic-veneer.d,
ld-arm/farcall-arm-arm.d, ld-arm/farcall-arm-thumb-blx-pic-veneer.d,
ld-arm/farcall-arm-thumb-blx.d, ld-arm/farcall-arm-thumb-pic-veneer.d,
ld-arm/farcall-arm-thumb.d, ld-arm/farcall-group-size2.d,
ld-arm/farcall-group.d, ld-arm/farcall-mix.d, ld-arm/farcall-mix2.d,
ld-arm/farcall-thumb-arm-blx-pic-veneer.d,
ld-arm/farcall-thumb-arm-blx.d, ld-arm/farcall-thumb-arm.d,
ld-arm/farcall-thumb-thumb-blx-pic-veneer.d,
ld-arm/farcall-thumb-thumb-blx.d, ld-arm/farcall-thumb-thumb-m.d,
ld-arm/thumb2-bl-as-thumb1-bad.d, ld-arm/thumb2-bl-bad.d: Update for
stub symbols and stub corrections.

16 years agodaily update
Alan Modra [Wed, 25 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Wed, 25 Jun 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago2008-06-24 Michael Snyder <msnyder@specifix.com>
Michael Snyder [Tue, 24 Jun 2008 19:30:18 +0000 (19:30 +0000)]
2008-06-24  Michael Snyder  <msnyder@specifix.com>

* infrun.c (_initialize_infrun): White space and typo fix.

16 years ago * version.cc (version_string): Bump to 1.7
Craig Silverstein [Tue, 24 Jun 2008 06:14:58 +0000 (06:14 +0000)]
* version.cc (version_string): Bump to 1.7

16 years agomerge from gcc
DJ Delorie [Tue, 24 Jun 2008 03:01:29 +0000 (03:01 +0000)]
merge from gcc

16 years ago* win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
Christopher Faylor [Tue, 24 Jun 2008 02:33:17 +0000 (02:33 +0000)]
* win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
(do_initial_win32_stuff): Fix problem with inability to set breakpoints when
first loading DLL with "dll" command.

16 years ago * write.c (relax_segment <rs_org>): Include current stretch
Alan Modra [Tue, 24 Jun 2008 01:49:36 +0000 (01:49 +0000)]
* write.c (relax_segment <rs_org>): Include current stretch
value when calculating whether .org is backwards.

16 years ago*** empty log message ***
gdbadmin [Tue, 24 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Tue, 24 Jun 2008 00:00:07 +0000 (00:00 +0000)]
daily update

16 years ago * fix wrong entry dates
Pierre Muller [Mon, 23 Jun 2008 06:54:36 +0000 (06:54 +0000)]
 * fix wrong entry dates

16 years ago*** empty log message ***
gdbadmin [Mon, 23 Jun 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago*** empty log message ***
gdbadmin [Sun, 22 Jun 2008 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago*** empty log message ***
gdbadmin [Sat, 21 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago* gas/mips/e32-rel2.d: Add -march=mips1 for as.
Chao-ying Fu [Fri, 20 Jun 2008 18:34:00 +0000 (18:34 +0000)]
* gas/mips/e32-rel2.d: Add -march=mips1 for as.

16 years agogdb/gdbserver/
Carlos O'Donell [Fri, 20 Jun 2008 16:01:42 +0000 (16:01 +0000)]
gdb/gdbserver/

2008-06-20  Carlos O'Donell  <carlos@codesourcery.com>

* server.c (gdbserver_usage): Mention --version.

16 years ago * gnu-nat.c (proc_string): Use capital T for "Thread".
Pierre Muller [Fri, 20 Jun 2008 06:51:34 +0000 (06:51 +0000)]
* gnu-nat.c (proc_string): Use capital T for "Thread".

16 years ago*** empty log message ***
gdbadmin [Fri, 20 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago* basic_blocks.c: Always include "gprof.h" first.
Andreas Schwab [Thu, 19 Jun 2008 16:30:29 +0000 (16:30 +0000)]
* basic_blocks.c: Always include "gprof.h" first.
* cg_arcs.c: Likewise.
* cg_dfn.c: Likewise.
* cg_print.c: Likewise.
* corefile.c: Likewise.
* gprof.c: Likewise.
* hist.c: Likewise.
* search_list.c: Likewise.
* sym_ids.c: Likewise.
* utils.c: Likewise.

16 years ago * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
Alan Modra [Thu, 19 Jun 2008 16:16:58 +0000 (16:16 +0000)]
* elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
non-branch insns.

16 years agoupdate
Alan Modra [Thu, 19 Jun 2008 16:15:17 +0000 (16:15 +0000)]
update

16 years ago * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
Alan Modra [Thu, 19 Jun 2008 16:14:53 +0000 (16:14 +0000)]
* emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
build overlay stubs" a fatal error.

16 years ago * elf32-spu.c (build_stub): Allow wraparound on stub branches.
Alan Modra [Thu, 19 Jun 2008 16:14:15 +0000 (16:14 +0000)]
* elf32-spu.c (build_stub): Allow wraparound on stub branches.
(allocate_spuear_stubs, build_spuear_stubs): Return value from
count_stub/build_stub.
(spu_elf_build_stubs): Correct location of stub reloc error message.

16 years ago2008-06-19 Eric Blake <ebb9@byu.net>
Eric Blake [Thu, 19 Jun 2008 15:17:56 +0000 (15:17 +0000)]
2008-06-19  Eric Blake  <ebb9@byu.net>

Adjust strsignal to POSIX 200x prototype.
* strsignal.c (strsignal): Remove const.

16 years ago * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
Pierre Muller [Thu, 19 Jun 2008 06:36:45 +0000 (06:36 +0000)]
* win32-nat.c (win32_pid_to_str): Use capital T for "Thread".

16 years ago*** empty log message ***
gdbadmin [Thu, 19 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Thu, 19 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.
Ian Lance Taylor [Wed, 18 Jun 2008 23:20:43 +0000 (23:20 +0000)]
* src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.

16 years ago2008-06-18 Craig Silverstein <csilvers@google.com>
Craig Silverstein [Wed, 18 Jun 2008 22:32:37 +0000 (22:32 +0000)]
2008-06-18  Craig Silverstein  <csilvers@google.com>

* powerpc.cc (Powerpc_relocate_functions::addr16_ha): cast
constant 0xFFFF to type Valtype.
(Powerpc_relocate_functions::rel16_ha): Likewise.

16 years ago * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
Joel Brobecker [Wed, 18 Jun 2008 21:30:50 +0000 (21:30 +0000)]
    * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
        the target cannot run.

16 years ago * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
Joel Brobecker [Wed, 18 Jun 2008 21:26:07 +0000 (21:26 +0000)]
    * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
        we're attaching to a running process.

16 years ago2008-06-18 Ian Lance Taylor <iant@google.com>
Ian Lance Taylor [Wed, 18 Jun 2008 20:06:36 +0000 (20:06 +0000)]
2008-06-18  Ian Lance Taylor  <iant@google.com>

* src-release (BINUTILS_SUPPORT_DIRS): Add depcomp.

16 years ago elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.
M R Swami Reddy [Wed, 18 Jun 2008 11:12:54 +0000 (11:12 +0000)]
elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.

16 years ago elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.
M R Swami Reddy [Wed, 18 Jun 2008 11:08:19 +0000 (11:08 +0000)]
  elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.

16 years ago common.h (EM_CR16): Correct value.
M R Swami Reddy [Wed, 18 Jun 2008 11:04:29 +0000 (11:04 +0000)]
  common.h (EM_CR16): Correct value.
  (EM_CR16): Rename to EM_CR16_OLD.

16 years ago common.h (EM_CR16): Correct value.
M R Swami Reddy [Wed, 18 Jun 2008 11:03:03 +0000 (11:03 +0000)]
   common.h (EM_CR16): Correct value.
   (EM_CR16): Rename to EM_CR16_OLD.

16 years ago Updated the readelf with Add EM_CR16_OLD.
M R Swami Reddy [Wed, 18 Jun 2008 11:00:49 +0000 (11:00 +0000)]
 Updated the readelf with Add EM_CR16_OLD.

16 years ago (guess_is_rela): Add EM_CR16_OLD.
M R Swami Reddy [Wed, 18 Jun 2008 10:49:50 +0000 (10:49 +0000)]
    (guess_is_rela): Add EM_CR16_OLD.
        (dump_relocations): Likewise.
        (get_machine_name): Likewise.
        (is_32bit_abs_reloc): Likewise.

16 years ago * win32-nat.c (handle_load_dll): Give dll name and load address
Pierre Muller [Wed, 18 Jun 2008 06:27:34 +0000 (06:27 +0000)]
* win32-nat.c (handle_load_dll): Give dll name and load address
if debug_events is on.
(handle_unload_dll): Likewise.

16 years ago * output.h (Output_section::Input_section): Initialize p2align_ to
Ian Lance Taylor [Wed, 18 Jun 2008 04:39:41 +0000 (04:39 +0000)]
* output.h (Output_section::Input_section): Initialize p2align_ to
zero for Output_section_data constructors.
(Output_section::Input_section::addralign): If not an input
section, return the alignment of the Output_section_data.
* testsuite/copy_test.cc: New file.
* testsuite/copy_test_1.cc: New file.
* testsuite/copy_test_2.cc: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add copy_test.
(copy_test_SOURCES, copy_test_DEPENDENCIES): New variables.
(copy_test_LDFLAGS, copy_test_LDADD): New variables.
(copy_test_1_pic.o, copy_test_1.so): New targets.
(copy_test_2_pic.o, copy_test_2.so): New targets.
* testsuite/Makefile.in: Rebuild.

16 years ago * script-sections.cc (Script_sections::place_orphan): Initialize
Ian Lance Taylor [Wed, 18 Jun 2008 04:15:52 +0000 (04:15 +0000)]
* script-sections.cc (Script_sections::place_orphan): Initialize
local variable exact.

16 years agomerge from gcc
DJ Delorie [Wed, 18 Jun 2008 03:36:03 +0000 (03:36 +0000)]
merge from gcc

16 years agodaily update
Alan Modra [Wed, 18 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Wed, 18 Jun 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * configure: Regenerate.
Ralf Wildenhues [Tue, 17 Jun 2008 23:14:44 +0000 (23:14 +0000)]
* configure: Regenerate.

config/
* override.m4: Use m4_version_prereq throughout.
(_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE): Backport from git
Autoconf: output pwd along with fatal errors, so the right
config.log file is hinted at more prominently.
(PARSE_ARGS): Push setting of ac_pwd in this diversion.
(_GCC_AUTOCONF_VERSION): New, define to 2.59 if not defined.
(_GCC_AUTOCONF_VERSION_CHECK): New macro, require use of Autoconf
version _GCC_AUTOCONF_VERSION throughout the tree.
(m4_wrap): New override, fix for Posix semantics of m4wrap.

binutils/
* configure: Regenerate.

opcodes/
* configure: Regenerate.

bfd/
* configure: Regenerate.

gas/
* configure: Regenerate.

gprof/
* configure: Regenerate.

ld/
* config.in: Regenerate.
* configure: Regenerate.

16 years ago * app.c (do_scrub_chars): Do not UNGET an EOF value.
Nick Clifton [Tue, 17 Jun 2008 16:01:28 +0000 (16:01 +0000)]
    * app.c (do_scrub_chars): Do not UNGET an EOF value.

        * ti.h (GET_SCNHDR_NLNNO): Provide an alternative version of this
        macro which does not trigger an array bounds warning in gcc.
        (PUT_SCNHDR_NLNNO): Likewise.
        (GET_SCNHDR_FLAGS): Likewise.
        (PUT_SCNHDR_FLAGS): Likewise.
        (GET_SCNHDR_PAGE): Likewise.
        (PUT_SCNHDR_PAGE): Likewise.

16 years ago* m32c.opc (BRK, GDBBRK): Remove debug logic.
DJ Delorie [Tue, 17 Jun 2008 00:34:37 +0000 (00:34 +0000)]
* m32c.opc (BRK, GDBBRK): Remove debug logic.
* main.c (main): Add option to set raw console.
* mem.h (m32c_use_raw_console): Declare.
* mem.c (m32c_sim_restore_console): Only restore console if it's
been previously set.
(m32c_use_raw_console): Define.
(mem_get_byte): Set raw console if m32c_use_raw_console is set.

16 years ago*** empty log message ***
gdbadmin [Tue, 17 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Tue, 17 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * configure.ac: Set TOPLEVEL_CONFIGURE_ARGUMENTS early, when
Ralf Wildenhues [Mon, 16 Jun 2008 21:38:13 +0000 (21:38 +0000)]
* configure.ac: Set TOPLEVEL_CONFIGURE_ARGUMENTS early, when
"$@" is still intact with both Autoconf 2.59 and 2.62.
* configure: Regenerate.

16 years ago * Makefile.tpl: Fix comment errors.
Ralf Wildenhues [Mon, 16 Jun 2008 21:30:58 +0000 (21:30 +0000)]
* Makefile.tpl: Fix comment errors.
* Makefile.in: Regenerate.

16 years agomerge from gcc
DJ Delorie [Mon, 16 Jun 2008 18:15:49 +0000 (18:15 +0000)]
merge from gcc

16 years agobfd/
Alan Modra [Mon, 16 Jun 2008 16:16:31 +0000 (16:16 +0000)]
bfd/
* elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space.
(spu_elf_check_vma): Add extra_stack_space param, copy to htab.
(spu_elf_auto_overlay): Use it.
(RECURSE_UNMARK): Define as 0.
(unmark_overlay_section): Heed RECURSE_UNMARK.
* elf32-spu.h (spu_elf_check_vma): Update prototype.
ld/
* emultempl/spuelf.em (extra_stack_space): New variable.
(gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
* emultempl/spu_ovl.S: Mask interrupts during dma and update of
overlay manager structures.
* emultempl/spu_ovl.o: Regenerate.

16 years ago * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
Hans-Peter Nilsson [Mon, 16 Jun 2008 15:10:13 +0000 (15:10 +0000)]
* ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
mention it as being special for global symbols.

16 years ago PR gas/6607
Hans-Peter Nilsson [Mon, 16 Jun 2008 15:07:01 +0000 (15:07 +0000)]
PR gas/6607
* ld-mmix/loc10.d, ld-mmix/loc10.s, ld-mmix/loc10m.d, ld-mmix/loc8.d,
ld-mmix/loc8.s, ld-mmix/loc8m.d, ld-mmix/loc9.d, ld-mmix/loc9.s,
ld-mmix/loc9m.d: New tests.

16 years ago PR gas/6607
Hans-Peter Nilsson [Mon, 16 Jun 2008 15:05:55 +0000 (15:05 +0000)]
PR gas/6607
* gas/mmix/err-loc-10.s, gas/mmix/err-loc-9.s, gas/mmix/loc-6.d,
gas/mmix/loc-6.s, gas/mmix/loc-7.d, gas/mmix/loc-7.s: New tests.

16 years ago PR gas/6607
Hans-Peter Nilsson [Mon, 16 Jun 2008 15:04:41 +0000 (15:04 +0000)]
PR gas/6607
* config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
text_section.  Do the "stepping backwards" test for text_section
using unsigned operands.

16 years agodaily update
Alan Modra [Mon, 16 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Mon, 16 Jun 2008 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

16 years agomerge from gcc
DJ Delorie [Sun, 15 Jun 2008 18:33:29 +0000 (18:33 +0000)]
merge from gcc

16 years ago*** empty log message ***
gdbadmin [Sun, 15 Jun 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sun, 15 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Sat, 14 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sat, 14 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago Don't suppress *running when doing finish.
Vladimir Prus [Fri, 13 Jun 2008 20:19:19 +0000 (20:19 +0000)]
Don't suppress *running when doing finish.
        * infcall.c (call_function_by_hand): Set both
        suppress_resume_observer and suppress_stop_observer.
        * infcmd.c (suppress_run_stop_observers): Split into...
        (suppress_resume_observer, suppress_stop_observer): ...those.
        (finish_command_continuation): Clear suppress_stop_observer.
        (finish_command): Set suppress_stop_observer.
        * inferior.h (suppress_run_stop_observers): Split into...
        (suppress_resume_observer, suppress_stop_observer): ...those.
        * infrun.c (normal_stop): Check for suppress_stop_observer.
        * thread.c (set_running): Check for suppress_resume_observer.

16 years agoinclude/opcode/
Peter Bergner [Fri, 13 Jun 2008 20:16:00 +0000 (20:16 +0000)]
include/opcode/
* ppc.h (ppc_cpu_t): New typedef.
(struct powerpc_opcode <flags>): Use it.
(struct powerpc_operand <insert, extract>): Likewise.
(struct powerpc_macro <flags>): Likewise.

gas/
* config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
(ppc_insert_operand): Likewise.
(ppc_machine): Likewise.
* config/tc-ppc.h: #include "opcode/ppc.h"
(struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
(ppc_cpu): Update extern decl.

opcodes/
* ppc-dis.c (print_insn_powerpc): Update prototye to use new
ppc_cpu_t typedef.
(struct dis_private): New.
(POWERPC_DIALECT): New define.
(powerpc_dialect): Renamed to...
(powerpc_init_dialect): This.  Update to use ppc_cpu_t and
struct dis_private.
(print_insn_big_powerpc): Update for using structure in
info->private_data.
(print_insn_little_powerpc): Likewise.
(operand_value_powerpc): Change type of dialect param to ppc_cpu_t.
(skip_optional_operands): Likewise.
(print_insn_powerpc): Likewise.  Remove initialization of dialect.
* ppc-opc.c (extract_bat, extract_bba, extract_bdm, extract_bdp,
extract_bo, extract_boe, extract_fxm, extract_mb6, extract_mbe,
extract_nb, extract_nsi, extract_rbs, extract_sh6, extract_spr,
extract_sprg, extract_tbr insert_bat, insert_bba, insert_bdm,
insert_bdp, insert_bo, insert_boe, insert_fxm, insert_mb6, insert_mbe,
insert_nsi, insert_ral, insert_ram, insert_raq, insert_ras, insert_rbs,
insert_sh6, insert_spr, insert_sprg, insert_tbr): Change the dialect
param to be of type ppc_cpu_t.  Update prototype.

16 years ago Robustify mi-simplerun.
Vladimir Prus [Fri, 13 Jun 2008 19:53:42 +0000 (19:53 +0000)]
Robustify mi-simplerun.
        * gdb.mi/basics.c (main): Add a call to sleep.
        * gdb.mi/mi-cli.exp: Adjust for change in line numbers.
        * gdb.mi/mi2-cli.exp: Likewise.
        * gdb.mi/mi-break.exp: Likewise.

16 years ago * powerpc.cc (Output_data_plt_powerpc::do_write): 8 + 4 = 0xC.
David Edelsohn [Fri, 13 Jun 2008 17:15:52 +0000 (17:15 +0000)]
    * powerpc.cc (Output_data_plt_powerpc::do_write): 8 + 4 = 0xC.

16 years ago * configure.ac (arm*-*-linux-gnueabi): Don't disable building
Julian Brown [Fri, 13 Jun 2008 13:05:13 +0000 (13:05 +0000)]
* configure.ac (arm*-*-linux-gnueabi): Don't disable building
    of libobjc for ARM EABI Linux.
    * configure: Regenerate.

16 years agodaily update
Alan Modra [Fri, 13 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Fri, 13 Jun 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * mips.h: Document new field descriptors +Q.
Nick Clifton [Thu, 12 Jun 2008 21:44:54 +0000 (21:44 +0000)]
    * mips.h: Document new field descriptors +Q.
        (OP_SH_SEQI, OP_MASK_SEQI): New bit mask and shift count for SEQI.

opcodes/

        * mips-dis.c (print_insn_args): Handle field descriptor +Q.
        * mips-opc.c (mips_builtin_opcodes): Add Octeon instructions seq,
        seqi, sne and snei.

gas/

        * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
        (mips_ip): Likewise.
        (macro_build): Likewise.
        (CPU_HAS_SEQ): New macro.
        (macro2) <M_SEQ_I, M_SNE_I>: Use it.  Emit seq/sne and seqi/snei.

gas/testsuite/

        * gas/mips/octeon.s, gas/mips/octeon.d: Add tests for seq* and sne*.
        * gas/mips/octeon-ill.s, gas/mips/octeon-ill.s: Add tests for seqi
        and snei.

16 years ago* common.h (EM_M32C_NEW): Rename to EM_M32C.
DJ Delorie [Thu, 12 Jun 2008 19:49:48 +0000 (19:49 +0000)]
* common.h (EM_M32C_NEW): Rename to EM_M32C.
(EM_M32C): Rename to EM_M32C_OLD.

* elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD.

* readelf.c (guess_is_rela): Add EM_M32C_OLD.
(dump_relocations): Likewise.
(process_section_headers): Likewise.
(is_32bit_abs_reloc): Likewise.
(is_16bit_abs_reloc): Likewise.

16 years ago2008-06-12 David S. Miller <davem@davemloft.net>
David Edelsohn [Thu, 12 Jun 2008 17:07:34 +0000 (17:07 +0000)]
2008-06-12  David S. Miller  <davem@davemloft.net>
            David Edelsohn  <edelsohn@gnu.org>

        * configure.ac: Add powerpc*-*-* to gold supported targets.
        * configure: Regenerate.

16 years ago2008-06-12 David Edelsohn <edelsohn@gnu.org>
David Edelsohn [Thu, 12 Jun 2008 17:02:17 +0000 (17:02 +0000)]
2008-06-12  David Edelsohn  <edelsohn@gnu.org>
            David S. Miller  <davem@davemloft.net>

        * powerpc.cc: New file.
        * Makefile.am (TARGETSOURCES): Add powerpc.cc
        (ALL_TARGETOBJS): Add powerpc.$(OBJEXT)
        * configure.tgt: Add entries for powerpc-* and powerpc64-*.
        * Makefile.in: Rebuild.

16 years ago2008-06-12 David S. Miller <davem@davemloft.net>
David Edelsohn [Thu, 12 Jun 2008 16:58:40 +0000 (16:58 +0000)]
2008-06-12  David S. Miller  <davem@davemloft.net>

        * powerpc.h: New file.
        * elfcpp.h (SHT_ORDERED): New enum constant.
        (DT_PPC_GOT, DT_PPC64_GLINK, DT_PPC64_OPD, DT_PPC64_OPDSZ): Same.

16 years agoinclude/opcode/
Nick Clifton [Thu, 12 Jun 2008 16:14:52 +0000 (16:14 +0000)]
include/opcode/

        * mips.h: Document new field descriptors +x, +X, +p, +P, +s, +S.
        Update comment before MIPS16 field descriptors to mention MIPS16.
        (OP_SH_BBITIND, OP_MASK_BBITIND): New bit mask and shift count for
        BBIT.
        (OP_SH_CINSPOS, OP_MASK_CINSPOS, OP_SH_CINSLM1, OP_MASK_CINSLM1):
        New bit masks and shift counts for cins and exts.

gas/

        * config/tc-mips.c (validate_mips_insn): Handle field descriptors
        +x, +X, +p, +P, +s, +S.
        (mips_ip): Likewise.

opcodes/

        * mips-dis.c (print_insn_args): Handle field descriptors +x, +p,
        +s, +S.
        * mips-opc.c (mips_builtin_opcodes): Add Octeon instructions
        baddu, bbit*, cins*, dmul, pop, dpop, exts*, mtm*, mtp*, syncs,
        syncw, syncws, vm3mulu, vm0 and vmulu.

gas/testsuite/

        * gas/mips/octeon.s, gas/mips/octeon.d: Add tests for baddu,
        bbit*, cins*, dmul, pop, dpop, exts*, mtm*, mtp*, syncs, syncw,
        syncws, vm3mulu, vm0 and vmulu.
        * gas/mips/octeon-ill.s, gas/mips/octeon-ill.s: New test.
        * gas/mips/mips.exp: Run it.  Run octeon test with
        run_dump_test_arches.

16 years ago * common.h: Update e_machine table.
Joseph Myers [Thu, 12 Jun 2008 12:44:01 +0000 (12:44 +0000)]
* common.h: Update e_machine table.

16 years ago PR binutils/6483
Nick Clifton [Thu, 12 Jun 2008 11:57:40 +0000 (11:57 +0000)]
    PR binutils/6483
        * objdump.c (dump_bfd): If the -g option found no STABS or IEEE
        debug information to display, try dumping DWARF information
        instead.
        * rddbg.c (read_debugging_info): Add a parameter to suppress the
        display of a warning message when no debug information is found.
        * budbg.h (read_debugging_info): Update prototype.
        * objcopy.c (copy_object): Continue to allow read_debugging_info
        to produce warning messages.
        * doc/binutils.texi (--debugging): Document new behaviour of the
        -g/--debugging option.

16 years ago * ldlang.c (print_output_section_statement): If the output section
Nick Clifton [Thu, 12 Jun 2008 11:27:38 +0000 (11:27 +0000)]
    * ldlang.c (print_output_section_statement): If the output section
        statement has an update_dot_tree expression, apply it to
        print_dot.
        (print_input_section): Do not update print_dot if it would move
        print_dot backwards.
        (lang_do_assignments_1): If the output section statement has an
        update_dot_tree expression apply it to dot.

  * ld-scripts/overlay-size.t (end_of_bss_overlays): Define.
  (end_of_text_overlays): Define.
  (end_of_data_overlays): Define.
  * ld-scripts/overlay-size-map.d: Add expected values for
  end_of_bss_overlays, end_of_text_overlays and
  end_of_data_overlays.