platform/upstream/binutils.git
15 years agogas/testsuite/
Peter Bergner [Thu, 19 Feb 2009 21:18:46 +0000 (21:18 +0000)]
gas/testsuite/
* gas/ppc/e500mc.d ("lfdepx", "stfdepx"): Fix tests to expect a
floating point register.

opcodes/
* ppc-opc.c (powerpc_opcodes) <"lfdepx", "stfdepx">: Fix the first
operand to be a float point register (FRT/FRS).

15 years agodaily update
Alan Modra [Thu, 19 Feb 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Thu, 19 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * gdb.base/macscp.exp (objfile): Move it to ${objdir}/${subdir}/.
Jan Kratochvil [Wed, 18 Feb 2009 22:24:37 +0000 (22:24 +0000)]
* gdb.base/macscp.exp (objfile): Move it to ${objdir}/${subdir}/.
(list_and_check_macro): Use more specific test name.
(next to definition): Make the test names unique.

15 years agoopcodes/
Adam Nemet [Wed, 18 Feb 2009 20:51:59 +0000 (20:51 +0000)]
opcodes/
* mips-opc.c (mips_builtin_opcodes): Move the Octeon-specific
dmfc2 and dmtc2 before the architecture-level variants.

gas/testsuite/
* gas/mips/octeon.s: Add more tests for dmfc2 and dmtc2.
* gas/mips/octeon.d: Update.
* gas/mips/octeon-ill.l: Update error message.

15 years ago * gdb.texinfo (GDB/MI Async Records): Add double-spaces
Vladimir Prus [Wed, 18 Feb 2009 19:45:45 +0000 (19:45 +0000)]
   * gdb.texinfo (GDB/MI Async Records): Add double-spaces
       between sentences.

15 years ago PR gas/7059
Dave Korn [Wed, 18 Feb 2009 18:38:06 +0000 (18:38 +0000)]
PR gas/7059
* coffcode.h (coff_write_object_contents):  Don't let the string
table offset overflow the s_name field when using long section names.

15 years agobfd/ChangeLog
Dave Korn [Wed, 18 Feb 2009 18:23:08 +0000 (18:23 +0000)]
bfd/ChangeLog

* coff-alpha.c (alpha_ecoff_backend_data):  Initialise fields which
control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
* coff-mips.c (mips_ecoff_backend_data):  Likewise.
* coff-rs6000.c (bfd_xcoff_backend_data):  Initialise fields which
control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
(bfd_pmac_xcoff_backend_data):  Likewise.
* coff64-rs6000.c (bfd_xcoff_backend_data):  Likewise.
(bfd_xcoff_aix5_backend_data):  Likewise.
(xcoff64_write_object_contents):  Delete unused long_section_names
local variable.
* coff-sh.c (bfd_coff_small_swap_table):  Initialise long section
name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
struct non-const.
* coffcode.h (documentation):  Update to describe long section names.
(COFFLONGSECTIONCATHELPER):  New helper macro.
(BLANKOR1TOODD):  Likewise.
(COFF_ENABLE_LONG_SECTION_NAMES):  Likewise.
(COFF_LONG_SECTION_NAMES_SETTER):  Likewise.
(COFF_DEFAULT_LONG_SECTION_NAMES):  Likewise.
(bfd_coff_set_long_section_names_allowed):  New function.
(bfd_coff_set_long_section_names_disallowed):  Likewise.
(struct bfd_coff_backend_data):  Add new backend hook function
pointer _bfd_coff_set_long_section_names.
(bfd_coff_set_long_section_names):  New backend hook.
(coff_write_object_contents):  Only generate long section names if
bfd_coff_long_section_names() indicates they are currently enabled.
(bfd_coff_std_swap_table):  Make non-const, and initialise long
section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
(ticoff0_swap_table):  Likewise to both.
(ticoff1_swap_table):  Again, likewise to both.
* coffgen.c (make_a_section_from_file):  Allow long section names
as inputs even if not currently allowed for outputs.
* ecoff.c (_bfd_ecoff_no_long_sections):  New function.
* efi-app-ia32.c (COFF_LONG_SECTION_NAMES):  Define to 0, not blank.
* efi-app-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-app-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-arm.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-i386.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-mcore.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-mips.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-ppc.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-sh.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* libcoff-in.h:  Update copyright year to cause updated copyright
year in generated libcoff.h, and fix typo.
* libcoff.h:  Regenerated.
* libecoff.h (ECOFF_NO_LONG_SECTION_NAMES):  New macro.
(_bfd_ecoff_no_long_sections):  Add prototype.
* libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES):  New macro.
* pe-mips.c (COFF_LONG_SECTION_NAMES):  Define empty if not already
defined by an including .c file.
* ticoff.h (ticoff0_swap_table):  Make non-const, and initialise
long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
(ticoff1_swap_table):  Likewise to both.

ld/ChangeLog

* ld.texinfo:  Update to mention long section name options.
* NEWS:  Mention new behaviour and command-line options.
* pe-dll.c (pe_use_coff_long_section_names):  New global variable.
(pe_output_file_set_long_section_names):  New function.
(pe_dll_build_sections):  Call it on output BFDs.
(pe_exe_build_sections):  Likewise.
(pe_dll_fill_sections):  Likewise.
(pe_exe_fill_sections):  Likewise.
* pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
(pe_output_file_set_long_section_names):  Add prototype.
* pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
(pe_output_file_set_long_section_names):  Likewise.
* pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
(pep_output_file_set_long_section_names):  Add prototype.
* pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
(OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
(gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
(gld_${EMULATION_NAME}_list_options):  Describe them.
(gld${EMULATION_NAME}_handle_option):  Set or clear global
pe_use_coff_long_section_names flag when options recognised.
(gld_${EMULATION_NAME}_after_open):  En/disable long section names
for main output bfd by calling pe_output_file_set_long_section_names.
* pep.em (enum options):  Extend enum with new getopt option values.
(gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
(gld_${EMULATION_NAME}_list_options):  Describe them.
(gld${EMULATION_NAME}_handle_option):  Set or clear global
pe_use_coff_long_section_names flag when options recognised.
(gld_${EMULATION_NAME}_after_open):  En/disable long section names
for main output bfd by calling pep_output_file_set_long_section_names.

ld/testsuite/ChangeLog

* ld-pe/longsecn-1.d:  New test file.
* ld-pe/longsecn-2.d:  Likewise.
* ld-pe/longsecn-3.d:  Likewise.
* ld-pe/longsecn-4.d:  Likewise.
* ld-pe/longsecn-5.d:  Likewise.
* ld-pe/longsecn.d:  Likewise.
* ld-pe/longsecn.exp:  New test control script.
* ld-pe/longsecn.s:  New test source file.

15 years ago * fr30-opc.c: Regenerate.
Nick Clifton [Wed, 18 Feb 2009 17:13:04 +0000 (17:13 +0000)]
    * fr30-opc.c: Regenerate.
        * frv-opc.c: Regenerate.
        * ip2k-opc.c: Regenerate.
        * iq2000-opc.c: Regenerate.
        * lm32-opc.c: Regenerate.
        * m32c-opc.c: Regenerate.
        * m32r-opc.c: Regenerate.
        * mep-opc.c: Regenerate.
        * mt-opc.c: Regenerate.
        * xc16x-opc.c: Regenerate.
        * xstormy16-opc.c: Regenerate.
        * tic54x-dis.c (print_instruction): Avoid compiler warning on
        sprintf call.

        * opc-itab.scm (<>_cgen_init_opcode_table): Avoid compiler warning
        about calling memset with a zero length.

15 years ago2009-02-18 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Wed, 18 Feb 2009 16:56:37 +0000 (16:56 +0000)]
2009-02-18  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
stub. Catch default case error.
(arm_map_one_stub): Add missing Thumb mapping symbol.

testsuite/
* ld-arm/farcall-arm-arm-pic-veneer.d,
ld-arm/farcall-arm-thumb-blx-pic-veneer.d,
ld-arm/farcall-arm-thumb-pic-veneer.d,
ld-arm/farcall-thumb-arm-blx-pic-veneer.d,
ld-arm/farcall-thumb-thumb-blx-pic-veneer.d: Fix expected stub
target.

15 years ago PR 9841
Nick Clifton [Wed, 18 Feb 2009 15:28:56 +0000 (15:28 +0000)]
    PR 9841
        * elf32-avr.c: Handle case where no local symbos exist correctly.

15 years ago * gdb.pascal/floats.exp: Accept approximate results everywhere.
Pierre Muller [Wed, 18 Feb 2009 14:46:14 +0000 (14:46 +0000)]
* gdb.pascal/floats.exp: Accept approximate results everywhere.

15 years ago2009-02-16 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Wed, 18 Feb 2009 12:45:38 +0000 (12:45 +0000)]
2009-02-16  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (arm_long_branch_stub,
arm_thumb_v4t_long_branch_stub,
arm_thumb_thumb_long_branch_stub,
arm_thumb_arm_v4t_long_branch_stub,
arm_thumb_arm_v4t_short_branch_stub,
arm_pic_long_branch_stub):
Renamed to elf32_arm_stub_long_branch_any_any,
elf32_arm_stub_long_branch_v4t_arm_thumb,
elf32_arm_stub_long_branch_thumb_only,
elf32_arm_stub_long_branch_v4t_thumb_arm,
elf32_arm_stub_short_branch_v4t_thumb_arm,
elf32_arm_stub_long_branch_any_any_pic.
(arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
arm_thumb_thumb_stub_long_branch,
arm_thumb_arm_v4t_stub_long_branch,
arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
Renamed to arm_stub_long_branch_any_any,
arm_stub_long_branch_v4t_arm_thumb,
arm_stub_long_branch_thumb_only,
arm_stub_long_branch_v4t_thumb_arm,
arm_stub_short_branch_v4t_thumb_arm,
arm_stub_long_branch_any_any_pic.

15 years ago * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
Vladimir Prus [Wed, 18 Feb 2009 07:28:34 +0000 (07:28 +0000)]
* mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
(mi_interpreter_init): Register the above.
* solib.c (clear_solib): Notify solib unload.
* breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
disable breakpoints on a.out targets.

15 years ago*** empty log message ***
gdbadmin [Wed, 18 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Wed, 18 Feb 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * observer.c (observer_test_first_notification_function)
Vladimir Prus [Tue, 17 Feb 2009 19:52:27 +0000 (19:52 +0000)]
* observer.c (observer_test_first_notification_function)
(observer_test_second_notification_function)
(observer_test_third_notification_function): Adjust prototype.

15 years ago * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
Pedro Alves [Tue, 17 Feb 2009 17:56:50 +0000 (17:56 +0000)]
* Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
(ALL_TARGET_OBS): Add dicos-tdep.o.
(ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
* configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
gdb_target_obs.
(x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
gdb_target_obs.
* dicos-tdep.h, dicos-tdep.c: New.
* amd64-dicos-tdep.c: New.
* i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
inferior.h.  Include dicos-tdep.h.
(i386_dicos_init_abi): Call dicos_init_abi.
(i386_dicos_bfd_has_symbol_p): Delete.
(i386_dicos_osabi_sniffer): Use dicos_load_module_p.

* NEWS: Mention x86-64 DICOS target support.

15 years ago * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
Doug Evans [Tue, 17 Feb 2009 06:14:17 +0000 (06:14 +0000)]
* amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
All callers updated.
(amd64_get_insn_details): Handle more 3-byte opcode insns.
(amd64_breakpoint_p): Delete.
(amd64_displaced_step_fixup): When fixing up after stepping an int3,
don't back up pc to the start of the int3.
* i386-tdep.c: #include opcode/i386.h.
(i386_skip_prefixes): New function.
(i386_absolute_jmp_p): Constify argument.
(i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
(i386_breakpoint_p): Delete.
(i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
When fixing up after stepping an int3, don't back up pc to the start
of the int3.

* gdb.arch/amd64-disp-step.S (test_int3): New test.
* gdb.arch/amd64-disp-step.exp (test_int3): New test.
* gdb.arch/i386-disp-step.S (test_prefixed_abs_jump): New test.
(test_prefixed_syscall,test_int3): New tests.
* gdb.arch/i386-disp-step.exp (test_prefixed_abs_jump): New test.
(test_prefixed_syscall,test_int3): New tests.

15 years ago*** empty log message ***
gdbadmin [Tue, 17 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 17 Feb 2009 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
Dave Korn [Mon, 16 Feb 2009 10:42:12 +0000 (10:42 +0000)]
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
inadvertent .reloc sections caused by refactoring accident.

15 years ago * gas/mips/e32-rel2.d: Adjust expected output to remove the 0x4000
Nick Clifton [Mon, 16 Feb 2009 09:19:32 +0000 (09:19 +0000)]
    * gas/mips/e32-rel2.d: Adjust expected output to remove the 0x4000
        offset.
        * gas/mips/e32el-rel2.d: Likewise.
        * gas/mips/elf-rel2.d: Likewise.
        * gas/mips/elf-rel9-mips16.d: Likewise.
        * gas/mips/elf-rel9.d: Likewise.
        * gas/mips/elfel-rel2.d: Likewise.
        * gas/mips/lb.d: Likewise.
        * gas/mips/mips-abi32.d: Likewise.
        * gas/mips/mips-gp32-fp32.d: Likewise.
        * gas/mips/mips-gp32-fp64.d: Likewise.
        * gas/mips/mips-gp64-fp32.d: Likewise.
        * gas/mips/mips-gp64-fp64.d: Likewise.
        * gas/mips/mips32-sf32.d: Likewise.

15 years ago * ldlang.c (process_insert_statements): ASSERT that output section
Alan Modra [Mon, 16 Feb 2009 08:02:29 +0000 (08:02 +0000)]
* ldlang.c (process_insert_statements): ASSERT that output section
statements are in order.

15 years ago * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
Alan Modra [Mon, 16 Feb 2009 07:25:52 +0000 (07:25 +0000)]
* ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
(stat_save, stat_save_ptr): New variables.
(lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
(load_symbols): Likewise.  Delete dead "bad_load" code.
(open_input_bfds): Warn on script containing output sections.
(lang_enter_output_section_statement): Use push_stat_ptr.
(lang_enter_group): Likewise.
(lang_leave_output_section_statement): Use pop_stat_ptr.
(lang_leave_group): Likewise.
* ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
* ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
* emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/spuelf.em (spu_place_special_section): Likewise.
* emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.

15 years ago * corelow.c (core_close): Don't hardcode the core's pid.
Pedro Alves [Mon, 16 Feb 2009 03:16:24 +0000 (03:16 +0000)]
* corelow.c (core_close): Don't hardcode the core's pid.
(core_open): Find core threads before calling
post_create_inferior.
(add_to_thread_list, get_core_register_section): Take into account
systems where the regset section names encode the pid of the
inferior.

* gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
* gdbarch.h, gdbarch.c: Regenerate.

* amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
* i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
* sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
* sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.

15 years agodaily update
Alan Modra [Mon, 16 Feb 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 16 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
Dave Anglin [Sun, 15 Feb 2009 19:39:44 +0000 (19:39 +0000)]
* elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
in branch offset check.

15 years ago * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
Alan Modra [Sun, 15 Feb 2009 12:14:14 +0000 (12:14 +0000)]
* elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
add toc.symndx and toc.add.
(ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
Set up toc.add.
(get_tls_mask): Add toc_addend param, set from toc.add.  Adjust all
callers.
(ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
(branch_reloc_hash_match): New function, extracted from..
(ppc64_elf_tls_optimize): ..here.
(ppc64_elf_relocate_section): Properly set addends when optimizing
tls sequences.  Avoid unnecessary reading and writing of insns.
Only redo reloc when symbol changed.  Bypass symbol checks when
using tlsld_got.
* elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
(branch_reloc_hash_match): New function, extracted from..
(ppc_elf_tls_optimize): ..here.
(ppc_elf_relocate_section): Avoid unnecessary reading of insns.
Don't clear addend on zapped __tls_get_addr reloc.

15 years agodaily update
Alan Modra [Sun, 15 Feb 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sun, 15 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agoAdding gdb.python/python-cmd.exp which I forgot to commit earlier.
Thiago Jung Bauermann [Sat, 14 Feb 2009 21:58:29 +0000 (21:58 +0000)]
Adding gdb.python/python-cmd.exp which I forgot to commit earlier.

15 years ago Include frame information for *stopped due to CLI commands.
Vladimir Prus [Sat, 14 Feb 2009 15:24:44 +0000 (15:24 +0000)]
    Include frame information for *stopped due to CLI commands.

        * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
        * infcmd.c (finish_command_continuation): Pass '1' for
        'print_frame' parameter to the observer.
        * infrun.c (normal_stop): Don't print mi-specific information
        here. Pass 'stop_print_frame' to the 'print_frame' parameter
        of the observer.
        * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
        If we need to print frame, and current uiout is not the MI one,
        print frame again.

15 years ago * lib/gdb.exp (get_hexadecimal_valueof): New procedure.
Pierre Muller [Sat, 14 Feb 2009 00:27:56 +0000 (00:27 +0000)]
* lib/gdb.exp (get_hexadecimal_valueof): New procedure.
* gdb.base/pc-fp.exp (get_valueofx): Remove.
Replace calls to get_valueofx by get_hexadecimal_valueof.

15 years ago * remote-utils.c (getpkt): Also generate remote-debug
Pierre Muller [Sat, 14 Feb 2009 00:07:51 +0000 (00:07 +0000)]
* remote-utils.c (getpkt): Also generate remote-debug
information if noack_mode is set.

15 years ago*** empty log message ***
gdbadmin [Sat, 14 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 14 Feb 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * lib/gdb.exp (get_valueof): Accept anything as a return value.
Pierre Muller [Fri, 13 Feb 2009 23:37:24 +0000 (23:37 +0000)]
* lib/gdb.exp (get_valueof): Accept anything as a return value.
(get_integer_valueof): New procedure.
(get_sizeof): Use new get_integer_value_of.
* gdb.base/sizeof.exp: Replace all uses of get_valueof
by get_integer_valueof.

15 years ago2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
Pierre Muller [Fri, 13 Feb 2009 22:10:25 +0000 (22:10 +0000)]
2009-02-13  Pierre Muller  <muller@ics.u-strasbg.fr>

* xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
Replace BSZ macro uses by XTENSA_ISA_BSZ macro.

15 years ago (From Rafael Espindola)
Cary Coutant [Fri, 13 Feb 2009 19:04:45 +0000 (19:04 +0000)]
(From Rafael Espindola)
* archive.cc (Archive::include_member): Update calls to add_symbols.
* dynobj.cc (Sized_dynobj<size, big_endian>::make_version_map): Add
the Layout argument.
* dynobj.h (do_add_symbols): Add the Layout argument.
* object.cc (Sized_relobj<size, big_endian>::do_add_symbols): Add the
Layout argument.
* object.h (Object::add_symbols): Add the Layout argument.
(Object::do_add_symbols): Add the Layout argument.
(Sized_relobj::do_add_symbols): Add the Layout argument.
* plugin.cc (Sized_pluginobj<size, big_endian>::do_add_symbols):
Unify the two versions.
(Add_plugin_symbols): Remove.
* plugin.h (Pluginobj::add_symbols, Pluginobj::do_add_symbols): Remove.
(Sized_pluginobj::do_add_symbols): Unify the two versions.
(Add_plugin_symbols): Remove.
* readsyms.cc (Read_symbols::do_read_symbols): Update call to
Add_symbols. Use Add_symbols instead of Add_plugin_symbols.
(Add_symbols::run): Make it work with Pulginobj.

15 years ago * gdb.base/remote.exp (get_sizeof): Remove.
Tom Tromey [Fri, 13 Feb 2009 16:13:47 +0000 (16:13 +0000)]
* gdb.base/remote.exp (get_sizeof): Remove.
* gdb.base/long_long.exp (get_valueof, get_sizeof): Remove.
* gdb.base/dfp-test.exp (get_valueof, get_sizeof): Remove.
* gdb.base/sizeof.exp (get_valueof, get_sizeof): Remove.
* lib/gdb.exp (get_valueof): Move from long_long.exp.
(get_sizeof): Likewise.

15 years ago*** empty log message ***
gdbadmin [Fri, 13 Feb 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Thu, 12 Feb 2009 23:59:29 +0000 (23:59 +0000)]
daily update

15 years agoFix a typo.
Joel Brobecker [Thu, 12 Feb 2009 23:35:38 +0000 (23:35 +0000)]
Fix a typo.

15 years ago PR 9827
Nick Clifton [Thu, 12 Feb 2009 15:06:55 +0000 (15:06 +0000)]
    PR 9827
        * elflink.c (bfd_elf_final_link): When counting the relocations,
        if the header size has not been set yet then assume that it will
        match the output section's reloc type.

15 years ago * corefile.c (core_create_function_syms): Remove "<locore>" and
Alan Modra [Thu, 12 Feb 2009 12:47:39 +0000 (12:47 +0000)]
    * corefile.c (core_create_function_syms): Remove "<locore>" and
        "<hicore>" sentinels.
        * gprof.c: Likewise.
        * cg_print.c (cg_print_function_ordering): Likewise.
        * alpha.c (alpha_find_call): Add check for return value of sym_lookup.
        * mips.c (mips_find_call): Likewise.
        * sparc.c (sparc_find_call): Likewise.
        * tahoe.c (tahoe_find_call): Likewise.
        * vax.c (vax_find_call): Likewise.

15 years agogdb/
Jan Kratochvil [Thu, 12 Feb 2009 09:15:07 +0000 (09:15 +0000)]
gdb/
PR fortran/9806
* dwarf2read.c (process_die <DW_TAG_module>, read_module)
(scan_partial_symbols <DW_TAG_module>, add_partial_module): New.

gdb/testsuite/
PR fortran/9806
* gdb.fortran/module.exp, gdb.fortran/module.f90: New.

15 years ago gas/
Nathan Sidwell [Thu, 12 Feb 2009 08:31:03 +0000 (08:31 +0000)]
gas/
* config/tc-m68k.c (mcf51qe_ctrl): Add CPUCR.
(mcf52259_ctrl, mcf52277_ctrl, mcf53017_ctrl): New.
(mcf5307_ctrl): Add VBR.
(no_mac): New variable.
(m68k_extensions): Refer to no_mac mask.
(m68k_cpus): Add 51, 51ac, 51cn, 51em, 51jm, 52274, 52277,
52252..52259, 53011..53017.
(m68k_ip): Process CPUCR.
(init_table): Add cpucr entry.
(m68k_set_extension): Allow negated mask to refer to a variable.
(md_show_usage): Use '%s' to silence fprintf warning.
* config/m68k-parse.h (CPUCR): New control register.

gas/testsuite/
* m68k/br-isac.d, m68k/br-isac.s: Add stldsr test.

opcodes/
* m68k-opc.c (m68k_opcodes): Add stldsr instruction.

15 years ago * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
Nathan Sidwell [Thu, 12 Feb 2009 08:28:19 +0000 (08:28 +0000)]
* elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
relocatable link.

15 years ago*** empty log message ***
gdbadmin [Thu, 12 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Wed, 11 Feb 2009 23:59:30 +0000 (23:59 +0000)]
daily update

15 years ago2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
Pierre Muller [Wed, 11 Feb 2009 22:30:04 +0000 (22:30 +0000)]
2009-02-11  Pierre Muller  <muller@ics.u-strasbg.fr>

* dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
for DW_ATE_signed_char and DW_ATE_unisgned_char
for pascal language.

15 years ago Avoid NULL dereference.
Jan Kratochvil [Wed, 11 Feb 2009 16:07:28 +0000 (16:07 +0000)]
Avoid NULL dereference.
* stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
New variable func_type.

15 years ago * gdbarch.c: Regenerate.
Pedro Alves [Wed, 11 Feb 2009 14:32:17 +0000 (14:32 +0000)]
* gdbarch.c: Regenerate.

15 years ago*** empty log message ***
gdbadmin [Wed, 11 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 10 Feb 2009 23:59:32 +0000 (23:59 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Tue, 10 Feb 2009 16:18:42 +0000 (16:18 +0000)]
merge from gcc

15 years ago * config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
Nathan Sidwell [Tue, 10 Feb 2009 08:07:31 +0000 (08:07 +0000)]
* config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
as_bad calls to silence compiler warning.

15 years ago2009-02-06 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Tue, 10 Feb 2009 00:59:27 +0000 (00:59 +0000)]
2009-02-06  Paul Pluzhnikov  <ppluzhnikov@google.com>

* gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out.

15 years ago2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
Pierre Muller [Tue, 10 Feb 2009 00:12:57 +0000 (00:12 +0000)]
2009-02-10  Pierre Muller  <muller@ics.u-strasbg.fr>

* p-lang.c (is_pascal_string_type): Fix comment.
Determine exact size of char elements for GPC
strings.
(pascal_printstr): Handle char width of 2 or 4.
* p-valprint.c (pascal_val_print): Handle char
of width 2 or 4.

15 years ago*** empty log message ***
gdbadmin [Tue, 10 Feb 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Mon, 9 Feb 2009 23:59:33 +0000 (23:59 +0000)]
daily update

15 years ago2009-02-09 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Mon, 9 Feb 2009 15:40:24 +0000 (15:40 +0000)]
2009-02-09  Kai Tietz  <kai.tietz@onevision.com>

* windres.c (set_endianess): Copy name without leading '-'.

15 years ago Missing piece of 2009-01-26 commit
Nathan Sidwell [Mon, 9 Feb 2009 14:46:40 +0000 (14:46 +0000)]
Missing piece of 2009-01-26 commit
* ldlang.c (lang_process): Don't consider relocatable flag when
checking for overlap.

15 years ago * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
Alan Modra [Mon, 9 Feb 2009 14:24:41 +0000 (14:24 +0000)]
* elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
(find_function): Likewise.
(pasted_function): Don't error if no prior function found.
(discover_functions): Revert 2008-12-10 change.  Extend first
function range to start of section.

15 years ago2009-02-09 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 9 Feb 2009 09:14:15 +0000 (09:14 +0000)]
2009-02-09  Tristan Gingold  <gingold@adacore.com>

* NEWS: Mention feature match between objdump and readelf for dumping
dwarf info.

* doc/binutils.texi (objdump): Document -W/--dwarf improvments to
objdump.

* objdump.c (usage): Update documentation for -W/--dwarf.
(enum option_values): Add OPTION_DWARF.
(long_options): --dwarf can accept arguments.
(dump_dwarf_section): Also check enabled field.
(main): Option -W can accept arguments, code moved to
dwarf.c and call dwarf_select_sections_all instead.
* readelf.c (process_section_headers): Remove do_debug_lines_decoded.
(parse_args): Move code to...
* dwarf.c (dwarf_select_sections_by_letters,
dwarf_select_sections_by_names): : ...here (new functions).
(do_debug_lines_decoded): Remove and replaced by ...
(FLAG_DEBUG_LINES_RAW, FLAG_DEBUG_LINES_DECODED): ... new macros.
(display_debug_lines): Adjust for previous change.
(dwarf_select_sections_all): New function.
(debug_displays): Add initializer for enabled field.
* dwarf.h (do_debug_lines_decoded): Remove.
Add prototypes for the new functions.
(struct dwarf_section_display): Add enabled field.

15 years ago * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
Daniel Jacobowitz [Mon, 9 Feb 2009 00:07:53 +0000 (00:07 +0000)]
* dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
inside the loop.  Only call addrmap_set_empty if the compilation unit
had DW_AT_high_pc and DW_AT_low_pc.  Update call to
scan_partial_symbols.
(scan_partial_symbols): Take NEED_PC argument and pass it along with
LOWPC and HIGHPC.
(add_partial_namespace): Take NEED_PC argument and pass it through.
(add_partial_subprogram): Take NEED_PC argument.  Update the addrmap
if necessary.

15 years ago*** empty log message ***
gdbadmin [Mon, 9 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sun, 8 Feb 2009 23:59:35 +0000 (23:59 +0000)]
daily update

15 years ago * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
Dave Anglin [Sun, 8 Feb 2009 17:08:31 +0000 (17:08 +0000)]
* elf64-hppa.c: Remove PARAMS macro.  Replace PTR with void *.  Convert
functions to C90.
* elf64-hppa.h: Likewise.

15 years ago*** empty log message ***
gdbadmin [Sun, 8 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
Daniel Jacobowitz [Sat, 7 Feb 2009 20:41:09 +0000 (20:41 +0000)]
* dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
inside the loop.  Only call addrmap_set_empty if the compilation unit
had DW_AT_high_pc and DW_AT_low_pc.  Update call to
scan_partial_symbols.
(scan_partial_symbols): Take NEED_PC argument and pass it along with
LOWPC and HIGHPC.
(add_partial_namespace): Take NEED_PC argument and pass it through.
(add_partial_subprogram): Take NEED_PC argument.  Update the addrmap
if necessary.

15 years ago * NEWS: Mention inspecting extra signal information, $_siginfo,
Pedro Alves [Sat, 7 Feb 2009 15:00:57 +0000 (15:00 +0000)]
* NEWS: Mention inspecting extra signal information, $_siginfo,
and the qXfer:siginfo:read and qXfer:siginfo:write packets.

15 years ago * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
Pedro Alves [Sat, 7 Feb 2009 14:50:25 +0000 (14:50 +0000)]
* linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
isn't defined.

15 years ago*** empty log message ***
Eli Zaretskii [Sat, 7 Feb 2009 10:02:27 +0000 (10:02 +0000)]
*** empty log message ***

15 years ago(Basic Python): Fix change from 2009-02-04.
Eli Zaretskii [Sat, 7 Feb 2009 09:59:31 +0000 (09:59 +0000)]
(Basic Python): Fix change from 2009-02-04.
(Commands In Python): Fix COMMAND_* constants in last change.  Use @kbd for
interactive input.  Add cross-references and index entries.

15 years ago * object.cc (Sized_relobj::do_layout): Make info message start
Ian Lance Taylor [Sat, 7 Feb 2009 01:05:15 +0000 (01:05 +0000)]
* object.cc (Sized_relobj::do_layout): Make info message start
with lower case letter.

15 years ago * binary.cc: Fix file comment.
Ian Lance Taylor [Sat, 7 Feb 2009 01:03:32 +0000 (01:03 +0000)]
* binary.cc: Fix file comment.

15 years agodaily update
Alan Modra [Sat, 7 Feb 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sat, 7 Feb 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * options.h (enum Incremental_disposition): Define.
Ian Lance Taylor [Fri, 6 Feb 2009 23:49:43 +0000 (23:49 +0000)]
* options.h (enum Incremental_disposition): Define.
(class General_options): Add new options: --incremental,
--incremental_changed, --incremental_unchanged,
--incremental_unknown.  Add incremental_disposition_ and
implicit_incremental_ fields.
(General_options::incremental_disposition): New function.
(class Position_dependent_options): Add incremental_disposition
option.
(Position_dependent_options::copy_from_options): Set incremental
dispositions.
* options.cc (General_options::parse_incremental_changed): New
function.
        (General_options::parse_incremental_unchanged): New function.
        (General_options::parse_incremental_unknown): New function.
        (General_options::General_options): Initialize new fields
incremental_disposition_ and implicit_incremental_.
        (General_options::finalize): Check for uasge of --incremental-*
without --incremental.

15 years ago * i386.h: Add comment regarding sse* insns and prefixes.
Doug Evans [Fri, 6 Feb 2009 23:14:34 +0000 (23:14 +0000)]
* i386.h: Add comment regarding sse* insns and prefixes.

15 years ago * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
Pedro Alves [Fri, 6 Feb 2009 23:06:58 +0000 (23:06 +0000)]
* amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
(compat_timer_t, compat_clock_t, struct compat_timeval)
(compat_sigval_t, compat_siginfo_t): New types.
(cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
(cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
(cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
(compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
(amd64_linux_siginfo_fixup): New.
* linux-nat.c (linux_nat_siginfo_fixup): New.
(siginfo_fixup): New.
(linux_xfer_siginfo): Use siginfo_fixup to convert between the
siginfo layout expected by ptrace and the siginfo layout of the
inferior.
(linux_nat_set_siginfo_fixup): New.
* linux-nat.h (linux_nat_set_siginfo_fixup): Declare.

15 years ago2009-02-06 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 6 Feb 2009 22:59:01 +0000 (22:59 +0000)]
2009-02-06  Pedro Alves  <pedro@codesourcery.com>

gdb/
* target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
* infrun.c (siginfo_value_read, siginfo_value_write): New.
(siginfo_value_funcs): New.
(siginfo_make_value): New.
(_initialize_infrun): Create the $_siginfo convenience variable.
* gdbtypes.h (append_composite_type_field_aligned): Declare.
* gdbtypes.c (append_composite_type_field): Rename to...
(append_composite_type_field_aligned): ... this.  Add ALIGNMENT
argument.  Handle it.
(append_composite_type_field): Rewrite on top of
append_composite_type_field_aligned.
* value.h (internalvar_make_value): New typedef.
(struct internalvar) <make_value>: New field.
(create_internalvar_type_lazy): Declare.
* value.c (create_internalvar): Clear make_value.
(create_internalvar_type_lazy): New.
(value_of_internalvar): If make_value is set use it.
(preserve_values): Skip internal variables that don't have a
value.
* gdbarch.sh (get_siginfo_type): New.
* gdbarch.h, gdbarch.c: Regenerate.

* linux-tdep.h, linux-tdep.c: New.
* amd64-linux-tdep.c: Include "linux-tdep.h".
(amd64_linux_init_abi): Register linux_get_siginfo_type and
linux_get_siginfo_mapper.
* i386-linux-tdep.c: Include "linux-tdep.h".
(i386_linux_init_abi): Register linux_get_siginfo_type and
linux_get_siginfo_mapper.
* arm-linux-tdep.c: Include "linux-tdep.h".
(i386_linux_init_abi): Register linux_get_siginfo_type and
linux_get_siginfo_mapper.

* linux-nat.c (linux_xfer_siginfo): New.
(linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
* remote.c (PACKET_qXfer_siginfo_read)
(PACKET_qXfer_siginfo_write): New.
(feature remote_protocol_features): Add "qXfer:siginfo:read" and
"qXfer:siginfo:write" features.
(remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
(_initialize_remote): Add "set/show remote read-siginfo-object"
and "set/show remote write-siginfo-object" commands.

* Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
(HFILES_NO_SRCDIR): Add linux-tdep.h.
(ALLDEPFILES): Add linux-tdep.c.

* configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
(i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
gdb_target_obs.

2009-02-06  Pedro Alves  <pedro@codesourcery.com>

gdb/gdbserver/
* server.c (handle_query): Report qXfer:siginfo:read and
qXfer:siginfo:write as supported and handle them.
* target.h (struct target_ops) <qxfer_siginfo>: New field.
* linux-low.c (linux_xfer_siginfo): New.
(linux_target_ops): Set it.

2009-02-06  Pedro Alves  <pedro@codesourcery.com>

gdb/doc/
* gdb.texinfo (Signals): Document $_siginfo.
(Convenience Variables): Mention $_siginfo.
(Remote Configuration): Document qXfer:siginfo:read,
qXfer:siginfo:write packets, and the read-siginfo-object,
write-siginfo-object commands.

2009-02-06  Pedro Alves  <pedro@codesourcery.com>

gdb/testsuite/
* gdb.base/siginfo-obj.c, gdb.base/siginfo-obj.exp: New.

15 years agogdb/
Pedro Alves [Fri, 6 Feb 2009 22:50:52 +0000 (22:50 +0000)]
gdb/
2009-02-06  Jim Blandy  <jimb@codesourcery.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Vladimir Prus  <vladimir@codesourcery.com>
    Pedro Alves  <pedro@codesourcery.com>

* defs.h (enum lval_type): New value: lval_computed.
* value.h (struct lval_funcs): New type.
(allocate_computed_value, value_computed_funcs)
(value_computed_closure): New declarations.
* value.c (struct value): Add a structure to the location union
for computed lvalues, containing 'funcs' and 'closure' members.
(allocate_computed_value, value_computed_funcs)
(value_computed_closure): New functions.
(value_free): For computed lvalues, call the closure's
'free_closure' function before freeing the value itself.
(value_copy): If we're copying an lval_computed value, call the
closure's 'copy_closure' function.
(set_value_component_location): If the original value is a
computed lvalue, then call the closure's 'copy_closure' function.
(value_of_internalvar): If an internal variable's value is a
computed lvalue, make retrieving its value produce an equivalent
computed lvalue.
* valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
their read function.
(value_assign): Assign to computed lvalues by calling their write
function.

gdb/doc/
2009-02-06  Pedro Alves  <pedro@codesourcery.com>

* gdbint.texinfo (Values): New chapter.

15 years ago * linux-nat.c (linux_nat_wait): Adjust.
Pedro Alves [Fri, 6 Feb 2009 22:21:26 +0000 (22:21 +0000)]
* linux-nat.c (linux_nat_wait): Adjust.
(linux_nat_pid_to_str): Adjust.  Remove call to thread_db_init.
* linux-nat.h (thread_db_init): Delete declaration.
* linux-thread-db.c (target_beneath): Delete.
(thread_db_init): Delete.
(thread_db_detach): Use find_target_beneath.
(thread_db_wait): Adjust interface.  Use find_target_beneath.
(thread_db_mourn_inferior): Use find_target_beneath.
(thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
(thread_db_async_mask): Delete.
(thread_db_pid_to_str): Adjust interface.  Use
find_target_beneath.
(thread_db_get_thread_local_address): Adjust interface.  Use
find_target_beneath.
(init_thread_db_ops): Delete references to delete functions.
* target.c (update_current_target): Don't inherit or default
to_wait.  Don't inherit to_pid_to_str and
to_get_thread_local_address.
(target_translate_tls_address): Look for a pushed target that
implements to_get_thread_local_address, and use it instead of
checking for target_get_thread_local_address_p.
(target_wait, target_pid_to_str): Reimplement as functions.
(dummy_pid_to_str): New.
(init_dummy_target): Register it.
(debug_to_wait): Delete.
* target.h (struct target_ops): Make to_wait, to_pid_to_str and
to_get_thread_local_address accept a pointer to struct target_ops.
(target_wait): Delete macro, and declare as function.
(target_pid_to_str): Likewise.
(target_get_thread_local_address)
(target_get_thread_local_address_p): Delete.
(noprocess): Add NORETURN and ATTR_NORETURN tags.
* inf-ptrace.c (inf_ptrace_wait): Adjust.
(inf_ptrace_pid_to_str): New.
(inf_ptrace_target): Use inf_ptrace_pid_to_str.
* aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
* bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
* bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
Adjust.
* corelow.c (core_pid_to_str): Adjust.
* darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
* dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
* gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
* go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
* hpux-thread.c (hpux_thread_wait): Adjust.
* inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
* monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
* nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
* procfs.c (procfs_pid_to_str): Adjust.
* remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
* remote-mips.c (mips_wait): Adjust.
* remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
* remote.c (remote_wait, remote_pid_to_str)
(remote_get_thread_local_address): Adjust.
* rs6000-nat.c (rs6000_wait): Adjust.
* sol-thread.c (procfs_pid_to_str): Adjust declaration.
(sol_thread_wait, solaris_pid_to_str): Adjust.
* spu-linux-nat.c (spu_child_wait): Adjust.
* windows-nat.c (windows_wait, windows_pid_to_str): Adjust.

15 years agogdb/
Thiago Jung Bauermann [Fri, 6 Feb 2009 21:33:59 +0000 (21:33 +0000)]
gdb/
2009-02-06  Tom Tromey  <tromey@redhat.com>

* Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
(SUBDIR_PYTHON_SRCS): Add python-cmd.c.
(python-cmd.o): New target.
* cli/cli-decode.c (set_cmd_completer): Add self parameter to
completer prototype.
(add_cmd): Initialize destroyer member of cmd_list_element. Use
make_symbol_completion_list_fn as completer.
(delete_cmd): Call destroyer if one is set.
* cli/cli-decode.h (cmd_list_element): Add cmd parameter to
completer member.  Add destroyer member.
(set_cmd_completer): Add self parameter to
completer prototype.
* command.h (set_cmd_completer): Add cmd parameter to
completer prototype.
* completer.c (noop_completer, filename_completer,
location_completer, expression_completer, command_completer): Adapt
to new completer prototype.
(complete_line_internal): Pass new parameter to completer function.
* completer.h (noop_completer, filename_completer,
location_completer, expression_completer, command_completer): Adapt
prototypes to new completer prototype.
* interps.c (interpreter_completer): Adapt to new completer
prototype.
* python/python-cmd.c: New file.
* python/python-internal.h (gdbpy_initialize_commands): Add
prototype.
(gdbpy_doc_cst): Add forward declaration.
* python/python.c (gdbpy_doc_cst): Declare.
(_initialize_python): Call gdbpy_initialize_commands.  Initialize
gdbpy_doc_cst.
* symtab.c (make_symbol_completion_list_fn): New function.
* symtab.h (make_symbol_completion_list_fn): Add prototype.

gdb/doc/
2009-02-06  Tom Tromey  <tromey@redhat.com>

* gdb.texinfo (Python API): Add entry for Commands In Python.
(Commands In Python): New node.

gdb/testsuite/
2009-02-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>

* gdb.python/python-cmd.exp: New file.

15 years ago2009-02-06 Chris Demetriou <cgd@google.com>
Chris Demetriou [Fri, 6 Feb 2009 19:20:10 +0000 (19:20 +0000)]
2009-02-06  Chris Demetriou  <cgd@google.com>

* gold.h (gold_undefined_symbol): Change to take only a Symbol
pointer and to report location as the file name associated with
the symbol.
(gold_undefined_symbol_at_location): New function to replace the
old gold_undefined_symbol functionality.
* target-reloc.h (relocate_section): Update to use
gold_undefined_symbol_at_location.
* symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
Call gold_undefined_symbol function rather than gold_error.
* errors.h (Errors::undefined_symbol): Take location as a
string, rather than calculating it from a relocation.
* errors.cc (Errors::fatal): Print "fatal error:" before the
formatted message.
(Errors::error, Errors::error_at_location): Print "error: "
before the formatted message.
(Errors::undefined_symbol): Take location as a string, rather
than calculating it from a relocation.
(gold_undefined_symbol_at_location): New function akin to
old gold_undefined_symbol, calculates location from relocation.
(gold_undefined_symbol): Change to take only a Symbol pointer
and to report location as the file name associated with the symbol.
* testsuite/debug_msg.sh: Update for changed error messages.
* testsuite/undef_symbol.sh: Likewise.

15 years ago * lib/ld-lib.exp (check_gc_sections_available): Return 0 for
Joseph Myers [Fri, 6 Feb 2009 16:56:12 +0000 (16:56 +0000)]
* lib/ld-lib.exp (check_gc_sections_available): Return 0 for
*-*-mingw*.

15 years ago * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
Joseph Myers [Fri, 6 Feb 2009 14:11:00 +0000 (14:11 +0000)]
* elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
.sbss handling.

15 years ago PR 9814
Nick Clifton [Fri, 6 Feb 2009 12:51:52 +0000 (12:51 +0000)]
    PR 9814
        * config/tc-arm.c (MODE_RECORDED): New define.
        (output_inst): Record the thumb_mode in the current frag.
        (arm_handle_align): Ignore the MODE_RECORDED bit in tc_frag_data.
        (arm_init_frag): Only set the tc_frag_data field if it has not
        already been set.

15 years ago* gas/mips/beq.d: Make no assumptions about the symbols used as
Nick Clifton [Fri, 6 Feb 2009 12:20:12 +0000 (12:20 +0000)]
* gas/mips/beq.d: Make no assumptions about the symbols used as
        branch targets in the disassembly, or the names of the relocs
        produced.
        * gas/mips/bge.d: Likewise.
        * gas/mips/bgeu.d: Likewise.
        * gas/mips/blt.d: Likewise.
        * gas/mips/bltu.d: Likewise.
        * gas/mips/mips32-sf32.d: Likewise.
        * gas/mips/mips1-fp.d: Likewise.
        * gas/mips/branch-misc-1.d: Skip for the mips-ecoff target.
        * gas/mips/branch-misc-2-64.d: Likewise.
        * gas/mips/branch-misc-2.d: Likewise.
        * gas/mips/branch-misc-2pic-64.d: Likewise.
        * gas/mips/branch-misc-2pic.d: Likewise.
        * gas/mips/branch-swap.d: Likewise.

15 years ago * gas/elf/symtab.d: But do not run the test for the Alpha or HPPA
Nick Clifton [Fri, 6 Feb 2009 12:09:40 +0000 (12:09 +0000)]
    * gas/elf/symtab.d: But do not run the test for the Alpha or HPPA
        ports.

15 years agoUpdated Vietnamese translation.
Nick Clifton [Fri, 6 Feb 2009 10:47:33 +0000 (10:47 +0000)]
Updated Vietnamese translation.

15 years ago2009-02-06 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 6 Feb 2009 08:48:29 +0000 (08:48 +0000)]
2009-02-06  Tristan Gingold  <gingold@adacore.com>

* gdb.arch/i386-sse.c (main): Replace call to puts by an nop asm.

15 years ago * target.c (target_get_osdata): Check for equal or higher than
Pedro Alves [Fri, 6 Feb 2009 02:08:48 +0000 (02:08 +0000)]
* target.c (target_get_osdata): Check for equal or higher than
process_stratum, not dummy_stratum.

15 years agogas/testsuite/
Peter Bergner [Fri, 6 Feb 2009 01:50:54 +0000 (01:50 +0000)]
gas/testsuite/
* gas/ppc/booke.s ("dcbt", "dcbtst"): New tests.
* gas/ppc/booke.d: Likewise.
* gas/ppc/power4_32.s: Likewise.
* gas/ppc/power4_32.d: Likewise.

opcodes/
        * ppc-opc.c: Update copyright year.
        (powerpc_opcodes) <"dcbt", "dcbtst">: Deprecate the Embedded operand
        ordering for POWER4 and later and use the correct Server ordering.

15 years ago * remote.c (extended_remote_can_run): Delete.
Pedro Alves [Fri, 6 Feb 2009 01:23:00 +0000 (01:23 +0000)]
* remote.c (extended_remote_can_run): Delete.
(init_remote_ops): Don't register it.
* target.c (target_get_osdata): Don't check for target_can_run.
Instead any target that has already been pushed, otherwise
fallback to the default run target..

15 years ago * target.c (target_create_inferior, target_detach)
Pedro Alves [Fri, 6 Feb 2009 00:27:58 +0000 (00:27 +0000)]
* target.c (target_create_inferior, target_detach)
(target_mourn_inferior, target_attach, target_close): Do target
debug output.
(debug_to_attach, debug_to_detach, debug_to_create_inferior)
(debug_to_mourn_inferior, debug_to_close): Delete.
(setup_target_debug): Adjust.