OSDN Git Service
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.
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.
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.
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).
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.
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.
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.
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.
cagney [Tue, 20 Mar 2001 18:16:08 +0000 (18:16 +0000)]
Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P().
cagney [Tue, 20 Mar 2001 17:48:15 +0000 (17:48 +0000)]
Replace abort() with internal_error().
nickc [Tue, 20 Mar 2001 17:48:02 +0000 (17:48 +0000)]
Do not enable alignment checking when loading unaligned thumb instructions.
cagney [Tue, 20 Mar 2001 17:19:04 +0000 (17:19 +0000)]
Zap -Wuninitialized warnings.
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.
dj [Tue, 20 Mar 2001 17:09:17 +0000 (17:09 +0000)]
merge from gcc
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.
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.
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.
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.
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.
kevinb [Tue, 20 Mar 2001 02:57:42 +0000 (02:57 +0000)]
Conditionally include nlist.h in solib-legacy.c for older *BSD systems.
kevinb [Tue, 20 Mar 2001 02:37:55 +0000 (02:37 +0000)]
Fix ``make'' problems when building cross debugger.
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.
cagney [Tue, 20 Mar 2001 01:37:09 +0000 (01:37 +0000)]
malloc() -> xmalloc.
Move malloc() decl to utils.c
dj [Tue, 20 Mar 2001 01:26:45 +0000 (01:26 +0000)]
* configure: fix regeneration bug.
cagney [Tue, 20 Mar 2001 00:54:42 +0000 (00:54 +0000)]
Move realoc() decl to utils.c. s/realloc()/xrealloc()/.
cagney [Tue, 20 Mar 2001 00:28:22 +0000 (00:28 +0000)]
Move free() decl to utils.c.
kevinb [Tue, 20 Mar 2001 00:05:04 +0000 (00:05 +0000)]
Add proc-service.o to NATDEPFILES.
cagney [Mon, 19 Mar 2001 23:31:41 +0000 (23:31 +0000)]
Zap __STDC__ references.
cagney [Mon, 19 Mar 2001 23:19:23 +0000 (23:19 +0000)]
* TODO: List known problems with TUI.
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.
cagney [Mon, 19 Mar 2001 21:16:01 +0000 (21:16 +0000)]
Jimmy Guo stepping down.
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''.
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.
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.
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.
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.
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.
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.
amodra [Mon, 19 Mar 2001 11:28:19 +0000 (11:28 +0000)]
Fix register name printed in warning message.
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.
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.
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.
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.
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.
kevinb [Mon, 19 Mar 2001 05:15:31 +0000 (05:15 +0000)]
Fix NetBSD 1.4 build problem.
bje [Mon, 19 Mar 2001 03:36:24 +0000 (03:36 +0000)]
* Add some more concept index entries.
chastain [Sun, 18 Mar 2001 21:35:58 +0000 (21:35 +0000)]
2001-03-17 Michael Chastain <chastain@redhat.com>
* win32-nat.c (child_attach): check args for NULL before passing
to strtoul. This fixes PR gdb/43.
hjl [Sun, 18 Mar 2001 21:28:55 +0000 (21:28 +0000)]
2001-03-18 H.J. Lu <hjl@gnu.org>
* gas/i386/intel.s: Move PIC code to ...
* gas/i386/intelpic.s: New. Here.
* gas/i386/intel.d: Updated.
* gas/i386/intelpic.d: New.
* gas/i386/i386.exp: Check PIC code in Intel syntax for ELF
targets only.
cgf [Sun, 18 Mar 2001 21:11:25 +0000 (21:11 +0000)]
Fix spacing, copyrights.
cgf [Sun, 18 Mar 2001 20:58:18 +0000 (20:58 +0000)]
fix spacing.
duda [Sun, 18 Mar 2001 18:05:01 +0000 (18:05 +0000)]
* fhandler.h (fhandler_tty_slave): Declare new methods.
* select.cc (fhandler_tty_slave::select_read): New method.
* select.cc (fhandler_tty_slave::ready_for_read): Ditto.
* select.cc (verify_tty_slave): New function.
* fhandler_termios.cc (fhandler_termios::line_edit): Empty input
buffer on signal.
* fhandler_tty.cc (fhandler_tty_slave::read): Check for input data
after reading from pipe. Reset event if input pipe is empty.
* tty.h (class tty): Allow creating events with manual reset.
* tty.cc (tty::get_event): Use manual_reset flag.
* tty.cc (tty::common_init): Create input_available_event with
manual reset.
ciceron [Sun, 18 Mar 2001 10:18:24 +0000 (10:18 +0000)]
* gas/mri/mri.exp: Fix test of m6811/m6812 targets.
ciceron [Sun, 18 Mar 2001 10:14:12 +0000 (10:14 +0000)]
* config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
with 'Motorola specification for assembly language input standard'.
cgf [Sun, 18 Mar 2001 03:34:05 +0000 (03:34 +0000)]
Update copyrights.
cgf [Sun, 18 Mar 2001 03:25:30 +0000 (03:25 +0000)]
Update copyright.
cgf [Sun, 18 Mar 2001 03:25:00 +0000 (03:25 +0000)]
Update copyright.
hjl [Sun, 18 Mar 2001 02:56:20 +0000 (02:56 +0000)]
Fix a typo.
cgf [Sun, 18 Mar 2001 02:49:29 +0000 (02:49 +0000)]
* external.cc (fillout_pinfo): Match windows pid, as well as cygwin pid when
passed in pid. Don't prematurely break when searching for a pid.
* thread.h (_winsup_t): Eliminate unneeded field.
cgf [Sun, 18 Mar 2001 02:47:39 +0000 (02:47 +0000)]
* kill.cc (forcekill): Use dwProcessId when opening a process, not the Cygwin
pid.
kettenis [Sat, 17 Mar 2001 23:02:10 +0000 (23:02 +0000)]
* i387-nat.h: Doc Fix.
kettenis [Sat, 17 Mar 2001 22:28:33 +0000 (22:28 +0000)]
* i386-tdep.c: Fix formatting.
(i386_get_frame_setup, i386_follow_jump, codestream_read,
codestream_seek, codestream_fill, skip_trampoline_code,
gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
prototypoes.
kettenis [Sat, 17 Mar 2001 22:24:00 +0000 (22:24 +0000)]
* config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
no longer used. Also remove associated FIXME.
drepper [Sat, 17 Mar 2001 21:24:26 +0000 (21:24 +0000)]
* emultempl/elf32.em (OPTION_GROUP): New macro.
Add new option Bgroup to longopts.
(gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
(gld*_list_options): Add -Bgroup and -z defs.
* ld.1: Document -Bgroup and -z defs.
* ld.texinfo: Likewise.
corinna [Sat, 17 Mar 2001 19:53:51 +0000 (19:53 +0000)]
* net.cc (get_95_ifconf): Use strcasematch instead of strcasecmp.
* syscalls.cc (_unlink): Ditto.
(_rename): Ditto.
davidsb [Sat, 17 Mar 2001 18:50:22 +0000 (18:50 +0000)]
British -> US spelling.
Add .inputrc tip to entry "How can I copy and paste into Cygwin console windows?"
rth [Sat, 17 Mar 2001 18:23:40 +0000 (18:23 +0000)]
* dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
(dwarf2_directive_loc): Don't use them.
(dwarf2_directive_file): Reject duplicate file definitions.
(get_filenum): Zero allocated memory.
(out_file_list): Complain about missing file definitions.
cgf [Sat, 17 Mar 2001 17:44:53 +0000 (17:44 +0000)]
* path.cc (suffix_scan::next): Avoid searching for foo.lnk twice when input is
"foo".
corinna [Sat, 17 Mar 2001 17:13:52 +0000 (17:13 +0000)]
* net.cc (cygwin_socket): Set protocol to 0 when address family is
AF_UNIX to avoid WSAEPROTONOSUPPORT error.
corinna [Sat, 17 Mar 2001 17:04:44 +0000 (17:04 +0000)]
* net.cc (cygwin_socket): Pass protocol parameter to socket call.
davidsb [Sat, 17 Mar 2001 16:18:01 +0000 (16:18 +0000)]
Remove "not yet updated" caveat from entry:
"How is the DOS/Unix CR/LF thing handled?"
cgf [Sat, 17 Mar 2001 07:09:41 +0000 (07:09 +0000)]
* dir.cc (readdir): Use strcasematch for consistency.
* path.cc (symlink_info): Eliminate known_suffix.
(path_conv::check): Always copy ext_here to end of buffer, if found.
(suffix_scan): Eliminate ext_here, add suffixes_start.
(suffix_scan::has): Eliminate an argument. Reorganize. Always return pointer
to end of input path.
(suffix_scan::next): Take a second pass through the suffix list looking for
.lnk.
(symlink_info::check): Eliminate known_suffix usage.
cgf [Sat, 17 Mar 2001 05:14:16 +0000 (05:14 +0000)]
Fix typo.
cgf [Sat, 17 Mar 2001 05:11:20 +0000 (05:11 +0000)]
Accomodate all devices.
cgf [Sat, 17 Mar 2001 05:06:14 +0000 (05:06 +0000)]
* syscalls.cc (stat_dev): Give devices full read/write.
cgf [Sat, 17 Mar 2001 04:49:13 +0000 (04:49 +0000)]
* thread.cc (MTinterface::CreateCond): Check for null attr pointer.
amodra [Sat, 17 Mar 2001 03:02:05 +0000 (03:02 +0000)]
Teach .org to handle complex expressions
cgf [Sat, 17 Mar 2001 02:15:32 +0000 (02:15 +0000)]
* fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input when a
signal is sent or we'll end up in an EOF/signal race.
cgf [Sat, 17 Mar 2001 01:45:40 +0000 (01:45 +0000)]
fix spelling error.
cgf [Sat, 17 Mar 2001 01:29:14 +0000 (01:29 +0000)]
* path.cc: Translate scan states from defines to enums.
(suffix_scan): Rename state to nextstate for clarity.
(lnk_match): Change to allow multiple states to indicate that a .lnk has been
matched.
(suffix_scan::has): Eliminate a goto. Handle .lnk as a special case, since a
.lnk may also need to be tacked on the end of a .lnk.
(suffix_scan::next): Don't increment next state. Set it specifically.
Recognize new .lnk states.
cgf [Sat, 17 Mar 2001 01:14:56 +0000 (01:14 +0000)]
* cygwin.din: Export the new functions.
* pthread.cc (pthread_cond_*): Add wrapper functions that call __pthread_cond*
functions.
* thread.cc (__pthread_cond_*): Implement the pthread_cond* functions.
* thread.h: Add new class entries and prototypes for __pthread_cond* functions.
* include/pthread.h: user land header prototypes for pthread_cond* functions
and related defines.
cagney [Sat, 17 Mar 2001 00:31:21 +0000 (00:31 +0000)]
Add support for m/M methods - pure multi-arch. These do not have
macros and take a gdbarch parameter.
jtc [Fri, 16 Mar 2001 22:34:45 +0000 (22:34 +0000)]
* config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
h8300_frame_args_address from frame_args_address.
(FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
from frame_locals_address.
(PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
from print_register_hook.
(h8300_frame_args_address): Declare.
(h8300_frame_find_saved_regs): Declare.
(h8300_frame_locals_address): Declare.
(h8300_frame_saved_pc): Declare.
(h8300_pop_frame): Declare.
(h8300_print_register_hook): Declare.
* h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
(h8300_frame_args_address): Renamed from frame_args_address.
(h8300_frame_locals_address): Renamed from frame_locals_address.
(h8300_pop_frame): Renamed from pop_frame.
(h8300_print_register_hook): Renamed from print_register_hook.
-------------------------------------------------------------------
fche [Fri, 16 Mar 2001 22:02:38 +0000 (22:02 +0000)]
* hardening
2001-03-16 Frank Ch. Eigler <fche@redhat.com>
* generic.cxx (imagemmap_handler): Enforce minimum mmap file size.
chastain [Fri, 16 Mar 2001 20:04:02 +0000 (20:04 +0000)]
2001-03-12 Michael Chastain <chastain@redhat.com>
* gdb.c++/derivation.exp: Use the 'runto' library function.
chastain [Fri, 16 Mar 2001 20:00:01 +0000 (20:00 +0000)]
2001-03-12 Michael Chastain <chastain@redhat.com>
* gdb.c++/annota2.exp: Fix regular expression for "post-query".
nickc [Fri, 16 Mar 2001 18:49:32 +0000 (18:49 +0000)]
Fix syntax errors.
nickc [Fri, 16 Mar 2001 18:42:26 +0000 (18:42 +0000)]
Add new opcodes
kevinb [Fri, 16 Mar 2001 18:06:43 +0000 (18:06 +0000)]
Change type of ``storage_needed'' from unsigned int to long.
chastain [Fri, 16 Mar 2001 17:59:58 +0000 (17:59 +0000)]
2001-02-24 Michael Chastain <chastain@redhat.com>
* gdb.c++/ref-types.exp: Change handwritten code to library
function 'runto'.
nickc [Fri, 16 Mar 2001 17:34:31 +0000 (17:34 +0000)]
Fix warning message
orjanf [Fri, 16 Mar 2001 09:05:16 +0000 (09:05 +0000)]
2001-03-16 Orjan Friberg <orjanf@axis.com>
* gdb.base/signals.exp: Set count to 0 explicitly.
orjanf [Fri, 16 Mar 2001 08:57:44 +0000 (08:57 +0000)]
2001-03-16 Orjan Friberg <orjanf@axis.com>
* gdb.base/signals.exp: Set count to 0 explicitly.
wilson [Fri, 16 Mar 2001 04:56:31 +0000 (04:56 +0000)]
Add local tag support. Don't flush instructions for .xdata directives.
* config/tc-ia64.c (md): New member keep_pending_output.
(ia64_flush_pending_output): Flush only if md.keep_pending_output
is not set.
(dot_xdata): Turn on md.keep_pending_output for the duration of
this function.
(dot_xfloat_cons): Ditto.
(dot_xstringer): Ditto.
(dot_xdata_ua): Ditto.
(dot_xfloat_cons_ua): Ditto.
* config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
label support.
kevinb [Fri, 16 Mar 2001 03:52:10 +0000 (03:52 +0000)]
Misc. cleanups.
fche [Fri, 16 Mar 2001 03:20:26 +0000 (03:20 +0000)]
* tweak
2001-03-15 Frank Ch. Eigler <fche@redhat.com>
* sim-core.c (sim_core_map_attach): Correct overlap-related
error messages.
hp [Fri, 16 Mar 2001 03:00:24 +0000 (03:00 +0000)]
Fix accidental loss of bit 7 in peoples names
aoliva [Fri, 16 Mar 2001 02:11:05 +0000 (02:11 +0000)]
* config/tc-sh.c (parse_reg): Match capital MACH and MACL.
dj [Thu, 15 Mar 2001 22:02:06 +0000 (22:02 +0000)]
merge from gcc
msalter [Thu, 15 Mar 2001 21:47:38 +0000 (21:47 +0000)]
*** empty log message ***
msalter [Thu, 15 Mar 2001 21:46:57 +0000 (21:46 +0000)]
(gdb_load): Add support for additional target_info: gdb_download_size
and gdb_load_timeout.