OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
16 years ago * cache.c (cache_bread_1): Renames cache_bread.
brobecke [Thu, 1 May 2008 15:45:43 +0000 (15:45 +0000)]
    * cache.c (cache_bread_1): Renames cache_bread.
        (cache_bread): New function.

16 years ago* readelf.c (print_symbol): Add code to display non-printing characters.
nickc [Thu, 1 May 2008 14:34:51 +0000 (14:34 +0000)]
* readelf.c (print_symbol): Add code to display non-printing characters.

16 years ago * thread.c (add_thread): Move observer call to ...
vprus [Thu, 1 May 2008 14:27:37 +0000 (14:27 +0000)]
* thread.c (add_thread): Move observer call to ...
        (add_thread_silent): ... here.

16 years ago PR 2995, PR 6473
amodra [Thu, 1 May 2008 14:13:58 +0000 (14:13 +0000)]
PR 2995, PR 6473
* elf.c (_bfd_elf_make_section_from_shdr): Always set lma from p_paddr.
(assign_file_positions_for_load_sections): Combine nested "if".
(copy_elf_program_header): Don't set p_paddr_valid or p_vaddr_offset
when all header p_paddr fields are zero.

16 years ago * target-reloc.h (relocate_section): Fix dead-pointer bug.
ccoutant [Thu, 1 May 2008 02:01:23 +0000 (02:01 +0000)]
* target-reloc.h (relocate_section): Fix dead-pointer bug.

16 years ago * layout.cc (Layout::include_section): Refactored check for debug
ccoutant [Thu, 1 May 2008 01:23:21 +0000 (01:23 +0000)]
* layout.cc (Layout::include_section): Refactored check for debug
info section.
(Layout::add_comdat): Add new parameters.  Change type
of signature parameter.  Add object and shndx to signatures table.
(Layout::find_kept_object): New function.
* layout.h: Include <cstring>.
(Layout::is_debug_info_section): New function.
(Layout::add_comdat): Add new parameters.
(Layout::find_kept_object): New function.
(Layout::Kept_section): New struct.
(Layout::Signatures): Change type of map range.
* object.cc (Relobj::output_section_address): New function.
(Sized_relobj::include_section_group): Add new parameters.  Change
calls to Layout::add_comdat.  Change to build table of kept comdat
groups and table mapping discarded sections to kept sections.
(Sized_relobj::include_linkonce_section): Likewise.  Add new parameter.
(Sized_relobj::do_layout): Change calls to include_section_group and
include_linkonce_section.
(Sized_relobj::do_finalize_local_symbols): Do not set local symbol
value to zero when section is discarded.
(Sized_relobj::map_to_kept_section): New function.
* object.h (Relobj::output_section_address): New function.
(Relobj::Comdat_group): New type.
(Relobj::find_comdat_group): New function.
(Relobj::Comdat_group_table): New type.
(Relobj::Kept_comdat_section): New type.
(Relobj::Kept_comdat_section_table): New type.
(Relobj::add_comdat_group): New function.
(Relobj::set_kept_comdat_section): New function.
(Relobj::get_kept_comdat_section): New function.
(Relobj::comdat_groups_): New field.
(Relobj::kept_comdat_sections_): New field.
(Symbol_value::input_value): Update comment.
(Sized_relobj::map_to_kept_section) New function.
(Sized_relobj::include_linkonce_section): Add new parameter.
* target-reloc.h (Comdat_behavior): New type.
(get_comdat_behavior): New function.
(relocate_section): Add code to map a discarded section to the
corresponding kept section when applying a relocation.

16 years ago * rs6000-tdep.c: Update for unwinder changes.
uweigand [Thu, 1 May 2008 00:40:39 +0000 (00:40 +0000)]
* rs6000-tdep.c: Update for unwinder changes.
* ppcobsd-tdep.c: Likewise.

16 years ago * dwarf_reader.cc (next_generation_count): New static var.
csilvers [Thu, 1 May 2008 00:25:33 +0000 (00:25 +0000)]
* dwarf_reader.cc (next_generation_count): New static var.
(Addr2line_cache_entry): New struct.
(addr2line_cache): New static var.
(Dwarf_line_info::one_addr2line): Added caching.
(Dwarf_line_info::clear_addr2line_cache): New function.
* dwarf_reader.h (Dwarf_line_info::one_addr2line): Add
cache-size parameter.
(Dwarf_line_info::one_addr2line_cache): New function.
* symtab.cc (Symbol_table::detect_odr_violations): Pass
new cache-size argument to one_addr2line(), and clear cache.

16 years ago * s390-tdep.c: Update for unwinder changes.
uweigand [Thu, 1 May 2008 00:18:27 +0000 (00:18 +0000)]
* s390-tdep.c: Update for unwinder changes.

16 years ago * spu-tdep.c: Update for unwinder changes.
uweigand [Thu, 1 May 2008 00:08:26 +0000 (00:08 +0000)]
* spu-tdep.c: Update for unwinder changes.

16 years ago*** empty log message ***
gdbadmin [Thu, 1 May 2008 00:00:40 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Thu, 1 May 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
drow [Wed, 30 Apr 2008 21:28:56 +0000 (21:28 +0000)]
* hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
sparc64-linux-tdep.c: Update for unwinder changes.

16 years ago * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
drow [Wed, 30 Apr 2008 21:25:16 +0000 (21:25 +0000)]
* mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
for unwinder changes.
* mips-tdep.c: Likewise.
(mips_stub_frame_cache): Unwind the ABI stack pointer, not the
raw one.

16 years ago * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
drow [Wed, 30 Apr 2008 21:23:45 +0000 (21:23 +0000)]
* arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
unwinder changes.

16 years ago Update i386 and amd64 ports for unwinder changes.
drow [Wed, 30 Apr 2008 21:19:44 +0000 (21:19 +0000)]
Update i386 and amd64 ports for unwinder changes.

* amd64-tdep.c (amd64_frame_cache): Expect this_frame.
(amd64_frame_this_id, amd64_frame_prev_register): Update signature.
(amd64_frame_unwind): Use default_frame_sniffer.
(amd64_frame_sniffer): Delete.
(amd64_sigtramp_frame_cache): Expect this_frame.
(amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
(amd64_sigtramp_frame_sniffer): Update signature.
(amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
(amd64_frame_base_address): Expect this_frame.
(amd64_dummy_id): Renamed from amd64_unwind_dummy_id.  Expect
this_frame.
(amd64_init_abi): Use set_gdbarch_dummy_id and
frame_unwind_append_unwinder.
* i386-tdep.c (i386_frame_cache): Expect this_frame.
(i386_frame_this_id, i386_frame_prev_register): Update signature.
(i386_frame_unwind): Use default_frame_sniffer.
(i386_frame_sniffer): Delete.
(i386_sigtramp_frame_cache): Expect this_frame.
(i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
(i386_sigtramp_frame_sniffer): Update signature.
(i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
(i386_frame_base_address): Update signature.
(i386_dummy_id): Rename from i386_unwind_dummy_id.  Expect this_frame.
(i386_push_dummy_call): Update comment.
(i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
Expect this_frame.
(i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
and frame_unwind_append_unwinder.
* amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
i386nbsd-tdep.c: Update for unwinder changes.

16 years ago * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
drow [Wed, 30 Apr 2008 21:19:10 +0000 (21:19 +0000)]
* trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
(trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
this_frame.
(trad_frame_get_prev_register, trad_frame_get_register): Update signature.
* trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
(trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
signature.
* tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
this_frame.
(tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
Update signature.
* tramp-frame.h (struct tramp_frame): Update signature of init.
* Makefile.in (trad-frame.o): Update.

16 years ago * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
drow [Wed, 30 Apr 2008 21:18:28 +0000 (21:18 +0000)]
* dwarf2-frame.c (read_reg): Expect this_frame in the baton.
(execute_stack_op): Put this_frame in the baton.
(execute_cfa_program): Take this_frame.
(struct dwarf2_frame_ops): Update comment for signal_frame_p.
(dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
(dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
(dwarf2_frame_this_id): Adjust to work on this_frame.
(dwarf2_signal_frame_this_id): Delete.
(dwarf2_frame_prev_register): Update signature.  Use new frame
unwind methods.
(dwarf2_frame_sniffer): Update signature.  Expect this_frame.
(dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
dwarf2_frame_sniffer.
(dwarf2_append_unwinders): New.
(dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
this_frame.
* sparc-tdep.c (sparc32_dwarf2_struct_return_p)
(sparc32_dwarf2_frame_init_reg): Expect this_frame.
* cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
* rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
* s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
* sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
* sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
* dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
(dwarf2_append_unwinders): Declare.
(dwarf2_frame_base_sniffer): Update declaration.
* i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
this_frame.

16 years ago Convert frame unwinders to use the current frame and
drow [Wed, 30 Apr 2008 21:16:45 +0000 (21:16 +0000)]
Convert frame unwinders to use the current frame and
"struct value".

* frame.c (frame_debug): Make global.
(get_frame_id): Pass this frame to unwinder routines.
(frame_pc_unwind): Remove unused unwind->prev_pc support.
(do_frame_register_read): Do not discard the return value of
frame_register_read.
(frame_register_unwind): Remove debug messages.  Use
frame_unwind_register_value.
(frame_unwind_register_value, get_frame_register_value): New
functions.
(create_new_frame, get_frame_base_address, get_frame_locals_address)
(get_frame_args_address, get_frame_type): Pass this frame to
unwinder routines.
(frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
functions.
* frame.h: Update comments.
(frame_debug, frame_unwind_register_value, get_frame_register_value)
(frame_prepare_for_sniffer): Declare.
* frame-unwind.h: Update comments and parameter names.
(default_frame_sniffer): Declare.
(frame_prev_register_ftype): Return a struct value *.
(struct frame_unwind): Remove prev_pc member.
(frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
(frame_unwind_append_unwinder, frame_unwind_got_optimized)
(frame_unwind_got_register, frame_unwind_got_memory)
(frame_unwind_got_constant, frame_unwind_got_address): Declare.
* frame-base.h: Update comments and parameter names.
* valops.c (value_fetch_lazy): Use get_frame_register_value.  Iterate
if necessary.  Add debugging output.
* sentinel-frame.c (sentinel_frame_prev_register)
(sentinel_frame_this_id): Update for new signature.
(sentinel_frame_prev_pc): Delete.
(sentinel_frame_unwinder): Remove prev_pc.
* ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
prev_pc.
* libunwind-frame.c (libunwind_frame_unwind): Likewise.
* frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
(frame_unwind_append_sniffer): Delete.
(frame_unwind_append_unwinder): New function.
(frame_unwind_find_by_frame): Take this frame.  Only use sniffers
from unwinders.  Use frame_prepare_for_sniffer.
(default_frame_sniffer, frame_unwind_got_optimized)
(frame_unwind_got_register, frame_unwind_got_memory)
(frame_unwind_got_constant, frame_unwind_got_address): New functions.
* dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
(dummy_frame_prev_register, dummy_frame_this_id): Update for new
signature.
* gdbarch.sh: Replace unwind_dummy_id with dummy_id.
* gdbarch.c, gdbarch.c: Regenerated.
* frame-base.c (default_frame_base_address)
(default_frame_locals_address, default_frame_args_address): Update
for new signature.
(frame_base_find_by_frame): Pass this frame to unwinder routines.
* infcall.c (call_function_by_hand): Update comments.
* Makefile.in (frame-unwind.o): Update dependencies.

* gdbint.texinfo (Stack Frames): New chapter.
(Algorithms): Move Frames text to the new chapter.
(Target Conditionals): Delete SAVE_DUMMY_FRAME_TOS.  Document
gdbarch_dummy_id instead of gdbarch_unwind_dummy_id.

16 years ago * ada-lang.c (ada_value_primitive_packed_val): Only check
drow [Wed, 30 Apr 2008 21:13:48 +0000 (21:13 +0000)]
* ada-lang.c (ada_value_primitive_packed_val): Only check
value_lazy for memory lvals.
* findvar.c (value_of_register_lazy): New function.
(locate_var_value): Only check value_lazy for memory lvals.
* valarith.c (value_subscripted_rvalue): Likewise.
* valops.c (value_fetch_lazy): Handle both memory and register
lvals.
(search_struct_field, value_slice): Only check value_lazy for memory
lvals.
* value.c (struct value): Update comment for lazy.
(value_primitive_field): Only check value_lazy for memory lvals.
* value.h (value_lazy): Update comment.
(value_of_register_lazy): Declare.

16 years ago * sysv_msg.cc: Add fix from upstream version 1.65.
corinna [Wed, 30 Apr 2008 19:09:40 +0000 (19:09 +0000)]
* sysv_msg.cc: Add fix from upstream version 1.65.
(msgsnd): Call msleep with timeout value.  Handle EWOULDBLOCK.  Make
sure it's clear from where msleep has been called in debug output.
(msgrcv): Make sure it's clear from where msleep has been called in
debug output.

16 years ago * gdb.cp/hang.exp: Use .cc instead of .C.
drow [Wed, 30 Apr 2008 18:28:22 +0000 (18:28 +0000)]
* gdb.cp/hang.exp: Use .cc instead of .C.
* gdb.cp/hang1.cc, gdb.cp/hang2.cc, gdb.cp/hang3.cc: Renamed from ...
* gdb.cp/hang1.C, gdb.cp/hang2.C, gdb.cp/hang3.C: ... here.

16 years ago * gdb.base/gdb1250.exp: Remove perror.
drow [Wed, 30 Apr 2008 18:25:53 +0000 (18:25 +0000)]
* gdb.base/gdb1250.exp: Remove perror.
* lib/mi-support.exp (mi_delete_breakpoints): Match the prompt.

16 years ago * corefile.c (reopen_exec_file): Close any open files.
drow [Wed, 30 Apr 2008 18:22:34 +0000 (18:22 +0000)]
* corefile.c (reopen_exec_file): Close any open files.

16 years ago * gdb.dwarf2/dw2-strp.S: Replace .long by .4byte and .value by
palves [Wed, 30 Apr 2008 13:54:09 +0000 (13:54 +0000)]
* gdb.dwarf2/dw2-strp.S: Replace .long by .4byte and .value by
.2byte.

16 years ago * dtable.cc (dtable::release): Drop fixup_before handling.
corinna [Wed, 30 Apr 2008 09:51:37 +0000 (09:51 +0000)]
* dtable.cc (dtable::release): Drop fixup_before handling.
(dtable::fixup_before_fork): Remove.
(dtable::fixup_before_exec): Remove.
* dtable.h (class dtable): Remove cnt_need_fixup_before member.
(dtable::dtable): Accommodate above change.
(dtable::dec_need_fixup_before): Remove.
(dtable::inc_need_fixup_before): Remove.
(dtable::need_fixup_before): Remove.
(dtable::fixup_before_exec): Remove declaration.
(dtable::fixup_before_fork): Ditto.
* fhandler.h (fhandler_base::fixup_before_fork_exec): Remove.
(fhandler_base::need_fixup_before): Remove.
* fork.cc (frok::parent): Drop fixup_before handling.
* spawn.cc (spawn_guts): Ditto.

16 years ago * mount.cc (is_unc_share): Allow \\?\ prefix as well. Enhance comment.
corinna [Wed, 30 Apr 2008 08:49:23 +0000 (08:49 +0000)]
* mount.cc (is_unc_share): Allow \\?\ prefix as well.  Enhance comment.
(mount_info::from_fstab): Remove patch from 2008-04-29.

* mount.cc (mount_info::conv_to_posix_path): Simplify test for native
UNC path.
* path.cc (normalize_win32_path): Ditto.
(symlink_worker): Ditto.
(symlink_info::posixify): Ditto.
(cygwin_conv_path): Ditto.

16 years ago * doc/binutils.texi (strings): Add "unicode" to the documentation
nickc [Wed, 30 Apr 2008 07:27:16 +0000 (07:27 +0000)]
    * doc/binutils.texi (strings): Add "unicode" to the documentation
        of strings in order to make explicit that it supports this
        feature.

16 years agomissed from 20080414 commit for e500mc support
amodra [Wed, 30 Apr 2008 06:47:24 +0000 (06:47 +0000)]
missed from 20080414 commit for e500mc support

16 years agomissed from 20080414 commit for e500mc support
amodra [Wed, 30 Apr 2008 06:46:51 +0000 (06:46 +0000)]
missed from 20080414 commit for e500mc support

16 years ago * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
davem [Wed, 30 Apr 2008 03:50:39 +0000 (03:50 +0000)]
* config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.

16 years agoFix 2008-04-14 regression in asprintf(ptr,"").
ericb [Wed, 30 Apr 2008 02:47:13 +0000 (02:47 +0000)]
Fix 2008-04-14 regression in asprintf(ptr,"").

* libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
baggage.
* libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
* libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
* libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
* libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
* libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
an initial buffer for asprintf.

16 years ago * readelf.c (process_program_headers): Correct section in segment
amodra [Wed, 30 Apr 2008 02:09:48 +0000 (02:09 +0000)]
* readelf.c (process_program_headers): Correct section in segment
display.

16 years agodaily update
amodra [Wed, 30 Apr 2008 00:00:06 +0000 (00:00 +0000)]
daily update

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

16 years ago * mips-opc.c (mips_builtin_opcodes): Set field `match' to 0 for
nemet [Tue, 29 Apr 2008 23:27:01 +0000 (23:27 +0000)]
* mips-opc.c (mips_builtin_opcodes): Set field `match' to 0 for
the two drem and the two dremu macros.

16 years ago * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
brobecke [Tue, 29 Apr 2008 21:14:06 +0000 (21:14 +0000)]
    * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
        show_memory_breakpoints to 1 while reading the instruction bundle.

16 years ago * mount.cc (mount_info::from_fstab): Skip native path prefix in
corinna [Tue, 29 Apr 2008 20:48:09 +0000 (20:48 +0000)]
* mount.cc (mount_info::from_fstab): Skip native path prefix in
module path.

16 years ago * gdbarch.sh: Document the return_value method. Explain that
brobecke [Tue, 29 Apr 2008 16:06:06 +0000 (16:06 +0000)]
    * gdbarch.sh: Document the return_value method. Explain that
        the FUNCTYPE parameter might be NULL.
        * gdbarch.h: Regenerated.
        * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
        type when calling using_struct_return, as this is unnecessary
        on this target.

16 years ago * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound)
drow [Tue, 29 Apr 2008 11:53:44 +0000 (11:53 +0000)]
* elf.c (_bfd_elf_get_dynamic_reloc_upper_bound)
(_bfd_elf_canonicalize_dynamic_reloc): Find dynamic relocations
even if they are not loaded.
* elflink.c (_bfd_elf_init_2_index_sections): Set data_index_section
first.

* ld-arm/symbian-seg1.s, ld-arm/symbian-seg1.d: New files.
* ld-arm/arm-elf.exp: Run symbian-seg1.

16 years ago * syscalls.cc (rename): Use volume serial numbers stored in path_conv
corinna [Tue, 29 Apr 2008 09:24:53 +0000 (09:24 +0000)]
* syscalls.cc (rename): Use volume serial numbers stored in path_conv
rather than fetching them here for the "same file" test.  Change
comment to reflect this.

16 years ago * terminal.h (create_tty_session): Fix return type.
brobecke [Tue, 29 Apr 2008 00:52:26 +0000 (00:52 +0000)]
    * terminal.h (create_tty_session): Fix return type.

16 years ago*** empty log message ***
gdbadmin [Tue, 29 Apr 2008 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Tue, 29 Apr 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * i386.cc (Relocate::relocate): Fix typos for R_386_PC16 and
ccoutant [Mon, 28 Apr 2008 23:09:21 +0000 (23:09 +0000)]
* i386.cc (Relocate::relocate): Fix typos for R_386_PC16 and
R_386_PC8 relocations.

16 years ago * gas/mips/mips4.s: Split out fp instruction from here ...
nemet [Mon, 28 Apr 2008 17:10:18 +0000 (17:10 +0000)]
* gas/mips/mips4.s: Split out fp instruction from here ...
* gas/mips/mips4-fp.s: ... to here.
* gas/mips/mips4.d: Update.
* gas/mips/mips4-fp.l: New file. Check error messages with
-msoft-float.
* gas/mips/mips4-fp.d: New file. Check disassembly with
hard-float.

* gas/mips/mips32r2.s: Split out fp instructions from here ...
* gas/mips/mips32r2-fp32.s: ... to here.
* gas/mips/mips32r2.d: Update.
* gas/mips/mips32r2-fp32.l: New file.  Check error messages with
-msoft-float.
* gas/mips/mips32r2-fp32.d: New file.  Check disassembly with
hard-float.

* gas/mips/mips32r2-ill-nofp.s, gas/mips/mips32r2-ill-nofp.l: New
test derived from mips32r2-ill.

* gas/mips/mips32-sf32.l: New list test for mips32-sf32.s to check
error messages for soft-float targets.

* gas/mips/mips-macro-ill-sfp.s, gas/mips/mips-macro-ill-sfp.l:
New test for -msingle-float.
* gas/mips/mips-macro-ill-nofp.s, gas/mips/mips-macro-ill-nofp.l:
New test for -msoft-float.
* gas/mips/mips-hard-float-flag.s,
gas/mips/mips-hard-float-flag.l: New test for -mhard-float.
* gas/mips/mips-double-float-flag.s,
gas/mips/mips-double-float-flag.l: New test for -mdouble-float.

* gas/mips/mips.exp: Run new mips4-fp and mips32r2-fp dump tests.
Run mips4-fp and mips32r2-fp list tests with -msoft-float.  Run
new mips32r2-ill-nofp with -msoft-float.  Run new mips32-sf32 list
test with -msoft-float.  Run new mips-macro-ill-sfp test with
-msingle-float.  Run new mips-macro-ill-nofp test with
-msoft-float.  Run new mips-hard-float-flag and
mips-double-float-flag tests.

16 years ago * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
nemet [Mon, 28 Apr 2008 17:06:27 +0000 (17:06 +0000)]
* config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
New statics.
(OPTION_ELF_BASE): Make room for new option macros.
(OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
OPTION_DOUBLE_FLOAT): New option macros.
(md_longopts): Add msoft-float, mhard-float, msingle-float and
mdouble-float.
(md_parse_option): Handle OPTION_SINGLE_FLOAT,
OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
(md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
and -mdouble-float.
(struct mips_set_options): New fields soft_float and single_float.
(mips_opts): Initialized them.  Add comment for each field
initializer.
(mips_after_parse_args): Set them based on file_mips_soft_float
and file_mips_single_float.
(s_mipsset): Add support for `.set softfloat', `.set hardfloat',
`.set singlefloat' and `.set doublefloat'.
(is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
Handle single-float and soft-float instructions here.
(macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
(is_opcode_valid_16): New function.
(mips16_ip): Use it instead of OPCODE_IS_MEMBER.
(macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
M_S_DOB>: Remove special-casing of r4650.
* doc/c-mips.texi (-march=): Add Octeon.
(MIPS Opts): Document -msoft-float and -mhard-float.  Document
-msingle-float and -mdouble-float.
(MIPS floating-point): New section.  Document `.set softfloat' and
`.set hardfloat'.  Document `.set singlefloat' and `.set
doublefloat'.

16 years ago * mips-opc.c (mips_builtin_opcodes): Mark prefx and c1
nemet [Mon, 28 Apr 2008 17:03:58 +0000 (17:03 +0000)]
* mips-opc.c (mips_builtin_opcodes): Mark prefx and c1
instructions FP_S.  Mark l.s, li.s, lwc1, swc1, s.s, trunc.w.s and
cop1 macros INSN2_M_FP_S.  Mark l.d, li.d, ldc1 and sdc1 macros
INSN2_M_FP_D.  Mark trunc.w.d macro INSN2_M_FP_S and INSN2_M_FP_D.

16 years ago * mips.h (INSN_MACRO): Move it up to the the pinfo macros.
nemet [Mon, 28 Apr 2008 16:59:27 +0000 (16:59 +0000)]
* mips.h (INSN_MACRO): Move it up to the the pinfo macros.
(INSN2_M_FP_S, INSN2_M_FP_D): New pinfo2 macros.

16 years ago * path.cc (symlink_info::check): Avoid special handling for
corinna [Mon, 28 Apr 2008 16:01:53 +0000 (16:01 +0000)]
* path.cc (symlink_info::check): Avoid special handling for
STATUS_BUFFER_OVERFLOW when calling NtQueryDirectoryFile.
* strace.cc (strace::vprntf): Use bigger buffer.

16 years ago * ld-scripts/rgn-over8.s: Tweak.
nathan [Mon, 28 Apr 2008 14:08:15 +0000 (14:08 +0000)]
* ld-scripts/rgn-over8.s: Tweak.

16 years agold/
nathan [Mon, 28 Apr 2008 12:45:32 +0000 (12:45 +0000)]
ld/
* ldlang.c (lang_size_sections_1): Don't check LMA overflow on
non-load sections.
ld/testsuite/
* ld-scripts/rgn-over.exp: Allow -ok file names to pass.
* ld-scripts/rgn-over8.s: New.
* ld-scripts/rgn-over8.t: New.
* ld-scripts/rgn-over8-ok.d: New.

16 years ago * kernel32.cc (CreateFileMappingW): Remove stray small_printf.
corinna [Mon, 28 Apr 2008 11:13:03 +0000 (11:13 +0000)]
* kernel32.cc (CreateFileMappingW): Remove stray small_printf.

16 years ago * autoload.cc (IsWow64Process): Remove.
corinna [Mon, 28 Apr 2008 08:47:06 +0000 (08:47 +0000)]
* autoload.cc (IsWow64Process): Remove.
(Wow64DisableWow64FsRedirection): Remove.
(Wow64RevertWow64FsRedirection): Remove.
* ntdll.h (enum _PROCESSINFOCLASS): Define ProcessWow64Information.
* init.cc (respawn_wow64_process): Use NtQueryInformationProcess to
get WOW64 state.
* wincap.cc (wincapc::init): Ditto.
* wincap.h (wincapc::wow64): Change type to ULONG.

16 years ago PR binutils/6449
nickc [Mon, 28 Apr 2008 08:30:23 +0000 (08:30 +0000)]
            PR binutils/6449
                * objdump.c (slurp_file): Open the file in binary mode.
                * ar.c: Remove conditional definition of O_BINARY.
                * bin2.c: Likewise.
                * rename.c: Likewise.
                * strings.c: Likewise.
                * sysdep.h: Add conditional definition of O_BINARY.

16 years agodaily update
amodra [Mon, 28 Apr 2008 00:00:05 +0000 (00:00 +0000)]
daily update

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

16 years ago * wincap.h (wincapc::wow64): Change type to BOOL.
corinna [Sun, 27 Apr 2008 16:12:00 +0000 (16:12 +0000)]
* wincap.h (wincapc::wow64): Change type to BOOL.
* wincap.cc: Remove explicit use of this pointer in wincapc methods.
(wincapc::init): Fix bug in IsWow64Process handling.

16 years ago2008-04-26 Yuval <uvman@users.sourceforge.net>
ironhead [Sun, 27 Apr 2008 00:06:44 +0000 (00:06 +0000)]
2008-04-26  Yuval  <uvman@users.sourceforge.net>

        * include/ntsecpkg.h (SECPKG_STATE_ENCRYPTION_PERMITTED,
        SECPKG_STATE_STRONG_ENCRYPTION_PERMITTED, SECPKG_STATE_DOMAIN_CONTROLLER,
        SECPKG_STATE_WORKSTATION, SECPKG_STATE_STANDALONE,
        LSA_TOKEN_INFORMATION_TYPE, SECPKG_EXTENDED_INFORMATION_CLASS,
        SECPKG_NAME_TYPE, SECPKG_PRIMARY_CRED, SECPKG_SUPPLEMENTAL_CRED,
        SECPKG_SUPPLEMENTAL_CRED_ARRAY, SECPKG_PARAMETERS,
        SECPKG_EVENT_DOMAIN_CHANGE, SECPKG_CLIENT_INFO, SecurityUserData,
        SECPKG_GSS_INFO, SECPKG_CONTEXT_THUNKS, SECPKG_MUTUAL_AUTH_LEVEL,
        SECPKG_CALL_INFO, SECPKG_EXTENDED_INFORMATION, PLSA_CALLBACK_FUNCTION,
        *PLSA_CLIENT_REQUEST, LSA_SEC_HANDLE, SEC_THREAD_START, SEC_ATTRS,
        *PLSA_REGISTER_CALLBACK, *PLSA_CREATE_LOGON_SESSION,
        *PLSA_DELETE_LOGON_SESSION, *PLSA_ADD_CREDENTIAL, *PLSA_GET_CREDENTIALS,
        *PLSA_DELETE_CREDENTIAL, *PLSA_ALLOCATE_LSA_HEAP, *PLSA_FREE_LSA_HEAP,
        *PLSA_ALLOCATE_CLIENT_BUFFER, *PLSA_FREE_CLIENT_BUFFER,
        *PLSA_COPY_TO_CLIENT_BUFFER, *PLSA_COPY_FROM_CLIENT_BUFFER,
        *PLSA_IMPERSONATE_CLIENT, *PLSA_UNLOAD_PACKAGE, *PLSA_DUPLICATE_HANDLE,
        *PLSA_SAVE_SUPPLEMENTAL_CREDENTIALS, *PLSA_CREATE_THREAD,
        *PLSA_GET_CLIENT_INFO, *PLSA_REGISTER_NOTIFICATION,
        *PLSA_CANCEL_NOTIFICATION, *PLSA_MAP_BUFFER, *PLSA_CREATE_TOKEN,
        *PLSA_AUDIT_LOGON, *PLSA_CALL_PACKAGE, *PLSA_FREE_LSA_HEAP,
        *PLSA_GET_CALL_INFO, *PLSA_CALL_PACKAGEEX, *PLSA_CREATE_SHARED_MEMORY,
        *PLSA_ALLOCATE_SHARED_MEMORY, *PLSA_FREE_SHARED_MEMORY,
        *PLSA_DELETE_SHARED_MEMORY, *PLSA_OPEN_SAM_USER, *PLSA_GET_USER_CREDENTIALS,
        *PLSA_GET_USER_AUTH_DATA, *PLSA_CLOSE_SAM_USER,
        *PLSA_CONVERT_AUTH_DATA_TO_TOKEN, *PLSA_CLIENT_CALLBACK,
        *PLSA_UPDATE_PRIMARY_CREDENTIALS, *PLSA_GET_AUTH_DATA_FOR_USER,
        *PLSA_CRACK_SINGLE_NAME, *PLSA_AUDIT_ACCOUNT_LOGON,
        *PLSA_CALL_PACKAGE_PASSTHROUGH, SECPKG_DLL_FUNCTIONS, LSA_DISPATCH_TABLE,
        LSA_SECPKG_FUNCTION_TABLE, *PLSA_AP_INITIALIZE_PACKAGE, *PLSA_AP_LOGON_USER,
        *PLSA_AP_CALL_PACKAGE, *PLSA_AP_LOGON_TERMINATED,
        *PLSA_AP_CALL_PACKAGE_UNTRUSTED, *PLSA_AP_CALL_PACKAGE_PASSTHROUGH,
        *PLSA_AP_LOGON_USER_EX, *PLSA_AP_LOGON_USER_EX2, SpInitializeFn,
        SpShutDownFn, SpGetInfoFn, SpAcceptCredentialsFn,
        SpAcquireCredentialsHandleFn, SpQueryCredentialsAttributesFn,
        SpFreeCredentialsHandleFn, SpSaveCredentialsFn, SpGetCredentialsFn,
        SpDeleteCredentialsFn, SpInitLsaModeContextFn, SpAcceptLsaModeContextFn,
        SpDeleteContextFn, SpApplyControlTokenFn, SpGetUserInfoFn,
        SpGetExtendedInformationFn, SpQueryContextAttributesFn, SpAddCredentialsFn,
        SpSetExtendedInformationFn, SpInstanceInitFn, SpInitUserModeContextFn,
        SpMakeSignatureFn, SpVerifySignatureFn, SpSealMessageFn, SpUnsealMessageFn,
        SpGetContextTokenFn, SpCompleteAuthTokenFn, SpFormatCredentialsFn,
        SpMarshallSupplementalCredsFn, SpExportSecurityContextFn,
        SpImportSecurityContextFn, SECPKG_FUNCTION_TABLE,
        SECPKG_USER_FUNCTION_TABLE, *SpLsaModeInitializeFn,
        *SpUserModeInitializeFn): Define.
        * include/sspi.h (SECURITY_STRING): Define.

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

16 years agodaily update
amodra [Sun, 27 Apr 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * dcrt0.cc (dll_crt0_0): Set SEM_NOGPFAULTERRORBOX error mode, too,
corinna [Sat, 26 Apr 2008 18:01:41 +0000 (18:01 +0000)]
* dcrt0.cc (dll_crt0_0): Set SEM_NOGPFAULTERRORBOX error mode, too,
to accommodate Vista/Longhorn.
* spawn.cc (spawn_guts): Move check for CREATE_SUSPENDED condition
after the call to ch.set() since it depends on it.

16 years ago * mi/mi-interp.c (mi_new_thread): Quote the thread id.
vprus [Sat, 26 Apr 2008 17:58:47 +0000 (17:58 +0000)]
* mi/mi-interp.c (mi_new_thread): Quote the thread id.

16 years ago2008-04-26 Danny Smith <dannysmith@users.sourceforge.net>
ironhead [Sat, 26 Apr 2008 12:07:34 +0000 (12:07 +0000)]
2008-04-26  Danny Smith  <dannysmith@users.sourceforge.net>

        * include/specstrings.h: Add more dummy defines.

16 years ago2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
ironhead [Sat, 26 Apr 2008 11:39:14 +0000 (11:39 +0000)]
2008-04-26  Chuck Wilson  <cwilso11@users.sourceforge.net>

        * Makefile.in: correct issues with mingw10.dll having multiple relocs.

16 years ago * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
corinna [Sat, 26 Apr 2008 07:49:38 +0000 (07:49 +0000)]
* libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
(fstatat): Fix type of third parameter.

16 years ago * breakpoint.c (condition_command, commands_from_control_command)
brobecke [Sat, 26 Apr 2008 05:43:45 +0000 (05:43 +0000)]
    * breakpoint.c (condition_command, commands_from_control_command)
        (break_command_really): Minor reformatting.

16 years ago2008-04-25 Michael Frysinger <vapier@gentoo.org>
vapier [Sat, 26 Apr 2008 01:10:55 +0000 (01:10 +0000)]
2008-04-25  Michael Frysinger  <vapier@gentoo.org>

* configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
and targ_extra_emuls to elf32bfin.

16 years ago2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
ironhead [Sat, 26 Apr 2008 00:24:19 +0000 (00:24 +0000)]
2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>

        * include/process.h: Include stdint.h for intptr_t definition.
        (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
        _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
        _spawnvpe): Return intptr_t.
        (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
        spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
        intptr_t.

        [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
        (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
        _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
        _wspawnvp, _wspawnvpe): Return intptr_t.

16 years ago2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
ironhead [Sat, 26 Apr 2008 00:16:37 +0000 (00:16 +0000)]
2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>

        * include/wchar.h (fwide): Return success code rather than failure in inline
        definition.
        * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments.  Return success
        code rather than failure.

16 years agodaily update
amodra [Sat, 26 Apr 2008 00:00:04 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Sat, 26 Apr 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * gdb.base/macscp.exp: Enable kfails. Compile with -g3 for GCC.
drow [Fri, 25 Apr 2008 21:47:11 +0000 (21:47 +0000)]
* gdb.base/macscp.exp: Enable kfails.  Compile with -g3 for GCC.
(maybe_kfail): New.

16 years agogas/
davem [Fri, 25 Apr 2008 19:58:03 +0000 (19:58 +0000)]
gas/

* config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
%asr aliases.

* doc/c-sparc.texi: Consistently refer to architecture 'versions',
rather than occaisionally 'levels'.  Consistently refer to Sun's
UNIX variant as SunOS, every version of Solaris is also SunOS.
Document new 'softint_clear' and 'softint_set' aliases.  Clarify
which architecture versions support '%dcr', '%cq', and '%gl'. Add
section on 32-bit/64-bit opcode translations.

opcodes/

* sparc-dis.c: Emit %stick instead of %sys_tick, and %stick_cmpr
instead of %sys_tick_cmpr, as suggested in architecture manuals.

16 years agogdb/
palves [Fri, 25 Apr 2008 18:45:22 +0000 (18:45 +0000)]
gdb/
* dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.

gdb/testsuite/
* gdb.dwarf2/dw2-strp.S, gdb.dwarf2/dw2-strp.exp: New files.

16 years ago * Makefile.in (install): Drop install rules for postinstall script.
corinna [Fri, 25 Apr 2008 17:22:31 +0000 (17:22 +0000)]
* Makefile.in (install): Drop install rules for postinstall script.

16 years ago * postinstall: Remove (Moved to base-cygwin package).
corinna [Fri, 25 Apr 2008 17:13:27 +0000 (17:13 +0000)]
* postinstall: Remove (Moved to base-cygwin package).

16 years ago * fhandler.cc (fhandler_base::open): Move handling FILE_ATTRIBUTE_NORMAL
corinna [Fri, 25 Apr 2008 16:59:41 +0000 (16:59 +0000)]
* fhandler.cc (fhandler_base::open): Move handling FILE_ATTRIBUTE_NORMAL
back to its old place.  Or it to file_attributes instead of setting it.

16 years ago * fhandler.cc (fhandler_base::open): *Only* handle SYSTEM and HIDDEN
corinna [Fri, 25 Apr 2008 16:50:29 +0000 (16:50 +0000)]
* fhandler.cc (fhandler_base::open): *Only* handle SYSTEM and HIDDEN
attributes in FILE_OVERWRITE case.

16 years ago * fhandler.cc (fhandler_base::open): Handle SYSTEM and HIDDEN attributes
corinna [Fri, 25 Apr 2008 16:33:00 +0000 (16:33 +0000)]
* fhandler.cc (fhandler_base::open): Handle SYSTEM and HIDDEN attributes
in FILE_OVERWRITE case as well.

16 years ago* reloc16.c (bfd_coff_reloc16_get_value): Add support for
nickc [Fri, 25 Apr 2008 16:02:42 +0000 (16:02 +0000)]
* reloc16.c (bfd_coff_reloc16_get_value): Add support for
  undefined weak symbols.

16 years ago * amd64-tdep.c (amd64_get_longjmp_target): New.
palves [Fri, 25 Apr 2008 14:57:30 +0000 (14:57 +0000)]
* amd64-tdep.c (amd64_get_longjmp_target): New.
(amd64_init_abi): Register amd64_get_longjmp_target as
gdbarch_get_longjmp_target callback.
* i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.

16 years ago * po/vi.po: Updated Vietnamese translation.
nickc [Fri, 25 Apr 2008 14:52:23 +0000 (14:52 +0000)]
    * po/vi.po: Updated Vietnamese translation.

16 years ago * breakpoint.h (enum bpstat_what_main_action): Delete
palves [Fri, 25 Apr 2008 14:50:07 +0000 (14:50 +0000)]
* breakpoint.h (enum bpstat_what_main_action): Delete
BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.

* breakpoint.c (clrs): Delete.
(bpstat_what): Update table.

* infrun.c (handle_inferior_event): Remove
BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.

16 years ago * libc/machine/arm/setjmp.S: Fix thumb2 support.
nickc [Fri, 25 Apr 2008 09:02:39 +0000 (09:02 +0000)]
        * libc/machine/arm/setjmp.S: Fix thumb2 support.

            * arm/crt0.S: Allow assembly under ARMv7 ISA.  Support for
            initializing stack pointers for interrupt modes is still pending.

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

16 years agodaily update
amodra [Fri, 25 Apr 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * fhandler_disk_file.cc (fhandler_base::fstat_helper): Disable calling
corinna [Thu, 24 Apr 2008 17:15:17 +0000 (17:15 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Disable calling
pc.ndisk_links.  Just use nNumberOfLinks instead.

16 years ago * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
vprus [Thu, 24 Apr 2008 13:28:03 +0000 (13:28 +0000)]
* mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
Adjust all prototypes using mi_cmd_args_ftype to use
mi_cmd_argv_ftype.
(struct mi_cmd): Remove the args_func field.
* mi/mi-cmds.c: Don't provide value for the args_func field.
* mi/mi-main.c (mi_execute_async_cli_command)
(mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
(mi_cmd_exec_step, mi_cmd_exec_step_instruction)
(mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
(mi_cmd_exec_continue, mi_cmd_exec_interrupt)
(mi_cmd_target_download): Adjust.
(mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
(mi_cmd_execute): Do not check for args_func.
(mi_execute_async_cli_command): Adjust.
* mi/mi-parse.c: Don't check for args_func.

16 years ago * breakpoint.c (bpstat_check_location)
vprus [Thu, 24 Apr 2008 12:56:44 +0000 (12:56 +0000)]
    * breakpoint.c (bpstat_check_location)
        (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
        New, extracted from bpstat_stop_status.
        (bpstat_stop_status): Use the above.

16 years ago * fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in
corinna [Thu, 24 Apr 2008 12:37:05 +0000 (12:37 +0000)]
* fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in
input range check.

16 years ago * mi/mi-main.c (last_async_command): Rename to current_token.
vprus [Thu, 24 Apr 2008 12:09:48 +0000 (12:09 +0000)]
    * mi/mi-main.c (last_async_command): Rename to current_token.
        (previous_async_command): Remove.
        (mi_cmd_gdb_exit): Adjust.
        (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
        (mi_cmd_target_select): Adjust.
        (mi_cmd_execute): Don't set previous_async_command.  Free token
        here even in async mode.
        (mi_execute_async_cli_command): Adjust.
        (mi_exec_async_cli_cmd_continuation): Adjust.  Do not free the
        token.
        (mi_load_progress): Adjust.

16 years ago * infcmd.c (step_1_continuation): Always disable longjmp
vprus [Thu, 24 Apr 2008 11:43:13 +0000 (11:43 +0000)]
    * infcmd.c (step_1_continuation): Always disable longjmp
        breakpoint if we're not going to do another step.

16 years ago* libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
nickc [Thu, 24 Apr 2008 11:26:41 +0000 (11:26 +0000)]
* libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
  should be _DOUBLE_IS_32BITS.

16 years ago exec_cleanup murder.
vprus [Thu, 24 Apr 2008 11:13:44 +0000 (11:13 +0000)]
exec_cleanup murder.
* breakpoint.c (until_break_command_continuation): Add
the 'error' parameter.  Directly delete the breakoint as
opposed to running cleanups.
(until_break_command): Install continuation only
after starting the target.  Don't use exec cleanups,
use ordinary cleanups.  Discard cleanups is successfully
started the target in async mode.
(make_cleanup_delete_breakpoint): Remove.
* breakpoint.h (make_cleanup_delete_breakpoint): Remove
declaration.
* defs.h (do_exec_cleanups, make_exec_cleanup): Remove
declarations.
(struct continations): Add the 'error' parameter to the
continuation_hook field.
(add_continuation, do_all_continuations)
(add_intermediate_continuation)
(do_all_intermediate_continuations): Add the 'error' parameter.
* exceptions.c (throw_exception): Don't call do_exec_cleanups.
* inf-loop.c (inferior_event_handler): Instead of calling
discard_all_continuations, use do_all_continuations with 1 as
'error' parameter.  Pass 0 as 'error' parameter in existing uses
of discard_all_continuations.
* infcmd.c (step_1): Do not use exec cleanup.  For async case, discard
cleanups.
(step_once): Install continuation only after resuming the target.
(step_1_continuation): Disable longjmp breakpoint on error.
(finish_command_continuation): Add the error parameter.  Delete
the finish breakpoint directly, do not use cleanups.
(finish_command): Do not use exec_cleanups. Always setup
continuation.  For sync case, immediately run them.
(attach_command_continuation): Add the error parameter.
* infrun.c (fetch_inferior_event): Do not use exec cleanups to
remove step_resume_breakpoint -- adjust delete it directly.
* interps.c (interp_set): Adjust call to do_all_continations.
* mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
do exec cleanups.
* mi/mi-main.c (mi_cmd_target_select): Do not do exec
cleanups.
(mi_cmd_execute): Do not use exec_cleanup.
(mi_execute_async_cli_command): Simplify the string concatenation
logic.  Do no use exec cleanup.
(mi_exec_async_cli_cmd_continuation): New parameter error.
Free last_async_command.
* top.c (command_line_handler_continuation): New parameter error.
* utils.c (exec_cleanup_chain, make_exec_cleanup)
(do_exec_cleanups): Remove.
(add_continuation, do_all_continations)
(add_intermediate_continuation)
(do_all_intermediate_continuations): New parameter error.

16 years ago * breakpoint.h (bp_location_p): New typedef.
vprus [Thu, 24 Apr 2008 10:21:43 +0000 (10:21 +0000)]
* breakpoint.h (bp_location_p): New typedef.
Register a vector of bp_location_p.
* breakpoint.c (always_inserted_mode)
(show_always_inserted_mode): New.
(unlink_locations_from_global_list): Remove.
(update_global_location_list)
(update_global_location_list_nothrow): New.
(update_watchpoint): Don't free locations.
(should_insert_location): New.
(insert_bp_location): Use should_insert_location.
(insert_breakpoint_locations): Copied from
insert_breakpoints.
(insert_breakpoint): Use insert_breakpoint_locations.
(bpstat_stop_status): Call update_global_location_list
when disabling breakpoint.
(allocate_bp_location): Don't add to bp_location_chain.
(set_raw_breakpoint)
(create_longjmp_breakpoint, enable_longjmp_breakpoint)
(disable_longjmp_breakpoint, create_overlay_event_breakpoint)
(enable_overlay_breakpoints, disable_overlay_breakpoints)
(set_longjmp_resume_breakpoint)
(enable_watchpoints_after_interactive_call_stop)
(disable_watchpoints_before_interactive_call_start)
(create_internal_breakpoint)
(create_fork_vfork_event_catchpoint)
(create_exec_event_catchpoint, set_momentary_breakpoint)
(create_breakpoints, break_command_1, watch_command_1)
(create_exception_catchpoint)
(handle_gnu_v3_exceptions)
(disable_breakpoint, breakpoint_re_set_one)
(create_thread_event_breakpoint, create_solib_event_breakpoint)
(create_ada_exception_breakpoint): : Don't call check_duplicates.
Call update_global_location_list.
(delete_breakpoint): Don't remove locations and don't
try to reinsert them. Call update_global_location_list.
(update_breakpoint_locations): Likewise.
(restore_always_inserted_mode): New.
(update_breakpoints_after_exec): Temporary disable
always inserted mode.
* Makefile.in: Update dependencies.

* infrun.c (proceed): Remove breakpoints while stepping
over breakpoint.
(handle_inferior_event): Don't remove or insert
breakpoints.
* linux-fork.c (checkpoint_command): Remove breakpoints
before fork and insert after.
(linux_fork_context): Remove breakpoints before switch
and insert after.
* target.c (target_disconnect, target_detach): Remove
breakpoints from target.

16 years ago * cygwin-api.in.sgml: Add std-susv4 section to Compatibility chapter.
corinna [Thu, 24 Apr 2008 10:00:04 +0000 (10:00 +0000)]
* cygwin-api.in.sgml: Add std-susv4 section to Compatibility chapter.

16 years ago * cygwin.din (futimens): Export.
corinna [Thu, 24 Apr 2008 09:59:53 +0000 (09:59 +0000)]
* cygwin.din (futimens): Export.
(utimensat): Export.
* fhandler.cc (fhandler_base::utimens): Replace fhandler_base::utimes.
Call utimens_fs.
* fhandler.h (class fhandler_base): Declare utimens_fs instead of
utimes_fs, utimens instead of utimes.
(class fhandler_disk_file): Declare utimens instead of utimes.
* fhandler_disk_file.cc (fhandler_disk_file::utimens): Replace
fhandler_disk_file::utimes.
(fhandler_base::utimens_fs): Replace fhandler_base::utimes_fs.
Implement tv_nsec handling according to SUSv4.
* syscalls.cc (utimensat): New function.
* times.cc (timespec_to_filetime): New function.
(timeval_to_timespec): New function.
(utimens_worker): Replace utimes_worker.
(utimes): Convert timeval to timespec and call utimens_worker.
(lutimes): Ditto.
(futimens): Take over implementation from futimes.
(futimes): Convert timeval to timespec and call futimens.
* winsup.h (timespec_to_filetime): Declare.
* include/cygwin/version.h: Bump API minor number.
* posix.sgml: Add SUSv4 section.  Add futimens and utimensat to it.

16 years ago * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
corinna [Thu, 24 Apr 2008 09:39:20 +0000 (09:39 +0000)]
* libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
(UTIME_OMIT): Ditto.
(utimensat): Declare for Cygwin.
(futimens): Ditto.

16 years ago * include/wait.h: New file.
corinna [Thu, 24 Apr 2008 08:46:40 +0000 (08:46 +0000)]
* include/wait.h: New file.