OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
23 years agoFix building bfd.pot in maintainer mode
nickc [Fri, 23 Mar 2001 18:05:29 +0000 (18:05 +0000)]
Fix building bfd.pot in maintainer mode

23 years ago* config/i386/nm-i386.h: Fix formatting and change reference to
kettenis [Fri, 23 Mar 2001 16:17:44 +0000 (16:17 +0000)]
* config/i386/nm-i386.h: Fix formatting and change reference to
i386-tdep.c to i386-nat.c.

23 years ago2001-03-23 David Smith <dsmith@redhat.com>
dsmith [Fri, 23 Mar 2001 16:05:28 +0000 (16:05 +0000)]
2001-03-23  David Smith  <dsmith@redhat.com>

* configure.in: Corrected spelling errors.
* configure: Regenerated.

23 years ago2001-03-23 Ben Elliston <bje@redhat.com>
bje [Fri, 23 Mar 2001 09:45:55 +0000 (09:45 +0000)]
2001-03-23  Ben Elliston  <bje@redhat.com>

* cgen-gas.scm: Inline documentation improvements.

23 years ago * gas/cris/pic-err-1.s, gas/cris/rd-pic-1.s, gas/cris/rd-pic-1.d:
hp [Fri, 23 Mar 2001 05:58:38 +0000 (05:58 +0000)]
* gas/cris/pic-err-1.s, gas/cris/rd-pic-1.s, gas/cris/rd-pic-1.d:
New tests.

23 years ago * gas/cris/branch-warn-1.s, gas/cris/branch-warn-2.s,
hp [Fri, 23 Mar 2001 05:39:37 +0000 (05:39 +0000)]
* gas/cris/branch-warn-1.s, gas/cris/branch-warn-2.s,
gas/cris/branch-warn-3.s: Tweak for fixed FIXME:s.

23 years ago * config/tc-cris.[ch]: Tweak attribution. Fix typos. PIC support.
hp [Fri, 23 Mar 2001 05:27:41 +0000 (05:27 +0000)]
* config/tc-cris.[ch]: Tweak attribution.  Fix typos.  PIC support.

23 years agoUpdate list of obsolete targets.
cagney [Fri, 23 Mar 2001 01:14:10 +0000 (01:14 +0000)]
Update list of obsolete targets.

23 years agoObsolete stuff.c and kdb-start.c.
cagney [Fri, 23 Mar 2001 00:58:48 +0000 (00:58 +0000)]
Obsolete stuff.c and kdb-start.c.

23 years ago* config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
cagney [Fri, 23 Mar 2001 00:41:01 +0000 (00:41 +0000)]
* config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
compiles using an ISO-C compiler.
(MALLOC_INCOMPATIBLE): Ditto.
* linespec.c (decode_line_1): Delete hack to work around
HPPA_COMPILER_BUG.

23 years ago-Wuninitialized fixes.
cagney [Thu, 22 Mar 2001 23:58:37 +0000 (23:58 +0000)]
-Wuninitialized fixes.

23 years ago* fhandler.h (fhandler_dev_clipboard): Extend to support writing.
cgf [Thu, 22 Mar 2001 22:11:33 +0000 (22:11 +0000)]
* fhandler.h (fhandler_dev_clipboard): Extend to support writing.
* fhandler_clipboard.cc (fhandler_dev_clipboard::fhandler_dev_clipboard):
Initialize new fields.  Open clipboard here.
(fhandler_dev_clipboard::dup): New method.
(fhandler_dev_clipboard::open): Accomodate new fields.  Register clipboard
here, if appropriate.
(set_clipboard): New function.  Moves buffer to clipboard.
(fhandler_dev_clipboard::write): Truly implement clipboard writing.
(fhandler_dev_clipboard::read): Reimplement to allow successive reads.
(fhandler_dev_clipboard::lseek): Truly implement seeks in clipboard.
(fhandler_dev_clipboard::close): Clear out new fields.  Support sequential
reads and sequential writes.  Support for binary data via a native clipboard
format.

23 years ago* fhandler_console.cc (fhandler_console::set_default_attr): Update console
cgf [Thu, 22 Mar 2001 18:19:00 +0000 (18:19 +0000)]
* fhandler_console.cc (fhandler_console::set_default_attr): Update console
color attributes on tty reset.

23 years agoRe-installed:
aoliva [Thu, 22 Mar 2001 18:17:53 +0000 (18:17 +0000)]
Re-installed:
2001-01-02  Laurynas Biveinis  <lauras@softhome.net>
* ltcf-c.sh: Clear ac_cv_prog_cc_pic for DJGPP.  Do not add
'-DPIC' to ac_cv_prog_cc_pic for DJGPP.
* ltcf-cxx.sh: Likewise.
* ltcf-gcj.sh: Likewise.

23 years ago * cris.h (ADD_PC_INCR_OPCODE): New macro.
hp [Thu, 22 Mar 2001 16:09:20 +0000 (16:09 +0000)]
* cris.h (ADD_PC_INCR_OPCODE): New macro.

23 years ago* cp-demangle.c (string_list_delete): Don't forget to free the
jimb [Thu, 22 Mar 2001 15:16:03 +0000 (15:16 +0000)]
* cp-demangle.c (string_list_delete): Don't forget to free the
actual contents of the string.

23 years agoCleanup remote protocol section. Add notes on ``!'', ``q'' and the
cagney [Thu, 22 Mar 2001 14:59:08 +0000 (14:59 +0000)]
Cleanup remote protocol section.  Add notes on ``!'', ``q'' and the
non-use of the continue address.

23 years ago * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
hp [Thu, 22 Mar 2001 14:56:05 +0000 (14:56 +0000)]
* elf32-cris.c: Shlib and PIC support.  PCREL tweaks.

23 years ago * cris.h: Add leading comment about PC-relative location.
hp [Thu, 22 Mar 2001 13:03:58 +0000 (13:03 +0000)]
* cris.h: Add leading comment about PC-relative location.
(R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL):
New relocs.

23 years ago * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
hp [Thu, 22 Mar 2001 11:17:16 +0000 (11:17 +0000)]
* reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
* bfd-in2.h, libbfd.h: Regenerate.

23 years ago2001-03-22 Philip Blundell <philb@gnu.org>
pb [Thu, 22 Mar 2001 11:09:20 +0000 (11:09 +0000)]
2001-03-22  Philip Blundell  <philb@gnu.org>

* config.sub, config.guess: Import latest from subversions.

23 years ago * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
eliz [Thu, 22 Mar 2001 09:35:19 +0000 (09:35 +0000)]
* config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
include nm-i386.h instead.
(TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
(TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
(TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
(target_stopped_data_address, target_insert_watchpoint)
(target_remove_watchpoint, target_insert_hw_breakpoint)
(target_remove_hw_breakpoint): Don't define.
(I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
(I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
(I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
functions from go32-nat.c.

* config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.

* go32-nat.c <top level>: Remove prototypes for watchpoint-
related functions.  Remove definitions of watchpoint-related
macros.
(go32_mourn_inferior): Call i386_cleanup_dregs instead of the
private cleanup_dregs function.
(cleanup_dregs, go32_insert_watchpoint)
(go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
(go32_remove_watchpoint, go32_remove_aligned_watchpoint)
(go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
(go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
(go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.

23 years ago* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
aoliva [Thu, 22 Mar 2001 05:22:03 +0000 (05:22 +0000)]
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.198.

23 years ago2001-03-22 Ben Elliston <bje@redhat.com>
bje [Thu, 22 Mar 2001 04:05:02 +0000 (04:05 +0000)]
2001-03-22  Ben Elliston  <bje@redhat.com>

* cgen-asm.in (@arch@_cgen_assemble_insn): Move tmp_errmsg
declaration inside CGEN_VERBOSE_ASSEMBLER_ERRORS conditional.
* cgen-ibld.in (put_insn_int_value): Mark cd parameter as unused
to allay a compiler warning.

23 years ago* autoload.cc (kernel32_init): New function for kernel32 autoload
cgf [Thu, 22 Mar 2001 03:42:07 +0000 (03:42 +0000)]
* autoload.cc (kernel32_init): New function for kernel32 autoload
initialization.
(SignalObjectAndWait): Add conditional load of this function when it is
available.

23 years ago2001-03-21 Kazu Hirata <kazu@hxi.com>
kazu [Thu, 22 Mar 2001 02:51:19 +0000 (02:51 +0000)]
2001-03-21  Kazu Hirata  <kazu@hxi.com>

* h8300.h: Fix formatting.

23 years agopaddq and psubq support.
amodra [Thu, 22 Mar 2001 02:27:53 +0000 (02:27 +0000)]
paddq and psubq support.

23 years ago * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
kevinb [Thu, 22 Mar 2001 02:11:11 +0000 (02:11 +0000)]
* ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
than two instead of generating an error.

23 years ago*** empty log message ***
jimb [Thu, 22 Mar 2001 01:01:05 +0000 (01:01 +0000)]
*** empty log message ***

23 years ago* cp-valprint.c: Bring formatting into line with GNU coding standards.
jimb [Thu, 22 Mar 2001 00:58:00 +0000 (00:58 +0000)]
* cp-valprint.c: Bring formatting into line with GNU coding standards.

23 years ago2001-03-21 Diego Novillo <dnovillo@redhat.com>
dnovillo [Thu, 22 Mar 2001 00:29:15 +0000 (00:29 +0000)]
2001-03-21  Diego Novillo  <dnovillo@redhat.com>

(_bfd_mips_elf_relocate_section): Give a better error message when
a relocation is not recognized.

23 years ago2001-03-21 Ben Elliston <bje@redhat.com>
bje [Wed, 21 Mar 2001 21:50:57 +0000 (21:50 +0000)]
2001-03-21  Ben Elliston  <bje@redhat.com>

* opc-itab.scm (compute-syntax): Emit a parse error if an operand
given in a syntax string is undefined.

23 years ago2001-03-21 Ben Elliston <bje@redhat.com>
bje [Wed, 21 Mar 2001 21:48:37 +0000 (21:48 +0000)]
2001-03-21  Ben Elliston  <bje@redhat.com>

* opc-itab.scm (compute-syntax): Emit a parse error if an operand
name is empty or invalid -- eg. "$(rs)" instead of "($rs)".

23 years ago2001-03-21 Egor Duda <deo@logos-m.ru>
jjohnstn [Wed, 21 Mar 2001 21:47:30 +0000 (21:47 +0000)]
2001-03-21  Egor Duda  <deo@logos-m.ru>

        Allow building internal stubs for non-reentrant syscalls
        if target provides its own malloc
        * libc/reent/reent.c (errno): Move definition here.
        * libc/reent/sbrkr.c: From here.

23 years agoMake Linux use the new unified support for hardware breakpoints
kettenis [Wed, 21 Mar 2001 21:22:47 +0000 (21:22 +0000)]
Make Linux use the new unified support for hardware breakpoints
and watchpoints on x86 targets.
* i386-linux-nat.c: Doc fixes.  Include "gdb_assert.h".
[HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
(DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
appropriate value if not already defined.
(register_u_addr): New function.
(kernel_u_size): New function.
(i386_linux_dr_get, i386_linux_dr_set): New functions.
(i386_linux_dr_set_control, i386_linux_dr_set_addr,
i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
* config/i386/nm-linux.h: Don't include "nm-i386v.h".
(I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
(TARGET_HAS_HARDWARE_WATCHPOINTS,
TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
target_remove_watchpoint): Remove macros.
(i386_stopped_by_watchpoint, i386_insert_watchpoint,
i386_remove_watchpoint): Remove prototypes.
(register_u_addr): New prototype.
(REGISTER_U_ADDR): Define in terms of register_u_addr.
(i386_linux_dr_set_control, i386_linux_dr_set_addr,
i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
(I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
* config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
i386-nat.o.

23 years ago* gdb/linespec.c (find_methods): Whitespace differences aren't
jimb [Wed, 21 Mar 2001 20:51:14 +0000 (20:51 +0000)]
* gdb/linespec.c (find_methods): Whitespace differences aren't
significant in *un*mangled method names.  Use strcmp_iw to compare
them, not STREQ.  (Fix from Daniel Berlin.)

* gdb/testsuite/gdb.c++/userdef.exp: Check that GDB tolerates whitespace in
unmangled operator names.

23 years agomerge from gcc
dj [Wed, 21 Mar 2001 20:12:30 +0000 (20:12 +0000)]
merge from gcc

23 years ago* gdbarch.sh: Allow a non- multi-arch target to override a
cagney [Wed, 21 Mar 2001 19:47:43 +0000 (19:47 +0000)]
* gdbarch.sh: Allow a non- multi-arch target to override a
predicate.
* gdbarch.h: Regenerate.

23 years agoAvoid use of ``if ! program''.
cagney [Wed, 21 Mar 2001 19:25:03 +0000 (19:25 +0000)]
Avoid use of ``if ! program''.

23 years ago* typo fix
fche [Wed, 21 Mar 2001 19:13:47 +0000 (19:13 +0000)]
* typo fix

2001-03-21  Frank Ch. Eigler  <fche@redhat.com>

        * socketio.cxx (asyncificate): Correct fd typo.

23 years ago* target.h (enum target_signal): Move definition from here.
cagney [Wed, 21 Mar 2001 18:31:47 +0000 (18:31 +0000)]
* target.h (enum target_signal): Move definition from here.
* defs.h (enum target_signal): To here.

* config/arc/tm-arc.h (arc_software_single_step): Change type of
first parameter to enum target_signal.
* config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
* config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
* rs6000-tdep.c (rs6000_software_single_step): Update.

23 years ago2001-03-20 Michael Chastain <chastain@redhat.com>
chastain [Wed, 21 Mar 2001 17:53:42 +0000 (17:53 +0000)]
2001-03-20  Michael Chastain  <chastain@redhat.com>

* Makefile.in: all-m4 depends on all-texinfo.

23 years ago* frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
cagney [Wed, 21 Mar 2001 16:42:38 +0000 (16:42 +0000)]
* frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
already defined.

From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
* stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
or a reference ('a') can be in a pseudo register.
* infcmd.c (do_registers_info): Must take into account the pseudo
registers to print their value.
(registers_info): Likewise.
* stack.c (frame_info): Likewise.
* frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.

23 years agoadd new file.
cgf [Wed, 21 Mar 2001 16:06:22 +0000 (16:06 +0000)]
add new file.

23 years agoAdd missing files.
cgf [Wed, 21 Mar 2001 14:00:28 +0000 (14:00 +0000)]
Add missing files.

23 years ago * gdbint.texinfo (Algorithms): New section "Watchpoints" and new
eliz [Wed, 21 Mar 2001 11:39:23 +0000 (11:39 +0000)]
* gdbint.texinfo (Algorithms): New section "Watchpoints" and new
subsection "x86 Watchpoints".
(Target Architecture Definition): Document
I386_USE_GENERIC_WATCHPOINTS and TARGET_HAS_HARDWARE_WATCHPOINTS.
(Native Debugging): Document I386_USE_GENERIC_WATCHPOINTS.

23 years ago Unified support for hardware breakpoints and watchpoints on
eliz [Wed, 21 Mar 2001 11:36:56 +0000 (11:36 +0000)]
Unified support for hardware breakpoints and watchpoints on
x86 targets:

* config/i386/nm-i386.h: New file.

* config/i386/nm-i386.h: (i386_cleanup_dregs)
(i386_insert_watchpoint, i386_remove_watchpoint)
(i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
(i386_stopped_data_address, i386_insert_hw_breakpoint)
(i386_remove_hw_breakpoint): Declare prototypes.
[I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
Define if not already defined.
(TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
(STOPPED_BY_WATCHPOINT, target_stopped_data_address)
(target_insert_watchpoint, target_remove_watchpoint)
(target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
to call the appropriate i386_* functions.

* i386-nat.c: New file.

* i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
(I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
(I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
(dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
(maint_show_dr): New variables.
(i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
(i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
(i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
(i386_remove_watchpoint, i386_region_ok_for_watchpoint)
(i386_stopped_data_address, i386_stopped_by_hwbp)
(i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
functions.
(_initialize_i386_nat): New function.
[I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
`show-debug-regs', sets maint_show_dr to non-zero value and
activates debugging print-outs in functions which insert, remove,
and test watchpoints and hardware breakpoints.

* Makefile.in (i386-nat.o): New target.
(ALLDEPFILES): Add i386-nat.o.

23 years ago* i386-tdep.c: Add back _initialize_i386_tdep prototype with
kettenis [Wed, 21 Mar 2001 11:22:23 +0000 (11:22 +0000)]
* i386-tdep.c: Add back _initialize_i386_tdep prototype with
appropriate comment.

23 years agoPrevent NULL pointer dereference.
amodra [Wed, 21 Mar 2001 08:09:24 +0000 (08:09 +0000)]
Prevent NULL pointer dereference.

23 years ago* regenerate as required eg. component/ChangeLog:
bje [Wed, 21 Mar 2001 03:10:58 +0000 (03:10 +0000)]
* regenerate as required eg. component/ChangeLog:
2001-03-21  Ben Elliston  <bje@redhat.com>

* Makefile.in: Regenerate.
* configure: Regenerate.

23 years ago2001-03-21 Ben Elliston <bje@redhat.com>
bje [Wed, 21 Mar 2001 03:08:25 +0000 (03:08 +0000)]
2001-03-21  Ben Elliston  <bje@redhat.com>

* cgen-maint.m4: New file.

23 years ago* sched.cc: New file. Implement sched*.
cgf [Wed, 21 Mar 2001 02:17:57 +0000 (02:17 +0000)]
* sched.cc: New file.  Implement sched*.
* include/sched.h: New file.  User land includes for sched*.
* Makefile.in: Add sched.o
* cygwin.din: Add exports for sched*.

23 years agoUpdate Linux/Alpha port to use new Linux threads support.
kevinb [Tue, 20 Mar 2001 21:40:46 +0000 (21:40 +0000)]
Update Linux/Alpha port to use new Linux threads support.

23 years ago* Makefile.in: Clean up dependencies on ../include/demangle.h.
jimb [Tue, 20 Mar 2001 21:23:38 +0000 (21:23 +0000)]
* Makefile.in: Clean up dependencies on ../include/demangle.h.
(demangle_h): New variable.
(jv-typeprint.o, jv-valprint.o, linespec.o): Use it.

23 years ago Add support for cgen machine determination.
patrickm [Tue, 20 Mar 2001 20:56:34 +0000 (20:56 +0000)]
  Add support for cgen machine determination.

        * cgen-dis.in (print_insn_@arch@): Add support for target machine
        determination via CGEN_COMPUTE_MACH.
        * fr30-desc.c: Regenerate.
        * fr30-dis.c: Regenerate.
        * fr30-opc.h: Regenerate.
        * m32r-desc.c: Regenerate.
        * m32r-dis.c: Regenerate.
        * m32r-opc.h: Regenerate.
        * m32r-opinst.c: Regenerate.

23 years ago Correct machine calculation on disassembly.
patrickm [Tue, 20 Mar 2001 20:48:33 +0000 (20:48 +0000)]
  Correct machine calculation on disassembly.

  2001-03-20  Patrick Macdonald  <patrickm@redhat.com>

        * desc-cpu.scm (@arch@_cgen_cpu_open): Correct machine calculation for
        arg_type CGEN_CPU_OPEN_BFDMACH.

23 years ago* dtable.cc: Guard against new winsock.h/winsock2.h warnings when mixing
cgf [Tue, 20 Mar 2001 19:50:27 +0000 (19:50 +0000)]
* dtable.cc: Guard against new winsock.h/winsock2.h warnings when mixing
winsock*.h and sys/types.h.
* fhandler_socket.cc: Ditto.
* net.cc: Ditto.
* select.cc: Ditto.
* exceptions.cc: Remove unneeded define.

23 years ago2001-03-20 Ben Elliston <bje@redhat.com>
bje [Tue, 20 Mar 2001 19:30:13 +0000 (19:30 +0000)]
2001-03-20  Ben Elliston  <bje@redhat.com>

* opc-itab.scm (-gen-insn-enum): Do not append a dummy `max'
instruction onto the instruction list. Define MAX_INSNS to be the
value of the last instruction enum plus one.

23 years ago* libc/include/sys/types.h (BSD int typedefs): Guard with _BSDTYPES_DEFINED
cgf [Tue, 20 Mar 2001 19:27:56 +0000 (19:27 +0000)]
* libc/include/sys/types.h (BSD int typedefs): Guard with _BSDTYPES_DEFINED
rather than _WINSOCK_H.
(fd_set): Add !defined __USE_W32_SOCKETS to guard; define _SYS_TYPES_FD_SET.
* libc/include/sys/unistd.h (gethostname): Don't declare if defined
(_WINSOCK_H) || defined (__USE_W32_SOCKETS).

23 years ago* include/winsock.h (_SYS_TYPES_H macro guard for int types): Remove; use only
cgf [Tue, 20 Mar 2001 19:27:36 +0000 (19:27 +0000)]
* include/winsock.h (_SYS_TYPES_H macro guard for int types): Remove; use only
_BSDTYPES_DEFINED macro now defined in newlib sys/types.h.
(SYS_TYPES_H macro guard for fd_set): Replace with_SYS_TYPES_FD_SET macro now
defined in newlib sys/types.h.  Emit warning if defined.
* include/winsock2.h: Ditto.
* include/windows.h (Win32_Winsock): Replace with new macros __USE_W32_SOCKETS
and warn of deprecation.

23 years ago * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
drepper [Tue, 20 Mar 2001 18:39:20 +0000 (18:39 +0000)]
* emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
is an absolute path look only for this file and not along the path.

23 years ago2001-03-20 H.J. Lu <hjl@gnu.org>
hjl [Tue, 20 Mar 2001 18:24:27 +0000 (18:24 +0000)]
2001-03-20  H.J. Lu  <hjl@gnu.org>

* configure.in: Remove the redundent AC_ARG_PROGRAM.
* configure: Rebuild.

23 years ago* libiberty/cp-demangle.c (struct demangling_def): New fields:
jimb [Tue, 20 Mar 2001 18:22:37 +0000 (18:22 +0000)]
* libiberty/cp-demangle.c (struct demangling_def): New fields:
is_constructor and is_destructor.
(demangling_new): Initialize them.
(demangle_ctor_dtor_name): Set them, if we detect a constructor
or destructor.
(demangle_v3_with_details, is_gnu_v3_mangled_ctor,
is_gnu_v3_mangled_dtor): New functions.

* include/demangle.h (enum gnu_v3_constructor_kinds,
is_gnu_v3_mangled_ctor, enum gnu_v3_destructor_kinds,
is_gnu_v3_mangled_dtor): New declarations.

23 years agoChange SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P().
cagney [Tue, 20 Mar 2001 18:16:08 +0000 (18:16 +0000)]
Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P().

23 years agoReplace abort() with internal_error().
cagney [Tue, 20 Mar 2001 17:48:15 +0000 (17:48 +0000)]
Replace abort() with internal_error().

23 years agoDo not enable alignment checking when loading unaligned thumb instructions.
nickc [Tue, 20 Mar 2001 17:48:02 +0000 (17:48 +0000)]
Do not enable alignment checking when loading unaligned thumb instructions.

23 years agoZap -Wuninitialized warnings.
cagney [Tue, 20 Mar 2001 17:19:04 +0000 (17:19 +0000)]
Zap -Wuninitialized warnings.

23 years ago* mmap support for common simulators
fche [Tue, 20 Mar 2001 17:13:39 +0000 (17:13 +0000)]
* mmap support for common simulators

2001-03-16  Frank Ch. Eigler  <fche@redhat.com>

Add support for mmap-based memory regions.
* sim-memopt.c (mmap_next_fd): New global.
(sim_memory_init): Reinitialize it.
(OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
"--memory-mapfile FILE" option.  Check for some errors.
(do_memopt_add): Conditionally do mmap instead of malloc for
backing store of simulated memory.  Check for more errors.
(do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
* sim-memopt.h (munmap_length): New member of _sim_memopt.
* configure.in: Look for mmap/fstat related functions and headers.
* config.in, configure: Regenerated.

23 years agomerge from gcc
dj [Tue, 20 Mar 2001 17:09:17 +0000 (17:09 +0000)]
merge from gcc

23 years ago* linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
jimb [Tue, 20 Mar 2001 16:17:22 +0000 (16:17 +0000)]
* linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
than asking for sym_class's type; that's circuitous.  Remove
sym_class, since the last use of it is gone.

23 years ago* gdb.threads/linux-dp.exp: Recognize an additional message
jimb [Tue, 20 Mar 2001 15:54:33 +0000 (15:54 +0000)]
* gdb.threads/linux-dp.exp: Recognize an additional message
generated by GDB when it doesn't understand how to debug threads
on the target system.

23 years ago * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
schwab [Tue, 20 Mar 2001 10:11:07 +0000 (10:11 +0000)]
* elf32-m68k.c (elf_m68k_relocate_section): Don't need the
relocation value when resolving a reference from a debugging
section.

23 years ago * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
eliz [Tue, 20 Mar 2001 09:46:00 +0000 (09:46 +0000)]
* breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
Correct the order of calls to ui_out_field_string and
ui_out_list_begin when bs->old_val is NULL.

23 years agoUse `relax_marker' instead of fragile address test code to determine
amodra [Tue, 20 Mar 2001 03:12:01 +0000 (03:12 +0000)]
Use `relax_marker' instead of fragile address test code to determine
whether a frag's fr_address has been updated.

23 years agoConditionally include nlist.h in solib-legacy.c for older *BSD systems.
kevinb [Tue, 20 Mar 2001 02:57:42 +0000 (02:57 +0000)]
Conditionally include nlist.h in solib-legacy.c for older *BSD systems.

23 years agoFix ``make'' problems when building cross debugger.
kevinb [Tue, 20 Mar 2001 02:37:55 +0000 (02:37 +0000)]
Fix ``make'' problems when building cross debugger.

23 years agoFix 2 bugs with parsing the resource dependency tables.
wilson [Tue, 20 Mar 2001 02:32:27 +0000 (02:32 +0000)]
Fix 2 bugs with parsing the resource dependency tables.
* ia64-gen.c (fetch_insn_class): If xsect, then ignore comment and
notestr if larger than xsect.
(in_class): Handle format M5.
* ia64-asmtab.c: Regnerate.

23 years agomalloc() -> xmalloc.
cagney [Tue, 20 Mar 2001 01:37:09 +0000 (01:37 +0000)]
malloc() -> xmalloc.
Move malloc() decl to utils.c

23 years ago* configure: fix regeneration bug.
dj [Tue, 20 Mar 2001 01:26:45 +0000 (01:26 +0000)]
* configure: fix regeneration bug.

23 years agoMove realoc() decl to utils.c. s/realloc()/xrealloc()/.
cagney [Tue, 20 Mar 2001 00:54:42 +0000 (00:54 +0000)]
Move realoc() decl to utils.c.  s/realloc()/xrealloc()/.

23 years agoMove free() decl to utils.c.
cagney [Tue, 20 Mar 2001 00:28:22 +0000 (00:28 +0000)]
Move free() decl to utils.c.

23 years agoAdd proc-service.o to NATDEPFILES.
kevinb [Tue, 20 Mar 2001 00:05:04 +0000 (00:05 +0000)]
Add proc-service.o to NATDEPFILES.

23 years agoZap __STDC__ references.
cagney [Mon, 19 Mar 2001 23:31:41 +0000 (23:31 +0000)]
Zap __STDC__ references.

23 years ago* TODO: List known problems with TUI.
cagney [Mon, 19 Mar 2001 23:19:23 +0000 (23:19 +0000)]
* TODO: List known problems with TUI.

23 years ago* exceptions.cc (interruptible): Update debugging output.
cgf [Mon, 19 Mar 2001 22:48:26 +0000 (22:48 +0000)]
* exceptions.cc (interruptible): Update debugging output.
(setup_handler): Ensure that wait_sig loop wakes up when we punt on sending a
signal.
* poll.cc (poll): Add signal guard here.

23 years agoJimmy Guo stepping down.
cagney [Mon, 19 Mar 2001 21:16:01 +0000 (21:16 +0000)]
Jimmy Guo stepping down.

23 years ago* remote.c (remote_cisco_section_offsets): Do not cast result from
cagney [Mon, 19 Mar 2001 21:01:05 +0000 (21:01 +0000)]
* remote.c (remote_cisco_section_offsets): Do not cast result from
bfd_get_section_name.
(compare_sections_command): Ditto.
(remote_cisco_section_offsets): Make ``p'' a const pointer.
(compare_sections_command): Ditto for ``sectname''.

23 years ago* valops.c (hand_function_call): Simplify computation of the
cagney [Mon, 19 Mar 2001 20:08:16 +0000 (20:08 +0000)]
* valops.c (hand_function_call): Simplify computation of the
address of the pushed argument.

23 years ago* p-exp.y (parse_number): Avoid shift overflow when ``long''.
cagney [Mon, 19 Mar 2001 19:05:21 +0000 (19:05 +0000)]
* p-exp.y (parse_number): Avoid shift overflow when ``long''.
Code copied from c-exp.y.

23 years ago* tty.h (tty::create_inuse): Add new parameter to allow non-
duda [Mon, 19 Mar 2001 18:27:36 +0000 (18:27 +0000)]
* tty.h (tty::create_inuse): Add new parameter to allow non-
inheritable 'inuse' events.
* tty.cc (tty::create_inuse): Use new parameter.
* fhandler_tty.cc (fhandler_tty_master::init): Ditto.
* fhandler_tty.cc (fhandler_pty_master::open): Ditto.
* fhandler_tty.cc (fhandler_tty_master::init): Create master_alive
event.
* tty.cc (tty_list::terminate): Close master_alive event.
* fhandler_tty.cc (fhandler_tty_common::close): Send EOF to slaves
when master side is closed.

23 years agoDocument a native system printing output outside of the MI as a known
cagney [Mon, 19 Mar 2001 18:20:04 +0000 (18:20 +0000)]
Document a native system printing output outside of the MI as a known
bug.

23 years ago * mmap.cc (map::get_list_by_fd): Avoid calling `get_namehash' when
corinna [Mon, 19 Mar 2001 13:33:51 +0000 (13:33 +0000)]
    * mmap.cc (map::get_list_by_fd): Avoid calling `get_namehash' when
        file descriptor is -1.

23 years agoDon't try to read past end of info buffer, and correct test results.
amodra [Mon, 19 Mar 2001 12:20:10 +0000 (12:20 +0000)]
Don't try to read past end of info buffer, and correct test results.

23 years agoFix register name printed in warning message.
amodra [Mon, 19 Mar 2001 11:28:19 +0000 (11:28 +0000)]
Fix register name printed in warning message.

23 years ago * syscalls.cc (check_posix_perm): New static function.
corinna [Mon, 19 Mar 2001 11:02:40 +0000 (11:02 +0000)]
    * syscalls.cc (check_posix_perm): New static function.
        (fpathconf): Add _PC_POSIX_PERMISSIONS and _PC_POSIX_SECURITY
        support.
        (pathconf): Ditto.
        * include/cygwin/version.h: Bump API minor number to 37.

23 years ago * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
corinna [Mon, 19 Mar 2001 10:54:55 +0000 (10:54 +0000)]
    * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
        _PC_POSIX_SECURITY constants for Cygwin.

23 years ago * gas/m68k/pcrel.s: Force alignment to 8 byte boundary to get
schwab [Mon, 19 Mar 2001 10:02:06 +0000 (10:02 +0000)]
* gas/m68k/pcrel.s: Force alignment to 8 byte boundary to get
consistent output across targets.
* gas/m68k/pcrel.d: Adjusted.

23 years agoFix solib support so that non-svr4-solib-host x svr4-solib-target will work.
kevinb [Mon, 19 Mar 2001 07:01:03 +0000 (07:01 +0000)]
Fix solib support so that non-svr4-solib-host x svr4-solib-target will work.

23 years agoFix solib support so that non-svr4-solib-host x svr4-solib-target will work.
kevinb [Mon, 19 Mar 2001 05:46:26 +0000 (05:46 +0000)]
Fix solib support so that non-svr4-solib-host x svr4-solib-target will work.

23 years agoFix NetBSD 1.4 build problem.
kevinb [Mon, 19 Mar 2001 05:15:31 +0000 (05:15 +0000)]
Fix NetBSD 1.4 build problem.