* remote.c (remote_write_bytes): Set nr_bytes before returning it.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index bf35ec01ca70b3434683786b5301c74473e25097..f1f8a44e583b03d67c8ab1615af92531d4fcd893 100644 (file)
@@ -1,3 +1,468 @@
+2001-05-14  Andrew Cagney  <ac131313@redhat.com>
+
+       * remote.c (remote_write_bytes): Set nr_bytes before returning it.
+       * solib.h (no_shared_libraries): Declare.
+
+2001-05-12  Andrew Cagney  <ac131313@redhat.com>
+
+       * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
+       (gdbarch_update_p): Rewrite logic filling in INFO struct.  Use
+       user specified values when available.
+       * rs6000-tdep.c (rs6000_gdbarch_init): Update.  Get the
+       architecture from info.bfd_arch_info.
+       * gdbarch.c, gdbarch.h: Regenerate.
+
+2001-05-12  Fernando Nasser  <fnasser@redhat.com>
+
+       * remote-e7000.c (e7000_open): Check for bad baud rate.
+       * remote-st.c (st2000_open): Ditto.
+
+2001-05-11  Jim Blandy  <jimb@redhat.com>
+
+       * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
+       and ui_out_tuple_end instead of ui_out_list_begin and
+       ui_out_list_end.
+
+       * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
+       dependencies.  Reorder dependencies to match #includes in file,
+       for easier verification.
+       
+Fri May 11 13:32:50 2001  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
+       make_cleanup_ui_out_list_end with ui_out_tuple_begin,
+       ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
+       * cli/cli-setshow.c: Ditto.
+       * printcmd.c: Ditto.
+       * stack.c: Ditto.
+
+       * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
+       * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
+       (ui_out_tuple_begin): New function.
+       (ui_out_tuple_end): New function.
+       (ui_out_tuple_begin_end): New function.
+       (make_cleanup_ui_out_list_begin_end): Replace
+       make_cleanup_ui_out_list_end function.
+       * ui-out.h (ui_out_list_begin): Update declaration.
+       (make_cleanup_ui_out_list_begin_end): Replace
+       make_cleanup_ui_out_list_end declaration.
+       (ui_out_tuple_begin, ui_out_tuple_end): Declare.
+       (ui_out_tuple_begin_end): Declare.
+
+2001-05-11  Jim Blandy  <jimb@redhat.com>
+
+       * gnu-v2-abi.c: Don't #include "gdb_regex.h".  We don't use it.
+
+2001-05-11  Andrew Cagney  <ac131313@redhat.com>
+
+       From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
+       * config/pa/tm-hppa.h: Remove trigraph.
+       * hp-symtab-read.c (hpread_type_translate): Provide return value.
+       (hpread_read_struct_type): Remove trigraph. Add parameter in
+       `warning'.
+       (hpread_read_array_type): Provide return value.
+       (hpread_type_lookup): Avoid ambiguous `else'. Provide return
+       value.
+       * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
+       trigraph.
+
+2001-05-11  Jim Blandy  <jimb@redhat.com>
+
+       * mips-tdep.c (mips_store_return_value,
+       mips_extract_return_value): Pass arguments to
+       return_value_location in the proper order.
+
+2001-05-11  Andrew Cagney  <ac131313@redhat.com>
+
+       * Makefile.in (VERSION): Delete.  Moved to file ``version.in''.
+       (version.c): Depends on file ``version.in''.  Extract version
+       number from ``version.in'' file.
+       (clean mostlyclean): Update.
+       * version.in: New file.
+       * NEWS: Update.
+       
+2001-05-11  Kevin Buettner  <kevinb@redhat.com>
+
+       * breakpoint.c (set_raw_breakpoint): Add new parameter
+       representing the breakpoint's type.  Adjust all callers.
+       (create_longjmp_breakpoint, create_temp_exception_breakpoint)
+       (create_thread_event_breakpoint): Don't test for zero return
+       value from set_raw_breakpoint().  It can never be zero.
+       (create_exception_catchpoint, watch_command_1): Move logic
+       which calculates the breakpoint type prior to the call to
+       set_raw_breakpoint().
+
+2001-05-11  Fernando Nasser  <fnasser@redhat.com>
+
+       * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
+       (hardwire_setbaudrate): Set errno to EINVAL and return with error
+       if the conversion of the baud rate to code fails.
+
+2001-05-10  Andrew Cagney  <ac131313@redhat.com>
+
+       * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
+       * ui-out.c (struct ui_out_end_cleanup_data): Define.
+       (do_cleanup_end): New function.  Replace do_list_end.
+       (make_cleanup_ui_out_end): New function.
+       (make_cleanup_ui_out_begin_end): New function.
+       (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
+
+2001-05-10  Elena Zannoni  <ezannoni@redhat.com>
+
+        * MAINTAINERS: Declare xcoffread.c open to all maintainers,
+        and make Kevin Buettner (kevinb@redhat.com) the reference person.
+
+2001-05-10  Elena Zannoni  <ezannoni@redhat.com>
+
+       * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
+
+2001-05-10  Fernando Nasser  <fnasser@redhat.com>
+
+       * MAINTAINERS: Add testsuite subdirectory co-maintainers.
+
+Thu May 10 16:26:47 2001  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * Makefile.in (mi-main.o): Compile with -Werror.
+
+2001-05-10  Michael Snyder  <msnyder@redhat.com>
+
+       * remote.c (remote_open_1): Call no_shared_libraries, so that
+       symbols for shared libraries can be reloaded per session.
+       (remote_async_open_1): Ditto.
+       * remote.c (bin2hex, hex2bin): New functions.  Factor out these
+       two conversions which are coded for repeatedly in this module.
+       (remote_threads_extra_info, remote_wait, remote_async_wait, 
+       store_register_using_P, remote_store_registers, remote_write_bytes,
+       remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
+       of coding the conversions inline.
+       (fromhex): Not exported, change from extern to static.
+
+2001-05-10  Andrew Cagney  <ac131313@redhat.com>
+
+       * arch-utils.c (initialize_current_architecture): Delete obsolete
+       ``info architecture'' command.
+       (info_architecture): Delete function.
+
+2001-05-10  Andrew Cagney  <ac131313@redhat.com>
+
+       * TODO (5.1, 5.2): Update.
+
+2001-05-09  Andrew Cagney  <ac131313@redhat.com>
+
+       * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
+       stuff.
+
+2001-05-10  Keith Seitz  <keiths@cygnus.com>
+
+       * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
+       and gdbtk-stack.o.
+       (SUBDIR_GDBTK_SRCS): Ditto for the sources.
+       (gdbtk-bp.o): New rule.
+       (gdbtk-register.o): New rule.
+       (gdbtk-stack.o): New rule.
+       (gdbtk-cmds.o): Update dependencies.
+       (gdbtk.o): Ditto.
+       (gdbtk-hooks.o): Ditto.
+       (gdbtk-varobj.o): Ditto.
+
+2001-05-10  Fernando Nasser  <fnasser@redhat.com>
+
+       * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
+       variables, not just unregister them.
+
+2001-05-10  Fernando Nasser  <fnasser@redhat.com>
+
+       * varobj.c (c_number_of_children): Check for target type of void*,
+       not the target type name.  Allow dereferencing char*.
+
+2001-05-10  Fernando Nasser  <fnasser@redhat.com>
+
+       * symfile.c (symbol_file_add_main_1): New static function. 
+       Passes the flags arguments to  symbol_file_add() and takes care
+       of any necessary reinitializations.
+        (symbol_file_command): Call symbol_file_add_main_1() instead of
+        symbol_file_add().  
+        (symbol_file_add_main): Ditto.
+
+2001-05-09  Kevin Buettner  <kevinb@redhat.com>
+
+       * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
+       string change in 2001-05-03 changes.
+       (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
+       changes.
+
+2001-05-09  Kevin Buettner  <kevinb@redhat.com>
+
+       * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
+       component from inferior_ptid.
+       (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
+       ptid.
+
+2001-05-09  Elena Zannoni  <ezannoni@redhat.com>
+
+       * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
+       conditional for help with connections through parallel ports,
+       given that the actual code for downloading through a parallel port
+       is not conditionalized.
+
+       * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
+       unmaintaned, and probably on its way to obsolescence.
+       
+2001-05-09  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386-tdep.c (i386_frame_saved_pc): New function.
+       * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
+       i386_frame_saved_pc.
+       (i386_frame_saved_pc): New prototype.
+
+       * i386-tdep.c (i386_register_virtual_type): New function.
+       (i386_register_convertible): New function.
+       * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
+       of i386_register_virtual_type.
+       (REGISTER_CONVERTIBLE): Redefine in terms of
+       i386_register_convertible.
+       (i386_register_virtual_type, i386_register_convertible): New
+       prototypes.
+
+2001-05-08  Jim Blandy  <jimb@redhat.com>
+
+       * Makefile.in (mn10300-tdep.o): New rule.
+
+       * Makefile.in (gdb_string_h): Define.  Use it throughout.
+       Some rules were already using this, even though it isn't defined.
+
+       * Makefile.in (obstack_h, target_h): Define; these are already
+       used elsewhere, but have been expanding to the empty string.
+       (memattr_h): Define; needed by target_h.
+
+       * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
+       static.  (This was accidentally omitted from the earlier patch.)
+       
+       * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
+       (mn10300_gdbarch_init): Register it as the architecture's
+       dwarf2_reg_to_regnum method.
+
+       Correct and expand handling of `movm' instruction, and register
+       saves in general.
+       * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
+       MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
+       (enum movm_register_bits): New enum.
+       * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
+       bits, not hex literals.  Handle the `other', `exreg0', and
+       `exother' bits.  Correct handling of `exreg1': it saves r4, r5,
+       r6, and r7, not r2, r3, r4, and r5.
+       (saved_regs_size): New function.
+       (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
+       of computing the same thing inline, incorrectly.
+
+       * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
+       dummy_breakpoint_offset; it's zero.
+
+       * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
+       stuff out into mn10300_pop_frame_regular, and use
+       generic_pop_current_frame.  This lets us share code, and also
+       makes this function's prototype match that expected by gdbarch.
+       Make this function static.
+       (mn10300_pop_frame_regular): New function.
+       (mn10300_gdbarch_init): Register mn10300_pop_frame as the
+       gdbarch's pop_frame method.
+       * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
+       (mn10300_pop_frame): Delete declaration.
+
+       * mn10300-tdep.c (mn10300_saved_pc_after_call,
+       mn10300_extract_return_value,
+       mn10300_extract_struct_value_address, mn10300_store_return_value,
+       mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
+       mn10300_frame_chain, mn10300_skip_prologue,
+       mn10300_push_arguments, mn10300_push_return_address,
+       mn10300_store_struct_return, mn10300_frame_saved_pc,
+       mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
+       Make these functions static; they should only be visible to the
+       outside world as gdbarch methods.
+
+       * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
+       unused declaration.
+       
+       * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
+       in some rational order.
+
+       * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
+       generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
+
+       Use gdbarch for most target parameters for the MN10300, rather
+       than the tm-*.h file.
+       * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
+       REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
+       FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
+       SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
+       FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
+       EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
+       STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
+       FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
+       FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
+       CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
+       CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
+       TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
+       SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
+       REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
+       Delete definitions.  We register gdbarch methods for these now.
+       (struct frame_info, struct type, struct value): Delete forward
+       declarations of these types; they're no longer necessary, since we
+       don't have function declarations here any more.
+       * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
+       some default gdbarch methods.
+       (mn10300_store_struct_return): Return void, as expected by
+       gdbarch.
+       (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
+       as expected by gdbarch.
+       (mn10300_frame_init_saved_regs): Provide dummy definition for
+       this, as required by gdbarch.
+       (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
+       by gdbarch.  Register gdbarch methods or values for all the stuff
+       removed from tm-10300.h, listed above.
+
+2001-05-08  Andrew Cagney  <ac131313@redhat.com>
+
+       * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
+       cli_list_end.
+       (cli_ui_out_impl): Update.
+
+       * ui-out.c (default_begin, default_end): Replace
+       default_list_begin and default_list_end.
+       (default_ui_out_impl): Update.
+       (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
+       (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
+       ui_out_list_end.
+       (ui_out_list_begin, ui_out_list_end): New.  Compatibility
+       functions.
+       (struct ui_out_level): Add field type.
+       (push_level, pop_level): Update.  Add type parameter.
+
+       * ui-out.h (enum ui_out_type): Declare.
+       (ui_out_begin, ui_out_end): Declare.
+       (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
+       and list_end_ftype.
+       (struct ui_out_impl): Update.
+
+2001-05-07  Andrew Cagney  <ac131313@redhat.com>
+
+       * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
+       ``list_flag'' to ``depth''.
+       * ui-out.c (default_list_begin, default_list_end): Update.
+       (uo_list_begin, uo_list_end): Update.
+       (MAX_UI_OUT_LEVELS): Define.
+       (struct ui_out_level): Define.
+       (top-level): Include "gdb_assert.h".
+       (struct ui_out): Add fields ``level'' and ``levels''.  Delete
+       fields ``list_flag'' and ``field_count''.
+       (ui_out_new): Update.
+       (verify_field_proper_position): Update.
+       (current_level, push_level, pop_level): New functions.
+       (ui_out_list_begin): Use push_level.
+       (ui_out_list_end): Use pop_level.
+       (ui_out_field_int): Use current_level.
+       (ui_out_field_skip): Ditto.
+       (ui_out_field_fmt): Ditto.
+
+2001-05-08  Michael Snyder  <msnyder@redhat.com>
+
+       * language.c (longest_local_hex_string_custom): Strlen test is 
+       inverted -- reverse the sense of the test.
+
+2001-05-08  Mark Kettenis  <kettenis@gnu.org>
+
+       * config/i386/tm-i386v.h (struct frame_info, struct
+       frame_saved_regs):  Remove declarations.
+       (i386_frame_num_args): Remove prototype.
+
+2001-05-07  Andrew Cagney  <ac131313@redhat.com>
+
+       * MAINTAINERS: I'm no longer actively maintaining the mn10300
+       target.
+
+2001-05-04  Andrew Cagney  <ac131313@redhat.com>
+       * main.c (captured_main): Delete #ifndef _WIN32 conditional for
+       WinGDB.
+2001-05-06  Kevin Buettner  <kevinb@redhat.com>
+
+       * inferior.h (save_inferior_ptid): Declare.
+       * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
+
+       * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
+       Delete these functions.
+       * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
+       * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
+       * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
+       Likewise.
+       * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
+       Likewise.
+       * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
+       * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
+
+       * somsolib.c (reset_inferior_ptid): Delete.
+       (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
+       build the cleanup struct.
+
+       * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
+       a cleanup to save/restore inferior_ptid.
+
+2001-05-06  Mark Kettenis  <kettenis@gnu.org>
+
+       Implement attach/detach for multi-threaded programs on Linux.
+       * thread-db.c (keep_thread_db): Adjust comment.
+       (deactivate_target): Removed.
+       (thread_db_new_objfile): Don't call deactivate_target.  Implement
+       guts of deactivate_target inline instead.
+       (attach_thread): Call ATTACH_LWP unconditionally if defined.
+       (thread_db_attach): New function.
+       (thread_db_detach): Don't call deactivate_target.  Do necessary
+       cleanup inline instead.  Set inferior_ptid to LWP corresponding to
+       the current user-level thread.
+       (thread_db_kill): Set inferior_ptid to LWP corresponding to the
+       current user-level thread.
+       (thread_db_create_inferior): Deactivate target vector if
+       KEEP_THREAD_DB is zero.
+       (thread_db_mourn_inferior): Don't call deactivate_target.  Do
+       necessary cleanup inline instead.
+       (init_thread_db_ops): Initialize to_attach field to
+       thread_db_attach.
+       * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
+       (stop_wait_callback): Add prototype.
+       (init_lwp_list): Add comment about when to re-initialize the LWP
+       list.
+       (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
+       Avoid adding publicates to the LWP list.  Only mark an LWP as
+       signalled if it doesn't correspond to a cloned process.
+       (lin_lwp_attach): Add initial process to the LWP list.  Make sure
+       it's stopped and fake a SIGSTOP.
+       (detach_callback): New function.
+       (lin_lwp_detach): Implement.
+       (lin_lwp_create_inferior): Don't re-initialize LWP list here.
+       Call child_ops.to_create_inferior directly instead of via
+       target_beneath local.
+       (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
+       directly instead of via target_beneath local.
+
+2001-05-06  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
+       instead of non-portable search for `/'.  Use FILENAME_CMP instead
+       of STREQ, to account for case-insensitive filesystems.
+       (top-level): #include "filenames.h".
+
+2001-05-05  Jim Blandy  <jimb@redhat.com>
+
+       * breakpoint.c (check_duplicates): Use the breakpoint's type, not
+       its address, to decide whether it's a watchpoint or not.  Zero
+       is a valid code address.
+       (update_breakpoints_after_exec): Admonishing comments.
+       * breakpoint.h (struct breakpoint): Doc fixes.
+
+       * breakpoint.c (check_duplicates): Take a breakpoint object as an
+       argument, rather than an address and section.  All callers changed.
+
 2001-05-03  Kevin Buettner  <kevinb@redhat.com>
 
        * defs.h (ptid_t): New typedef.
This page took 0.027357 seconds and 4 git commands to generate.