OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
19 years ago * fhandler_socket.cc (get_inet_addr): Add type parameter to return
corinna [Wed, 6 Apr 2005 18:50:12 +0000 (18:50 +0000)]
* fhandler_socket.cc (get_inet_addr): Add type parameter to return
unix socket type.  Read socket type from unix socket file.
(fhandler_socket::bind): Write socket type to unix socket file.
(fhandler_socket::connect): Return with errno EPROTOTYPE if
socket type of socket doesn't match socket type of unix socket
trying to connect to.

19 years agoMove construction of IA-32 vector types to i386-tdep.c.
jimb [Wed, 6 Apr 2005 17:01:19 +0000 (17:01 +0000)]
Move construction of IA-32 vector types to i386-tdep.c.
* gdbtypes.c (build_builtin_type_vec64i,
build_builtin_type_vec128i): Delete functions.
(builtin_type_vec64i, builtin_type_vec128i): Delete variables.
(build_gdbtypes): Don't initialize them.
(_initialize_gdbtypes): Don't register GDBARCH swap entries for
them.
* gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
declarations.
(builtin_type_v2_float, builtin_type_v2_int32,
builtin_type_v4_int16, builtin_type_v8_int8,
builtin_type_v2_double, builtin_type_v4_float,
builtin_type_v2_int64, builtin_type_v4_int32,
builtin_type_v8_int16, builtin_type_v16_int8): Add extern
declarations.
* i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
(i386_build_mmx_type, i386_build_sse_type): New functions.
(i386_register_type): Call them, rather than referring to
builtin_type_vec64i and builtin_type_vec128i.

19 years agopo/rw.po: New translation: Kinyarwanda
nickc [Wed, 6 Apr 2005 15:42:09 +0000 (15:42 +0000)]
po/rw.po: New translation: Kinyarwanda
configure.in (ALL_LINGUAS): Add rw

19 years ago2005-04-06 Jakub Jelinek <jakub@redhat.com>
jakub [Wed, 6 Apr 2005 15:33:01 +0000 (15:33 +0000)]
2005-04-06  Jakub Jelinek  <jakub@redhat.com>

* ldlang.c: Formatting.
(walk_wild_consider_section): Remember return value from wildcardp.
(is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
(wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.

2005-04-06  Robert O'Callahan  <rocallahan@novell.com>

* ld.h (lean_section_userdata_type): Remove.
(fat_section_userdata_type): Remove file field.
(SECTION_USERDATA_SIZE): Remove.
* ldlang.c (init_os): Eliminate initialization of unused
lean_section_userdata_type.

* ldlang.h (callback_t, walk_wild_section_handler_t): New
typedefs.
(struct lang_wild_statement_struct): Add walk_wild_section_handler
and handler_data fields.
* ldlang.c (callback_t): Removed.
(walk_wild_consider_section, walk_wild_section_general,
section_iterator_callback, find_section, is_simple_wild,
match_simple_wild, walk_wild_section_specs1_wild0,
walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
wild_spec_can_overlap, analyze_walk_wild_section_handler): New
functions.
(lang_add_wild): Call analyze_walk_wild_section_handler.
(walk_wild_section): Renamed to walk_wild_section_general and
created a wrapper function.
(section_iterator_callback_data): New typedef.

19 years ago2005-04-06 Nick Clifton <nickc@redhat.com>
hjl [Wed, 6 Apr 2005 14:45:51 +0000 (14:45 +0000)]
2005-04-06  Nick Clifton  <nickc@redhat.com>
    H.J. Lu  <hongjiu.lu@intel.com>

* po/rw.po: New translation: Kinyarwanda.
* configure.in (ALL_LINGUAS): Add rw.
* configure: Regenerate.

19 years ago * security.h (cygsidlist::addfromgr): Avoid duplicate entries.
corinna [Wed, 6 Apr 2005 12:35:48 +0000 (12:35 +0000)]
* security.h (cygsidlist::addfromgr): Avoid duplicate entries.
* grp.cc (initgrousp): Add syscall_printf.
(setgroups): Add syscall_printf and make sure sids are added only once.

19 years ago * bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
corinna [Wed, 6 Apr 2005 11:11:07 +0000 (11:11 +0000)]
* bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
* bsd_mutex.cc: Include stdlib.h, sys/msg.h and sys/sem.h.
(mtx_init): Initialize lock counter to 0.
(_mtx_lock): Increment and log mutex lock counter.
(mtx_owned): Add winpid argument. Return true only if mutex is
actually owned by process winpid.
(_mtx_assert): Add winpid argument accordingly.
(_mtx_unlock): Log owner and lock count.
(MSLEEP_MUTEX): Remove.
(MSLEEP_SEM): Ditto.
(MSLEEP_EVENT): Ditto.
(msleep_event_name): Ditto.
(msleep_cs): New global critical section.
(msleep_cnt): New global variable indicating msleep record usage.
(msleep_max_cnt): New global variable indicating msleep record size.
(msleep_arr): New global pointer to msleep records.
(msleep_init): Initialize msleep_cs. Allocate msleep_arr array.
(_msleep): Rewrite using new msleep_cs/msleep_arr based thread
synchronization. Don't be shy with debug output.
(wakeup): Rewrite using new msleep_cs/msleep_arr based thread
synchronization.
* bsd_mutex.h (struct mtx): Add lock counter for better debugging.
(mtx_owned): Declare with winpid argument.
(_mtx_assert): Ditto.
(mtx_assert): Define with winpid argument.
* cygserver.cc (version): Remove.
(SERVER_VERSION): New define, decoupling server version information
from source code control system.
(print_version): Simplify printing server version.
* process.cc (process::process): Fix wrong bracketing (and handle leak).
(process::~process): Only try to close _signal_arrived if valid.
* sysv_sem.cc: Include sys/smallprint.h.
(semundo_clear): Define with additional struct thread pointer argument.
Accomodate throughout.
(SEMUNDO_LOCKASSERT): Define with winpid argument. Accomodate
throughout.
(struct sem_undo): Define un_proc as pid_t on Cygwin. Accomodate
throughout.
(seminit): Improve debugging by adding the semid to the mutex name.
(semget): Correctly print key value as 64 bit hex value in debug
output.
(semexit_myhook): Remove Cygwin specific unlocking of mutexes owned
by exiting process.  Keep semaphore global lock throughout whole
function to avoid races.
* sysv_shm.cc (GIANT_REQUIRED): Define empty on Cygwin. We know that
Giant is locked.

19 years ago2005-04-06 Paolo Bonzini <bonzini@gnu.org>
bonzini [Wed, 6 Apr 2005 06:23:22 +0000 (06:23 +0000)]
2005-04-06  Paolo Bonzini  <bonzini@gnu.org>

        * Makefile.tpl (BUILD_CONFIGARGS): Include --with-build-subdir.
(TARGET_CONFIGARGS): Include --with-target-subdir.
(configure, all): New macros.  Use them throughout.

19 years ago* net.cc (cygwin_getservbyname): Return (possibly NULL) return value of dup_ent
cgf [Wed, 6 Apr 2005 05:48:53 +0000 (05:48 +0000)]
* net.cc (cygwin_getservbyname): Return (possibly NULL) return value of dup_ent
rather than assuming that tls buffer is valid.
(cygwin_getservbyport): Ditto.
(cygwin_gethostbyname): Ditto.
(cygwin_gethostbyaddr): Ditto.

19 years ago*** empty log message ***
gdbadmin [Wed, 6 Apr 2005 00:00:37 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Wed, 6 Apr 2005 00:00:08 +0000 (00:00 +0000)]
daily update

19 years ago * config/tc-xtensa.c (branch_align_power): New.
bwilson [Tue, 5 Apr 2005 23:37:33 +0000 (23:37 +0000)]
* config/tc-xtensa.c (branch_align_power): New.
(xtensa_find_unaligned_branch_targets, get_aligned_diff,
future_alignment_required): Use branch_align_power to check section
alignment as well as xtensa_fetch_width when aligning branch targets.

19 years ago * config/tc-xtensa.c: Warning fixes throughout.
bwilson [Tue, 5 Apr 2005 20:55:39 +0000 (20:55 +0000)]
* config/tc-xtensa.c: Warning fixes throughout.
(xtensa_fetch_width): Change to unsigned.
(assemble_nop, xtensa_find_unaligned_branch_targets,
xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
get_text_align_max_fill_size, get_text_align_nop_count,
get_text_align_nth_nop_size, get_noop_aligned_address,
get_aligned_diff, convert_frag_align_next_opcode,
convert_frag_immed_finish_loop, xtensa_create_property_segments,
xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
types, avoiding size_t and using offsetT and addressT appropriately.
(get_text_align_power): Clean up types.  Avoid incorrect bound.
(get_text_align_fill_size): Clean up types.  Restructure for clarity.

19 years ago2005-04-05 Dave Korn <dave.korn@artimi.com>
jjohnstn [Tue, 5 Apr 2005 18:38:09 +0000 (18:38 +0000)]
2005-04-05  Dave Korn  <dave.korn@artimi.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
        something that looks like a "NaN", put back the characters processed.

19 years ago2005-04-05 Dave Korn <dave.korn@artimi.com>
jjohnstn [Tue, 5 Apr 2005 18:37:41 +0000 (18:37 +0000)]
2005-04-05  Dave Korn  <dave.korn@artimi.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
        something that looks like a "NaN", put back the characters processed.

19 years ago* cygtls.cc (_cygtls::remove): Don't free or close stuff if we're being called
cgf [Tue, 5 Apr 2005 17:13:32 +0000 (17:13 +0000)]
* cygtls.cc (_cygtls::remove): Don't free or close stuff if we're being called
in a "non-standard" way.

19 years ago * elf64-ppc.c (dec_dynrel_count): New function split out from
amodra [Tue, 5 Apr 2005 12:16:34 +0000 (12:16 +0000)]
* elf64-ppc.c (dec_dynrel_count): New function split out from
ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd.
(ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it.
(ppc64_elf_tls_optimize): Likewise.

19 years ago2005-04-05 Paolo Bonzini <bonzini@gnu.org>
bonzini [Tue, 5 Apr 2005 08:16:28 +0000 (08:16 +0000)]
2005-04-05  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.tpl: Sync with gcc.
* Makefile.in: Regenerate.

19 years agoProvide .wcookie section for OpenBSD/sparc64.
nickc [Tue, 5 Apr 2005 08:01:11 +0000 (08:01 +0000)]
Provide .wcookie section for OpenBSD/sparc64.

19 years agoNew translation: Kinyarwanda
nickc [Tue, 5 Apr 2005 07:58:30 +0000 (07:58 +0000)]
New translation: Kinyarwanda

19 years ago * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.
rsandifo [Tue, 5 Apr 2005 07:35:05 +0000 (07:35 +0000)]
* elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.
(_bfd_mips_elf_section_from_shdr): Use it to check for recognized
SHT_MIPS_OPTIONS names.  Allow all sections with unrecognised
section flags.
(_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P
to check for SHT_MIPS_OPTIONS sections.
(_bfd_mips_elf_set_section_contents): Likewise.

19 years ago2005-04-04 Eric Christopher <echristo@redhat.com>
echristo [Tue, 5 Apr 2005 06:58:43 +0000 (06:58 +0000)]
2005-04-04  Eric Christopher  <echristo@redhat.com>

* elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
Clean up gp handling code.

19 years ago* sync.h (muto::initforce): Delete flawed implementation.
cgf [Tue, 5 Apr 2005 06:04:52 +0000 (06:04 +0000)]
* sync.h (muto::initforce): Delete flawed implementation.
* pwdgrp.h (pwdgrp::pglock): Make static.
* grp.cc (pwdgrp::pwdgrp): Eliminate use of initforce.

19 years ago* sync.h (muto::initforce): Force initialization even when name != NULL.
cgf [Tue, 5 Apr 2005 04:47:58 +0000 (04:47 +0000)]
* sync.h (muto::initforce): Force initialization even when name != NULL.
* grp.cc (pwdgrp::pwdgrp): Use initforce since the enclosing structure is
!NO_COPY.

19 years ago* sync.h (muto::operator int): New operator.
cgf [Tue, 5 Apr 2005 04:30:55 +0000 (04:30 +0000)]
* sync.h (muto::operator int): New operator.
(locker): Remove unused class.
(new_muto): Delete.
(new_muto1): Ditto.
(new_muto_name): Ditto.
* cygheap.cc (cygheap_setup_for_child): Reflect use of static storage for muto
rather than pointer.
(_csbrk): Ditto.
(_cmalloc): Ditto.
(_cmalloc): Ditto.
(_cfree): Ditto.
* cygheap.h (cwdstuff::cwd_lock): Ditto.
(cwdstuff::get_drive): Ditto.
* cygmalloc.h (__malloc_lock): Ditto.
(__malloc_unlock): Ditto.
* cygtls.cc (sentry::lock): Ditto.
(sentry::sentry): Ditto.
(~sentry): Ditto.
(_cygtls::init): Ditto.
* dcrt0.cc: Ditto.
(cygwin_atexit): Ditto.
(cygwin_exit): Ditto.
* debug.cc (lock_debug::locker): Ditto.
(lock_debug::lock_debug): Ditto.
(lock_debug::unlock): Ditto.
(debug_init): Ditto.
* dtable.cc (dtable::init_lock): Ditto.
* dtable.h (dtable::lock_cs): Ditto.
(dtable::lock): Ditto.
(dtable::unlock): Ditto.
* exceptions.cc (mask_sync): Ditto.
(sighold): Ditto.
(set_process_mask_delta): Ditto.
(set_signal_mask): Ditto.
(events_init): Ditto.
* grp.cc (pwdgrp::pwdgrp): Ditto.
* malloc_wrapper.cc (mallock): Ditto.
(malloc_init): Ditto.
* path.cc (cwdstuff::cwd_lock): Ditto.
(cwdstuff::get_hash): Ditto.
(cwdstuff::get_hash): Ditto.
(cwdstuff::init): Ditto.
(cwdstuff::set): Ditto.
(cwdstuff::get): Ditto.
* pwdgrp.h (pwdgrp::pglock): Ditto.
(pwdgrp::refresh): Ditto.
* sigproc.cc (sync_proc_subproc): Ditto.
(get_proc_lock): Ditto.
(proc_subproc): Ditto.
(_cygtls::remove_wq): Ditto.
(proc_terminate): Ditto.
(sigproc_init): Ditto.
* timer.cc (lock_timer_tracker::protect): Ditto.
(lock_timer_tracker::lock_timer_tracker): Ditto.
(lock_timer_tracker::~lock_timer_tracker): Ditto.
* wininfo.cc (wininfo::_lock;): Ditto.
(wininfo::winthread): Ditto.
(operator HWND): Ditto.
(wininfo::lock): Ditto.
(wininfo::release): Ditto.
* wininfo.h (wininfo::_lock;): Ditto.

19 years agobfd/
hjl [Tue, 5 Apr 2005 04:01:05 +0000 (04:01 +0000)]
bfd/

2005-04-04  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (bfd_elf_set_group_contents): Ignore linker created
group section.
(assign_section_numbers): Accept link_info. Check SHT_GROUP
sections for relocatable files only. Remove the linker created
group sections.
(_bfd_elf_compute_section_file_positions): Pass link_info to
assign_section_numbers.

* elfxx-ia64.c (elfNN_ia64_object_p): New.
(elf_backend_object_p): Defined.

gas/

2005-04-04  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-ia64.c (start_unwind_section): Undo the change
of 2004-08-18.
(generate_unwind_image, dot_endp): Likewise.

19 years ago2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
hjl [Tue, 5 Apr 2005 02:47:14 +0000 (02:47 +0000)]
2005-04-04  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (bfd_elf_set_group_contents): Ignore linker created
group section.

19 years ago*** empty log message ***
gdbadmin [Tue, 5 Apr 2005 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Tue, 5 Apr 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agomerge from gcc
dj [Mon, 4 Apr 2005 21:00:47 +0000 (21:00 +0000)]
merge from gcc

19 years agoCondense the two tests into one and add a "-M entry:" for the second label.
nickc [Mon, 4 Apr 2005 17:20:28 +0000 (17:20 +0000)]
Condense the two tests into one and add a "-M entry:" for the second label.

19 years ago2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
hjl [Mon, 4 Apr 2005 16:10:58 +0000 (16:10 +0000)]
2005-04-04  H.J. Lu  <hongjiu.lu@intel.com>

* elf-bfd.h (elf_section_data): Use (sec) instead of sec.

19 years ago* path.cc (path_conv::check): Only check for PC_NO_ACCESS_CHECK in end
cgf [Mon, 4 Apr 2005 16:07:32 +0000 (16:07 +0000)]
* path.cc (path_conv::check): Only check for PC_NO_ACCESS_CHECK in end
component.

19 years agoFix typo.
schwab [Mon, 4 Apr 2005 16:06:26 +0000 (16:06 +0000)]
Fix typo.

19 years ago* readelf.c (debug_apply_rela_addends): Reorder r_info as
macro [Mon, 4 Apr 2005 15:07:17 +0000 (15:07 +0000)]
* readelf.c (debug_apply_rela_addends): Reorder r_info as
necessary for 64-bit MIPS.

19 years ago* doc/binutils.texi (readelf): Remove a duplicate paragraph.
macro [Mon, 4 Apr 2005 14:56:11 +0000 (14:56 +0000)]
* doc/binutils.texi (readelf): Remove a duplicate paragraph.

19 years agoAdd a check for <unistd.h> providing a prototype for getopt() which is compatible
nickc [Mon, 4 Apr 2005 11:27:13 +0000 (11:27 +0000)]
Add a check for <unistd.h> providing a prototype for getopt() which is compatible
with the one in include/getopt.h.  If so then define HAVE_DECL_GETOPT.

19 years agoAdd a check to see if the section for the symbol is chosen using
nickc [Mon, 4 Apr 2005 10:32:27 +0000 (10:32 +0000)]
Add a check to see if the section for the symbol is chosen using
process_section_p.

19 years ago * dcrt0.cc (dll_crt0_1): Don't call set_cygwin_privileges on 9x.
corinna [Mon, 4 Apr 2005 10:26:32 +0000 (10:26 +0000)]
* dcrt0.cc (dll_crt0_1): Don't call set_cygwin_privileges on 9x.

* fhandler.h (enum change_state): Add.
(fhandler_base::status): Add a bit to has_changed flag.
(fhandler_base::has_changed): Implement with type change_state.
* fhandler.cc (fhandler_base::raw_write): Accomodate type change
of has_changed.
* fhandler_disk_file.cc )fhandler_disk_file::touch_ctime): Also
touch modification time if has_changed == data_changed.
(fhandler_disk_file::fchmod): Also open on 9x, otherwise we can't
touch ctime.  Accomodate type change of has_changed.
(fhandler_disk_file::fchown): Accomodate type change of has_changed.
(fhandler_disk_file::facl): Ditto.
(fhandler_disk_file::ftruncate): Ditto.
(fhandler_disk_file::link): Ditto.
(fhandler_base::open_fs): Ditto.

19 years agoInitialise value to zero to avoid a compile time warning.
nickc [Mon, 4 Apr 2005 10:09:51 +0000 (10:09 +0000)]
Initialise value to zero to avoid a compile time warning.

19 years agodaily update
amodra [Mon, 4 Apr 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago*** empty log message ***
gdbadmin [Mon, 4 Apr 2005 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

19 years agoApply patch for binutils bug 806, approved by nickc@redhat.com.
fnf [Sun, 3 Apr 2005 20:36:36 +0000 (20:36 +0000)]
Apply patch for binutils bug 806, approved by nickc@redhat.com.

2005-04-03  Fred Fish  <fnf@specifixinc.com>
* dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and
dwarf_ranges_size members.
(struct comp_unit): Add base_address member.
(struct funcinfo): Replace low/high members with an arange.
(arange_add): Replace incoming "unit" parameter with "abfd" and
"first_arange" pointers.  Reorganize/rewrite function body.
(decode_line_info): Change arange_add call to pass bfd and arange
pointers.
(lookup_address_in_line_info_table): Use arange list instead of
individual low/high members.  Walk function's arange list to find
lowest PC in list, to test for overlapping functions.
(read_debug_ranges): New function, reads the debug_ranges section.
(lookup_address_in_function_table): Use arange list instead of
individual low/high members.  Rewrite to find smallest range that
matches.
(read_rangelist): Read a given rangelist from debug_ranges.
(scan_unit_for_functions): Use arange list instead of individual
low/high members.  Handle a DW_AT_ranges attribute.
(parse_comp_unit): Use arange list instead of individual low/high
members.  Save comp unit base address.  Handle a DW_AT_ranges
attribute.

19 years ago * include/winnt.h (SE_UNDOCK_NAME TEXT): Define.
corinna [Sun, 3 Apr 2005 17:47:36 +0000 (17:47 +0000)]
* include/winnt.h (SE_UNDOCK_NAME TEXT): Define.
(SE_MANAGE_VOLUME_NAME TEXT): Ditto.
(SE_IMPERSONATE_NAME TEXT): Ditto.
(SE_ENABLE_DELEGATION_NAME TEXT): Ditto.
(SE_SYNC_AGENT_NAME TEXT): Ditto.

19 years ago * cygheap.cc (cygheap_init): Accomodate set_process_privilege change.
corinna [Sun, 3 Apr 2005 13:06:37 +0000 (13:06 +0000)]
* cygheap.cc (cygheap_init): Accomodate set_process_privilege change.
* cygheap.h (cygheap_user::curr_primary_token): New member.
(cygheap_user::primary_token): New method.
(cygheap_user::deimpersonate): Always revert to processes'
impersonation token.
(cygheap_user::reimpersonate): Set processes' or setuid token as
necessary.
(cygheap_user::has_impersonation_tokens): Look for curr_primary_token
value.
(cygheap_user::close_impersonation_tokens): Close curr_primary_token
here if necessary.  Don't reset token values to NO_IMPERSONATION since
that's done in uinfo_init anyway.
(init_cygheap::luid): New LUID array keeping privilege LUIDs.
* cygtls.cc (_cygtls::init_thread): Call cygheap->user.reimpersonate.
* dcrt0.cc (hProcToken): New global variable to keep process token.
(hProcImpToken): Ditto for process impersonation token.
(dll_crt0_0): Open process token here once.  Duplicate to create
hProcImpToken.
(dll_crt0_1): Call set_cygwin_privileges.
* environ.cc (allow_ntea): Drop duplicate declaration.
(allow_smbntsec): Ditto.
(set_traverse): Only set allow_traverse here.
(environ_init): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Drop call to
enable_restore_privilege.
(fhandler_disk_file::fchown): Ditto.
(fhandler_disk_file::facl): Ditto.
* fork.cc (fork_child): Move call to cygheap->user.reimpersonate after
syn with parent. Call set_cygwin_privileges.
* grp.cc (internal_getgroups): Use hProcImpToken instead of opening
process token.
* path.cc (fs_info::update): Bypass traverse checking when retrieving
volume information using push/pop_thread_privileges.
* registry.cc (load_registry_hive): Drop setting restore privilege
since it's already set if available.
* sec_helper.cc: Include cygtls.h.
(cygpriv): Privilege string array.
(privilege_luid): New function, evaluate LUID from cygpriv_idx.
(privilege_luid_by_name): New function, evaluate LUID from privilege
string.
(privilege_name): New function, evaluate privilege string from
cygpriv_idx.
(set_privilege): New static function called by set_process_privilege
and set_thread_privilege.  Call privilege_luid to get privilege LUID.
Fix bug in return value evaluation. Improve debug output.
(set_cygwin_privileges): New function.
(set_process_privilege): Remove.
(enable_restore_privilege): Remove.
* security.cc (allow_traverse): New global variable.
(sys_privs): Change type to cygpriv_idx and store privilege indices
instead of strings.
(SYSTEM_PRIVILEGES_COUNT): Renamed from SYSTEM_PERMISSION_COUNT.
(get_system_priv_list): Don't use numerical constant in malloc call.
Use privilege_luid to get privilege LUIDs.
(get_priv_list): Call privilege_luid_by_name to get LUIDs. Improve
inner privilege LUID comparison loop.
(create_token): Enable create token privilege using
push/pop_self_privileges. Use hProcToken instead of opening process
token. Use default DACL when duplicating token.
(subauth): Enable tcb privilege using push/pop_self_privileges.
Use sec_none instead of homw made security attributes when duplicating
token.
(check_file_access): Don't duplicate access token, use active
impersonation token as is.
* security.h (enum cygpriv_idx): New enumeration type enumerating
possible privileges.
(privilege_luid): Declare new function.
(privilege_luid_by_name): Ditto.
(privilege_name): Ditto.
(allow_traverse): Declare.
(set_privilege): Declare function.
(set_process_privilege): Define as macro.
(enable_restore_privilege): Remove declaration.
(_push_thread_privilege): Define macro.
(push_thread_privilege): Ditto.
(pop_thread_privilege): Ditto.
(pop_self_privilege): Ditto.
* spawn.cc (spawn_guts): Use cygheap->user.primary_token instead of
cygheap->user.token.
* syscalls.cc (statvfs): Bypass traverse checking when retrieving
volume information using push/pop_thread_privileges. Rearrange code
to simplify push/pop bracketing.
(seteuid32): Use hProcToken instead of opening process token. Call
cygheap->user.deimpersonate instead of RevertToSelf.  Create
impersonation token from primary internal or external token.  Set
cygheap->user.curr_primary_token and cygheap->user.current_token
privileges once here.  Drop "failed" and "failed_ptok" labels.
Drop setting DefaultDacl of process token.
(setegid32): Use hProcToken and hProcImpToken instead of opening
process token. Always reimpersonate afterwards.
* uinfo.cc (cygheap_user::init): Use hProcToken instead of opening
process token.
(internal_getlogin): Ditto. Set hProcImpToken, too.
(uinfo_init): Initialize cygheap->user.curr_primary_token.
* winsup.h (hProcToken): Declare.
(hProcImpToken): Declare.

19 years ago Unify usage of CYG_MAX_PATH throughout. Change buffers from
corinna [Sun, 3 Apr 2005 08:45:12 +0000 (08:45 +0000)]
Unify usage of CYG_MAX_PATH throughout.  Change buffers from
size CYG_MAX_PATH + 1 to CYG_MAX_PATH.  Change length tests
accordingly.

19 years agomerge from gcc
dj [Sun, 3 Apr 2005 04:41:10 +0000 (04:41 +0000)]
merge from gcc

19 years agodaily update
amodra [Sun, 3 Apr 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago*** empty log message ***
gdbadmin [Sun, 3 Apr 2005 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

19 years ago * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
drow [Sat, 2 Apr 2005 22:59:34 +0000 (22:59 +0000)]
* mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
big-endian correction code to not offset 32-bit registers.
Locate floating point registers correctly.

19 years ago * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
drow [Sat, 2 Apr 2005 22:59:16 +0000 (22:59 +0000)]
* mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
big-endian correction code to not offset 32-bit registers.
Locate floating point registers correctly.

19 years ago (Targets): Document "set/show architecture". Remove
eliz [Sat, 2 Apr 2005 22:24:17 +0000 (22:24 +0000)]
(Targets): Document "set/show architecture".  Remove
redundant index entry for "target" command.
(Backtrace): Add index entries.
(Symbols, Fortran): Document the "set case-sensitive" command.
(DJGPP Native): Document "set com1base", "set com1irq", etc.
(Print Settings): Add index entry for "set demangle-style".
(Target Commands): Document "set download-write-size".
(Debugging Output): Document "set exec-done-display".

19 years ago* include/cygwin/version.h: Bump DLL minor number to 15.
cgf [Sat, 2 Apr 2005 21:22:51 +0000 (21:22 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 15.

19 years agoFix typo.
schwab [Sat, 2 Apr 2005 21:11:20 +0000 (21:11 +0000)]
Fix typo.

19 years ago* main.c: Update copyright year.
kettenis [Sat, 2 Apr 2005 20:25:22 +0000 (20:25 +0000)]
* main.c: Update copyright year.
(captured_main): Avois using strcpy and strcat.

19 years ago* main.c: Update copyright year.
kettenis [Sat, 2 Apr 2005 20:25:11 +0000 (20:25 +0000)]
* main.c: Update copyright year.
(captured_main): Avois using strcpy and strcat.

19 years agomerge from gcc
dj [Sat, 2 Apr 2005 20:19:59 +0000 (20:19 +0000)]
merge from gcc

19 years ago (Files): Fix the name and documentation of
eliz [Sat, 2 Apr 2005 17:48:35 +0000 (17:48 +0000)]
(Files): Fix the name and documentation of
add-shared-symbol-files.  Document its alias assf.  Update the
list of OSs where GDB supports shared libraries.  Fix markup.
(Continuing and Stepping): Add reference to @var{location} in the
text.
(Dump/Restore Files): Fix reference to @{filename}.
(Help): Fix wording.
(Attach): Ditto.
(Set Watchpoints): Ditto.
(Backtrace): Remove redundant index entries.  Improve index
entries.
(Delete Breaks): Fix wording.
(Memory): Document the compare-sections command.
(Memory Region Attributes): Improve wording.
(Disabling): Improve wording.
(Fortran): New subsection.  Document the "info common" command.
(Help): Document aliases "info copying" and "info warranty".
(Caching Remote Data): New section.  Document the "set/show
remotecache" and "info dcache" commands.
(Show): Fix wording of the documentation of the "set
extension-language" command.
(Signals): Add index entry for "info handle".
(Memory Region Attributes): Fix punctuation.
(Symbols): Change the arg name to "location" and refer to it in
the text.  Fix wording of "info types" doc.
(Threads): Fix usage of @enumerate @item's.
(Listing Tracepoints): Add index entry for "info tp".
(Set Watchpoints): Add xref to "info break" description.
(Macros): Add an index entry for "macro exp1".  Document the
"macro list" command.
(Maintenance Commands): Document "flushregs", "maint agent",
"maint check-symtabs", "maint cplus", "maint demangle", "maint
deprecate", "maint undeprecate", "maint dump-me", "maint packet",
"maint print architecture", "maint print objfiles", "maint print
statistics", "maint print type", "maint show-debug-regs", "maint
space", "maint time", and "maint translate-address".
(Connecting): Document the "monitor" command.
(Annotations Overview): Describe the "set annotate" command.

19 years ago * cp-demangle.c: Update copyright.
ian [Sat, 2 Apr 2005 17:18:43 +0000 (17:18 +0000)]
* cp-demangle.c: Update copyright.

19 years ago(Set Watchpoints): Document can-use-hw-watchpoints.
eliz [Sat, 2 Apr 2005 08:32:29 +0000 (08:32 +0000)]
(Set Watchpoints): Document can-use-hw-watchpoints.
Rearrange index entries and improve wording about support for
hardware watchpoints.

19 years ago2005-04-01 Michael Snyder <msnyder@redhat.com>
msnyder [Sat, 2 Apr 2005 00:45:51 +0000 (00:45 +0000)]
2005-04-01  Michael Snyder  <msnyder@redhat.com>

* dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
computing this_id if there are no dummy frames on the stack.

19 years agoPatch from David Mosberger, to avoid nop.f on Itanium2.
wilson [Sat, 2 Apr 2005 00:43:46 +0000 (00:43 +0000)]
Patch from David Mosberger, to avoid nop.f on Itanium2.
* config/tc-ia64.c (ia64_handle_align): Move le_nop and
le_nop_stop arrays and initializers to file scope.
(md_begin): When generating code for anything other than
Itanium 1, use MMI instead of MFI NOP bundles as a filler.

19 years ago2005-04-01 Michael Snyder <msnyder@redhat.com>
msnyder [Sat, 2 Apr 2005 00:40:45 +0000 (00:40 +0000)]
2005-04-01  Michael Snyder  <msnyder@redhat.com>

* mn10300-tdep.c (mn10300_frame_unwind_cache): Use
find_partial_func instead of unwind_pc to identify frame.
(mn10300_push_dummy_call): Handle struct args, struct_return.

19 years ago2005-04-01 Michael Snyder <msnyder@redhat.com>
msnyder [Sat, 2 Apr 2005 00:08:14 +0000 (00:08 +0000)]
2005-04-01  Michael Snyder  <msnyder@redhat.com>

* mn10300-prologue.c (set_movm_offsets): Don't test variable
before setting it.
* mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
instead of skip_prologue_using_sal.

19 years ago2005-04-01 Michael Snyder <msnyder@redhat.com>
msnyder [Sat, 2 Apr 2005 00:08:02 +0000 (00:08 +0000)]
2005-04-01  Michael Snyder  <msnyder@redhat.com>

* mn10300-prologue.c (set_movm_offsets): Don't test variable
before setting it.
* mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
instead of skip_prologue_using_sal.

19 years ago*** empty log message ***
gdbadmin [Sat, 2 Apr 2005 00:00:39 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Sat, 2 Apr 2005 00:00:09 +0000 (00:00 +0000)]
daily update

19 years ago2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 1 Apr 2005 20:52:22 +0000 (20:52 +0000)]
2005-04-01  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (assign_section_numbers): Really use the kept section.

19 years ago * gdb.arch/altivec-abi.exp: Check for compiler and set
pgilliam [Fri, 1 Apr 2005 18:43:21 +0000 (18:43 +0000)]
    * gdb.arch/altivec-abi.exp: Check for compiler and set
        use altivec' flag accordingly.
        * gdb.arch/altivec-regs.exp: Likewise.

19 years ago * fork.cc (fork_child): Add missing __stdcall.
corinna [Fri, 1 Apr 2005 16:52:45 +0000 (16:52 +0000)]
* fork.cc (fork_child): Add missing __stdcall.

19 years agoopcodes/
jbeulich [Fri, 1 Apr 2005 16:06:39 +0000 (16:06 +0000)]
opcodes/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (PNI_Fixup): Neither mwait nor monitor have any
visible operands in Intel mode. The first operand of monitor is
%rax in 64-bit mode.

19 years agoinclude/opcode/
jbeulich [Fri, 1 Apr 2005 16:03:39 +0000 (16:03 +0000)]
include/opcode/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* i386.h (i386_optab): Add rdtscp.

opcodes/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (INVLPG_Fixup): Decode rdtscp; change code to allow for
easier future additions.

19 years agogas/
jbeulich [Fri, 1 Apr 2005 15:58:30 +0000 (15:58 +0000)]
gas/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
immediates.

19 years ago * bsd_mutex.cc (_msleep): Whitespace fix.
corinna [Fri, 1 Apr 2005 15:35:47 +0000 (15:35 +0000)]
* bsd_mutex.cc (_msleep): Whitespace fix.
* process.cc (process::process): Handle invalid signal_arrived values
more gracefully.

19 years ago* sigproc.cc (create_signal_arrive): New (temporary?) function to create
cgf [Fri, 1 Apr 2005 15:27:45 +0000 (15:27 +0000)]
* sigproc.cc (create_signal_arrive): New (temporary?) function to create
signal_arrived event.
(sigproc_init): Use create_signal_arrived.
* fork.cc (fork_child): Create signal_arrived early.

19 years ago2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 1 Apr 2005 15:09:43 +0000 (15:09 +0000)]
2005-04-01  H.J. Lu  <hongjiu.lu@intel.com>

* NEWS: Mention new readelf options, "-N/--full-section-name"
and "-g/--section-groups".

* doc/binutils.texi: Document new readelf options,
"-N/--full-section-name" and "-g/--section-groups".

19 years agoSupport the .f_floating, .d_floating, .g_floating and .h_floating directives
nickc [Fri, 1 Apr 2005 14:17:14 +0000 (14:17 +0000)]
Support the .f_floating, .d_floating, .g_floating and .h_floating directives
for the VAX target in order to be more compatible with the VAX MACRO assembler.

19 years agoelf-rel.d: Call gas with -k. Thanks toMatt Thomas for figuring out.
nickc [Fri, 1 Apr 2005 14:08:55 +0000 (14:08 +0000)]
elf-rel.d: Call gas with -k. Thanks toMatt Thomas for figuring out.
vax.exp: Run elf-rel.[sd] for NetBSD-ELF and Linux.

19 years agoAdd a check for <unistd.h> providing a prototype for getopt() which is compatible
nickc [Fri, 1 Apr 2005 12:56:27 +0000 (12:56 +0000)]
Add a check for <unistd.h> providing a prototype for getopt() which is compatible
with the one in include/getopt.h.  If so then define HAVE_DECL_GETOPT.

19 years ago * fork.cc (fork_child): Fixup SYSV IPC shared memory before fixing
corinna [Fri, 1 Apr 2005 11:46:58 +0000 (11:46 +0000)]
* fork.cc (fork_child): Fixup SYSV IPC shared memory before fixing
up fdtab.

19 years ago * libc/stdlib/strtod.c (_strtod_r): Never change s00.
corinna [Fri, 1 Apr 2005 09:54:18 +0000 (09:54 +0000)]
* libc/stdlib/strtod.c (_strtod_r): Never change s00.

19 years agogas/
jbeulich [Fri, 1 Apr 2005 07:50:22 +0000 (07:50 +0000)]
gas/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.

gas/testsuite/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* gas/i386/bss.[sd]: New.
* gas/i386/i386.exp: Run new test.

19 years agogas/
jbeulich [Fri, 1 Apr 2005 07:46:05 +0000 (07:46 +0000)]
gas/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
(tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.

gas/testsuite/
2005-04-01  Jan Beulich  <jbeulich@novell.com>
* gas/i386/x86-64-pcrel.[sd]: New.
* gas/i386/i386.exp: Run new test.

19 years ago2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 1 Apr 2005 03:49:44 +0000 (03:49 +0000)]
2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>

* elf-bfd.h (_bfd_elf_check_kept_section): New.

* elf.c (assign_section_numbers): When sh_link points to a
discarded section, call _bfd_elf_check_kept_section to see if
the kept section can be used. Otherwise reject sh_link
pointing to discarded section.

* elflink.c (_bfd_elf_check_kept_section): New.
(elf_link_input_bfd): Use it.

19 years ago * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
amodra [Fri, 1 Apr 2005 02:50:13 +0000 (02:50 +0000)]
* elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
that we no longer need.

19 years ago (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
amodra [Fri, 1 Apr 2005 02:40:34 +0000 (02:40 +0000)]
(ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.

19 years ago * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
amodra [Fri, 1 Apr 2005 02:35:40 +0000 (02:35 +0000)]
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
rather than 0.

19 years ago2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 1 Apr 2005 00:30:46 +0000 (00:30 +0000)]
2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (assign_section_numbers): Fix a typo.

19 years ago2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 1 Apr 2005 00:03:17 +0000 (00:03 +0000)]
2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (do_full_section_name): New.
(options): Add "--full-section-name"/'N'.
(usage): Add -N/--full-section-name.
(parse_args): Handle 'N'.
(process_section_headers): Print out the full section name if
do_full_section_name isn't 0.

19 years agodaily update
amodra [Fri, 1 Apr 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago*** empty log message ***
gdbadmin [Fri, 1 Apr 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

19 years ago2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
hjl [Thu, 31 Mar 2005 23:45:27 +0000 (23:45 +0000)]
2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (elf_link_input_bfd): Remove the extra `\n' in
error message.
(_bfd_elf_section_already_linked): Likewise.

19 years agoAdd TLS load module support for FRV.
kevinb [Thu, 31 Mar 2005 20:39:08 +0000 (20:39 +0000)]
Add TLS load module support for FRV.

19 years ago * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
kevinb [Thu, 31 Mar 2005 19:58:20 +0000 (19:58 +0000)]
* gdbarch.sh (fetch_tls_load_module_address): New architecture method.
* gdbarch.c, gdbarch.h: Regenerate.
* dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
address and pass this address, instead of the objfile address, to
target_get_thread_local_address().
* linux-thread-db.c (thread_db_get_thread_local_address): Change
second parameter from type ``struct objfile *'' to CORE_ADDR.  Do
not call svr4_fetch_objfile_link_map() to fetch the load module
address.
* target.h (struct target_ops): Change second parameter of
``to_get_thread_local_address'' from ``struct objfile *'' to
``CORE_ADDR''.
* alpha-linux-tdep.c (solib-svr4.h): Include.
(alpha_linux_init_abi): Register TLS load module fetcher.
* amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
* hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
* i386-linux-tdep.c (i386_linux_init_abi): Likewise.
* ia64-linux-tdep.c (solib-svr4.h): Include.
(ia64_linux_init_abi): Register TLS load module fetcher.
* m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
* m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
* mips-linux-tdep.c (mips_linux_init_abi): Likewise.
* s390-tdep.c (s390_gdbarch_init): Likewise.
* sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
* sparc64-linux-tdep.c (solib-svr4.h): Include.
(sparc64_linux_init_abi): Register TLS load module fetcher.
* Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
(sparc-linux-tdep.o): Update dependencies.

19 years agomerge from gcc
dj [Thu, 31 Mar 2005 17:03:34 +0000 (17:03 +0000)]
merge from gcc

19 years ago * configure.in: Check for basename.
guitton [Thu, 31 Mar 2005 16:52:53 +0000 (16:52 +0000)]
* configure.in: Check for basename.
* configure: Regenerate.
        * config.in: Ditto.

19 years ago * bfd/config.in: Regenerate.
guitton [Thu, 31 Mar 2005 16:08:59 +0000 (16:08 +0000)]
* bfd/config.in: Regenerate.

19 years ago * gentls_offsets: Add '-m32' flag to native compiler call to satisfy
corinna [Thu, 31 Mar 2005 15:53:55 +0000 (15:53 +0000)]
* gentls_offsets: Add '-m32' flag to native compiler call to satisfy
cross platform builds.

19 years agoforce checkin
cgf [Thu, 31 Mar 2005 15:37:12 +0000 (15:37 +0000)]
force checkin

19 years ago * bfd/config.in (HAVE_DECL_BASENAME): New configure macro.
guitton [Thu, 31 Mar 2005 15:35:33 +0000 (15:35 +0000)]
* bfd/config.in (HAVE_DECL_BASENAME): New configure macro.
* bfd/configure.in: Check for basename.
* bfd/configure: Regenerate.