binutils-gdb.git
15 years ago*** empty log message ***
gdbadmin [Tue, 31 Mar 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * ffsll.c (ffsll): Correct implementation.
Ian Lance Taylor [Mon, 30 Mar 2009 23:17:11 +0000 (23:17 +0000)]
* ffsll.c (ffsll): Correct implementation.

15 years agobinutils/
Richard Sandiford [Mon, 30 Mar 2009 20:39:43 +0000 (20:39 +0000)]
binutils/
* MAINTAINERS: Add self.

15 years agogdb/
Thiago Jung Bauermann [Mon, 30 Mar 2009 19:54:33 +0000 (19:54 +0000)]
gdb/
Expose frames to Python.
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
(SUBDIR_PYTHON_SRCS): Add python-frame.c.
(python-frame.o): New target.
* python/python-frame.c: New file.
* python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
gdbpy_initialize_frames): New prototypes.
* python/python.c (_initialize_python): Call gdbpy_initialize_frames.
(GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
entries.
* stack.c (find_frame_funname): New function, factored out of
print_frame.
(print_frame): Call find_frame_funname.
* stack.h (find_frame_funname): Add prototype.

gdb/doc/
* gdb.texinfo (Frames in Python): New node.
(Python API): Update.

gdb/testsuite/
* gdb.python/python-frame.c: New file.
* gdb.python/python-frame.exp: New file.

15 years agogas/testsuite:
Joseph Myers [Mon, 30 Mar 2009 14:41:31 +0000 (14:41 +0000)]
gas/testsuite:
* gas/arm/mapsecs.d, gas/arm/mapsecs.s: New.

opcodes:
* arm-dis.c (print_insn): Also check section matches in backwards
search for mapping symbol.

15 years agomerge from gcc
DJ Delorie [Mon, 30 Mar 2009 03:01:38 +0000 (03:01 +0000)]
merge from gcc

15 years agomerge from gcc
DJ Delorie [Mon, 30 Mar 2009 00:01:29 +0000 (00:01 +0000)]
merge from gcc

15 years ago*** empty log message ***
gdbadmin [Mon, 30 Mar 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Mon, 30 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago Remove unused value_object attribute `owned_by_gdb'.
Thiago Jung Bauermann [Sun, 29 Mar 2009 21:19:40 +0000 (21:19 +0000)]
Remove unused value_object attribute `owned_by_gdb'.
* python/python-value.c (value_object): Remove owned_by_gdb
attribute.
(valpy_dealloc): Remove reference to self->owned_by_gdb.
(valpy_new): Likewise.
(value_to_value_object): Likewise.

15 years agogdb/
Thiago Jung Bauermann [Sun, 29 Mar 2009 21:11:11 +0000 (21:11 +0000)]
gdb/
Change gdb.Value.address from a method to an attribute.
* python/python-value.c (value_object): Add `address' element.
(valpy_dealloc): Decrement reference to self->address if set.
(valpy_new): Initialize val_obj->address.
(valpy_address): Rename to ...
(valpy_get_address): ... this.  Change signature from method to
attribute.  Update self->address if not set.
(value_to_value_object): Initialize val_obj->address.
(value_object_getset): Add `address' element.
(value_object_methods): Remove `address' element.

gdb/testsuite/
* gdb.python/python-value.exp: Add tests for the address
attribute.

gdb/doc/
* gdb.texinfo (Values From Inferior): Change gdb.Value.address
from a method to an attribute.

15 years ago* gdb.arch/powerpc-prologue.exp: Update for disassemble-next-line.
Andreas Schwab [Sun, 29 Mar 2009 14:52:54 +0000 (14:52 +0000)]
* gdb.arch/powerpc-prologue.exp: Update for disassemble-next-line.

15 years ago* observer.sh: Set LANG/LC_ALL to C, not c.
Andreas Schwab [Sun, 29 Mar 2009 13:36:27 +0000 (13:36 +0000)]
* observer.sh: Set LANG/LC_ALL to C, not c.

15 years agomerge from gcc
DJ Delorie [Sun, 29 Mar 2009 02:15:39 +0000 (02:15 +0000)]
merge from gcc

15 years ago*** empty log message ***
gdbadmin [Sun, 29 Mar 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sun, 29 Mar 2009 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
Mark Mitchell [Sat, 28 Mar 2009 23:19:00 +0000 (23:19 +0000)]
* coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
"ERROR:", in error messages.
* cpu-arm.c (bfd_arm_merge_machines): Likewise.
* elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
* elf32-arm.c (tag_cpu_arch_combine): Likewise.
(elf32_arm_merge_eabi_attributes): Likewise.
(elf32_arm_merge_private_bfd_data): Likewise.

15 years ago * ffsll.c: New file.
Ian Lance Taylor [Sat, 28 Mar 2009 05:22:30 +0000 (05:22 +0000)]
* ffsll.c: New file.
* configure.ac: Call AC_REPLACE_FUNCS on ffsll.
* gold.h (ffsll): Declare if HAVE_FFSLL is not defined.
* ftruncate.c (ftruncate): Declare before definition.
* mremap.c (mremap): Likewise.
* pread.c (pread): Likewise.
* configure, Makefile.in, config.in: Rebuild.

15 years ago * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
Kevin Buettner [Sat, 28 Mar 2009 04:56:42 +0000 (04:56 +0000)]
* mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
`char' is unsigned.

15 years ago * remote.c (remote_stop_ns): If multi-process extensions are off,
Pedro Alves [Sat, 28 Mar 2009 01:15:13 +0000 (01:15 +0000)]
* remote.c (remote_stop_ns): If multi-process extensions are off,
and GDB is requesting the whole process to stop, sent "vCont;t",
not "vCont;t:-1"

15 years ago * inf-loop.c (inferior_event_handler): Avoid calling is_running on
Pedro Alves [Sat, 28 Mar 2009 00:58:31 +0000 (00:58 +0000)]
* inf-loop.c (inferior_event_handler): Avoid calling is_running on
null inferior_ptid.

15 years agodaily update
Alan Modra [Sat, 28 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

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

15 years ago * mremap.c: New file.
Ian Lance Taylor [Fri, 27 Mar 2009 23:21:09 +0000 (23:21 +0000)]
* mremap.c: New file.
* configure.ac: Call AC_REPLACE_FUNCS on mremap.
* gold.h (MREMAP_MAYMOVE): Define if HAVE_MREMAP is not defined.
(mremap): Declare if HAVE_MREMAP is not defined.
* configure, Makefile.in, config.in: Rebuild.

15 years agomerge from gcc
DJ Delorie [Fri, 27 Mar 2009 23:07:30 +0000 (23:07 +0000)]
merge from gcc

15 years ago * powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
Cary Coutant [Fri, 27 Mar 2009 18:19:09 +0000 (18:19 +0000)]
* powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
position independent.
* sparc.cc (Target_sparc::check_non_pic): Likewise.
* x86_64.cc (Target_x86_64::check_non_pic): Likewise.

15 years ago * dwarf.c (display_debug_ranges): Add the base address to the
Nick Clifton [Fri, 27 Mar 2009 14:27:02 +0000 (14:27 +0000)]
    * dwarf.c (display_debug_ranges): Add the base address to the
        displayed values for 'Begin' and 'End'.

15 years agoAdd one more tweak for readline/examples.
Eli Zaretskii [Fri, 27 Mar 2009 13:59:38 +0000 (13:59 +0000)]
Add one more tweak for readline/examples.

15 years ago * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
Eli Zaretskii [Fri, 27 Mar 2009 13:38:31 +0000 (13:38 +0000)]
* config/djgpp/fnchange.lst: Update to fix ARI-reported problems.

15 years ago * djunpack.bat: Use ".." quoting in Sed command, for the sake of
Eli Zaretskii [Fri, 27 Mar 2009 13:37:09 +0000 (13:37 +0000)]
* djunpack.bat: Use ".." quoting in Sed command, for the sake of
Windows builds of Sed.

15 years ago * section.c (bfd_get_section_contents): Detect and handle the case
Nick Clifton [Fri, 27 Mar 2009 11:38:30 +0000 (11:38 +0000)]
    * section.c (bfd_get_section_contents): Detect and handle the case
        where a section has the SEC_IN_MEMORY flag set but no actual
        contents allocated.

15 years agoRemove merge markers
Nick Clifton [Fri, 27 Mar 2009 08:26:18 +0000 (08:26 +0000)]
Remove merge markers

15 years ago * thread.c (do_restore_current_thread_cleanup): Redo test for
Doug Evans [Fri, 27 Mar 2009 02:44:51 +0000 (02:44 +0000)]
* thread.c (do_restore_current_thread_cleanup): Redo test for
whether to restore old->inferior_ptid.

* gdb.mi/mi-nonstop-exit.exp: New file.
* gdb.mi/non-stop-exit.c: New file.

15 years ago2009-03-26 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 27 Mar 2009 00:28:32 +0000 (00:28 +0000)]
2009-03-26  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (get_valid_dis386): Abort on unhandled table.

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

15 years agodaily update
Alan Modra [Fri, 27 Mar 2009 00:00:10 +0000 (00:00 +0000)]
daily update

15 years agogdb
Tom Tromey [Thu, 26 Mar 2009 23:30:12 +0000 (23:30 +0000)]
gdb
* breakpoint.c (resolve_sal_pc): Preserve original line number
when skipping prologue.
gdb/testsuite
Update for change to prologue skipping:
* gdb.mi/mi2-simplerun.exp: Update.
* gdb.mi/mi2-break.exp: Update.
* gdb.mi/mi-simplerun.exp: Update.
* gdb.mi/mi-break.exp: Update.
* gdb.base/ending-run.exp: Update.

15 years ago * thread.c (inferior_thread) Remove "extern" in definition.
Doug Evans [Thu, 26 Mar 2009 21:30:26 +0000 (21:30 +0000)]
* thread.c (inferior_thread) Remove "extern" in definition.

15 years agogdb/
Thiago Jung Bauermann [Thu, 26 Mar 2009 20:58:11 +0000 (20:58 +0000)]
gdb/
Add gdb.Value.is_optimized_out attribute.
* python/python-value.c (valpy_get_is_optimized_out): New
function.
(value_object_getset): New variable.
(value_object_type): Initialize tp_getset element.

gdb/doc/
* gdb.texinfo (Values From Inferior): Document is_optimized_out
attribute.

gdb/testsuite/
* gdb.python/python-value.exp (test_value_in_inferior): Test
gdb.Value.is_optimized_out attribute.

15 years agogdb/
Jan Kratochvil [Thu, 26 Mar 2009 14:47:19 +0000 (14:47 +0000)]
gdb/
Recognize missing DW_AT_location as <value optimized out>.
* dwarf2read.c
(new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
Call add_symbol_to_list.

gdb/testsuite/
* gdb.dwarf2/dw2-noloc-main.c: New file.
* gdb.dwarf2/dw2-noloc.S: New symbols matrix.
(.text): Remove.
(.data): New.
(DW_AT_stmt_list, .debug_line, DW_AT_frame_base): Remove.
(DW_AT_low_pc, DW_AT_high_pc): Reference `dw2-noloc-main.c'.
(DW_TAG_subprogram func_cu1, noloc): Remove.
(main): New.
* gdb.dwarf2/dw2-noloc.exp: Use prepare_for_testing, compile also
`dw2-noloc-main.c'.  Test the new DIEs from `dw2-noloc.S'.
(file_symbols): New procedure.

15 years ago2009-03-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Ramana Radhakrishnan [Thu, 26 Mar 2009 13:59:28 +0000 (13:59 +0000)]
2009-03-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        * gas/arm/wince_inst.d: Convert to unified syntax.

15 years ago PR 6494
Alan Modra [Thu, 26 Mar 2009 12:23:52 +0000 (12:23 +0000)]
PR 6494
* elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
p_filesz and p_memsz are equal.  Use p_memsz as the segment size.
(assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
if we don't find matching PT_LOAD when copying.

15 years ago PR 10005
Alan Modra [Thu, 26 Mar 2009 02:41:12 +0000 (02:41 +0000)]
PR 10005
* config/tc-i386.c (reloc): Don't abort on lack of required
reloc type.

15 years ago * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
Tom Tromey [Thu, 26 Mar 2009 01:27:45 +0000 (01:27 +0000)]
* gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
* stack.c (print_this_frame_argument_p): Use check_typedef.

15 years ago * configure: Rebuild.
Tom Tromey [Thu, 26 Mar 2009 01:18:35 +0000 (01:18 +0000)]
* configure: Rebuild.
* acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
Rearrange flags setting.  Add comments.

15 years ago * config/i386/nm-i386.h: Remove code within
Pierre Muller [Thu, 26 Mar 2009 00:18:46 +0000 (00:18 +0000)]
* config/i386/nm-i386.h: Remove code within
I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
* config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
macro.
* config/i386/nm-cygwin64.h: Ditto.
* config/i386/nm-fbsd.h: Ditto.
* config/i386/nm-go32.h: Ditto.
* config/i386/nm-linux.h: Ditto.
* config/i386/nm-linux64.h: Ditto.

15 years agodaily update
Alan Modra [Thu, 26 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

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

15 years ago ARI fix: "xasprintf" rule.
Pierre Muller [Wed, 25 Mar 2009 22:38:46 +0000 (22:38 +0000)]
ARI fix: "xasprintf" rule.
* printcmd.c (sym_info): Replace xasprintf by xstrprintf.

15 years ago * remote.c (remote_start_remote): In non-stop mode, call
Pedro Alves [Wed, 25 Mar 2009 22:27:49 +0000 (22:27 +0000)]
* remote.c (remote_start_remote): In non-stop mode, call
init_wait_for_inferior before adding threads and inferiors.

15 years ago * breakpoint.c (breakpoint_thread_match): Split a large condition
Joel Brobecker [Wed, 25 Mar 2009 22:08:29 +0000 (22:08 +0000)]
    * breakpoint.c (breakpoint_thread_match): Split a large condition
        into several smaller conditions.  No behavior change.

15 years agoFix the date in the last entry.
Joel Brobecker [Wed, 25 Mar 2009 22:07:16 +0000 (22:07 +0000)]
Fix the date in the last entry.

15 years agogdb/
Pedro Alves [Wed, 25 Mar 2009 21:53:11 +0000 (21:53 +0000)]
gdb/
* infrun.c (infrun_thread_thread_exit): New.
(_initialize_infrun): Attach it to the thread_exit observer.
* thread.c (delete_thread_1): Always call the observer, passing it
the silent flag.
* mi/mi-interp.c (mi_thread_exit): Add "silent" parameter.  If
SILENT, return immediately.

gdb/doc/
* observer.texi (thread_exit): Add "silent" parameter.

15 years ago * infrun.c (normal_stop): Use has_stack_frames instead of
Pedro Alves [Wed, 25 Mar 2009 21:42:35 +0000 (21:42 +0000)]
* infrun.c (normal_stop): Use has_stack_frames instead of
target_has_stack.
* mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
when there is no thread selected.
(mi_cmd_execute): Don't special case commands that can run without
a valid selected thread.
* top.c (execute_command): Don't special case commands that can
run without a valid selected thread.  Use has_stack_frames.
* infcmd.c (ensure_valid_thread): New.
(continue_1, step_1, jump_command, signal_command): Use it.
(detach_command): Error out if there's no selected thread/inferior.
* thread.c (print_thread_info): Allow having no thread selected.
(switch_to_thread): Don't read the PC if there is no current thread.
(do_restore_current_thread_cleanup): Don't record the current
frame if there is no current thread.
(make_cleanup_restore_current_thread): Don't read frame info if
there is no selected thread.
(_initialize_thread): Don't mark commands as
"no_selected_thread_ok".
* frame.c (get_current_frame): Error out if there is no valid
selected thread.
(has_stack_frames): Return false if there is no valid
selected thread.
* cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
"no_selected_thread_ok".
* cli/cli-decode.c (set_cmd_no_selected_thread_ok)
(get_cmd_no_selected_thread_ok): Delete.
* cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
(set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
Delete declaration.
* stack.c (get_selected_block): Use has_stack_frames.

15 years agogdb/
Thiago Jung Bauermann [Wed, 25 Mar 2009 21:15:04 +0000 (21:15 +0000)]
gdb/
  Fix size of FPSCR in Power 7 processors.
* ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
(PPC_FEATURE_HAS_DFP): New #define.
(ppc_linux_read_description): Check for DFP feature instead of
ISA 2.05 to decide on size of the FPSCR.

gdbserver/
Fix size of FPSCR in Power 7 processors.
* linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
(PPC_FEATURE_HAS_DFP): New #define.
(ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
size of the FPSCR.

15 years ago2009-03-25 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 25 Mar 2009 19:49:25 +0000 (19:49 +0000)]
2009-03-25  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (parse_insn): Use default_arch on unsupported
arch.

15 years ago * gdb.base/charset.exp (valid_target_charset): New proc.
Tom Tromey [Wed, 25 Mar 2009 19:25:49 +0000 (19:25 +0000)]
* gdb.base/charset.exp (valid_target_charset): New proc.
Use it to skip tests on invalid charsets.

15 years ago * mn10300-tdep.c (trad-frame.h): Don't include.
Kevin Buettner [Wed, 25 Mar 2009 13:40:05 +0000 (13:40 +0000)]
* mn10300-tdep.c (trad-frame.h): Don't include.
(prologue-value.h): Include.
(mn10300_frame_unwind_cache, set_reg_offsets): Delete.
(struct mn10300_prologue): Define.
(push_reg, translate_rreg, check_for_saved): New functions.
(mn10300_analyze_prologue): Rewrite, using prologue-value
machinery.  Handle more instructions than before.  Permit
instructions to occur in any order.
(mn10300_skip_prologue): Find the extents of the function
in question; mn10300_analyze_prologue no longer does this.
(mn10300_analyze_frame_prologue): New function.
(mn10300_frame_base): New function.
(mn10300_frame_this_id): Rewrite, no longer using trad-frame
implementation.
(mn10300_frame_prev_register): Likewise.
(mn10300_frame_base_address, mn10300_frame_base struct): Delete.
(mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
`this_frame'.
(mn10300_frame_unwind_init): Don't call frame_base_set_default().

15 years ago * gdb.base/completion.exp: Add a test for directory completion.
Pierre Muller [Wed, 25 Mar 2009 10:52:22 +0000 (10:52 +0000)]
* gdb.base/completion.exp: Add a test for directory completion.

15 years ago Fix completer problem for filename completion on the first try.
Pierre Muller [Wed, 25 Mar 2009 10:50:57 +0000 (10:50 +0000)]
Fix completer problem for filename completion on the first try.

* gdb/completer.h (gdb_completion_word_break_characters): New function.
* gdb/completer.c: Include gdb_assert.h.
(complete_line_internal_reason): New enum.
(complete_line_internal): Change last argument type to
complete_line_internal_reason.
Modify function to handle the different complete_line_internal_reason
argument values.
(complete_line): Adapt to change in complete_line_internal.
(command_completer): Ditto.
(gdb_completion_word_break_characters): Implement new function.
* top.c (init_main): Set  rl_completion_word_break_hook to
gdb_completion_word_break_characters.

15 years ago ARI fix: "strlen d_name" rule.
Pierre Muller [Wed, 25 Mar 2009 10:02:13 +0000 (10:02 +0000)]
ARI fix: "strlen d_name" rule.
* linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.

15 years ago2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
M R Swami Reddy [Wed, 25 Mar 2009 08:08:36 +0000 (08:08 +0000)]
2009-03-25  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

        * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
        the reloc descriptions.

15 years ago2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
M R Swami Reddy [Wed, 25 Mar 2009 08:05:57 +0000 (08:05 +0000)]
2009-03-25  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

* elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
the reloc descriptions.

15 years ago * ld-cris/tls-e-dtpoffd3.d, ld-cris/tls-e-tpoffcomm1.d,
Hans-Peter Nilsson [Wed, 25 Mar 2009 03:04:21 +0000 (03:04 +0000)]
* ld-cris/tls-e-dtpoffd3.d, ld-cris/tls-e-tpoffcomm1.d,
ld-cris/tls-e-tpoffcomm1.s: New tests.

15 years ago * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
Hans-Peter Nilsson [Wed, 25 Mar 2009 03:03:40 +0000 (03:03 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
<R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
<case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.

15 years ago * readelf.c (process_file_header): Don't report a corrupt string
Alan Modra [Wed, 25 Mar 2009 01:37:18 +0000 (01:37 +0000)]
* readelf.c (process_file_header): Don't report a corrupt string
table index if it is zero.

15 years ago * symtab.h (needs_plt_entry): Check for unsatisfied reference from
Cary Coutant [Wed, 25 Mar 2009 01:34:25 +0000 (01:34 +0000)]
* symtab.h (needs_plt_entry): Check for unsatisfied reference from
an executable.
(needs_dynamic_reloc): Likewise.

15 years ago2009-03-24 Tom Tromey <tromey@redhat.com>
Tom Tromey [Wed, 25 Mar 2009 00:58:37 +0000 (00:58 +0000)]
2009-03-24  Tom Tromey  <tromey@redhat.com>
    Pedro Alves  <pedro@codesourcery.com>

* configure, config.in: Rebuild.
* configure.ac: Check for libiconvlist.
* charset.c: Check HAVE_LIBICONVLIST.
* acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
LIBICONV_LIBDIR.  Update CPPFLAGS and LIBS.
* Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
Remove.
(INTERNAL_CFLAGS_BASE): Update.
(INTERNAL_LDFLAGS): Update.
(CLIBS): Update.

15 years agodaily update
Alan Modra [Wed, 25 Mar 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 25 Mar 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * yyscript.y (file_cmd): Recognize EXTERN.
Ian Lance Taylor [Tue, 24 Mar 2009 19:08:37 +0000 (19:08 +0000)]
* yyscript.y (file_cmd): Recognize EXTERN.
(extern_name_list, extern_name_list_body): New nonterminals.
* script.cc (script_add_extern): Define.
* script-c.h (script_add_extern): Declare.

15 years ago * object.cc (is_elf_object): Define.
Ian Lance Taylor [Tue, 24 Mar 2009 18:42:10 +0000 (18:42 +0000)]
* object.cc (is_elf_object): Define.
* object.h (is_elf_object): Declare.
* archive.cc (Archive::get_elf_object_for_member): Call
is_elf_object.
* readsymc.cc (Read_symbols::do_read_symbols): Likewise.

15 years ago2009-03-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 24 Mar 2009 18:07:14 +0000 (18:07 +0000)]
2009-03-24  H.J. Lu  <hongjiu.lu@intel.com>

* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
(bfd_i386_arch_intel_syntax): Likewise.
(i8086_arch): Likewise.
(bfd_x86_64_arch): Likewise.

15 years ago * output.cc (Output_file::map_anonymous): Define.
Ian Lance Taylor [Tue, 24 Mar 2009 18:04:26 +0000 (18:04 +0000)]
* output.cc (Output_file::map_anonymous): Define.
(Output_file::map): Use map_anonymous.  If the regular mmap fails,
try an anonymous one.  Report the size if the mmap fails.
* output.h (class Output_file): Declare map_anonymous.

15 years ago * target-select.cc (instantiate_target): Don't acquire the lock if
Ian Lance Taylor [Tue, 24 Mar 2009 17:32:43 +0000 (17:32 +0000)]
* target-select.cc (instantiate_target): Don't acquire the lock if
the instantiated_target_ field has already been set.

15 years ago * configure.ac: Initialize the variable $PREFER_CURSES.
Jan Kratochvil [Tue, 24 Mar 2009 17:01:34 +0000 (17:01 +0000)]
* configure.ac: Initialize the variable $PREFER_CURSES.
* configure: Regenerated.

15 years ago * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
Jan Kratochvil [Tue, 24 Mar 2009 16:54:35 +0000 (16:54 +0000)]
* configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
* configure: Regenerated.

15 years ago * ld-cris/tls-commx.s, ld-cris/tls-dso-dtpoffd2.d,
Hans-Peter Nilsson [Tue, 24 Mar 2009 07:58:23 +0000 (07:58 +0000)]
* ld-cris/tls-commx.s, ld-cris/tls-dso-dtpoffd2.d,
ld-cris/tls-dso-dtpoffd4.d, ld-cris/tls-dtpoffdx.s,
ld-cris/tls-e-dtpoffd1.d: New tests.

15 years ago * elf32-cris.c (cris_elf_relocate_section): <case
Hans-Peter Nilsson [Tue, 24 Mar 2009 07:57:21 +0000 (07:57 +0000)]
* elf32-cris.c (cris_elf_relocate_section): <case
R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
symbols for non-allocated sections.  Don't check whether to
generate R_CRIS_DTPMOD for non-allocated sections.
(cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
handle relocation GC:ing if applied to non-allocated section.
(cris_elf_check_relocs): Similar.

15 years ago ARI fix: "strerror" rule.
Pierre Muller [Tue, 24 Mar 2009 07:19:46 +0000 (07:19 +0000)]
ARI fix: "strerror" rule.
* darwin-nat.c (darwin_ptrace): Use safe_strerror.
(darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.

15 years ago2009-03-23 Ian Lance Taylor <iant@google.com>
Ian Lance Taylor [Tue, 24 Mar 2009 04:50:32 +0000 (04:50 +0000)]
2009-03-23  Ian Lance Taylor  <iant@google.com>

* gold-threads.h (class Initialize_lock): Define.
* gold-threads.cc (class Initialize_lock_once): Define.
(initialize_lock_control): New static variable.
(initialize_lock_pointer): New static variable.
(initialize_lock_once): New static function.
(Initialize_lock::Initialize_lock): Define.
(Initialize_lock::initialize): Define.
* target-select.h: Include "gold-threads.h".
(class Target_selector): Add lock_ and initialize_lock_ fields.
Don't define instantiate_target, just declare it.
* target-select.cc (Target_selector::Target_selector): Initialize
new fields.
(Target_selector::instantiate_target): Define.
* descriptors.h: Include "gold-threads.h".
(class Descriptors): Add initialize_lock_ field.
* descriptors.cc (Descriptors::Descriptors): Initialize new
field.
(Descriptors::open): Use initialize_lock_ field
* errors.h (class Errors): Add initialize_lock_ field.
* errors.cc (Errors::Errors): Initialize new field.
(Errors::initialize_lock): Use initialize_lock_ field.
* powerpc.cc (class Target_selector_powerpc): Remove
instantiated_target_ field.  In do_recognize call
instantiate_target rather than do_instantiate_target.  In
do_instantiate_target just allocate a new target.
* sparc.cc (class Target_selector_sparc): Likewise.

15 years ago * ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,
Hans-Peter Nilsson [Tue, 24 Mar 2009 03:34:05 +0000 (03:34 +0000)]
* ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,
ld-cris/tls-e-80.d, ld-cris/tls-gd-3.d, ld-cris/tls-gd-3h.d,
ld-cris/tls-global-74.d, ld-cris/tls-ldgde-14.d,
ld-cris/tls-ldgde-15.d, ld-cris/tls-legd-16.d,
ld-cris/tls-legd-17.d, ld-cris/tls-local-57.d,
ld-cris/tls-local-58.d, ld-cris/tls-local-59.d: Adjust for BFD
change in link-time known GOT contents for GD relocations.

15 years ago * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
Hans-Peter Nilsson [Tue, 24 Mar 2009 03:32:31 +0000 (03:32 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
<R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
when emitting a known TP offset in the GOT.

15 years ago * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
Joel Brobecker [Tue, 24 Mar 2009 02:08:23 +0000 (02:08 +0000)]
    * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
        before looking up the fields inside our struct type.

15 years ago * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
Joel Brobecker [Tue, 24 Mar 2009 02:07:07 +0000 (02:07 +0000)]
    * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
        trying to resolve the type qualification.

15 years ago * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
Joel Brobecker [Tue, 24 Mar 2009 02:04:19 +0000 (02:04 +0000)]
    * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
        we try to apply the attribute on the real type, rather than
        its associated typedef.

15 years ago * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
Joel Brobecker [Tue, 24 Mar 2009 02:00:51 +0000 (02:00 +0000)]
    * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
        to make sure we try to get the modulus of the actual type, not the
        associated typedef.

15 years ago * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
Joel Brobecker [Tue, 24 Mar 2009 01:58:22 +0000 (01:58 +0000)]
    * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
        [OP_ATR_LENGTH]: When using the attribute on a type, make sure
        to get the real type, not the associated typedef.

15 years agoFix typo (sleep -> usleep).
Joel Brobecker [Tue, 24 Mar 2009 01:52:16 +0000 (01:52 +0000)]
Fix typo (sleep -> usleep).

15 years ago * ada-lang.c (ada_get_field_index): Add handling of the case
Joel Brobecker [Tue, 24 Mar 2009 01:51:48 +0000 (01:51 +0000)]
    * ada-lang.c (ada_get_field_index): Add handling of the case
        when TYPE is a typedef of a struct.

15 years ago * gdb_usleep.h, gdb_usleep.c: New files.
Joel Brobecker [Tue, 24 Mar 2009 01:37:48 +0000 (01:37 +0000)]
        * gdb_usleep.h, gdb_usleep.c: New files.
            * Makefile.in (SFILES): Add gdb_usleep.c.
            (HFILES_NO_SRCDIR): Add gdb_usleep.h.
            (COMMON_OBS): Add gdb_usleep.o.
            * ser-unix.c (hardwire_send_break): Replace call to gdb_select
            by call to gdb_usleep.

15 years ago * buildsym.c (end_symtab): If we ignore the subfiles, then
Joel Brobecker [Tue, 24 Mar 2009 01:32:46 +0000 (01:32 +0000)]
    * buildsym.c (end_symtab): If we ignore the subfiles, then
        unlink the associated symtabs if they were already allocated.

15 years ago Provide a way to force building of GDB with libcurses.
Joel Brobecker [Tue, 24 Mar 2009 01:19:27 +0000 (01:19 +0000)]
    Provide a way to force building of GDB with libcurses.
        * configure.ac: Add --with-curses.
        * configure: Regenerated.

15 years ago2009-03-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 24 Mar 2009 01:04:25 +0000 (01:04 +0000)]
2009-03-23  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/9966
* listing.c (listing_newline): Properly handle `\\"' and ';'.

* read.c (is_end_of_line): Update comments for line separator.
(read_begin): Set line separator in is_end_of_line to 2.

15 years ago2009-03-23 Ian Lance Taylor <iant@google.com>
Ian Lance Taylor [Tue, 24 Mar 2009 00:31:29 +0000 (00:31 +0000)]
2009-03-23  Ian Lance Taylor  <iant@google.com>

* freebsd.h: New file.
* i386.cc: Include "freebsd.h".
(Target_i386): Derive from Target_freebsd rather than
Sized_target.
(Target_selector_i386): Derive from Target_selector_freebsd rather
than Target_selector.
* x86_64.cc: Include "freebsd.h".
(Target_x86_64): Derive from Target_freebsd rather than
Sized_target.
(Target_selector_x86_64): Derive from Target_selector_freebsd
rather than Target_selector.
* target.h (class Target): Add adjust_elf_header and
do_adjust_elf_header.
* output.cc (Output_file_header:: do_sized_write): Call target
adjust_elf_header routine.
* configure.tgt: Set targ_osabi.
* configure.ac: Define GOLD_DEFAULT_OSABI.
* parameters.cc (Parameters::default_target): Pass
GOLD_DEFAULT_OSABI to select_target.
* target-select.h (class Target_selector): Make instantiate_target
protected rather than private.
* Makefile.am (HFILES): Add freebsd.h.
* configure, Makefile.in, config.in: Rebuild.

15 years agodaily update
Alan Modra [Tue, 24 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Tue, 24 Mar 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agomerge from gcc
DJ Delorie [Mon, 23 Mar 2009 22:05:12 +0000 (22:05 +0000)]
merge from gcc

15 years ago * merge.cc (do_add_input_section): Correct pend value. Change
Ian Lance Taylor [Mon, 23 Mar 2009 21:15:08 +0000 (21:15 +0000)]
* merge.cc (do_add_input_section): Correct pend value.  Change
message about last entry not being null terminated from error to
warning.

15 years ago * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
Tom Tromey [Mon, 23 Mar 2009 21:06:08 +0000 (21:06 +0000)]
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
error message.