+2001-07-10 Jim Blandy <jimb@redhat.com>
+
+ Clean up the D10V port so that GDB and the target program no
+ longer disagree on how big pointers are.
+ * findvar.c (value_from_register): Remove special case code for D10V.
+ * printcmd.c (print_frame_args): Same.
+ * valops.c (value_at, value_fetch_lazy): Same.
+ * values.c (unpack_long): Same.
+ * gdbarch.sh: Changes to effect the following:
+ * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
+ gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
+ set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
+ gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
+ set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
+ gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
+ set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
+ gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
+ set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
+ gdbarch_d10v_convert_daddr_to_raw_ftype,
+ gdbarch_d10v_convert_daddr_to_raw,
+ set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
+ gdbarch_d10v_convert_iaddr_to_raw_ftype,
+ gdbarch_d10v_convert_iaddr_to_raw,
+ set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
+ * gdbarch.c: Delete the corresponding definitions.
+ (struct gdbarch): Delete members d10v_make_daddr,
+ d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
+ d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
+ (startup_gdbarch): Remove initializers for the above.
+ (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
+ more.
+ * d10v-tdep.c (d10v_register_virtual_type): Rather that
+ claiming the stack pointer and PC are 32 bits long (which they
+ aren't), say that the stack pointer is an int16_t, and the
+ program counter is a function pointer. This allows the rest
+ of GDB to make the appropriate conversions between the code
+ pointer format and real addresses.
+ (d10v_register_convertible, d10v_register_convert_to_virtual,
+ d10v_register_convert_to_raw): Delete function; no registers
+ are convertible now, so we use
+ generic_register_convertible_not instead.
+ (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
+ methods.
+ (d10v_push_arguments, d10v_extract_return_value): Remove special
+ cases for code and data pointers.
+ (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
+ the target agree on how large pointers are. Say that addresses
+ are 32 bits long. Register the address_to_pointer and
+ pointer_to_address conversion functions. Since no registers are
+ convertible now, register generic_register_convertible_not as the
+ gdbarch_register_convertible method instead of
+ d10v_register_convertible. Remove registrations for
+ d10v_register_convert_to_virtual,
+ d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
+ gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
+ gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
+ gdbarch_d10v_convert_iaddr_to_raw.
+
+ * printcmd.c (print_scalar_formatted): If we are printing an
+ address, remember that TARGET_ADDR_BIT is not always equal to
+ TARGET_PTR_BIT.
+
+ * valops.c (value_cast): When casting a pointer to an integer,
+ don't convert it to an address.
+
+2001-07-10 Andrew Cagney <ac131313@redhat.com>
+
+ * remote-utils.h (struct serial): Declare as opaque. Remove
+ include of "serial.h".
+ * Makefile.in (remote_utils_h): Update.
+
+ * monitor.h (struct serial): Declare as opaque. Remove include of
+ "serial.h".
+ (struct monitor_ops): Replace serial_t with `struct serial *'.
+ * monitor.c (monitor_desc): Ditto.
+
+2001-07-10 Daniel Jacobowitz <drow@mvista.com>
+
+ * mips-linux-tdep.c: New file.
+ * mips-linux-nat.c: New file.
+ * config/mips/linux.mh: New file.
+ * config/mips/linux.mt: New file.
+ * config/mips/xm-linux.h: New file.
+ * config/mips/nm-linux.h: New file.
+ * config/mips/tm-linux.h: New file.
+ * configure.host: Recognize mips*-*-linux*.
+ * configure.tgt: Likewise.
+ * NEWS: Mention mips*-*-linux* port.
+
+2001-07-09 Andrew Cagney <ac131313@redhat.com>
+
+ * serial.h (struct serial): Rename `struct _serial_t'.
+ * serial.c (XMALLOC): Define.
+ (serial_open): Update. Use XMALLOC.
+ (serial_fdopen): Ditto.
+
+2001-07-07 Andrew Cagney <ac131313@redhat.com>
+
+ * gdbtypes.h (builtin_type_void_data_ptr): Rename
+ builtin_type_ptr.
+ * gdbtypes.c (builtin_type_void_data_ptr): Update.
+ (build_gdbtypes): Update.
+ (_initialize_gdbtypes): Update.
+ * values.c (value_as_pointer): Update.
+ * utils.c (host_pointer_to_address): Update.
+ (address_to_host_pointer): Update.
+
+2001-07-08 Andrew Cagney <ac131313@redhat.com>
+
+ * remote-udi.c (udi_wait): Make type, instead of name, of first
+ parameter a ptid_t.
+
+2001-07-07 Andrew Cagney <ac131313@redhat.com>
+
+ * ser-mac.c: Make obsolete.
+ * Makefile.in (ser-mac.o): Ditto.
+
+2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
+ (read_memory_region, get_descriptor, display_descriptor)
+ (go32_sldt, go32_sgdt, go32_sidt): New functions.
+ (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
+ away `disable' from dos.h, since breakpoint.h defines an enum
+ member of the same name, and GCC 2.7.2 barfs.
+ (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
+ dos-gdt, and dos-idt, all of them in the "info" class
+
+2001-07-07 Kevin Buettner <kevinb@redhat.com>
+
+ * procfs.c (create_procinfo): Allocate space for saved_entryset
+ and saved_exitset.
+ (destroy_one_procinfo): Free space allocated to saved_entryset
+ and saved_exitset.
+
+2001-07-07 Andrew Cagney <ac131313@redhat.com>
+
+ * TODO (5.1): Update.
+
+2001-07-07 Andrew Cagney <ac131313@redhat.com>
+
+ * symtab.c (main_name): New function.
+ (set_main_name): New function.
+ * symtab.h: Declare.
+ * TODO: Update
+
+ From 2000-03-05 Anthony Green <green@redhat.com>:
+ * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
+ setting main_name.
+ * blockframe.c (inside_main_func): Use main_name instead of
+ "main".
+ * symtab.c (find_main_psymtab): Ditto.
+ * source.c (select_source_symtab): Ditto.
+ * nlmread.c (nlm_symfile_read): Ditto.
+ * rs6000-tdep.c (skip_prologue): Ditto.
+
+2001-07-07 Andrew Cagney <ac131313@redhat.com>
+
+ * TODO: Convert most items into PRs.
+
+2001-07-07 Mark Kettenis <kettenis@gnu.org>
+
+ * lin-lwp.c (status_to_str): New function.
+ (lin_lwp_wait): Use it to print debug messages where appropriate.
+
+2001-07-06 Michael Chastain <chastain@redhat.com>
+
+ * i387-tdep.c (print_i387_value): Fix pointer glitch.
+
+2001-07-07 Mark Kettenis <kettenis@gnu.org>
+
+ * lin-lwp.c (count_events_callback): Fix formatting. Turn check
+ commented with "paranoia" into gdb_assert.
+ (select_event_lwp_callback): Likewise.
+ (cancel_breakpoints_callback): Bail out early if LP is the event
+ LWP. Add comment about backup up breakpoints. Fix formatting and
+ debug message.
+ (select_event_lwp): Make solely repsonsible for switching event
+ LWP. Fix formatting and remove bogus "ERROR" debug message.
+ Don't backup breakpoints from here.
+ (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
+ handle that. Only call select_event_lwp if we're not waiting for
+ a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
+
+2001-07-06 Michael Snyder <msnyder@redhat.com>
+
+ * procfs.c (procfs_resume): Silence noisy warning.
+
+2001-06-12 Michael Snyder <msnyder@redhat.com>
+
+ * lin-lwp.c: Prevent thread starvation by using a monte carlo
+ method to choose which of several event threads to handle next.
+
+ (stop_wait_callback): Defer pushback of breakpoint events until
+ later; add SIGTRAP events to the queue of unhandled events.
+ Keep calling waitpid until SIGSTOP retrieved. If more than one
+ non-SIGSTOP event is retrieved, push them back onto the process
+ queue using kill.
+ (count_events_callback, select_singlestep_lwp_callback,
+ select_event_lwp_callback, cancel_breakpoints_callback,
+ select_event_lwp): New functions. Implement monte carlo method
+ for selecting which of several SIGTRAP threads to handle next.
+ Push back the breakpoint event for all threads other than the
+ selected one.
+ (lin_lwp_wait): Call select_event_lwp to decide which of several
+ sigtrapped lwps to handle next.
+ (resume_callback): Disable code that attempts to handle
+ step_resume breakpoints. Let core gdb handle this.
+
+2001-07-06 Jim Blandy <jimb@redhat.com>
+
+ * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
+ * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
+ (build_gdbtypes): Initialize it.
+ (_initialize_gdbtypes): Swap it.
+
+2001-07-04 Daniel Jacobowitz <drow@mvista.com>
+
+ * mips-tdep.c (mips32_op): Correct offset.
+ (itype_op): Likewise.
+ (itype_rs): Fix formatting.
+ (itype_immediate): Fix formatting.
+ (jtype_op): Correct offset.
+ (jtype_target): Fix formatting.
+ (rtype_op): Correct offset.
+ (rtype_rs): Fix formatting.
+ (rtype_rt): Likewise.
+ (rtype_rd): Likewise.
+ (rtype_shamt): Likewise.
+ (rtype_funct): Likewise.
+
+ (mips32_next_pc): Fix formatting and comments. Recognize
+ coprocessor 1 branches. Check the correct field for BLT family
+ branches. Use itype_rt instead of itype_rs for the second register
+ of a BNE or BNEL branch. Move (unreachable) default case.
+
+2001-07-04 Andrew Cagney <ac131313@redhat.com>
+
+ * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
+ (ui_out_is_mi_like_p): Declare.
+ * ui-out.c (ui_out_is_mi_like_p): Define.
+ (default_ui_out_impl): Initialize is_mi_like_p to zero.
+ * cli-out.c (cli_ui_out_impl): Ditto.
+ * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
+ (watchpoint_check, print_one_breakpoint, mention): Ditto.
+ * infrun.c (print_stop_reason, normal_stop): Ditto.
+
+2001-07-05 Daniel Jacobowitz <drow@mvista.com>
+
+ * mips-tdep.c (mips_software_single_step): New function.
+ * config/mips/tm-mips.h: Add prototype for
+ mips_software_single_step.
+
+2001-07-05 Daniel Jacobowitz <drow@mvista.com>
+
+ * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
+ of greg_t.
+ (fill_gregset): Likewise.
+
+2001-07-05 Andrew Cagney <ac131313@redhat.com>
+
+ * objfiles.c (open_mapped_file): Use lbasename instead of
+ basename.
+
2001-07-05 Jim Blandy <jimb@redhat.com>
* d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,