OSDN Git Service
brobecke [Fri, 16 Oct 2009 23:25:21 +0000 (23:25 +0000)]
Add a "(tiny patch)" marker to Steve Kargl's entry.
eager [Fri, 16 Oct 2009 23:21:23 +0000 (23:21 +0000)]
Fix build failure for microblaze-xilinx-linux.
* microblaze-linux-tdep.c:
microblaze_linux_memory_remove_breakpoint(): Add gdbarch to param,
replace frame_pc_unwind with get_frame_address_in_block.
* microblaze-tdep.c: Remove MICROBLAZE_REGISTER_SIZE.
* microblaze-tdep.h: Add MICROBLAZE_REGISTER_SIZE.
brobecke [Fri, 16 Oct 2009 23:18:27 +0000 (23:18 +0000)]
* amd64fbsd-nat.c (amd64fbsd_supply_pcb): Conditionally compile in
support for pcb->pcb_{fs,ds,es,gs} on FreeBSD older than 8.0.
dougkwan [Fri, 16 Oct 2009 23:07:23 +0000 (23:07 +0000)]
2009-10-16 Doug Kwan <dougkwan@google.com>
* elfcpp/elfcpp.h (DT_PREINIT_ARRAY): Correct enum value.
amodra [Fri, 16 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update
dougkwan [Fri, 16 Oct 2009 19:11:32 +0000 (19:11 +0000)]
2009-10-16 Doug Kwan <dougkwan@google.com>
* dynobj.cc (Versions::Versions): Initialize version_script_.
Only insert base version symbol definition for a shared object
if version script defines any version versions.
(Versions::define_base_version): New method definition.
(Versions::add_def): Check that base version is not needed.
(Versions::add_need): Define base version lazily.
* dynobj.h (Versions::define_base_version): New method declaration.
(Versions::needs_base_version_): New data member declaration.
* testsuite/Makefile.am (check_SCRIPTS): Add no_version_test.sh
(check_DATA): Add no_version_test.stdout.
(libno_version_test.so, no_version_test.o no_version_test.stdout):
New make rules.
* testsuite/Makefile.in: Regenerate.
* testsuite/no_version_test.c: New file.
* testsuite/no_version_test.sh: Ditto.
devans [Fri, 16 Oct 2009 18:57:30 +0000 (18:57 +0000)]
* MAINTAINERS: Add myself as m32r maintainer.
dougkwan [Fri, 16 Oct 2009 18:56:06 +0000 (18:56 +0000)]
2009-10-16 Doug Kwan <dougkwan@google.com>
* expression.cc (class Segment_start_expression): New class definition.
(Segment_start_expression::value): New method definition.
(script_exp_function_segment_start): Return a new
Segment_start_expression.
* gold/script-c.h (script_saw_segment_start_expression): New function
prototype.
* script-sections.cc (Script_sections::Script_sections): Initialize
SAW_SEGMENT_START_EXPRESSION_ to false.
(Script_sections::set_section_addresses): Use -Ttext, -Tdata
and -Tbbs options to specify section addresses if given in
command line and no SEGMENT_START expression is seen in a script.
* script-sections.h (Script_sections::saw_segment_start_expression,
Script_sections::set_saw_segment_start_expression): New method
definition.
(Script_sections::saw_segment_start_expression_): New data member
declaration.
* script.cc (script_saw_segment_start_expression): New function.
* yyscript.y (SEGMENT_START): Call script_saw_segment_start_expression.
* testsuite/Makefile.am (check_SCRIPTS): Add script_test_6.sh,
script_test_7.sh and script_test_8.sh.
(check_DATA): Add script_test_6.stdout, script_test_7.stdout and
script_test_8.stdout.
(MOSTLYCLEANFILES): Add script_test_6, script_test_7 and script_test_8.
(script_test_6, script_test_6.stdout, script_test_7,
script_test_7.stdout, script_test_8, script_test_8.stdout): New rules.
* Makefile.in: Regenerate.
* testsuite/script_test_6.sh: New file.
* testsuite/script_test_6.t: Same.
* testsuite/script_test_7.sh: Same.
* testsuite/script_test_7.t: Same.
* testsuite/script_test_8.sh: Same.
dougkwan [Fri, 16 Oct 2009 18:34:53 +0000 (18:34 +0000)]
2009-10-16 Doug Kwan <dougkwan@google.com>
* output.cc (Output_segment::set_section_list_address): Cast
expressions to unsigned long long type to avoid format warnings.
devans [Fri, 16 Oct 2009 18:23:43 +0000 (18:23 +0000)]
* MAINTAINERS: Add myself as m32r maintainer.
hjl [Fri, 16 Oct 2009 16:33:14 +0000 (16:33 +0000)]
2009-10-16 H.J. Lu <hongjiu.lu@intel.com>
PR gas/10775
* doc/c-i386.texi: Mention the 8 extra control registers for
x86-64.
Mention .code64 directive.
hjl [Fri, 16 Oct 2009 15:50:51 +0000 (15:50 +0000)]
2009-10-16 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.h: Use enum instead of nested macros.
nickc [Fri, 16 Oct 2009 15:15:38 +0000 (15:15 +0000)]
* emultempl/pe.em (OPTION_EXCLUDE_ALL_SYMBOLS): New macro.
(gld${EMULATION_NAME}_add_options): Add new --exclude-all-symbols option
to exclude all symbols from automatic export.
(gld_${EMULATION_NAME}_list_options): Describe it.
(gld${EMULATION_NAME}_handle_option): Handle it.
* emultempl/pep.em: Likewise to all the above.
* pe-dll.c (pe_dll_exclude_all_symbols): New variable.
(process_def_file_and_drectve): Use it.
* pe-dll.h (pe_dll_exclude_all_symbols): Declare.
* pep-dll.c (pep_dll_exclude_all_symbols): Define pep_ alias.
* pep-dll.h (pe_dll_exclude_all_symbols): Declare.
* NEWS: Mention the new feature.
* ld.texinfo: Document the new command line switch.
hjl [Fri, 16 Oct 2009 14:47:08 +0000 (14:47 +0000)]
2009-10-16 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c: Simplify enums.
nickc [Fri, 16 Oct 2009 14:08:58 +0000 (14:08 +0000)]
PR 10764
* Makefile.am (sysinfo.o, syslex.o): Place source file after all
command line switches.
* Makefile.in: Regenerate.
nickc [Fri, 16 Oct 2009 14:02:55 +0000 (14:02 +0000)]
PR 10768
* dlltool.c (bfd_get_errmsg): New macro.
(scan_obj_file): Use it.
(make_one_lib_file): Use it.
(make_head): Use it.
(make_delay_head): Use it.
(make_tail): Use it.
(gen_lib_file): Use it.
(identify_dll_for_implib): Use it.
(identify_search_archive): Use it.
nickc [Fri, 16 Oct 2009 10:32:51 +0000 (10:32 +0000)]
* bootstrap.exp: Detect if plugins are enabled. Skip the static
link test and add -ldl to the remaining tests if they are.
nickc [Fri, 16 Oct 2009 10:05:06 +0000 (10:05 +0000)]
* readelf.c (usage): Add mention of --debug-dump=frames-interp.
Wrap output to 80 columns.
* objdump.c (usage): Likewise.
* doc/binutils.texi (readelf): Add note about =frames-interp.
amodra [Fri, 16 Oct 2009 07:14:42 +0000 (07:14 +0000)]
PR binutils/10785
* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Don't bfd_alloc
bim and bim->buffer. bfd_malloc instead.
* peicode.h (pe_ILF_build_a_bfd): Similarly.
(ILF_DATA_SIZE): Don't include bim.
* opncls.c (bfd_close): Test bim->buffer non-NULL before freeing.
ian [Fri, 16 Oct 2009 05:19:06 +0000 (05:19 +0000)]
* script.cc (Script_options::add_symbol_assignment): Always add a
dot assginment to script_sections_.
* script-sections.cc (Script_sections::add_dot_assignment):
Initialize if necessary.
ian [Fri, 16 Oct 2009 05:16:09 +0000 (05:16 +0000)]
* layout.cc (Layout::relaxation_loop_body): Don't crash if we see
program headers with no load segment if there is a linker script.
ian [Fri, 16 Oct 2009 05:00:28 +0000 (05:00 +0000)]
* layout.cc (Layout::set_segment_offsets): Align the file offset
to the segment aligment for -N or -n with no load segment.
* output.cc (Output_segment::add_output_section): Don't crash if
the first section is a TLS section.
(Output_segment::set_section_list_addresses): Print an error
message if the address moves backward in a linker script.
* script-sections.cc
(Output_section_element_input::set_section_addresses): Don't
increase *dot_value for a SHF_TLS/SHT_NOBITS section.
(Orphan_output_section::set_section_addresses): Likewise.
gdbadmin [Fri, 16 Oct 2009 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Thu, 15 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update
hjl [Thu, 15 Oct 2009 22:50:08 +0000 (22:50 +0000)]
2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
Ineiev <ineiev@gmail.com>
PR binutils/10767
* i386-dis.c: Use enum instead of nested macros.
hjl [Thu, 15 Oct 2009 22:26:55 +0000 (22:26 +0000)]
2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (MAX_BYTEMODE): Removed.
eager [Thu, 15 Oct 2009 19:38:12 +0000 (19:38 +0000)]
* MAINTAINERS: Add self as MicroBlaze maintainer.
eager [Thu, 15 Oct 2009 19:28:52 +0000 (19:28 +0000)]
* config/djgpp/fnchange.lst: Add translations for cpu-microblaze.c,
elf32-microblaze.c, microblaze-rom.c, microblaze-linux-tdep.c,
microblaze-tdep.h, microblaze-tdep.c, microblaze-opc.h,
microblaze-opcm.h, microblaze-dis.c, microblaze-dis.h, sim/microblaze,
microblaze.h, and microblaze.isa.
* configure.tgt: Add targets microblaze*-linux-*, microblaze*-xilinx-*.
* Makefile.in: Build microblaze-tdep.o, microblaze-linux-tdep.o.
HFILES_NO_SRCDIR: Add microblaze-tdep.h.
* microblaze-linux-tdep.c: New.
* microblaze-tdep.c: New.
* microblaze-tdep.h: New.
* NEWS: Announce Xilinx MicroBlaze support.
dougkwan [Thu, 15 Oct 2009 18:17:48 +0000 (18:17 +0000)]
2009-10-15 Doug Kwan <dougkwan@google.com>
* layout.cc (Layout::finish_dynamic_section): Generate tags
DT_FINI_ARRAY, DT_FINI_ARRAYSZ, DT_INIT_ARRAY, DT_INIT_ARRAYSZ,
DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ as needed. If -Bsymbolic is
used, add DT_SYMBOLIC and set DF_SYMBOLIC in DT_FLAGS.
ppluzhnikov [Thu, 15 Oct 2009 18:17:39 +0000 (18:17 +0000)]
Forgot to mention PR gdb/10757.
ppluzhnikov [Thu, 15 Oct 2009 18:06:15 +0000 (18:06 +0000)]
2009-10-15 Paul Pluzhnikov <ppluzhnikov@google.com>
* linux-nat.c (linux_nat_post_attach_wait): Adjust assert.
(lin_lwp_attach_lwp, linux_nat_attach): Handle disappearing LWP.
msnyder [Thu, 15 Oct 2009 17:27:51 +0000 (17:27 +0000)]
2009-10-15 Michael Snyder <msnyder@vmware.com>
* record.c (record_insn_max_num): Make unsigned.
(_initialize_record): Use uinteger instead of zinteger for
set command, so that it will report "unlimited" for zero.
msnyder [Thu, 15 Oct 2009 17:15:48 +0000 (17:15 +0000)]
2009-10-15 Michael Snyder <msnyder@vmware.com>
* record.c (record_reg_alloc): New function.
(record_reg_release): New function.
(record_mem_alloc): New function.
(record_mem_release): New function.
(record_end_alloc): New function.
(record_end_release): New function.
(record_entry_release): New function.
(record_list_release): Simplify, call record_entry_release.
(record_list_release_next): Rename to record_list_release_following.
Simplify and call record_entry_release.
(record_list_release_first): Simplify, comment, and use
record_entry_release.
(record_arch_list_add_reg): Simplify, call record_reg_alloc.
(record_arch_list_add_mem): Simplify, call record_mem_alloc.
(record_arch_list_add_end): Simplify, call record_end_alloc.
dj [Thu, 15 Oct 2009 17:03:34 +0000 (17:03 +0000)]
merge from gcc
msnyder [Thu, 15 Oct 2009 16:57:35 +0000 (16:57 +0000)]
2009-10-12 Michael Snyder <msnyder@vmware.com>
* record.c (record_list_release_first): Do not decrement
record_insn_num.
(set_insn_num_max): Remove printf.
Decrement record_insn_num in the loop.
joel [Thu, 15 Oct 2009 15:46:49 +0000 (15:46 +0000)]
2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* std-config.h: Fix spelling error.
joel [Thu, 15 Oct 2009 15:46:18 +0000 (15:46 +0000)]
2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* sim-inline.h: Fix spelling error.
corinna [Thu, 15 Oct 2009 11:40:02 +0000 (11:40 +0000)]
* cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
using my_wcstombs.
(get_user_folder): Remove.
(do_sysfolders): Use get_special_folder instead of get_user_folder.
Fetch system paths as WCHAR and convert using my_wcstombs.
amodra [Thu, 15 Oct 2009 10:58:34 +0000 (10:58 +0000)]
PR gas/1491
gas/
* macro.c: Delete unnecessary function declarations.
(buffer_and_nest): Support multiple labels per line for
LABELS_WITHOUT_COLONS targets if the labels do have colons.
(free_macro): Move so that we don't need forward declaration.
* read.c (read_a_source_file): Take a copy of macro expansion line
before we trim labels.
* listing.c (listing_newline): Adjust stdin line save for
input_line_pointer still at start of line.
gas/testsuite/
* gas/macros/dot.s: Don't start macro invocations is first column.
* gas/macros/dot.l: Update.
* gas/macros/macros.exp: Run dot test on more targets.
gingold [Thu, 15 Oct 2009 09:41:35 +0000 (09:41 +0000)]
2009-10-15 Jim Blandy <jimb@red-bean.com>
* libgnuintl.h (_INTL_MAY_RETURN_STRING_ARG, gettext, dgettext)
(dcgettext, ngettext, dngettext, dcngettext): Backport changes
from current gettext to provide GCC format_arg attributes.
corinna [Thu, 15 Oct 2009 08:46:58 +0000 (08:46 +0000)]
* faq-setup.xml (faq.setup.disk-space): Fix URL pointing to
clean_setup.pl script.
corinna [Thu, 15 Oct 2009 08:23:27 +0000 (08:23 +0000)]
* libc/include/wchar.h (struct tm0: Declare as incomplete type.
corinna [Thu, 15 Oct 2009 08:08:50 +0000 (08:08 +0000)]
* libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
exception for KOI8 charsets.
devans [Thu, 15 Oct 2009 06:13:20 +0000 (06:13 +0000)]
* opcode.scm (<ifield>, 'gen-insert): Use ifld-decode-mode instead of
ifld-encode-mode.
(<multi-ifield>, 'gen-insert): Ditto.
devans [Thu, 15 Oct 2009 05:51:08 +0000 (05:51 +0000)]
* ifield.scm (<ifield>, value): Provide default initial value.
(ifield-encode-mode): Delete
(ifield-decode-mode): Delete duplicate definition.
(<derived-ifield>, 'make!): Initialize members encode, decode.
ian [Thu, 15 Oct 2009 00:33:18 +0000 (00:33 +0000)]
* object.h (class Relocate_info): Add reloc_shdr and data_shdr
fields.
* object.cc (Sized_relobj::relocate_sections): Set reloc_shdr and
data_shdr fields of relinfo.
* i386.cc (class Target_i386::Relocate): Remove ldo_addrs_ field.
(Target_i386::Relocate::relocate_tls): Don't call fix_up_ldo. For
R_386_TLS_LDO_32, adjust based on section flags.
(Target_i386::Relocate::fix_up_ldo): Remove.
gdbadmin [Thu, 15 Oct 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
ccoutant [Wed, 14 Oct 2009 23:48:01 +0000 (23:48 +0000)]
2009-10-14 Cary Coutant <ccoutant@google.com>
* dwarf2read.c (read_import_statement): Call follow_die_ref_or_sig.
jsm28 [Wed, 14 Oct 2009 23:12:15 +0000 (23:12 +0000)]
* ld-scripts/phdrs3.d: Allow colon in name of linker binary.
amodra [Wed, 14 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update
kseitz [Wed, 14 Oct 2009 22:50:30 +0000 (22:50 +0000)]
* dwarf2read.c (dwarf2_const_value): Fix order of arguments to
store_unsigned_integer.
palves [Wed, 14 Oct 2009 19:48:27 +0000 (19:48 +0000)]
Remove spurious gdb/ ...
palves [Wed, 14 Oct 2009 19:44:38 +0000 (19:44 +0000)]
gdb/
* configure.ac (build_warnings): Add -Wunused-value.
* configure: Regenerate.
gingold [Wed, 14 Oct 2009 13:15:34 +0000 (13:15 +0000)]
2009-10-14 Tristan Gingold <gingold@adacore.com>
* solib-darwin.c: Remove trailing whitespaces.
(darwin_dyld_version_ok): Fix typo.
amodra [Wed, 14 Oct 2009 11:30:20 +0000 (11:30 +0000)]
PR 969
* m68k-opc.c (m68k_opcodes): Correct mask for macl and msacl.
schwab [Wed, 14 Oct 2009 10:54:27 +0000 (10:54 +0000)]
* ldlex.l (yy_input): Remove second argument and return the value
instead.
(YY_INPUT): Adjust.
amodra [Wed, 14 Oct 2009 10:52:54 +0000 (10:52 +0000)]
* ld-elf/pr349-1.s, * ld-elf/pr349-2.s, * ld-elf/pr349.d: New.
ams [Wed, 14 Oct 2009 10:17:30 +0000 (10:17 +0000)]
2009-10-14 Andrew Stubbs <ams@codesourcery.com>
* sh-tdep.c (sh_gdbarch_init): Add show_regs settings for
bfd_mach_sh3_nommu, bfd_mach_sh2a_nofpu_or_sh3_nommu,
bfd_mach_sh2a_or_sh3e, bfd_mach_sh2a_or_sh4, bfd_mach_sh4_nommu_nofpu,
and bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu.
Move bfd_mach_sh2a_or_sh4 to use the same configuration as
bfd_mach_sh4.
amodra [Wed, 14 Oct 2009 05:54:28 +0000 (05:54 +0000)]
include/
* bfdlink.h (enum bfd_link_common_skip_ar_symbols): Rename from
bfd_link_common_skip_ar_aymbols.
(struct bfd_link_info): Here too.
bfd/
* aoutx.h (aout_link_check_ar_symbols): Typo fix.
ld/
* emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.
ian [Wed, 14 Oct 2009 05:25:01 +0000 (05:25 +0000)]
Add support for -pie.
* options.h (class General_options): Add -pie and
--pic-executable.
(General_options::output_is_position_independent): Test -pie.
(General_options::output_is_executable): Return true if not shared
and not relocatable.
(General_options::output_is_pie): Remove.
* options.cc (General_options::finalize): Reject incompatible uses
of -pie.
* gold.cc (queue_middle_tasks): A -pie link is not static.
* symtab.h (Symbol::needs_plt_entry): Return false if -pie.
* symtab.cc (Symbol::final_value_is_known): Return false if
output_is_position_independent.
* layout.cc (Layout::set_segment_offsets): Start at address 0 if
output_is_position_independent.
* output.cc (Output_file_header::do_sized_write): Use ET_DYN if
output_is_position_independent.
* i386.cc (Output_data_plt_i386::do_write): Use the PIC PLT if
output_is_position_independent.
* testsuite/Makefile.am (check_PROGRAMS): Add basic_pie_test and
two_file_pie_test.
(basic_pie_test.o, basic_pie_test): New targets.
(two_file_test_1_pie.o, two_file_test_1b_pie.o): New targets.
(two_file_test_2_pie.o, two_file_test_main_pie.o): New targets.
(two_file_pie_test): New target.
* testsuite/Makefile.in: Rebuild.
* README: Remove note saying that -pie is not supported.
ericb [Wed, 14 Oct 2009 04:17:04 +0000 (04:17 +0000)]
Consistently use va_end.
* external.cc (cygwin_internal): Use va_end.
* fork.cc (child_copy): Likewise.
* libc/bsdlib.cc (warn, warnx, err, errx): Likewise.
* pinfo.cc (commune_request): Likewise.
* strace.cc (strace::prntf, strace_printf): Likewise.
ericb [Wed, 14 Oct 2009 04:15:24 +0000 (04:15 +0000)]
* libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
new to POSIX 2008.
amodra [Wed, 14 Oct 2009 01:48:53 +0000 (01:48 +0000)]
* ldlang.c (load_symbols): Set whole_archive from entry when
parsing a linker script.
gdbadmin [Wed, 14 Oct 2009 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
bje [Tue, 13 Oct 2009 23:44:18 +0000 (23:44 +0000)]
* MAINTAINERS (common): Move myself to "past maintainers" section.
amodra [Tue, 13 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update
drow [Tue, 13 Oct 2009 22:48:43 +0000 (22:48 +0000)]
* arm-tdep.c (arm_push_dummy_call): Set the low bit of LR for
a Thumb entry point.
(thumb_get_next_pc): Handle Thumb-2 and ARM v6 instructions. Refuse
to single step into IT blocks.
ian [Tue, 13 Oct 2009 21:23:00 +0000 (21:23 +0000)]
* options.h (class General_options): Add -init and -fini.
* layout.cc (Layout::finish_dynamic_section): Emit
given init and fini functions.
tmsriram [Tue, 13 Oct 2009 21:17:42 +0000 (21:17 +0000)]
* gc.h (gc_process_relocs): Check if icf is enabled using new
function.
* gold.cc (queue_initial_tasks): Likewise.
(queue_middle_tasks): Likewise.
* object.cc (do_layout): Likewise.
* symtab.cc (is_section_folded): Likewise.
* main.cc (main): Likewise.
* reloc.cc (Read_relocs::run): Likewise.
(Sized_relobj::do_scan_relocs): Likewise.
* icf.cc (is_function_ctor_or_dtor): New function.
(Icf::find_identical_sections): Check if function is ctor or dtor when
safe icf is chosen.
* options.h (General_options::icf): Change option to be an enum.
(Icf_status): New enum.
(icf_enabled): New method.
(icf_safe_folding): New method.
(set_icf_status): New method.
(icf_status_): New variable.
* (options.cc) (General_options::finalize): Set icf_status_.
* testsuite/Makefile.am: Add commands to build icf_safe_test. Modify
icf_test and icf_keep_unique_test to use the --icf enum flag.
* testsuite/icf_safe_test.sh: New file.
* testsuite/icf_safe_test.cc: New file.
hjl [Tue, 13 Oct 2009 18:44:19 +0000 (18:44 +0000)]
2009-10-13 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (print_insn): Always clear need_vex, need_vex_reg
and vex_w_done.
jjohnstn [Tue, 13 Oct 2009 17:31:49 +0000 (17:31 +0000)]
2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/signal.h: Include <sys/types.h> always.
[__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
standards.
jjohnstn [Tue, 13 Oct 2009 17:27:26 +0000 (17:27 +0000)]
2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/signal.h: Include <sys/types.h> always.
[__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
standards.
hjl [Tue, 13 Oct 2009 16:43:39 +0000 (16:43 +0000)]
Fix a typo.
hjl [Tue, 13 Oct 2009 16:42:39 +0000 (16:42 +0000)]
2009-10-13 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/10766
* config/tc-i386.c (build_modrm_byte): Declare exp earlier.
hjl [Tue, 13 Oct 2009 16:37:37 +0000 (16:37 +0000)]
2009-10-13 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/10763
* elf32-i386.c (elf_i386_finish_dynamic_symbol): Declare plt
earlier.
hjl [Tue, 13 Oct 2009 16:23:24 +0000 (16:23 +0000)]
gas/
2009-10-13 H.J. Lu <hongjiu.lu@intel.com>
PR gas/10740
* config/tc-i386-intel.c (i386_intel_operand): Handle call
and jump with 2 immediate operands.
* config/tc-i386.c (i386_finalize_immediate): Don't generate
error message if operand string is NULL.
gas/testsuite/
2009-10-13 H.J. Lu <hongjiu.lu@intel.com>
PR gas/10740
* gas/i386/jump.s: Add new tests.
* gas/i386/jump16.s: Likewise.
* gas/i386/jump.d: Updated.
* gas/i386/jump16.d: Likewise.
palves [Tue, 13 Oct 2009 13:51:18 +0000 (13:51 +0000)]
2009-10-13 Pedro Alves <pedro@codesourcery.com>
gdb/
* infcall.c (call_function_by_hand): Formatting.
2009-10-13 Pedro Alves <pedro@codesourcery.com>
gdb/gdbserver/
* proc-service.c (ps_lgetregs): Formatting.
corinna [Tue, 13 Oct 2009 12:08:21 +0000 (12:08 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
gingold [Tue, 13 Oct 2009 10:31:37 +0000 (10:31 +0000)]
2009-10-13 Tristan Gingold <gingold@adacore.com>
* solib-darwin.c: Add an empty line after comment for functions.
(struct gdb_dyld_all_image_infos): Improve comment.
(DYLD_VERSION): Removed and replaced by ...
(DYLD_VERSION_MAX, DYLD_VERSION_MIN): ... New macros.
(darwin_dyld_version_ok): New function.
(darwin_load_image_infos): Call darwin_dyld_version_ok.
(darwin_current_sos): Ditto.
(darwin_solib_create_inferior_hook): Ditto.
corinna [Tue, 13 Oct 2009 10:23:31 +0000 (10:23 +0000)]
* include/sys/cygwin.h: Add new cygwin_getinfo_type
CW_SET_EXTERNAL_TOKEN.
Add new enum CW_TOKEN_IMPERSONATION, CW_TOKEN_RESTRICTED.
* cygheap.h (cyguser): New flags ext_token_is_restricted,
curr_token_is_restricted and setuid_to_restricted.
* external.cc (cygwin_internal): Add CW_SET_EXTERNAL_TOKEN.
* sec_auth.cc (set_imp_token): New function.
(cygwin_set_impersonation_token): Call set_imp_token ().
* security.h (set_imp_token): New prototype.
* spawn.cc (spawn_guts): Use CreateProcessAsUserW if restricted token
was enabled by setuid(). Do not create new window station in this case.
* syscalls.cc (seteuid32): Add handling of restricted external tokens.
Set HANDLE_FLAG_INHERIT for primary token.
(setuid32): Set setuid_to_restricted flag.
* uinfo.cc (uinfo_init): Do not reimpersonate if restricted token was
enabled by setuid (). Initialize user.*_restricted flags.
gingold [Tue, 13 Oct 2009 09:42:57 +0000 (09:42 +0000)]
2009-10-13 Tristan Gingold <gingold@adacore.com>
* machoread.c: Add an empty line after comment for functions.
(oso_el_compare_name): New function.
(macho_add_oso_symfile): New function.
(macho_oso_symfile): Use macho_add_oso_symfile. Sort the oso
and optimize accesses to libraries.
nickc [Tue, 13 Oct 2009 08:55:30 +0000 (08:55 +0000)]
gas:
2009-10-07 Vincent Riviere <vincent.riviere@freesbee.fr>
PR gas/3041
* config/tc-m68k.c (tc_gen_reloc): Fix addend for relocations
located in data section an referencing a weak symbol.
gas/testsuite:
2009-10-07 Vincent Riviere <vincent.riviere@freesbee.fr>
PR gas/3041
* gas/m68k/all.exp: Added "p3041data".
* gas/m68k/p3041.d, gas/m68k/p3041.s: Added tests of weak references
from text section to all possible sections.
* gas/m68k/p3041data.d, gas/m68k/p3041data.s: New test. Check weak
references from data section.
gingold [Tue, 13 Oct 2009 07:57:28 +0000 (07:57 +0000)]
2009-10-12 Tristan Gingold <gingold@adacore.com>
* gdb.base/sepdebug.exp: Check debug info are found.
gingold [Tue, 13 Oct 2009 07:56:29 +0000 (07:56 +0000)]
2009-10-12 Tristan Gingold <gingold@adacore.com>
* objfiles.c (objfile_has_symbols): New function.
* objfiles.h (objfile_has_symbols): Add prototype.
* symfile.c (symbol_file_add_with_addrs_or_offsets): Call
objfile_has_symbols.
(reread_symbols): Ditto.
amodra [Tue, 13 Oct 2009 04:06:20 +0000 (04:06 +0000)]
* elflink.c (_bfd_elf_merge_symbol): Revert previous patch.
rwild [Tue, 13 Oct 2009 03:32:18 +0000 (03:32 +0000)]
Fix toplevel 'config.status --recheck' for --enable-lto.
/:
* configure.ac: Add 'lto' to enable_languages, not
new_enable_languages, and only if not already present.
* configure: Regenerate.
roland [Tue, 13 Oct 2009 02:35:08 +0000 (02:35 +0000)]
Fix %s that should be %B in several message formats.
ericb [Tue, 13 Oct 2009 02:26:33 +0000 (02:26 +0000)]
Improve clock_gettime and utimensat resolution.
* hires.h (hires_ms): Change initime_us to initime_ns, with 10x
more resolution.
(hires_ms::nsecs): New prototype.
(hires_ms::usecs, hires_ms::msecs, hires_ms::uptime): Adjust.
* times.cc (systime_ns): New helper function.
(hires_ms::prime): Use it for more resolution.
(hires_ms::usecs): Change to...
(hires_ms::nsecs): ...with more resolution.
(clock_gettime): Use more resolution.
(systime): Rewrite in terms of systime_ns.
(timespec_to_filetime): Rewrite math to reflect true operation.
* fhandler_disk_file.cc (utimens_fs): Use higher resolution.
tmsriram [Tue, 13 Oct 2009 00:39:31 +0000 (00:39 +0000)]
* symtab.h: Check for GOLD_SYMTAB_H before header includes. Remove
includes to gc.h and icf.h.
* arm.cc: Include gc.h.
* gold.cc: Likewise.
* i386.cc: Likewise.
* powerpc.cc: Likewise.
* sparc.cc: Likewise.
* x86_64.cc: Likewise.
* gc.h: Include icf.h.
gdbadmin [Tue, 13 Oct 2009 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Mon, 12 Oct 2009 23:00:05 +0000 (23:00 +0000)]
daily update
ppluzhnikov [Mon, 12 Oct 2009 20:11:51 +0000 (20:11 +0000)]
doc/
2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.texinfo (Server): Document libthread-db-search-path.
gdbserver/
2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
* acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
* configure.ac: Adjust.
* linux-low.h (struct process_info_private): Move members to struct
thread_db.
(thread_db_free, thread_db_handle_monitor_command): New prototype.
* linux-low.c (linux_remove_process): Adjust.
(linux_wait_for_event_1, linux_look_up_symbols): Likewise.
* server.c (handle_query): Move code ...
(handle_monitor_command): ... here. New function.
* target.h (struct target_ops): New member.
* thread-db.c (struct thread_db): New.
(libthread_db_search_path): New variable.
(thread_db_create_event, thread_db_enable_reporting)
(find_one_thread, maybe_attach_thread, find_new_threads_callback)
(thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
(try_thread_db_load_1, dladdr_to_soname): New functions.
(try_thread_db_load, thread_db_load_search): New functions.
(thread_db_init): Search for libthread_db.
(thread_db_free): New function.
(thread_db_handle_monitor_command): Likewise.
* config.in: Regenerate.
* configure: Regenerate.
corinna [Mon, 12 Oct 2009 19:26:08 +0000 (19:26 +0000)]
* external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING
and CW_SETERRNO cases.
corinna [Mon, 12 Oct 2009 16:01:44 +0000 (16:01 +0000)]
* kill.cc (main): Skip to PID loop on invalid option to handle
negative pids there.
msnyder [Mon, 12 Oct 2009 15:52:25 +0000 (15:52 +0000)]
2009-10-12 Jiang Jilin <freephp@gmail.com>
* i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
instructions support.
corinna [Mon, 12 Oct 2009 11:57:28 +0000 (11:57 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
if the original device had one, too. Add comment.
* fhandler_socket.cc (fhandler_socket::fstat): Always return a size of
0 on sockets.
ian [Mon, 12 Oct 2009 06:02:06 +0000 (06:02 +0000)]
* plugin.cc: Include "gold.h" before other header files.
msnyder [Mon, 12 Oct 2009 01:59:54 +0000 (01:59 +0000)]
2009-10-11 Michael Snyder <msnyder@vmware.com>
* gdb.texinfo (ReverseStep): Show default as "unsupported".
(ReverseContinue): Ditto.
gdbadmin [Mon, 12 Oct 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sun, 11 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update