+
+ Use ptid_t.tid to store thread ids instead of ptid_t.pid.
+
+ * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
+ globals.
+ (general_thread, continue_thread): Change type to ptid_t.
+ (record_currthread): Take a ptid_t parameter instead of an
+ integer.
+ (MAGIC_NULL_PID): Delete.
+ (set_thread): Take a ptid_t parameter and adjust.
+ (set_general_thread, set_continue_thread): New.
+ (remote_thread_alive, remote_newthread_step)
+ (remote_current_thread, remote_find_new_threads)
+ (remote_threads_info, remote_start_remote, remote_vcont_resume)
+ (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
+ (threadalive_test, remote_pid_to_str)
+ (remote_get_thread_local_address): Adjust.
+ (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
+ and any_thread_ptid.
+
+
+ * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
+ * configure: Regenerated.
+
+
+ * dwarf2read.c (read_attribute_value): Treat size attribute
+ values of 0xffffffff as if the attribute value was zero.
+
+
+ * linux-nat.c: Add description of overall logic.
+
+
+ * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
+ (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
+ all dependencies on $(gdb_stdint_h).
+ (distclean): Do not delete gdb_stdint.h.
+ * acinclude.m4: Do not use stdint.m4.
+ * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
+ uintptr_t, and gdb_stdint.h.
+ * defs.h: Include <stdint.h>.
+ * gdb_thread_db.h: Assume stdint.h is already included.
+ * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
+ rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
+ include gdb_stdint.h.
+ * configure, config.in: Regenerate.
+
+
+ * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
+ decimal floating-point values in GPRs for soft-float.
+ (do_ppc_sysv_return_value): Handle returning decimal
+ floating-point values in GPRs for soft-float.
+
+
+ * target.c (target_read_until_error): New.
+ * target.h (target_read_until_error): Declare.
+ * mi/mi-main.c (mi_cmd_data_read_memory): Use
+ target_read_until_error.
+
+
+ * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
+ after the DECFLOAT detection to fix a memory leak. Remove the
+ redundant NUM initialization. Protect the DECFLOAT detection memory
+ access before the P block. Restore the P memory content for the
+ DECFLOAT detection.
+
+
+ Kill the return value for all MI command functions.
+ * mi/mi-cmds.h (enum mi_cmd_result): Remove.
+ (mi_cmd_argv_ftype): Change return type to void.
+
+ * mi/mi-main.c: Adjust all function that implement
+ MI commands to return nothing.
+ (struct captured_mi_execute_command_actions):
+ Remove the rc field.
+ (mi_cmd_execute): Return nothing.
+ (mi_execute_async_cli_command): Return nothing.
+ (mi_cmd_exec_interrupt): Don't print ^done here.
+ (mi_cmd_target_select): Don't print ^connected here.
+ (captured_mi_execute_command): Don't check for MI_CMD_DONE.
+ Special-case -target-select and output ^connected, not ^done.
+
+ * mi/mi-cmd-break.c: Adjust.
+ * mi/mi-cmd-disas.c: Adjust.
+ * mi/mi-cmd-env.c: Adjust.
+ * mi/mi-cmd-file.c: Adjust.
+ * mi/mi-cmd-stack.c: Adjust.
+ * mi/mi-cmd-target.c: Adjust.
+ * mi/mi-cmd-var.c: Adjust.
+ * mi/mi-interp.c: Adjust.
+ * mi/mi-symbol-cmds.c: Adjust.
+
+
+ Emit ^running via observer.
+ * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
+ ^running here.
+ (mi_on_resume): Print ^running if not previously output.
+ * mi/mi-main.c (running_result_record_printed): New.
+ (captured_mi_execute_command): Reset
+ running_result_record_printed. Use running_result_record_printed
+ to decide if we should skip ^done.
+ (mi_execute_async_cli_command): Don't print ^running here.
+ * mi/mi-main.h (current_token, running_result_record_printed):
+ Declare.
+
+
+ * infrun.c (_initialize_infrun): White space and typo fix.
+
+
+ * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
+ (do_initial_win32_stuff): Fix problem with inability to set breakpoints
+ when first loading DLL with "dll" command.
+
+
+ * gnu-nat.c (proc_string): Use capital T for "Thread".
+
+
+ * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
+
+
+ * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
+ the target cannot run.
+
+
+ * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
+ we're attaching to a running process.
+
+
+ * win32-nat.c (handle_load_dll): Give dll name and load address
+ if debug_events is on.
+ (handle_unload_dll): Likewise.
+
+
+ Don't suppress *running when doing finish.
+ * infcall.c (call_function_by_hand): Set both
+ suppress_resume_observer and suppress_stop_observer.
+ * infcmd.c (suppress_run_stop_observers): Split into...
+ (suppress_resume_observer, suppress_stop_observer): ...those.
+ (finish_command_continuation): Clear suppress_stop_observer.
+ (finish_command): Set suppress_stop_observer.
+ * inferior.h (suppress_run_stop_observers): Split into...
+ (suppress_resume_observer, suppress_stop_observer): ...those.
+ * infrun.c (normal_stop): Check for suppress_stop_observer.
+ * thread.c (set_running): Check for suppress_resume_observer.
+
+
+ * gdbarch.sh (gdbarch_skip_main_prologue): New.
+ * gdbarch.h, gdbarch.c: Regenerate.
+ * i386-tdep.h (i386_skip_main_prologue): Declare.
+ * i386-tdep.c (i386_skip_main_prologue): New.
+ * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
+ i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
+ * symtab.c (find_function_start_sal): When pc points at the "main"
+ function, call gdbarch_skip_main_prologue.
+
+
+ * value.c (value_primitive_field): Fetch lazy register values.
+
+
+ * NEWS: Mention support removal of undocumented S AA p PID stop
+ reply packet.
+
+ * remote.c (remote_wait): Remove undocumented S AA p PID support.
+
+
+ * MAINTAINERS: Update my affiliation and address.
+
+
+ * top.c (print_gdb_version): Don't print final newline.
+
+
+ Implement *running.
+ * Makefile.in: Update dependencies.
+ * gdbthread.h (struct thread_info): New field
+ running_.
+ (set_running, is_running): New.
+ * thread.c (set_running, is_running): New.
+ * inferior.h (suppress_normal_stop_observer): Rename to...
+ (suppress_run_stop_observers): ..this.
+ * infcmd.c (suppress_normal_stop_observer): Rename to...
+ (suppress_run_stop_observers): ..this.
+ (finish_command_continuation, finish_command): Adjust.
+ * infcall.c (call_function_by_hand): Adjust.
+ * infrun.c (normal_stop): Call set_running.
+ * target.c (target_resume): New. Call set_running.
+ * target.h (target_resume): Convert from macro to
+ a function.
+
+ * mi/mi-interp.c (mi_on_resume): New.
+ (mi_interpreter_init): Register mi_on_resume.
+
+
+ Use observers to report stop events in MI.
+ * mi/mi-interp.c (mi_on_normal_stop): New.
+ (mi_interpreter_init): Register mi_on_normal_stop.
+ (mi_interpreter_exec_continuation): Remove.
+ (mi_cmd_interpreter_exec): Don't register the above.
+ * mi/mi-main.c (captured_mi_execute_command): Don't care
+ about sync_execution.
+ (mi_execute_async_cli_command): Don't install continuation. Don't
+ print *stopped.
+ (mi_exec_async_cli_cmd_continuation): Remove.
+
+
+ Suppress normal stop observer when it's problematic.
+ * inferior.h (suppress_normal_stop_observer): New.
+ * infcall.c (call_function_by_hand): Disable stop events when
+ doing function calls.
+ * infmcd.c (suppress_normal_stop_observer): New.
+ (finish_command_continuation): Call normal_stop observer
+ explicitly.
+ (finish_command): Disable stop events inside proceed.
+ * infrun.c (normal_stop): Don't call normal stop observer if
+ suppressed of if multi-step is in progress.
+
+
+ Remove stale code.
+ * infrun.c (finish_command): Don't pass cleanup
+ to continuation.
+ (finish_command_continuation): Don't grab cleanup from
+ the passed data, as we don't use, and cannot, use it anyway.
+
+
+ Introduce common cleanup for restoring integers.
+ * defs.h (make_cleanup_restore_integer): New declaration.
+ (struct cleanup): New field free_arg.
+ (make_my_cleanup_2): New.
+ * utils.c (restore_integer_closure, restore_integer)
+ (make_cleanup_restore_integer): New.
+ (make_my_cleanup): Initialize the free_arg field and
+ renamed to make_my_cleanup_2.
+ (do_my_cleanups): Call free_arg.
+ (discard_cleanups): Call free_arg.
+ * breakpoint.c (restore_always_inserted_mode): Remove.
+ (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
+
+
+ * remote.c (remote_wait): Include beginning of malformed packet
+ in error output.
+
+
+ * completer.c (complete_line): Don't special-case
+ expression_completer.
+ (expression_completer): Only pass last word to
+ location_completer.
+ * c-exp.y (yylex): Check 'token', not 'operator'.
+
+
+ * configure.ac (build_warnings): Add -Wno-format for mingw.
+ * configure: Regenerated.
+
+
+ * NEWS: Make indentation consistent. Move exec tracing entry out
+ of remote packet list.
+
+
+ * value.h (evaluate_subexpression_type, extract_field_op):
+ Declare.
+ * printcmd.c (_initialize_printcmd): Use expression_completer for
+ 'p', 'inspect', 'call'.
+ * parser-defs.h (parse_field_expression): Declare.
+ * parse.c: Include exceptions.h.
+ (in_parse_field, expout_last_struct): New globals.
+ (mark_struct_expression): New function.
+ (prefixify_expression): Return int.
+ (prefixify_subexp): Return int. Use expout_last_struct.
+ (parse_exp_1): Update.
+ (parse_exp_in_context): Add 'out_subexp' argument. Handle
+ in_parse_field.
+ (parse_field_expression): New function.
+ * expression.h (parse_field_expression): Declare.
+ (in_parse_field): Likewise.
+ * eval.c (evaluate_subexpression_type): New function.
+ (extract_field_op): Likewise.
+ * completer.h (expression_completer): Declare.
+ * completer.c (expression_completer): New function.
+ (count_struct_fields, add_struct_fields): New functions.
+ * c-exp.y (yyparse): Redefine.
+ (COMPLETE): New token.
+ (exp): New productions.
+ (saw_name_at_eof, last_was_structop): New globals.
+ (yylex): Return COMPLETE when needed. Recognize in_parse_field.
+ (c_parse): New function.
+ * breakpoint.c (_initialize_breakpoint): Use expression_completer
+ for watch, awatch, and rwatch.
+ * Makefile.in (parse.o): Depend on exceptions_h.
+
+
+ PR gdb/1147
+ * gdb/valopts.c (find_overload_match): Handle references
+ to pointers.
+
+
+ * ada-lang.c (ada_value_assign): Correct big-endian case to take into
+ account the bitsize of the 'from' operand.
+
+
+ * annotate.h (annotate_thread_changed): Declare.
+
+
+ * annotate.c (annotate_thread_changed): New function.
+ * thread.c (thread_command) : Use it.
+ * infrun.c (normal_stop): Use it.
+
+
+ * acinclude.m4: Include ../config/acx.m4.
+ * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
+ * configure, config.in: Regenerate.
+ * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
+ address.
+ * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
+
+
+ Replace 'target async' by 'maintenance set remote-async' and
+ 'target remote' combination.
+
+ * remote.c (remote_async_wait): Merge into remote_wait, and
+ remove.
+ (remote_async_permitted, remote_async_permitted_set): New
+ variables.
+ (set_maintenance_remote_async_permitted)
+ (show_maintenance_remote_async_permitted): New functions.
+ (remote_async_ops, extended_async_remote_ops): Delete.
+ (remote_async_open, extended_remote_async_open): Delete.
+ (remote_open_1): Drop async_p parameter. Update callers. Replace
+ async_p with remote_async_permitted checks.
+ (extended_async_remote_attach): Delete.
+ (remote_resume, remote_async_resume): Merge and leave remote_resume.
+ (remote_async_terminal_inferior): Rename to...
+ (remote_terminal_inferior): ... this, and add
+ remote_async_termitted check.
+ (remote_async_terminal_ours): Rename to...
+ (remote_terminal_ours): ... this, and add remote_async_termitted
+ check.
+ (remote_wait, remote_async_wait): Merge and leave remote_wait
+ only.
+ (remote_kill, remote_async_kill): Merge and leave remote_kill
+ only.
+ (remote_async_mourn, extended_async_remote_mourn): Delete.
+ (extended_remote_create_inferior_1): Drop async_p parameter.
+ Update callers. Always use extended_remote_ops.
+ (extended_remote_async_create_inferior): Delete.
+ (remote_return_zero): Delete.
+ (init_remote_ops): Register remote_can_async_p, remote_async,
+ remote_async_mask, remote_terminal_inferior and
+ remote_terminal_ours.
+ (remote_can_async_p, remote_is_async_p): Check for
+ remote_async_permitted.
+ (init_remote_async_ops, init_extended_async_remote_ops): Remove.
+ (set_remote_cmd): Don't add async and extended-async targets.
+ (_initialize_remote): Add set/show remote-async maintenance
+ commands.
+
+
+ * remote.c (kill_kludge): Delete.
+ (remote_wait, remote_async_wait): Don't set it.
+ (remote_kill, remote_async_kill): Don't do anything with it.
+
+
+ * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
+
+
+ * bcache.c (bcache_data): Call deprecated_bcache_added function.
+ (deprecated_bcache_added): New function name. Body of function
+ bcache_data is used here with the addition of 'added' argument.
+ * bcache.h (deprecated_bcache_added): New function.
+ * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
+ work from add_psymbol_to_list - initialises partial symbol and stashes
+ it in objfile's cache.
+ (append_psymbol_to_list): New helper function, takes other part of
+ work from add_psymbol_to_list - adds partial symbol to the given list.
+ (add_psymbol_to_list): Call helper functions instead of doing work
+ here. If adding to global list, do not duplicate partial symbols in the
+ partial symtab.
+
* breakpoint.c (print_exception_catchpoint): Put 'exception' back to