OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
21 years ago2003-03-25 Andrew Cagney <cagney@redhat.com>
cagney [Tue, 25 Mar 2003 18:54:13 +0000 (18:54 +0000)]
2003-03-25  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
(DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
CALL_DUMMY_STACK_ADJUST with a predicate variable.
* gdbarch.h, gdbarch.c: Regenerate.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
call_dummy_stack_adjust_p.
* vax-tdep.c (vax_gdbarch_init): Ditto.
* v850-tdep.c (v850_gdbarch_init): Ditto.
* sh-tdep.c (sh_gdbarch_init): Ditto.
* s390-tdep.c (s390_gdbarch_init): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
* mips-tdep.c (mips_gdbarch_init): Ditto.
* mcore-tdep.c (mcore_gdbarch_init): Ditto.
* m68k-tdep.c (m68k_gdbarch_init): Ditto.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* ia64-tdep.c (ia64_gdbarch_init): Ditto.
* i386-tdep.c (i386_gdbarch_init): Ditto.
* h8300-tdep.c (h8300_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* d10v-tdep.c (d10v_gdbarch_init): Ditto.
* cris-tdep.c (cris_gdbarch_init): Ditto.
* avr-tdep.c (avr_gdbarch_init): Ditto.
* arm-tdep.c (arm_gdbarch_init): Ditto.
* alpha-tdep.c (alpha_gdbarch_init): Ditto.
* config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
* config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
* config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
* sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
call_dummy_stack_adjust_p.
* inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
(CALL_DUMMY_STACK_ADJUST): Delete macro.
* sparc-tdep.c (sparc32_push_arguments): Update.
* valops.c (hand_function_call): Update.

2003-03-25  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Delete
reference to CALL_DUMMY_STACK_ADJUST_P.  Rename
CALL_DUMMY_STACK_ADJUST to DEPRECATED_CALL_DUMMY_STACK_ADJUST.
Add reference to PUSH_ARGUMENTS.

21 years ago * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
corinna [Tue, 25 Mar 2003 16:12:55 +0000 (16:12 +0000)]
* xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
set_gdbarch_char_signed.

21 years agoPR cli/548
rearnsha [Tue, 25 Mar 2003 15:35:38 +0000 (15:35 +0000)]
PR cli/548
* arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".

21 years ago* arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
rearnsha [Tue, 25 Mar 2003 14:52:32 +0000 (14:52 +0000)]
* arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
(_initialize_arm_tdep): Don't set tm_print_insn.

21 years agoldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define. (main): Initialize them.
nickc [Tue, 25 Mar 2003 10:29:28 +0000 (10:29 +0000)]
ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define. (main): Initialize them.
ldfile.c: Include pathnames.h. (is_sysrooted_pathname): New. (ldfile_add_library_path): Use it.
  (ldfile_open_file_search): Likewise.  Use IS_ABSOLUTE_PATH.
  Don't search_dirs if given an absolute pathname.
  (ldfile_open_file): Issue error message for sysrooted absolute pathnames.

21 years agoMakefile.in (YYOBJ): Add objc-exp.tab.o
fedor [Tue, 25 Mar 2003 02:18:55 +0000 (02:18 +0000)]
Makefile.in (YYOBJ): Add objc-exp.tab.o
objc-lang.h: Add multiple inclusion protection.
(start_msglist, add_msglist, end_msglist): Additional declarations.

21 years ago* cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable is
cgf [Tue, 25 Mar 2003 01:20:04 +0000 (01:20 +0000)]
* cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable is
correctly set.

21 years ago2003-03-24 Martin M. Hunt <hunt@redhat.com>
hunt [Tue, 25 Mar 2003 01:03:42 +0000 (01:03 +0000)]
2003-03-24  Martin M. Hunt  <hunt@redhat.com>

* generic/gdbtk-register.c (get_register_types): Use
register_type instead of REGISTER_VIRTUAL_TYPE.
(get_register): Ditto.

21 years agoReplace oddly-encoded blank with regular blanks
aoliva [Tue, 25 Mar 2003 00:41:25 +0000 (00:41 +0000)]
Replace oddly-encoded blank with regular blanks

21 years ago*** empty log message ***
gdbadmin [Tue, 25 Mar 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
amodra [Mon, 24 Mar 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years agoAdd --info command line switch
nickc [Mon, 24 Mar 2003 16:11:46 +0000 (16:11 +0000)]
Add --info command line switch

21 years agoRename the all occurances of C54X to TIC54X.
nickc [Mon, 24 Mar 2003 15:43:14 +0000 (15:43 +0000)]
Rename the all occurances of C54X to TIC54X.

21 years agoMove display_info() function into bucomm.c
nickc [Mon, 24 Mar 2003 11:28:35 +0000 (11:28 +0000)]
Move display_info() function into bucomm.c

21 years ago* armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
rearnsha [Mon, 24 Mar 2003 09:53:39 +0000 (09:53 +0000)]
* armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
value was renamed to ARM_FLOAT_SOFT_FPA.

21 years agoIndex: ChangeLog
cagney [Mon, 24 Mar 2003 03:54:45 +0000 (03:54 +0000)]
Index: ChangeLog
2003-03-23  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
(DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
* gdbarch.h, gdbarch.c: Regenerate.
* valops.c (hand_function_call): Update.
* objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
* frame.c (legacy_saved_regs_this_id): Update.
(legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
* dummy-frame.h: Update.
* config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
* config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
* config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
* config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
* config/m68k/tm-sun3.h: Update.
* blockframe.c (inside_main_func, frame_chain_valid): Update.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* x86-64-tdep.c (x86_64_init_abi): Update.
* vax-tdep.c (vax_gdbarch_init): Update.
* v850-tdep.c (v850_gdbarch_init): Update.
* sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
* sh-tdep.c (sh_gdbarch_init): Update.
* s390-tdep.c (s390_gdbarch_init): Update.
* rs6000-tdep.c (rs6000_frame_saved_pc): Update.
(rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
(frame_get_saved_regs): Update.
* ppc-linux-tdep.c (ppc_linux_init_abi): Update.
* ns32k-tdep.c (ns32k_gdbarch_init): Update.
* mn10300-tdep.c (mn10300_gdbarch_init): Update.
* mips-tdep.c (mips_gdbarch_init): Update.
* mcore-tdep.c (mcore_gdbarch_init): Update.
* m68k-tdep.c (m68k_gdbarch_init): Update.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
* ia64-tdep.c (ia64_gdbarch_init): Update.
* i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
* i386-interix-tdep.c (i386_interix_init_abi): Update.
(i386_interix_back_one_frame): Update.
* hppa-tdep.c (hppa_gdbarch_init): Update.
(hppa_init_extra_frame_info): Update.
* h8300-tdep.c (h8300_gdbarch_init): Update.
* frv-tdep.c (frv_gdbarch_init): Update.
* cris-tdep.c (cris_gdbarch_init): Update.
* avr-tdep.c (avr_gdbarch_init): Update.
* arm-tdep.c (arm_gdbarch_init): Update.
* alpha-tdep.c (alpha_gdbarch_init): Update.

Index: doc/ChangeLog
2003-03-23  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Algorithms, Target Architecture Definition):
Deprecate FRAME_CHAIN and FRAME_CHAIN_VALID.

21 years ago*** empty log message ***
gdbadmin [Mon, 24 Mar 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
amodra [Sun, 23 Mar 2003 23:00:04 +0000 (23:00 +0000)]
daily update

21 years ago* setup-net.sgml: Improve setup.exe documentation
joshuadfranklin [Sun, 23 Mar 2003 19:43:33 +0000 (19:43 +0000)]
* setup-net.sgml: Improve setup.exe documentation

21 years ago* setup-net.sgml: Improve setup.exe documentation
joshuadfranklin [Sun, 23 Mar 2003 19:35:52 +0000 (19:35 +0000)]
* setup-net.sgml: Improve setup.exe documentation

21 years ago* setup-net.sgml: Improve setup.exe documentation
joshuadfranklin [Sun, 23 Mar 2003 16:23:52 +0000 (16:23 +0000)]
* setup-net.sgml: Improve setup.exe documentation

21 years ago*** empty log message ***
tpfaff [Sun, 23 Mar 2003 10:56:19 +0000 (10:56 +0000)]
*** empty log message ***

21 years ago* thread.h (class List): Move inline code inside class
tpfaff [Sun, 23 Mar 2003 10:52:01 +0000 (10:52 +0000)]
* thread.h (class List): Move inline code inside class
declaration.
(List::forEach): Change callback parameter to template class
member functionpointer.
(pthread_keys::fixup_before_fork): Change to inline. Use
List::forEach to fixup keys.
(pthread_keys::fixup_after_fork): Ditto.
(pthread_keys::runAllDestructors): Ditto.
(pthread_key::saveAKey): Remove.
(pthread_key::restoreAKey): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(pthread_mutex::FixupAfterFork): New method.
(pthread_mutex::mutexes): New member.
(pthread_cond::fixup_after_fork): Change to inline. Use
List::forEach to fixup conds after a fork.
(pthread_cond::FixupAfterFork): New method.
(pthread_cond::conds): New member.
(pthread_rwlock::fixup_after_fork): Change to inline. Use
List::forEach to fixup rwlocks after a fork.
(pthread_rwlock::FixupAfterFork): New method.
(pthread_rwlock::rwlocks): New member.
(semaphore::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(semaphore::FixupAfterFork): New method.
(semaphore::semaphores): New member.
(MTinterface::mutexs): Remove.
(MTinterface::conds): Ditto.
(MTinterface::rwlocks): Ditto.
(MTinterface::semaphores): Ditto.
(pthread_equal): Add extern "C".
(pthread_mutex_lock): Ditto.

* thread.cc (MTinterface::fixup_after_fork): Change
fixup_after_fork calls for pthread objects.
(semaphore::conds): Instantiate.
(pthread_cond::pthread_cond): Use List::Insert rather than
custom list code.
(pthread_cond::~pthread_cond): Use List::Remove rather than
custom list code.
(pthread_cond::fixup_after_fork): Rename to FixupAfterFork.
(pthread_rwlock::rwlocks): Instantiate.
(pthread_rwlock::pthread_crwlock): Use List::Insert rather than
custom list code.
(pthread_rwlock::~pthread_rwlock): Use List::Remove rather than
custom list code.
(pthread_rwlock::fixup_after_fork): Rename to FixupAfterFork.
(pthread_key::saveAKey): Remove.
(pthread_key::fixup_before_fork): Ditto.
(pthread_key::restoreAKey): Ditto.
(pthread_key::fixup_after_fork): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::runAllDestructors): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::mutexes): Instantiate.
(pthread_mutex::pthread_mutex): Use List::Insert rather than
custom list code.
(pthread_mutex::~pthread_mutex): Use List::Remove rather than
custom list code.
(pthread_mutex::fixup_after_fork): Rename to FixupAfterFork.
(semaphore::conds): Instantiate.
(semaphore::semaphore): Use List::Insert rather than custom list
code.
(semaphores::~semaphore): Use List::Remove rather than custom
list code.
(semaphore::fixup_after_fork): Rename to FixupAfterFork.

21 years ago* Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
aoliva [Sun, 23 Mar 2003 10:16:44 +0000 (10:16 +0000)]
* Makefile.in (MULTIOSDIR): New macro.  Use $(CC) $(LIBCFLAGS)
instead of $$CC alone.
(install_to_tooldir): Use it.

21 years ago*** empty log message ***
gdbadmin [Sun, 23 Mar 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago* setup-net.sgml: Document setup.exe
joshuadfranklin [Sat, 22 Mar 2003 21:16:25 +0000 (21:16 +0000)]
* setup-net.sgml: Document setup.exe

21 years ago * dlltool.c (gen_def_file): Put demangled name comments on
dannysmith [Sat, 22 Mar 2003 21:04:50 +0000 (21:04 +0000)]
* dlltool.c (gen_def_file): Put demangled name comments on
own line preceding export name.

21 years ago* arm-tdep.h (arm_float_model): Add AUTO and LAST values.
rearnsha [Sat, 22 Mar 2003 20:39:20 +0000 (20:39 +0000)]
* arm-tdep.h (arm_float_model): Add AUTO and LAST values.
(arm_get_fp_model): Declare.
* arm-tdep.c (fp_model_strings): New string array.
(arm_fp_model, current_fp_model): New variables.
(arm_get_fp_model): New function.
(arm_set_fp): New function.
(set_fp_model_sfunc): New function.
(show_fp_model): New function.
(_initialize_arm_tdep): Add new command to set/show the FPU.
(arm_extract_return_value): Use arm_get_fp_model.
(arm_store_return_value): Likewise.
(arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
to initialize the floating-point data types.
* arm-linux-tdep.c (arm_linux_init_abi): The default floating point
model is FPA.

21 years ago* setup-net.sgml: Document setup.exe
joshuadfranklin [Sat, 22 Mar 2003 20:03:41 +0000 (20:03 +0000)]
* setup-net.sgml: Document setup.exe

21 years ago * i386-dis.c (dis386): Recognize icebp (0xf1).
devans [Sat, 22 Mar 2003 18:56:45 +0000 (18:56 +0000)]
* i386-dis.c (dis386): Recognize icebp (0xf1).

21 years ago* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.
cgf [Sat, 22 Mar 2003 18:30:58 +0000 (18:30 +0000)]
* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.

21 years ago* arm-tdep.c (show_arm_command): Don't print out help. Instead, show
rearnsha [Sat, 22 Mar 2003 18:01:37 +0000 (18:01 +0000)]
* arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
the current setting of each value.
(_initialize_arm_tdep): Delete variable new_cmd and add new vars
new_set and new_show.  Use add_setshow_cmd_full and
add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
commands and add new version as subcommands of "set/show arm".

21 years ago* syscalls.cc (unlink): Be more defensive when SetFileAttributes is called.
cgf [Sat, 22 Mar 2003 17:48:40 +0000 (17:48 +0000)]
* syscalls.cc (unlink): Be more defensive when SetFileAttributes is called.
Fix typo in debugging output.

21 years ago* arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
rearnsha [Sat, 22 Mar 2003 16:22:18 +0000 (16:22 +0000)]
* arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
(set_arm_command, show_arm_command): New functions.
(_initialize_arm_tdep): Add them.
(num_disassembly_options): Renamed from num_flavor_options.
(valid_disassembly_styles): Renamed from valid_flavors.
(disassembly_style): Renamed from disassembly_flavor.
(set_disassembly_style_sfunc): Renamed from
set_disassembly_flavor_sfunc.
(set_disassembly_style): Renamed from set_disassembly_flavor.
(arm_othernames): Updated.
(_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
command.  Add "set/show arm disassembly" commands.  Deprecate
"othernames" command.

21 years ago* Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
rearnsha [Sat, 22 Mar 2003 14:54:58 +0000 (14:54 +0000)]
* Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
(arm-tdep.o): Depend on elf_arm_h.

21 years ago* Makefile.in (coff_internal_h): Define.
rearnsha [Sat, 22 Mar 2003 14:42:54 +0000 (14:42 +0000)]
* Makefile.in (coff_internal_h): Define.
(arm-tdep.o): Update dependencies.

21 years ago* arm-tdep.c (prologue_cache): Delete.
rearnsha [Sat, 22 Mar 2003 14:31:29 +0000 (14:31 +0000)]
* arm-tdep.c (prologue_cache): Delete.
(check_prologue_cache, save_prologue_cache): Delete.
(arm_scan_prologue): Don't check or update the prologue_cache.
(arm_gdb_arch_init): Don't initialize it.
(_initialize_arm_tdep): Likewise.

21 years ago* fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not necessary
cgf [Sat, 22 Mar 2003 01:45:17 +0000 (01:45 +0000)]
* fork.cc: Conditionalize use of slow_pid_reuse throughout.  It's not necessary
for newer versions of bash.

21 years ago*** empty log message ***
gdbadmin [Sat, 22 Mar 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
amodra [Fri, 21 Mar 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago * gdb.asm/asm-source.exp: Set asm-arch for m6811 and m6812.
ciceron [Fri, 21 Mar 2003 20:34:38 +0000 (20:34 +0000)]
* gdb.asm/asm-source.exp: Set asm-arch for m6811 and m6812.
* gdb.asm/m68hc11.inc: New file for HC11/HC12 macros.

21 years ago * MAINTAINERS (tui): Maintainer of tui code.
ciceron [Fri, 21 Mar 2003 20:00:19 +0000 (20:00 +0000)]
* MAINTAINERS (tui): Maintainer of tui code.

21 years ago* elf32-xstormy16.c (elf32_xstormy16_relocate_section): Call
dj [Fri, 21 Mar 2003 19:49:11 +0000 (19:49 +0000)]
* elf32-xstormy16.c (elf32_xstormy16_relocate_section): Call
_bfd_elf_rela_local_sym.

21 years ago * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
schwab [Fri, 21 Mar 2003 14:02:08 +0000 (14:02 +0000)]
* config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
avoid aliasing issue.

21 years ago * s390-dis.c (init_disasm): Rename S390_OPCODE_ESAME to
sky [Fri, 21 Mar 2003 13:28:09 +0000 (13:28 +0000)]
* s390-dis.c (init_disasm): Rename S390_OPCODE_ESAME to
S390_OPCODE_ZARCH.
(print_insn_s390): Use new modes field of s390_opcodes.
* s390-mkopc.c (ARCHBITS_ESAONLY, ARCHBITS_ESA, ARCHBITS_ESAME): Remove.
(s390_opcode_mode_val, s390_opcode_cpu_val): New enums.
(struct op_struct): Remove archbits. Add mode_bits and min_cpu.
(insertOpcode): Replace archbits by min_cpu and mode_bits.
(dumpTable): Write mode_bits and min_cpu instead of archbits.
(main): Adapt to new format in s390-opcode.txt.
* s390-opc.c (s390_opformats): Replace archbits by min_cpu and
mode_bits.
* s390-opc.txt: Replace archbits by min_cpu and mode_bits.

21 years ago * s390.h (s390_opcode_arch_val): Rename to s390_opcode_mode_val.
sky [Fri, 21 Mar 2003 13:26:21 +0000 (13:26 +0000)]
* s390.h (s390_opcode_arch_val): Rename to s390_opcode_mode_val.
(S390_OPCODE_ESAME): Rename to S390_OPCODE_ZARCH.
(s390_opcode): Remove architecture. Add modes and min_cpu.

21 years ago * config/tc-s390.c (s390_arch_size): Initialize to zero.
sky [Fri, 21 Mar 2003 13:24:45 +0000 (13:24 +0000)]
* config/tc-s390.c (s390_arch_size): Initialize to zero.
(current_arch_mask): Rename to current_mode_mask.
(current_arch_requested): Remove variable.
(current_cpu): New variable.
(init_default_arch): Set defaults values for s390_arch_size,
current_mode_mask and current_cpu.
(md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
(md_begin): Replace current_arch_mask by current_cpu.
(md_assemble): Adapt check and error message to current_mode_mask and
current_cpu.

21 years ago * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
corinna [Fri, 21 Mar 2003 10:07:16 +0000 (10:07 +0000)]
* Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
(i386-cygwin-tdep.o): Add dependencies.
* defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
* i386-cygwin-tdep.c: New file.
* osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
* config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.

21 years ago* xstormy16-decode.cxx: Regenerate.
dj [Fri, 21 Mar 2003 06:16:29 +0000 (06:16 +0000)]
* xstormy16-decode.cxx: Regenerate.
* xstormy16-decode.h: Regenerate.
* xstormy16-sem.cxx: Regenerate.
* xstormy16-write.cxx: Regenerate.

21 years ago* cpu/xstormy16.cpu (basic-psw): New argument ws (wordsize),
dj [Fri, 21 Mar 2003 06:15:54 +0000 (06:15 +0000)]
* cpu/xstormy16.cpu (basic-psw): New argument ws (wordsize),
which indicates if the sign flag is set from bit 15 or 7.
Adjust all callers.
(set-psw): New argument ws, propogate it.
(set-psw-nowrite): Likewise.
(set-mem-psw): Likewise.
(set-psw-carry): Likewise.  Use temporaries to prevent
prematurely overwriting needed inputs.
(set-psw-rrotate17): Fix logic.
(shrgrgr): Preserve carry for zero-bit shifts.
(shrgrimm): Likewise.
(shlgrgr): Likewise.
(shlgrimm): Likewise.
(asrgrgr): Likewise.
(asrgrimm): Likewise.
(reset): New.

21 years ago*** empty log message ***
gdbadmin [Fri, 21 Mar 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
amodra [Thu, 20 Mar 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago2003-03-20 Andrew Cagney <cagney@redhat.com>
cagney [Thu, 20 Mar 2003 22:52:53 +0000 (22:52 +0000)]
2003-03-20  Andrew Cagney  <cagney@redhat.com>

* infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
(handle_inferior_event): Remove code calling
DYNAMIC_TRAMPOLINE_NEXTPC.

21 years ago2003-03-20 Andrew Cagney <cagney@redhat.com>
cagney [Thu, 20 Mar 2003 22:43:10 +0000 (22:43 +0000)]
2003-03-20  Andrew Cagney  <cagney@redhat.com>

* Makefile.in (init.c): Don't add $(srcdir) prefix when a file
already has a full path.

21 years ago2003-03-20 Andrew Cagney <cagney@redhat.com>
cagney [Thu, 20 Mar 2003 22:25:16 +0000 (22:25 +0000)]
2003-03-20  Andrew Cagney  <cagney@redhat.com>

* main.c (gdb_main): Return 1.
(captured_main): Call error to report an invalid interpreter.

21 years ago2003-03-20 Andrew Cagney <cagney@redhat.com>
cagney [Thu, 20 Mar 2003 22:09:54 +0000 (22:09 +0000)]
2003-03-20  Andrew Cagney  <cagney@redhat.com>

* Makefile.in (alpha-osf1-tdep.o): Update dependencies.
* alpha-osf1-tdep.c: Include "gdb_string.h".

21 years ago2003-03-20 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Thu, 20 Mar 2003 17:23:56 +0000 (17:23 +0000)]
2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
        count all characters used to create number against maximum width.
        * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.

21 years ago2003-03-20 H.J. Lu <hjl@gnu.org>
hjl [Thu, 20 Mar 2003 16:04:18 +0000 (16:04 +0000)]
2003-03-20  H.J. Lu <hjl@gnu.org>

* elfxx-ia64.c (elfNN_ia64_relax_section): Don't try relax for
non-ELF outputs.

21 years ago * gdb.base/default.exp: Fix regular expression.
corinna [Thu, 20 Mar 2003 14:45:50 +0000 (14:45 +0000)]
* gdb.base/default.exp: Fix regular expression.

21 years ago * gdb.base/args.exp: Fix regular expression.
corinna [Thu, 20 Mar 2003 14:42:14 +0000 (14:42 +0000)]
* gdb.base/args.exp: Fix regular expression.

21 years ago * gdb.base/help.exp: Allow Win32 child process.
corinna [Thu, 20 Mar 2003 14:19:41 +0000 (14:19 +0000)]
* gdb.base/help.exp: Allow Win32 child process.

21 years ago * gdb.base/ending-run.exp: Check for Cygwin specific wrapper function
corinna [Thu, 20 Mar 2003 14:10:17 +0000 (14:10 +0000)]
* gdb.base/ending-run.exp: Check for Cygwin specific wrapper function
when stepping out of main().

21 years ago * gdb.base/default.exp: Check for win32 specific message when calling
corinna [Thu, 20 Mar 2003 13:27:49 +0000 (13:27 +0000)]
* gdb.base/default.exp: Check for win32 specific message when calling
"run" without executable.

21 years ago * gdb.base/args.exp: Expect .exe in output.
corinna [Thu, 20 Mar 2003 13:06:51 +0000 (13:06 +0000)]
* gdb.base/args.exp: Expect .exe in output.

21 years ago * gdb.asm/asm-source.exp: Add appropriate --entry linker flag for
corinna [Thu, 20 Mar 2003 12:57:47 +0000 (12:57 +0000)]
* gdb.asm/asm-source.exp: Add appropriate --entry linker flag for
Cygwin native.

21 years agofix date on latest ChangeLog entry.
nickc [Thu, 20 Mar 2003 12:32:05 +0000 (12:32 +0000)]
fix date on latest ChangeLog entry.

21 years agoAdd Cirrus Maverick support to arm simulator
nickc [Thu, 20 Mar 2003 12:25:07 +0000 (12:25 +0000)]
Add Cirrus Maverick support to arm simulator

21 years agoInitialise $idata2 and $idata5 in case bfd_coff_final_link is not called.
nickc [Thu, 20 Mar 2003 09:02:09 +0000 (09:02 +0000)]
Initialise $idata2 and $idata5 in case bfd_coff_final_link is not called.

21 years ago * fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and
corinna [Thu, 20 Mar 2003 08:53:27 +0000 (08:53 +0000)]
* fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and
SIGPIPE handling to connection oriented sockets.  Add comment.

21 years agoAdded Commandline Support.
venkat [Thu, 20 Mar 2003 06:00:25 +0000 (06:00 +0000)]
Added Commandline Support.
2003-03-20  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>

        * compile.c (cmdline_location): Added function to
        return the location of 8-bit (256 locations) where the
        Command Line arguments would be stored.
        (decode): Added a TRAP to 0xcc for Commandline
        processing using pseudo opcode O_SYS_CMDLINE.
        (sim_resume): Added handling of O_SYS_CMDLINE Trap.
        (sim_create_inferior): Setting a pointer to
        Commandline Args array.
        * inst.h: Added a new variable ptr_command_line for
        storing pointer to Commandline array.

21 years ago* sigproc.h (signal_fixup_after_exec): Eliminate argument in declaration.
cgf [Thu, 20 Mar 2003 01:34:53 +0000 (01:34 +0000)]
* sigproc.h (signal_fixup_after_exec): Eliminate argument in declaration.
* exceptions.cc (signal_fixup_after_exec): Eliminate argument in definition.
Don't reset signal handlers after spawm.  Just treat like fork/exec.
* dcrt0.cc (dll_crt0_1): Don't pass PROC_SPAWN argument to
signal_fixup_after_exec.
* syscalls.cc (unlink): Don't change attributes of file if not readonly/system.
Ditto for resetting of arguments.

21 years ago *lib/ndis.def (NdisAllocateMemory): Correct stdcall suffix.
dannysmith [Thu, 20 Mar 2003 00:44:06 +0000 (00:44 +0000)]
*lib/ndis.def (NdisAllocateMemory): Correct stdcall suffix.
Thanks to: Vladimir Michl <michlv@users.sourceforge.net>
(NdisUpdateSharedMemory): Likewise.
(NdisMFreeSharedMemory: Likewise.
(NdisMMapIoSpace: Likewise.

21 years ago*** empty log message ***
gdbadmin [Thu, 20 Mar 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
amodra [Wed, 19 Mar 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago * glob.c: Eliminate __INSIDE_CYGWIN__ preprocessor conditionals
corinna [Wed, 19 Mar 2003 21:38:25 +0000 (21:38 +0000)]
* glob.c: Eliminate __INSIDE_CYGWIN__ preprocessor conditionals
throughout.

21 years ago * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
corinna [Wed, 19 Mar 2003 21:34:38 +0000 (21:34 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
wrong usage of S_IFDIR.
* security.cc (get_attribute_from_acl): Ditto.
(get_file_attribute): Fix wrong usage of S_IFLNK.
(get_object_attribute): Ditto.
(alloc_sd): Fix wrong usage of S_IFDIR.
* syscalls.cc (chmod): Allow chmod'ing of socket files.

21 years ago * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
brobecke [Wed, 19 Mar 2003 20:14:00 +0000 (20:14 +0000)]
    * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
        method, now that hppa_push_dummy_frame has a conformant prototype.
        * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
        inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
        for the switch to multiarch partial.

21 years ago * include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES):
corinna [Wed, 19 Mar 2003 20:13:56 +0000 (20:13 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES):
Define.
* glob.c (g_lstat): Use CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES
instead of numerical constants.
(g_stat): Ditto.

21 years ago * mdebugread.c (parse_symbol): For stEnd, we're done counting
kevinb [Wed, 19 Mar 2003 19:45:48 +0000 (19:45 +0000)]
* mdebugread.c (parse_symbol): For stEnd, we're done counting
when iss is issNull.

21 years ago * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
schwab [Wed, 19 Mar 2003 09:56:05 +0000 (09:56 +0000)]
* ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
eof.

21 years ago * elf64-sparc.c (struct sparc64_elf_section_data): Add reloc_count
jakub [Wed, 19 Mar 2003 09:26:50 +0000 (09:26 +0000)]
* elf64-sparc.c (struct sparc64_elf_section_data): Add reloc_count
field.
(canon_reloc_count): Define.
(sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
sparc64_elf_canonicalize_dynamic_reloc): Use it instead of
reloc_count.
(sparc64_elf_canonicalize_reloc): New routine.
(bfd_elf64_canonicalize_reloc): Define.

21 years ago * mips-tdep.c (mips_register_name): Fix fencepost error involving
kevinb [Wed, 19 Mar 2003 06:49:17 +0000 (06:49 +0000)]
* mips-tdep.c (mips_register_name): Fix fencepost error involving
NUM_REGS bounds check.

21 years agoPrint correct register names for MIPS targets using n32/n64 ABIs.
kevinb [Wed, 19 Mar 2003 06:21:12 +0000 (06:21 +0000)]
Print correct register names for MIPS targets using n32/n64 ABIs.

21 years ago*** empty log message ***
gdbadmin [Wed, 19 Mar 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * elfxx-ia64.c (elfNN_ia64_relax_section): Handle relaxation
jakub [Tue, 18 Mar 2003 23:14:34 +0000 (23:14 +0000)]
* elfxx-ia64.c (elfNN_ia64_relax_section): Handle relaxation
againt mergeable sections.  Take r_addend into account when caching
trampolines.

21 years agodaily update
amodra [Tue, 18 Mar 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago2003-03-18 Andrew Cagney <cagney@redhat.com>
cagney [Tue, 18 Mar 2003 22:03:28 +0000 (22:03 +0000)]
2003-03-18  Andrew Cagney  <cagney@redhat.com>

* printcmd.c (print_scalar_formatted): Change VALADDR parameter to
a void pointer.
* gdbtypes.h (print_scalar_formatted): Update declaration.
* expression.h (enum exp_opcode): Remove non-ISO C trailing comma.

21 years agojust pretend these didn't get committed.
cagney [Tue, 18 Mar 2003 21:50:27 +0000 (21:50 +0000)]
just pretend these didn't get committed.

21 years ago * defilep.y (opt_base): If no number given, set to default
dannysmith [Tue, 18 Mar 2003 21:33:43 +0000 (21:33 +0000)]
* defilep.y (opt_base): If no number given, set to default
(-1), not 0.

21 years ago2003-03-18 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
jjohnstn [Tue, 18 Mar 2003 20:38:04 +0000 (20:38 +0000)]
2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>

        * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
        support.
        * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
        flag to support simulator only extensions.

21 years ago* pthread.cc (pthread_attr_init): Remove
tpfaff [Tue, 18 Mar 2003 20:12:05 +0000 (20:12 +0000)]
* pthread.cc (pthread_attr_init): Remove
(pthread_attr_destroy): Ditto.
(pthread_attr_setdetachstate): Ditto.
(pthread_attr_getdetachstate): Ditto.
(pthread_attr_setstacksize): Ditto.
(pthread_attr_getstacksize): Ditto.
(pthread_attr_setinheritsched): Ditto.
(pthread_attr_getinheritsched): Ditto.
(pthread_attr_setschedparam): Ditto.
(pthread_attr_getschedparam): Ditto.
(pthread_attr_setschedpolicy): Ditto.
(pthread_attr_getschedpolicy): Ditto.
(pthread_attr_setscope): Ditto.
(pthread_attr_getscope): Ditto.
(pthread_attr_setstackaddr): Ditto.
(pthread_attr_getstackaddr): Ditto.
(pthread_key_create): Ditto.
(pthread_key_delete): Ditto.
(pthread_setspecific): Ditto.
(pthread_getspecific): Ditto.
(pthread_kill): Ditto.
(pthread_sigmask): Ditto.
(pthread_equal): Ditto.
(pthread_mutex_lock): Ditto.
(pthread_mutex_trylock): Ditto.
(pthread_mutex_unlock): Ditto.
(pthread_mutex_destroy): Ditto.
(pthread_mutex_setprioceiling): Ditto.
(pthread_mutex_getprioceiling): Ditto.
(pthread_mutexattr_destroy): Ditto.
(pthread_mutexattr_getprioceiling): Ditto.
(pthread_mutexattr_getprotocol): Ditto.
(pthread_mutexattr_getpshared): Ditto.
(pthread_mutexattr_gettype): Ditto.
(pthread_mutexattr_init): Ditto.
(pthread_mutexattr_setprioceiling): Ditto.
(pthread_mutexattr_setprotocol): Ditto.
(pthread_mutexattr_setpshared): Ditto.
(pthread_mutexattr_settype): Ditto.
(pthread_cond_destroy): Ditto.
(pthread_cond_signal): Ditto.
(pthread_cond_broadcast): Ditto.
(pthread_condattr_init): Ditto.
(pthread_condattr_destroy): Ditto.
(pthread_condattr_getpshared): Ditto.
(pthread_condattr_setpshared): Ditto.
(pthread_rwlock_destroy): Ditto.
(pthread_rwlock_rdlock): Ditto.
(pthread_rwlock_tryrdlock): Ditto.
(pthread_rwlock_wrlock): Ditto.
(pthread_rwlock_trywrlock): Ditto.
(pthread_rwlock_unlock): Ditto.
(pthread_rwlockattr_init): Ditto.
(pthread_rwlockattr_getpshared): Ditto.
(pthread_rwlockattr_setpshared): Ditto.
(pthread_rwlockattr_destroy): Ditto.
(pthread_getconcurrency): Ditto.
(pthread_setconcurrency): Ditto.
(pthread_getschedparam): Ditto.
(pthread_setschedparam): Ditto.

* thread.h (__pthread_attr_init): Remove prototype.
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.

* thread.cc: Rename __pthread_equal to pthread_equal throughout.
Change pthread_self parameter appropriate.
(__pthread_attr_init): Remove __ prefix. Change to extern "C".
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.

21 years ago* winsup.api/pthread/rwlock1.c: New test.
tpfaff [Tue, 18 Mar 2003 20:04:24 +0000 (20:04 +0000)]
* winsup.api/pthread/rwlock1.c: New test.
* winsup.api/pthread/rwlock2.c: Ditto.
* winsup.api/pthread/rwlock3.c: Ditto.
* winsup.api/pthread/rwlock4.c: Ditto.
* winsup.api/pthread/rwlock5.c: Ditto.
* winsup.api/pthread/rwlock6.c: Ditto.
* winsup.api/pthread/rwlock7.c: Ditto.

21 years ago* cygwin.din: Add pthread_rwlock_destroy, pthread_rwlock_init,
tpfaff [Tue, 18 Mar 2003 20:01:06 +0000 (20:01 +0000)]
* cygwin.din: Add pthread_rwlock_destroy, pthread_rwlock_init,
pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
pthread_rwlock_unlock, pthread_rwlockattr_init,
pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
and pthread_rwlockattr_destroy.
* include/cygwin/version.h: Bump API minor number.
* include/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Define a
reasonable value.
Add prototypes for pthread_rwlock_destroy, pthread_rwlock_init,
pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
pthread_rwlock_unlock, pthread_rwlockattr_init,
pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
and pthread_rwlockattr_destroy.
* thread.h (PTHREAD_ONCE_MAGIC): Remove superflous semicolon.
(PTHREAD_RWLOCK_MAGIC): New define.
(PTHREAD_RWLOCKATTR_MAGIC): Ditto.
(pthread_rwlockattr): New class.
(pthread_rwlock): Ditto.
(MTinterface::rwlocks): New member.
(MTinterface::MTinterface): Initialize rwlocks.
Add prototypes for __pthread_rwlock_destroy,
__pthread_rwlock_wrlock, __pthread_rwlock_trywrlock,
__pthread_rwlock_unlock, __pthread_rwlockattr_init,
__pthread_rwlockattr_getpshared, __pthread_rwlockattr_setpshared,
and __pthread_rwlockattr_destroy.
* thread.cc (MTinterface::Init): Initialize rwlock internal mutex.
(MTinterface::fixup_after_fork): Fixup rwlocks after fork.
(pthread_rwlockattr::isGoodObject): Implement.
(pthread_rwlockattr::pthread_rwlockattr): Ditto.
(pthread_rwlockattr::~pthread_rwlockattr): Ditto.
(pthread_rwlock::initMutex): Ditto.
(pthread_rwlock::pthread_rwlock): Ditto.
(pthread_rwlock::~pthread_rwlock): Ditto.
(pthread_rwlock::RdLock): Ditto.
(pthread_rwlock::TryRdLock): Ditto.
(pthread_rwlock::WrLock): Ditto.
(pthread_rwlock::TryWrLock): Ditto.
(pthread_rwlock::UnLock): Ditto.
(pthread_rwlock::addReader): Ditto.
(pthread_rwlock::removeReader): Ditto.
(pthread_rwlock::lookupReader): Ditto.
(pthread_rwlock::RdLockCleanup): Ditto.
(pthread_rwlock::WrLockCleanup): Ditto.
(pthread_rwlock::fixup_after_fork): Ditto.
(pthread_rwlock::isGoodObject): Ditto.
(pthread_rwlock::isGoodInitializer): Ditto.
(pthread_rwlock::isGoodInitializerOrObject): Ditto.
(pthread_rwlock::isGoodInitializerOrBadObject): Ditto.
(__pthread_rwlock_destroy): Ditto.
(pthread_rwlock::init): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.

21 years ago* winsup.api/pthread/condvar7.c: New test.
tpfaff [Tue, 18 Mar 2003 19:51:58 +0000 (19:51 +0000)]
* winsup.api/pthread/condvar7.c: New test.
* winsup.api/pthread/condvar9.c: Ditto.

21 years ago* thread.h (pthread_cond::ExitingWait): Remove.
tpfaff [Tue, 18 Mar 2003 19:49:38 +0000 (19:49 +0000)]
* thread.h (pthread_cond::ExitingWait): Remove.
(pthread_cond::mutex): Ditto.
(pthread_cond::cond_access): Ditto.
(pthread_cond::win32_obj_id): Ditto.
(pthread_cond::TimedWait): Ditto.
(pthread_cond::BroadCast): Ditto.
(pthread_cond::Signal): Ditto.
(pthread_cond::waiting): Change type to unsigned long.
(pthread_cond::pending): New member.
(pthread_cond::semWait): Ditto.
(pthread_cond::mtxIn): Ditto.
(pthread_cond::mtxOut): Ditto.
(pthread_cond::mtxCond): Ditto.
(pthread_cond::UnBlock): New method.
(pthread_cond::Wait): Ditto.
* thread.cc: Update list of cancellation points.
(pthread_cond::pthread_cond): Rewrite.
(pthread_cond::~pthread_cond): Ditto.
(pthread_cond::TimedWait): Remove.
(pthread_cond::BroadCast): Ditto.
(pthread_cond::Signal): Ditto.
(pthread_cond::UnBlock): Implement.
(pthread_cond::Wait): Ditto.
(pthread_cond::fixup_after_fork): Rewrite.
(pthread_mutex::fixup_after_fork): Remove DETECT_BAD_APP
conditional.
(__pthread_cond_broadcast): Just return 0 if the condition is
not initialized. Call pthread_cond::UnBlock to release blocked
threads.
(__pthread_cond_signal): Ditto.
(__pthread_cond__dowait): Rewrite.
(pthread_cond_timedwait): Add pthread_testcancel call. Fix
waitlength calculation.
(pthread_cond_wait): Add pthread_testcancel call.

21 years ago* winsup.api/pthread/mutex1n.c: New test.
tpfaff [Tue, 18 Mar 2003 19:42:43 +0000 (19:42 +0000)]
* winsup.api/pthread/mutex1n.c: New test.
* winsup.api/pthread/mutex6n.c: Ditto.
* winsup.api/pthread/mutex7n.c: Ditto.

21 years ago* include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.
tpfaff [Tue, 18 Mar 2003 19:39:21 +0000 (19:39 +0000)]
* include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.
* thread.cc: Remove errno.h include.
(pthread::precreate): Change internal mutex type to normal.
(pthread_mutex::canBeUnlocked): Implement.
(pthread_mutex::pthread_mutex): Initialize lock_counter with 0.
(pthread_mutex::Lock): Rename to _Lock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::TryLock): Rename to _TryLock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::UnLock): Rename to _UnLock. Add self parameter.
Change lock_counter logic.
(pthread_mutex::Destroy): Rename to _Destroy. Update TryLock call.
(pthread_mutex::SetOwner): Move to thread.h as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::fixup_after_fork): Change lock_counter logic.
(__pthread_mutexattr_settype): Add PTHREAD_MUTEX_NORMAL to valid
types check.
* thread.h: Include errno.h and limits.h.
(MUTEX_LOCK_COUNTER_INITIAL): Remove.
(MUTEX_OWNER_ANONYMOUS): New define.
(pthread_mutex::canBeUnlocked): New static method.
(pthread_mutex::lock_counter): Change type to unsigned long.
(pthread_mutex::GetPthreadSelf): New method.
(pthread_mutex::Lock): Call _Lock with pthread_self pointer.
(pthread_mutex::TryLock): Call _TryLock with pthread_self pointer.
(pthread_mutex::UnLock): Call _UnLock with pthread_self pointer.
(pthread_mutex::Destroy): Call _Destroy with pthread_self pointer.
(pthread_mutex::SetOwner): Moved from thread.cc as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::_Lock): New method.
(pthread_mutex::_TryLock): New method.
(pthread_mutex::_UnLock): New method.
(pthread_mutex::_Destroy): New method.

21 years ago * infrun.c (observer.h): Add #include.
brobecke [Tue, 18 Mar 2003 19:06:54 +0000 (19:06 +0000)]
    * infrun.c (observer.h): Add #include.
        (normal_stop): Add call to observer_notify_normal_stop.
        * Makefile.in (infrun.o): Add dependency on observer.h.

21 years ago Continuing work to convert the hppa targets to multiarch partial.
brobecke [Tue, 18 Mar 2003 18:57:47 +0000 (18:57 +0000)]
    Continuing work to convert the hppa targets to multiarch partial.
        * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
        parameter. Reformat comment.
        * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
        (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
        to match new profile.

21 years ago * elfxx-ia64.c (get_dyn_sym_info): Return NULL gracefully for
rth [Tue, 18 Mar 2003 18:57:40 +0000 (18:57 +0000)]
    * elfxx-ia64.c (get_dyn_sym_info): Return NULL gracefully for
        local symbols that have no dyninfo.