move some static thread state into remote_state
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index fd02aa4b1754385b8f0c8f70842fe9c40da0ea74..13bc9b48056741f34cfb71d38afb92d6d18ca058 100644 (file)
@@ -1,3 +1,514 @@
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <echo_nextthread, nextthread,
+       resultthreadlist>: New fields.
+       (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
+       (remote_get_threadlist, remote_threadlist_iterator): Use
+       new fields.  Remove static variables.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
+       remote_watch_data_address>: New fields.
+       (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
+       (process_stop_reply, remote_wait_as)
+       (remote_check_watch_resources, remote_stopped_data_address): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <async_client_callback,
+       async_client_context>: New fields.
+       (async_client_callback, async_client_context): Remove.
+       (remote_async_serial_handler, remote_async): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (sizeof_pkt): Remove.
+       (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <use_threadinfo_query,
+       use_threadextra_query>: New fields.
+       (remote_threads_info, remote_threads_extra_info)
+       (remote_open_1): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <finished_object,
+       finished_annex, finished_offset>: New fields.
+       (remote_read_qxfer): Use remote_state fields; remove static
+       variables.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <last_sent_step>:
+       New field.
+       (last_sent_step): Remove.
+       (remote_resume, remote_wait_as): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <last_sent_signal>:
+       New field.
+       (last_sent_signal): Remove.
+       (new_remote_state, remote_resume, remote_wait_as): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <last_program_signals_packet>:
+       New field.
+       (last_program_signals_packet): Remove.
+       (remote_program_signals, remote_open_1): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <last_pass_packet>:
+       New field.
+       (last_pass_packet): Remove.
+       (remote_pass_signals, remote_open_1): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <remote_traceframe_number>:
+       New field.
+       (remote_traceframe_number): Remove.
+       (new_remote_state, remote_open_1, set_remote_traceframe)
+       (remote_trace_find): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <general_thread, continue_thread>:
+       New fields.
+       (general_thread, continue_thread): Remove.
+       (record_currthread, set_thread, set_general_process)
+       (remote_open_1, extended_remote_attach_1, remote_wait_as)
+       (extended_remote_mourn_1): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (struct remote_state) <remote_desc>: New field.
+       (remote_desc): Remove.
+       (remote_threads_info, remote_threads_extra_info, remote_close)
+       (send_interrupt_sequence, remote_start_remote, remote_open_1)
+       (readchar, remote_xfer_partial, remote_rcmd, packet_command)
+       (remote_hostio_send_command, remote_file_put, remote_file_get)
+       (remote_file_delete, remote_can_async_p, remote_is_async_p)
+       (remote_async, remote_new_objfile, set_range_stepping): Update.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (remote_state): Now a pointer.
+       (get_remote_state_raw): Update.
+       (new_remote_state): New function.
+       (_initialize_remote): Use new_remote_state.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (remote_protocol_features): Now const.
+
+2013-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (crc32_table, crc32): Remove.
+       (remote_verify_memory): Use xcrc32.
+
+2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * value.h (create_internalvar_type_lazy): Adjust prototype
+       declaration.
+
+2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
+
+       * common/format.c (parse_format_string): Don't allow '#' flag for
+       pointer arguments in format string.
+
+2013-08-13  Pierre Muller  <muller@sourceware.org>
+
+       * utils.c (init_page_info): Only call tgetnum function
+       if rl_get_screen_size did not return useful values.
+
+2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
+
+       PR breakpoints/15117
+       * linespec.c (linespec_parse_basic): Check for convenience
+       variable or history value while parsing.
+
+2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       Revert implementation of gdbarch_gdb_signal_{to,from}_target for
+       AVR.
+       * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
+       different signals between the generic Linux kernel implementation
+       and AVR's.
+       (avr_linux_gdb_signal_from_target): Delete.
+       (avr_linux_gdb_signal_to_target): Delete.
+       (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
+
+2013-08-09  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
+       entries.
+
+2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * linux-tdep.c: Define enum with generic signal numbers.
+       (linux_gdb_signal_from_target): New function.
+       (linux_gdb_signal_to_target): Likewise.
+       (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
+       methods to the functions above.
+       * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
+       (linux_gdb_signal_to_target): Likewise.
+       * alpha-linux-tdep.c: Define new enum with signals different
+       from generic Linux kernel.
+       (alpha_linux_gdb_signal_from_target): New function.
+       (alpha_linux_gdb_signal_to_target): Likewise.
+       (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
+       with the functions mentioned above.
+       * avr-tdep.c: Define enum with differences between Linux kernel
+       and AVR signals.
+       (avr_linux_gdb_signal_from_target): New function.
+       (avr_linux_gdb_signal_to_target): Likewise.
+       (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
+       the functions mentioned above.
+       * sparc-linux-tdep.c: Define enum with differences between SPARC
+       and generic Linux kernel signal numbers.
+       (sparc32_linux_gdb_signal_from_target): New function.
+       (sparc32_linux_gdb_signal_to_target): Likewise.
+       (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
+       to the functions defined above.
+       * xtensa-linux-tdep.c: Define enum with differences between
+       Xtensa and Linux kernel generic signals.
+       (xtensa_linux_gdb_signal_from_target): New function.
+       (xtensa_linux_gdb_signal_to_target): Likewise.
+       (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
+       to the functions defined above.
+       * mips-linux-tdep.c: Define enum with differences between
+       signals in MIPS and Linux kernel generic ones.
+       (mips_gdb_signal_to_target): New function.
+       (mips_gdb_signal_from_target): Redefine to use new enum, handle
+       only different signals from the Linux kernel generic.
+       (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
+       the functions defined above.
+       * mips-linux-tdep.h (enum mips_signals): Remove.
+
+2013-08-09  Pedro Alves  <palves@redhat.com>
+
+       * avr-tdep.c (XMALLOC): Delete macro.
+       * cli/cli-dump.c (XMALLOC): Delete macro.
+
+2013-08-09  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-dump.c: Don't include cli/cli-dump.h.
+       (scan_expression_with_cleanup, scan_filename_with_cleanup)
+       (fopen_with_cleanup, add_dump_command): Make static.
+       * cli/cli-dump.h: Delete file.
+       * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
+       cli/cli-dump.h.
+
+2013-08-09  Pedro Alves  <palves@redhat.com>
+
+       * tracepoint.c (tfile_start): Show tilde-expanded filename in
+       error message.
+
+2013-08-09  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
+       error message.
+
+2013-08-09  Pedro Alves  <palves@redhat.com>
+
+       * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
+       (gcore_command): Use tilde_expand here, and when showing the
+       filename to the user, show the expanded version.
+
+2013-08-09  Yao Qi  <yao@codesourcery.com>
+
+       * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
+       'entryval' is set.
+
+2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
+
+       * gcore.c (create_gcore_bfd): Use tilde_expand.
+
+2013-08-08  Yao Qi  <yao@codesourcery.com>
+
+       * frame.h (read_frame_local): Declare.
+       * mi/mi-cmd-stack.c (list_args_or_locals): Call
+       read_frame_local.
+       * stack.c (read_frame_local): New.
+
+2013-08-08  Yao Qi  <yao@codesourcery.com>
+
+       * mi/mi-cmd-stack.c: Update comments to function
+       list_args_or_locals.
+
+2013-08-07  Tom Tromey  <tromey@redhat.com>
+
+       PR symtab/15028:
+       * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
+       (process_psymtab_comp_unit_reader): Use it.
+       (process_psymtab_comp_unit): Update.  Add "pretend_language"
+       argument.
+       (dwarf2_build_psymtabs_hard): Update.
+       (scan_partial_symbols): Pass CU's language to
+       process_psymtab_comp_unit.
+
+2013-08-07  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
+       (dwarf2_gdb_index_functions): Update.
+       * psymtab.c (find_symbol_file_from_partial): Remove.
+       (psym_functions): Update.
+       * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
+       Remove.
+
+2013-08-07  Tom Tromey  <tromey@redhat.com>
+
+       * symfile.c (set_initial_language): Look up "main" symbol
+       and use its language.
+       * symtab.c (find_main_filename): Remove.
+       * symtab.h (find_main_filename): Remove.
+
+2013-08-07  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (recursively_compute_inclusions): Add
+       "immediate_parent" argument.  Set symtab's "user" field
+       if not set.
+       (compute_symtab_includes): Update.
+
+2013-08-07  Tom Tromey  <tromey@redhat.com>
+
+       * linespec.c (convert_linespec_to_sals): Use maybe_add_address
+       when adding label symbols.
+
+2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
+           Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
+       * configure.host (powerpc64-*-aix*): Likewise.
+
+2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
+           Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
+       is defined.
+       * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
+       (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
+       (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
+       * configure.ac: Check for ptrace64.
+       * configure, config.in: Regenerate.
+
+2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
+           Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * aixthread.c: Call ptrace64 instead of ptracex if defined.
+       Call ptrace64 instead of ptrace if defined.
+       Add macro addr_ptr to take care of ptrace address argument.
+       (pdc_read_regs): Likewise.
+       (pdc_write_regs): Likewise.
+       (aix_thread_resume): Likewise.
+       (fetch_regs_kernel_thread): Likewise.
+       (store_regs_kernel_thread): Likewise.
+
+2013-08-07  Anton Blanchard  <anton@samba.org>
+
+       * MAINTAINERS: Add myself to Write After Approval.
+
+2013-08-05  Tom Tromey  <tromey@redhat.com>
+
+       * aix-thread.c (_initialize_aix_thread): Use
+       complete_target_initialization.
+       * bsd-uthread.c (_initialize_bsd_uthread): Use
+       complete_target_initialization.
+       * dec-thread.c (_initialize_dec_thread): Use
+       complete_target_initialization.
+       * ravenscar-thread.c (_initialize_ravenscar): Use
+       complete_target_initialization.
+       * sol-thread.c (_initialize_sol_thread): Use
+       complete_target_initialization.
+       * spu-multiarch.c (_initialize_spu_multiarch): Use
+       complete_target_initialization.
+
+2013-08-05  Tom Tromey  <tromey@redhat.com>
+
+       * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
+       * ada-lang.c (ada_lookup_simple_minsym): Return
+       bound_minimal_symbol.
+       * ada-lang.h (ada_lookup_simple_minsym): Update.
+       * c-exp.y (variable): Use lookup_bound_minimal_symbol.
+       * f-exp.y (variable): Use lookup_bound_minimal_symbol.
+       * go-exp.y (variable): Use lookup_bound_minimal_symbol.
+       * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
+       * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
+       * minsyms.c (msymbol_objfile): Remove.
+       (lookup_minimal_symbol_internal): New function, from
+       lookup_minimal_symbol.
+       (lookup_minimal_symbol): Rewrite using
+       lookup_minimal_symbol_internal.
+       (lookup_bound_minimal_symbol): New function.
+       * minsyms.h (msymbol_objfile): Remove.
+       (lookup_bound_minimal_symbol): Declare.
+       * p-exp.y (variable): Use lookup_bound_minimal_symbol.
+       * parse.c (write_exp_msymbol): Change parameter to a
+       bound_minimal_symbol.
+       (write_dollar_variable): Use lookup_bound_minimal_symbol.
+       * parser-defs.h (write_exp_msymbol): Update.
+       * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
+       * symfile.c (simple_read_overlay_table): Use
+       lookup_bound_minimal_symbol.
+       * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
+       (search_symbols): Likewise.
+       (print_msymbol_info): Take a bound_minimal_symbol argument.
+       (symtab_symbol_info, rbreak_command): Update.
+       * symtab.h (struct symbol_search) <msymbol>: Change type
+       to bound_minimal_symbol.
+       * valops.c (find_function_in_inferior): Use
+       lookup_bound_minimal_symbol.
+       * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
+
+2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * remote.c (cleanup_sigint_signal_handler): Rename the declaration
+       to ...
+       (async_cleanup_sigint_signal_handler): ... this.
+       (initialize_sigint_signal_handler): Remove declaration.
+       (handle_remote_sigint): Rename the declaration to ...
+       (async_handle_remote_sigint): ... this.
+       (handle_remote_sigint_twice): Rename the declaration to ...
+       (async_handle_remote_sigint_twice): ... this.
+       (async_remote_interrupt, async_remote_interrupt_twice)
+       (remote_interrupt): Remove the declarations.
+       (remote_interrupt_twice): Rename the declaration ...
+       (sync_remote_interrupt_twice): ... this.
+       (sigint_remote_twice_token): Rename the variable to ...
+       (async_sigint_remote_twice_token): ... this.
+       (sigint_remote_token): Rename the variable to ...
+       (async_sigint_remote_token): ... this.
+       (initialize_sigint_signal_handler): Rename the function to ...
+       (async_initialize_sigint_signal_handler): ... this.  Update the name
+       inside.
+       (handle_remote_sigint): Rename the function to ...
+       (async_handle_remote_sigint): ... this.  Update the names inside.
+       (handle_remote_sigint_twice): Rename the function to ...
+       (async_handle_remote_sigint_twice): ... this.  Update the names inside.
+       (cleanup_sigint_signal_handler): Rename the function to ...
+       (async_cleanup_sigint_signal_handler): ... this.
+       (remote_interrupt): Rename the function to ...
+       (sync_remote_interrupt): this.  Update the names inside.
+       (remote_interrupt_twice): Rename the function to ...
+       (sync_remote_interrupt_twice): this.  Update the names inside.
+       (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
+       (_initialize_remote): Update the names inside.
+
+2013-08-02  Tom Tromey  <tromey@redhat.com>
+
+       PR symtab/15719:
+       * breakpoint.c (update_watchpoint, watchpoint_check)
+       (watch_command_1): Update.
+       * eval.c (fetch_subexp_value): Add "preserve_errors"
+       parameter.
+       * ppc-linux-nat.c (check_condition): Update.
+       * value.h (fetch_subexp_value): Update.
+
+2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
+
+       * mi/mi-interp.c (mi_interpreter_resume): Remove call to
+       add_file_handler.
+
+2013-08-01  Doug Evans  <dje@google.com>
+
+       PR symtab/15691
+       * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
+       (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
+       Add assert of sig_entry->dwo_unit == NULL.
+       (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
+       had already been read.
+       (read_signatured_type): Set per_cu.tu_read.
+
+       PR symtab/15695
+       * valops.c (value_struct_elt): Add missing call to check_typedef.
+       (value_find_oload_method_list): Ditto.
+
+       * symtab.c (do_free_search_symbols_cleanup): Change arg to,
+       effectively, struct symbol_search **.
+       (make_cleanup_free_search_symbols): Change arg to struct
+       symbol_search **.  All callers updated.
+       (compare_search_syms): Compare symtab file name and block as well.
+       (search_symbols_equal): New function.
+       (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
+       New args new_head, new_tail.  Result is now void.  Remove dups after
+       sorting the symbols.
+       (search_symbols): Sort all found symbols once, after all have been
+       found, and remove duplicates.  Simplify cleanup tracking of result.
+       * symtab.h (make_cleanup_free_search_symbols): Update prototype.
+
+       Further workarounds for binutils/15021.
+       * dwarf2read.c (recursively_compute_inclusions): Change type of result
+       parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
+       Watch for duplicate symtabs coming from type units.
+       (compute_symtab_includes): Update call to
+       recursively_compute_inclusions. Build vector of included symtabs
+       instead of per_cus.
+       * symtab.h (symtab_ptr): New typedef.
+       (DEF_VEC_P (symtab_ptr)): New VEC type.
+       * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
+       instead.
+
+2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
+
+       * cli/cli-script.c (script_from_file): Remove use of
+       error_pre_print.
+       * main.c (captured_main): Remove use of error_pre_print and
+       quit_pre_print.
+       * utils.c (error_pre_print, quit_pre_print): Remove.
+       * utils.h (error_pre_print, quit_pre_print): Likewise.
+
+2013-08-01  Yao Qi  <yao@codesourcery.com>
+
+       * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
+       with mi_getopt.
+       (mi_cmd_stack_list_variables): Likewise.
+
+2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
+
+       * exceptions.c (deprecated_throw_reason): Remove.
+       * exceptions.h (deprecated_throw_reason): Remove.
+
+2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
+
+       * remote-mips.c (mips_error): Replace use of
+       deprecated_throw_reason with throw_verror.  Use the error message
+       passed to mips_error as the error message for throw_verror.
+
+2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
+
+       * monitor.c (monitor_interrupt_query): Replace use of
+       deprecated_throw_reason with quit.
+       * nto-procfs.c (interrupt_query): Likewise.
+       * remote-fileio.c (remote_fileio_sig_exit): Likewise.
+       * remote-mips.c (mips_kill): Likewise.
+       * remote.c (interrupt_query): Likewise.
+
+2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
+
+       * utils.c (internal_verror): Replace use of deprecated_throw_reason
+       with call to fatal.
+
+2013-07-31  Pedro Alves  <pedro@codesourcery.com>
+           Yao Qi  <yao@codesourcery.com>
+
+       * tracepoint.c (trace_dump_command): Select the current frame.
+
+2013-07-30  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (process_queue): Add type signature to debug output.
+
+2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
+
+       * value.c (value_fetch_lazy): Mark optimized out values as such
+       rather than raising an error.
+
 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
 
        * value.c (value_fetch_lazy): Ensure parent value is not lazy
This page took 0.030111 seconds and 4 git commands to generate.