+2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * alphafbsd-tdep.c: Update for unwinder changes.
+ * alpha-linux-tdep.c: Likewise.
+ * alphanbsd-tdep.c: Likewise.
+ * alphaobsd-tdep.c: Likewise.
+ * avr-tdep.c: Likewise.
+ * cris-tdep.c: Likewise.
+ * frv-linux-tdep.c: Likewise.
+ * frv-tdep.c: Likewise.
+ * h8300-tdep.c: Likewise.
+ * hppa-linux-tdep.c: Likewise.
+ * iq2000-tdep.c: Likewise.
+ * m32c-tdep.c: Likewise.
+ * m32r-linux-tdep.c: Likewise.
+ * m32r-tdep.c: Likewise.
+ * m68hc11-tdep.c: Likewise.
+ * mep-tdep.c: Likewise.
+ * mn10300-tdep.c: Likewise.
+ * mt-tdep.c: Likewise.
+ * score-tdep.c: Likewise.
+ * sh64-tdep.c: Likewise.
+ * sh-tdep.c: Likewise.
+ * sparc64fbsd-tdep.c: Likewise.
+ * sparc64nbsd-tdep.c: Likewise.
+ * sparc64obsd-tdep.c: Likewise.
+ * v850-tdep.c: Likewise.
+ * vaxobsd-tdep.c: Likewise.
+ * vax-tdep.c: Likewise.
+ * xstormy16-tdep.c: Likewise.
+
+2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-main.c (enum captured_mi_execute_command_actions)
+ (captured_mi_execute_command_args): Remove.
+ (captured_mi_execute_command): Cast the closure to mi_parse
+ pointer, not to captured_mi_execute_command_args, and don't
+ set the action field thereof.
+ (mi_execute_command): Pass struct mi_parse, not
+ captured_mi_execute_command_args to captured_mi_execute_command.
+ (mi_execute_command): Remove (dead) code for suppressing
+ printing prompt.
+
+2008-06-28 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-nat.c (enum sigchld_state): New.
+ (linux_nat_async_events_state): Renamed from
+ linux_nat_async_events_enabled.
+ (linux_nat_event_pipe_push, my_waitpid): Adjust.
+ (sigchld_default_action): New.
+ (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
+ unconditionally.
+ (linux_nat_create_inferior): Set events state to sigchld_default
+ state.
+ (linux_nat_resume): Adjust.
+ (linux_nat_wait): Call linux_nat_async_events unconditionally.
+ (sigchld_handler): Adjust.
+ (linux_nat_async_mask): Don't set SIGCHLD actions here.
+ (get_pending_events): Adjust.
+ (linux_nat_async_events): Rewrite to handle enum sigchld_state
+ instead of a boolean.
+ (linux_nat_async): Adjust.
+ (_initialize_linux_nat): Capture default SIGCHLD action into
+ sigchld_default_action.
+
+2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
+
+ * breakpoint.c (moribund_locations): New.
+ (bpstat_stop_status): Process moribund locations.
+ (update_global_location_list): Add removed
+ locations to moribund_locations.
+ (breakpoint_retire_moribund): New.
+ * breakpoint.h (struct bp_location): New field
+ events_till_retirement.
+ (breakpoint_retire_moribund): Declare.
+ * thread.c (thread_count): New.
+ * infrun.c (handle_inferior_event): Call
+ breakpoint_retire_moribund.
+ * gdbthread.h (thread_count): Declare.
+
+2008-06-27 Joseph Myers <joseph@codesourcery.com>
+
+ * dfp.c (decimal_convert): Call match_endianness before and after
+ conversion.
+
+2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
+
+ * remote.c (remote_insert_breakpoint): Ensure that if Z0
+ unsupported and we fall back to memory_insert_breakpoint, we
+ use the unmodified requested address.
+
+2008-06-27 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (read_attribute_value): Issue a complaint when
+ adjusting size attribute values of 0xffffffff as zero.
+
+2008-06-27 Joseph Myers <joseph@codesourcery.com>
+
+ * i386-tdep.c (i386_16_byte_align_p): New.
+ (i386_push_dummy_call): Determine stack space required for
+ arguments going forwards allowing for 16-byte alignment, then push
+ arguments going forwards.
+
+2008-06-27 Pedro Alves <pedro@codesourcery.com>
+
+ * infrun.c (start_remote): Don't clear thread list here.
+ * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
+ list here.
+ * remote.c (record_currthread): Upgrade the main thread and its
+ entry in the thread list if this is the first time we hear about
+ threads.
+ (remote_thread_alive): Consider magic_null_ptid or a ptid without
+ a tid member always alive.
+ (remote_find_new_threads): Don't update the main thread here.
+ (remote_start_remote): Clear thread list here. Always add the
+ main thread.
+ (extended_remote_attach_1): Add the main thread here.
+ (extended_remote_mourn_1): Re-add the main thread here.
+ (extended_remote_create_inferior_1): Add a main thread.
+
+ * Makefile.in (monitor.o): Depend on $(gdbthread_h).
+
+2008-06-27 Pedro Alves <pedro@codesourcery.com>
+
+ 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.
+
+2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
+ * configure: Regenerated.
+
+2008-06-26 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (read_attribute_value): Treat size attribute
+ values of 0xffffffff as if the attribute value was zero.
+
+2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
+
+ * linux-nat.c: Add description of overall logic.
+
+2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * 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.
+
+2008-06-26 Joseph Myers <joseph@codesourcery.com>
+
+ * 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.
+
+2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
+
+ * 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.
+
+2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
+ * 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.
+
+2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
+
+ 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.
+
+2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
+
+ 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.
+
+2008-06-24 Michael Snyder <msnyder@specifix.com>
+
+ * infrun.c (_initialize_infrun): White space and typo fix.
+
+2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
+
+ * 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.
+
+2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * gnu-nat.c (proc_string): Use capital T for "Thread".
+
+2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
+
+2008-06-18 Joel Brobecker <brobecker@adacore.com>
+
+ * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
+ the target cannot run.
+
+2008-06-18 Joel Brobecker <brobecker@adacore.com>
+
+ * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
+ we're attaching to a running process.
+
+2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * win32-nat.c (handle_load_dll): Give dll name and load address
+ if debug_events is on.
+ (handle_unload_dll): Likewise.
+
+2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
+
+ 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.
+
+2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
+ Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * 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.
+
+2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * value.c (value_primitive_field): Fetch lazy register values.
+
+2008-06-11 Pedro Alves <pedro@codesourcery.com>
+
+ * NEWS: Mention support removal of undocumented S AA p PID stop
+ reply packet.
+
+ * remote.c (remote_wait): Remove undocumented S AA p PID support.
+
+2008-06-10 Stan Shebs <stan@codesourcery.com>
+
+ * MAINTAINERS: Update my affiliation and address.
+
+2008-06-10 Andreas Schwab <schwab@suse.de>
+
+ * top.c (print_gdb_version): Don't print final newline.
+
+2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
+
+ 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.
+
+2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
+
+ 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.
+
+2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
+
+ 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.
+
+2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
+
+ 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.
+
+2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
+
+ 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.
+
+2008-06-09 Doug Evans <dje@google.com>
+
+ * remote.c (remote_wait): Include beginning of malformed packet
+ in error output.
+
+2008-06-09 Tom Tromey <tromey@redhat.com>
+
+ * 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'.
+
+2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * configure.ac (build_warnings): Add -Wno-format for mingw.
+ * configure: Regenerated.
+
+2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * NEWS: Make indentation consistent. Move exec tracing entry out
+ of remote packet list.
+
+2008-06-06 Tom Tromey <tromey@redhat.com>
+
+ * 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.
+
+2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ PR gdb/1147
+ * gdb/valopts.c (find_overload_match): Handle references
+ to pointers.
+
+2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
+
+ * ada-lang.c (ada_value_assign): Correct big-endian case to take into
+ account the bitsize of the 'from' operand.
+
+2008-06-06 Pedro Alves <pedro@codesourcery.com>
+
+ * annotate.h (annotate_thread_changed): Declare.
+
+2008-06-06 Nick Roberts <nickrob@snap.net.nz>
+
+ * annotate.c (annotate_thread_changed): New function.
+ * thread.c (thread_command) : Use it.
+ * infrun.c (normal_stop): Use it.
+
+2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
+ Nathan Sidwell <nathan@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+
+ * 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.
+
+2008-06-05 Pedro Alves <pedro@codesourcery.com>
+
+ 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.
+
+2008-06-05 Pedro Alves <pedro@codesourcery.com>
+
+ * 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.
+
+2008-06-05 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
+
+2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * 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.
+
+2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
+ 'exception caught|thrown' message.
+
+2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * Makefile.in: Update dependencies.
+ * dwarf2expr.c: New include "gdb_assert.h".
+ (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
+ (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
+ (execute_stack_op): Error out on too large RECURSION_DEPTH.
+ Increase/decrease RECURSION_DEPTH around the function.
+
+2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote.c (get_offsets): Handle a single segment.
+ * symfile.c (symfile_map_offsets_to_segments): Allow more bases
+ than segments.
+
+2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * solib-svr4.c (struct lm_info): Add lm_addr.
+ (main_lm_addr): New.
+ (svr4_default_sos): Set lm_addr.
+ (svr4_current_sos): Set lm_addr and main_lm_addr.
+ (svr4_fetch_objfile_link_map): Rewrite.
+ (svr4_clear_solib): Clear main_lm_addr.
+
+2008-06-03 Michael Snyder <msnyder@redhat.com>
+ Joseph Myers <joseph@codesourcery.com>
+
+ * mips-tdep.c (mips_eabi_return_value): Replace stub that always
+ returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
+
+2008-06-02 Roman Zippel <zippel@linux-m68k.org>
+
+ * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
+
+2008-06-02 Roman Zippel <zippel@linux-m68k.org>
+
+ * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
+
+2008-06-01 Joel Brobecker <brobecker@adacore.com>
+
+ * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
+ treat pointers in data space as function descriptors if the
+ target address is also in the data space.
+
+2008-05-30 Joel Brobecker <brobecker@adacore.com>
+
+ * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
+ the trad-frame register value for the SP register.
+
+2008-05-29 Mark Kettenis <kettenis@gnu.org>
+
+ * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
+
+2008-05-28 Joel Brobecker <brobecker@adacore.com>
+
+ * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
+ that identifies function descriptors outside of the .opd section.
+
+2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
+ temporary catchpoints. In MI add missing fields 'reason', 'disp',
+ 'bkptno'.
+ (print_mention_exception_catchpoint): Add 'Temporary' for temporary
+ catchpoints.
+ (handle_gnu_v3_exceptions): Use tempflag.
+
+2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
+
+ Refactor varobj_update interface.
+ * varobj.c (varobj_update): Report changes as vector. Also
+ return not just a list of varobj, but a list of special structures
+ that tell what exactly has changed.
+ * varobj.h (enum varobj_update_error): Rename to
+ varobj_scope_status.
+ (struct varobj_update_result_t): New.
+ (varobj_update): Adjust prototype.
+ * mi/mi-cmd-var.c: Adjust for changes.
+
+2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
+
+ * varobj.c (varobj_update): Fix comment typo.
+ Fix indentation.
+
+2008-05-26 Joel Brobecker <brobecker@adacore.com>
+
+ Set the symtab field of symbols read from ECOFF debugging entries.
+ * mdebugread.c (add_symbol): Add new parameter symtab.
+ (parse_symbol): Update calls to add_symbol throughout.
+
+2008-05-27 Andreas Schwab <schwab@suse.de>
+
+ * symtab.h (enum address_class): Remove LOC_REGPARM and
+ LOC_COMPUTED_ARG.
+ (struct symbol): Add is_argument.
+ (SYMBOL_IS_ARGUMENT): Define.
+
+ * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
+ * buildsym.c (finish_block): Likewise.
+ * stack.c (print_frame_args, print_block_frame_locals)
+ (print_frame_arg_vars): Likewise.
+ * symtab.c (lookup_block_symbol): Likewise.
+ * tracepoint.c (add_local_symbols): Likewise.
+ * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
+
+ * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
+ * dwarf2read.c (new_symbol): Likewise.
+ * mdebugread.c (parse_symbol): Likewise.
+ * stabsread.c (define_symbol): Likewise.
+
+ * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
+ and LOC_COMPUTED_ARG.
+ * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
+ * ax-gdb.c (gen_var_ref): Likewise.
+ * eval.c (evaluate_subexp_for_address): Likewise.
+ * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
+ * m2-exp.y (yylex): Likewise.
+ * printcmd.c (address_info): Likewise.
+ * symmisc.c (print_symbol, print_partial_symbols): Likewise.
+ * tracepoint.c (collect_symbol, scope_info): Likewise.
+
+2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
+
+ * gdbarch.sh: Added new gdbarch struct
+ core_regset_sections.
+ * gdbarch.c: Refreshed.
+ * gdbarch.h: Refreshed.
+ * regset.h (core_regset_section): Declared.
+ * linux-nat.c (linux_nat_do_thread_registers): Added
+ support for the new gdbarch struct core_regset_sections.
+ * utils.c (host_address_to_string): New function.
+ * defs.h (host_address_to_string): New prototype.
+ * i386-linux-tdep.c (i386_regset_rections): New register
+ sections list for i386.
+ (i386_linux_init_abi): Initialized new gdbarch struct
+ core_regset_sections.
+ * Makefile.in: Updated to reflect dependency changes.
+ * ppc-linux-tdep.c (ppc_regset_sections): Register
+ sections list for ppc.
+ (ppc_linux_init_abi): Initialized new gdbarch struct
+ core_regset_sections
+
+2008-05-24 Andreas Schwab <schwab@suse.de>
+
+ * linespec.c (decode_objc): Save current language around call to
+ get_selected_block.
+
+2008-05-23 Joel Brobecker <brobecker@adacore.com>
+
+ * valprint.h (get_array_bounds): Renames get_array_low_bound.
+ * valprint.c (get_array_bounds): Renames get_array_low_bound.
+ Return the proper bound value if the array index type is an
+ enumerated type. Compute the high bound if requested.
+ (val_print_array_elements): Handle the case when the array
+ element has a null size.
+ * ada-valprint.c (print_optional_low_bound): Add handling
+ for empty arrays or arrays of zero-size elements.
+ (ada_val_print_array): New function, extracted out from
+ ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
+ handle empty arrays and arrays of zero-size elements.
+ (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
+ code by call to ada_val_print_array.
+ (ada_value_print): Remove handling of null array. The handling
+ was incomplete and is now better handled by ada_val_print_array.
+
+2008-05-23 Markus Deuling <deuling@de.ibm.com>
+
+ * annotate.c (annotate_source, annotate_frame_begin): Replace
+ deprecated_print_address_numeric with paddress.
+ * cli/cli-cmds.c (list_command, edit_command): Likewise.
+ * tui/tui-stack.c (tui_make_status_line): Likewise.
+
+ * defs.h (deprecated_print_address_numeric): Remove.
+ * printcmd.c (deprecated_print_address_numeric): Remove.
+ * maint.c (maint_print_section_info): Fix comment.
+
+2008-05-23 Markus Deuling <deuling@de.ibm.com>
+
+ * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
+ print_binary_chars, print_char_chars): Add byte_order parameter and
+ replace gdbarch_byte_order.
+ (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
+ expressions and remove them. Remove unused TWO_TO_FOURTH.
+ (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
+ endianness. Update call to print_hex_chars.
+ * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
+ print_binary_chars, print_char_chars): Add byte_order parameter.
+ * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
+ get at the endianness. Update print_*_char calls to use byte_order.
+
+2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * symtab.h (struct symbol): Make "aux_value" member a void pointer
+ instead of a union.
+ (SYMBOL_LOCATION_BATON): Update.
+
+2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * symtab.h (enum address_class): Remove LOC_BASEREG and
+ LOC_BASEREG_ARG.
+ (struct symbol): Remove "basereg" member of "aux_value" union.
+ (SYMBOL_BASEREG): Remove.
+
+ * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
+ or LOC_BASEREG_ARG.
+ * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
+ (ada_add_block_symbols): Likewise.
+ * ax-gdb.c (gen_var_ref): Likewise.
+ * buildsym.c (finish_block): Likewise.
+ * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
+ * m2-exp.y (yylex): Likewise.
+ * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
+ * printcmd.c (address_info): Likewise.
+ * stack.c (print_frame_args, print_block_frame_locals): Likewise.
+ (print_frame_arg_vars): Likewise.
+ * symmisc.c (print_symbol): Likewise.
+ * symtab.c (lookup_block_symbol): Likewise.
+ * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
+ (scope_info): Likewise.
+
+2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
+
+ * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
+ * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
+ (ada_add_block_symbols): Likewise.
+ * ax-gdb.c (gen_var_ref): Likewise.
+ * buildsyms.c (finish_block): Likewise.
+ * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
+ * m2-exp.y (yylex): Likewise.
+ * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
+ * printcmd.c (address_info): Likewise.
+ * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
+ * symmisc.c (print_symbol, print_partial_symbols): Likewise.
+ * symtab.c (lookup_block_symbol): Likewise.
+ * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
+ (scope_info): Likewise.
+
+2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * symtab.h (enum address_class): Remove LOC_INDIRECT and
+ LOC_HP_THREAD_LOCAL_STATIC.
+
+ * findvar.c (symbol_read_needs_frame, read_var_value): Do not
+ handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
+ (read_var_value): Likewise.
+ * buildsym.c (finish_block): Likewise.
+ * objfiles.c (objfile_relocate): Likewise.
+ * printcmd.c (address_info): Likewise.
+ * symmisc.c (print_symbol, print_partial_symbols): Likewise.
+ * tracepoint.c (scope_info): Likewise.
+
+2008-05-21 Markus Deuling <deuling@de.ibm.com>
+ Maxim Grigoriev <maxim2405@gmail.com>
+
+ * xtensa-tdep.c (xtensa_read_register): Remove.
+ (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
+ argument litbase to call0_frame_cache().
+ (call0_track_op, call0_analyze_prologue)
+ (call0_frame_cache): Use extra argument litbase.
+
+2008-05-21 Joel Brobecker <brobecker@adacore.com>
+
+ * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
+
+2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
+
+2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * alpha-mdebug-tdep.c: Include "trad-frame.h".
+ (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
+ struct trad_frame_saved_reg *.
+ (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
+ trad_frame_alloc_saved_regs. Update accesses. Record previous
+ value of SP as being vfp.
+ (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
+ * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
+
+2008-05-21 Markus Deuling <deuling@de.ibm.com>
+
+ * score-tdep.c (score_print_insn): Get the current endianess from
+ disassemble_info instead of gdbarch_byte_order.
+
+2008-05-21 Pedro Alves <pedro@codesourcery.com>
+
+ * frame.c (get_prev_frame_1): Build frame id before setting
+ this_frame->prev_p, not after.
+
+2008-05-21 Nick Roberts <nickrob@snap.net.nz>
+
+ * annotate.c (annotate_new_thread): New function for new-thread
+ annotation.
+ * annotate.h: (annotate_new_thread): New extern.
+ * thread.c (add_thread_with_info): Use it.
+ * Makefile.in (thread.o): Add dependency on annotate.h.
+
+2008-05-20 Joel Brobecker <brobecker@adacore.com>
+
+ * win32-nat.c (win32_wait): Block the control-c event while
+ waiting for a debug event.
+
+2008-05-19 Pedro Alves <pedro@codesourcery.com>
+
+ * symtab.h (lookup_symbol_in_language): Update comment.
+ * symtab.c (lookup_symbol_aux_block): Update comment.
+ * ada-lang.c (ada_lookup_symbol_list): Update comment.
+
+2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
+ (lookup_symbol): Likewise.
+ * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
+ (lookup_symbol): Likewise.
+ (search_symbols): Update.
+
+ * linespec.c (find_methods, collect_methods): Update.
+ (add_matching_methods, add_constructors): Update.
+ (decode_compound, decode_dollar, decode_variable): Update.
+ (lookup_prefix_sym): Update.
+
+ (symbol_found): Remove SYM_SYMTAB parameter.
+ Use SYMBOL_SYMTAB (sym) instead.
+
+ * gdbtypes.c (lookup_typename): Update.
+ (lookup_struct, lookup_union, lookup_enum): Update.
+ (lookup_template_type): Update.
+ (check_typedef): Update.
+ * language.c (lang_bool_type): Update.
+ * mdebugread.c (parse_procedure): Update.
+ * mi/mi-cmd-stack.c (list_args_or_locals): Update.
+ * parse.c (write_dollar_variable): Update.
+ * printcmd.c (address_info): Update.
+ * source.c (select_source_symtab): Update.
+ * stack.c (print_frame_args, print_frame_arg_vars): Update.
+ * valops.c (find_function_in_inferior): Update.
+ (value_struct_elt_for_reference): Update.
+ * value.c (value_static_field, value_fn_field): Update.
+
+ * alpha-mdebug-tdep.c (find_proc_desc): Update.
+ * arm-tdep.c (arm_skip_prologue): Update.
+ * mt-tdep.c (mt_skip_prologue): Update.
+ * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
+
+ * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
+ * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
+ (add_defn_to_vec): Likewise.
+ (ada_add_block_symbols): Likewise.
+ (lookup_cached_symbol, cache_symbol): Likewise.
+ (standard_lookup): Update.
+ (ada_lookup_symbol_list): Update.
+
+ * c-valprint.c (c_val_print): Update.
+ * cp-support.c (cp_lookup_rtti_type): Update.
+ * jv-lang.c (java_lookup_class, get_java_object_type): Update.
+ * objc-lang.c (lookup_struct_typedef, find_imps): Update.
+ * p-valprint.c (pascal_val_print): Update.
+ * scm-lang.c (scm_lookup_name): Update.
+
+ * c-exp.y: Update.
+ * f-exp.y: Update.
+ * jv-exp.y: Update.
+ * m2-exp.y: Update.
+ * objc-exp.y: Update.
+ * p-exp.y: Update.
+
+2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * language.h (struct language_defn): Remove SYMTAB parameter from
+ la_lookup_symbol_nonlocal callback function pointer.
+
+ * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
+ (ada_lookup_encoded_symbol): Likewise.
+ * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
+ Always call fixup_symbol_section.
+ (ada_lookup_symbol): Remove SYMTAB parameter.
+ (ada_lookup_symbol_nonlocal): Likewise.
+ * ada-exp.y (write_object_renaming): Update.
+ (find_primitive_type): Likewise.
+
+ * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
+ (cp_lookup_symbol_namespace): Likewise.
+ * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
+ (lookup_symbol_file): Likewise.
+ (lookup_possible_namespace_symbol): Likewise.
+ (cp_lookup_symbol_nonlocal): Likewise.
+ (cp_lookup_symbol_namespace): Likewise.
+ (cp_lookup_nested_type): Update.
+
+ * scm-valprint.c (scm_inferior_print): Update.
+ * valops.c (value_maybe_namespace_elt): Update.
+
+ * solist.h (struct target_so_ops): Remove SYMTAB parameter from
+ lookup_lib_global_symbol callback function pointer.
+ (solib_global_lookup): Remove SYMTAB parameter.
+ * solib.c (solib_global_lookup): Remove SYMTAB parameter.
+ * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
+
+ * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
+ (lookup_symbol_static): Likewise.
+ (lookup_symbol_global): Likewise.
+ (lookup_symbol_aux_block): Likewise.
+ (lookup_global_symbol_from_objfile): Likewise.
+ * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
+ (lookup_symbol_aux_local): Likewise.
+ (lookup_symbol_aux_block): Likewise.
+ (lookup_symbol_aux_symtabs): Likewise.
+ (lookup_symbol_aux_psymtabs): Likewise.
+ (lookup_global_symbol_from_objfile): Likewise.
+ (basic_lookup_symbol_nonlocal): Likewise.
+ (lookup_symbol_static): Likewise.
+ (lookup_symbol_global): Likewise.
+
+ (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
+
+2008-05-17 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (init_extended_remote_ops): Fix typo.
+
+2008-05-16 Pedro Alves <pedro@codesourcery.com>
+
+ * NEWS: Mention new DICOS x86 target configuration.
+
+2008-05-16 Pedro Alves <pedro@codesourcery.com>
+ Ulrich Weigand <uweigand@de.ibm.com>
+
+ * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
+ * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
+
+ * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
+ use it instead of ginfo->value.address. Look up minimal symbol by
+ address and name. Assume OBJFILE is non-NULL.
+ (fixup_symbol_section): Ensure we always have an objfile to look
+ into. Extract and pass to fixup_section the symbol's address that
+ will match the minimal symbol's address.
+ (fixup_psymbol_section): Likewise.
+
+ (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
+ overlays and the addrmap returned the wrong section.
+
+ * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
+ calling fixup_symbol_section.
+
+2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * minsyms.c: Include "target.h".
+ (find_solib_trampoline_target): Handle minimal symbols pointing
+ to function descriptors as well.
+ * Makefile.in (minsyms.o): Update dependencies.
+
+ * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
+ (ppc64_standard_linkage1): ... this. Fix optional instructions.
+ (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
+ (PPC64_STANDARD_LINKAGE1_LEN): ... this.
+ (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
+ (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
+ (ppc64_standard_linkage_target): Rename to ...
+ (ppc64_standard_linkage1_target): ... this.
+ (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
+ (ppc64_skip_trampoline_code): Support three variants of standard
+ linkage stubs. Call find_solib_trampoline_target to handle
+ glink stubs.
+
+2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
+ ppc64_sysv_abi_adjust_breakpoint_address.
+ * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
+ * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
+
+2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
+ (ppc_linux_init_abi): Install find_solib_trampoline_target instead
+ of ppc_linux_skip_trampoline_code.
+
+2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdbarch.sh: Delete dwarf_reg_to_regnum.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
+ hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
+ s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
+
+2008-05-15 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-nat.c (trap_ptid): Delete.
+ (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
+ Adjust.
+ * linux-thread-db.c (thread_db_wait): Adjust.
+
+2008-05-15 Joel Brobecker <brobecker@adacore.com>
+
+ * linespec.c (decode_line_1): Fix a couple of comments.
+
+2008-05-15 Alan Modra <amodra@bigpond.net.au>
+
+ * dbxread.c: Formatting.
+ (INTERNALIZE_SYMBOL): Init n_other.
+ (set_namestring): Take pointer to nlist arg rather than struct
+ copy. Update all callers.
+
+2008-05-15 Andreas Schwab <schwab@suse.de>
+
+ * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
+ (dwarf2read.o): Add $(addrmap_h).
+
+2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
+ (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
+ to handle ppc32 PLT entries.
+ (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
+ only on ppc64.
+
+2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
+ * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
+ lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
+ (lookup_minimal_symbol_by_pc_section): Use
+ lookup_minimal_symbol_by_pc_section_1.
+ (lookup_solib_trampoline_symbol_by_pc): Likewise.
+
+2008-05-13 Joel Brobecker <brobecker@adacore.com>
+
+ * findcmd.c: Add #include "gdb_stdint.h".
+ * Makefile.in (findcmd.o): Update dependencies.
+
+2008-05-11 David S. Miller <davem@davemloft.net>
+
+ * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
+ long double size override, Linux does use 128-bit now.
+
+ * sparc-linux-tdep.c (PSR_SYSCALL): Define.
+ (sparc_linux_write_pc): New function.
+ (sparc32_linux_init_abi): Register it.
+ * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
+ (sparc64_linux_write_pc): New function.
+ (sparc64_linux_init_abi): Register it.
+
+ * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
+ dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
+
+2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
+ and info.tdep_info before calling gdbarch_init_osabi.
+
+2008-05-09 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
+ the type of the right hand side of the assignment to the type
+ of the left hand side if the left hand side is a convenience
+ variable.
+
+2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * NEWS: Mention gdbserver bi-arch capability.
+
+2008-05-09 Doug Evans <dje@google.com>
+
+ New "find" command.
+ * NEWS: Document find command and qSearch:memory packet.
+ * Makefile.in (SFILES): Add findcmd.c.
+ (COMMON_OBJS): Add findcmd.o.
+ (findcmd.o): New rule.
+ * findcmd.c: New file.
+ * target.h (target_ops): New member to_search_memory.
+ (simple_search_memory): Declare.
+ (target_search_memory): Declare.
+ * target.c (simple_search_memory): New fn.
+ (target_search_memory): New fn.
+ * remote.c (PACKET_qSearch_memory): New packet kind.
+ (remote_search_memory): New fn.
+ (init_remote_ops): Init to_search_memory.
+ (init_extended_remote_ops): Ditto.
+ (_initialize_remote): Add qSearch:memory packet config command.
+
+2008-05-09 Eli Zaretskii <eliz@gnu.org>
+
+ * thread.c (_initialize_thread): Don't use commas and periods in
+ first line of doc string of "set/show print thread-events".
+
+2008-05-08 Joel Brobecker <brobecker@adacore.com>
+
+ * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
+ Update for unwinder changes.
+
+2008-05-08 Joel Brobecker <brobecker@adacore.com>
+
+ * frame.c (get_frame_base_address, get_frame_locals_address)
+ (get_frame_args_address): Pass the correct frame when calling
+ frame_base_find_by_frame.
+
+2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * remote.c (extended_remote_attach_1): Call target_find_description.
+
+2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote.c (extended_remote_create_inferior_1): Clean up
+ before marking the target running.
+
+2008-05-08 Joel Brobecker <brobecker@adacore.com>
+
+ * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
+ changes.
+
+2008-05-07 Joel Brobecker <brobecker@adacore.com>
+
+ * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
+ sparc64-sol2-tdep.c: Update for unwinder changes.
+
+2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * cp-support.c (mangled_name_to_comp): Initialize storage.
+ (unqualified_name_from_comp): Likewise.
+
+2008-05-07 Jie Zhang <jie.zhang@analog.com>
+
+ * remote.c (remote_insert_breakpoint): Call get_remote_state
+ after gdbarch_breakpoint_from_pc is called.
+ (remote_insert_hw_breakpoint): Likewise.
+
+2008-05-06 Joel Brobecker <brobecker@adacore.com>
+
+ * valprint.c (val_print): Add new language parameter and use it
+ instead of using the current_language. Update calls to val_print
+ throughout.
+ (common_val_print): Add new langauge parameter and pass it to
+ val_print.
+ * value.h (struct language_defn): Add opaque declaration.
+ (val_print, common_val_print): Update declarations.
+ * stack.c (print_frame_args): Update call to common_val_print
+ using the appropriate language.
+ * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
+ * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
+ mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
+ scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
+ #include "language.h" if necessary.
+ Update calls to val_print and common_val_print.
+ * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
+ Update dependencies.
+
+2008-05-06 Joel Brobecker <brobecker@adacore.com>
+
+ * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
+ pointing inside a non-executable section as function descriptors.
+
+2008-05-06 Pedro Alves <pedro@codesourcery.com>
+
+ * inf-loop.c (inferior_event_handler): Run all continuations and
+ print any language change before running the breakpoint commands.
+
+2008-05-06 Joel Brobecker <brobecker@adacore.com>
+
+ * frame-unwind.c (frame_unwind_got_bytes): New function.
+ * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
+ * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
+ for unwinder changes.
+
+2008-05-05 Doug Evans <dje@google.com>
+
+ * NEWS: Mention new /m modifier for disassemble command.
+ * cli/cli-cmds.c (print_disassembly): New function.
+ (disassemble_current_function): New function
+ (disassemble_command): Recognize /m modifier, print mixed
+ source+assembly.
+ (init_cli_cmds): Update disassemble help text.
+
+2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
+
+ * xtensa-tdep.c: Update for unwinder changes.
+
+2008-05-05 Andreas Schwab <schwab@suse.de>
+
+ Update m68k port for unwinder changes.
+ * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
+ (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
+ (m68k_frame_unwind): Use default_frame_sniffer.
+ (m68k_frame_sniffer): Remove.
+ (m68k_frame_base_address): Expect this_frame.
+ (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
+ this_frame.
+ (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
+ dwarf2_append_unwinders, and frame_unwind_append_unwinder.
+ * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
+ parameter instead of pc value.
+ (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
+ Expect this_frame.
+ (m68k_linux_sigtramp_frame_this_id)
+ (m68k_linux_sigtramp_frame_prev_register)
+ (m68k_linux_sigtramp_frame_sniffer): Update signature.
+ (m68k_linux_sigtramp_frame_unwind): Use
+ m68k_linux_sigtramp_frame_sniffer.
+ (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
+
+ * m68klinux-nat.c (store_register): Fix typo.
+
+2008-05-05 Pedro Alves <pedro@codesourcery.com>
+
+ * infcmd.c (step_1): Put thread id on the stack to avoid possible
+ NULL dereferencing.
+
+2008-05-05 Luis Machado <luisgpm@br.ibm.com>
+
+ * symfile.c (reread_symbols): Update objfile's entry point.
+
+2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
+ Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c: Update throughout to use symbol_matches_domain
+ instead of matching the symbol domain explictly.
+ * dwarf2read.c (add_partial_symbol): Do not add new psym for
+ STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
+ class as typedefs. See lookup_partial_symbol function.
+ (new_symbol): Similar to add_partial_symbol, do not create
+ symbol for the typedef. See lookup_block_symbol.
+ * symtab.c (symbol_matches_domain): New function, takes care
+ of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
+ (lookup_partial_symbol): Use symbol_matches_domain to see if the
+ found psym domain matches the given domain.
+ (lookup_block_symbol): Likewise.
+
+2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
+
+ * top.c (command_line_handler_continuation): Remove.
+ (execute_command): Do not install the above.
+
+2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
+
+ * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
+ and catch all exceptions from it.
+ * top.c (command_line_handler_continuation): Don't
+ call bpstat_do_action here.
+
+2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * dwarf2read.c (struct dwarf2_cu): Add type_hash.
+ (struct die_info): Remove type.
+ (read_type_die, read_typedef, read_base_type, read_subrange_type)
+ (read_structure_type, read_enumeration_type, read_array_type)
+ (read_tag_pointer_type, read_tag_ptr_to_member_type)
+ (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
+ (read_tag_string_type, read_subroutine_type, read_set_type)
+ (read_unspecified_type): Delete prototypes. Remove check for
+ already-loaded type. Return the new type.
+ (set_die_type): Return the new type.
+ (reset_die_and_siblings_types): Delete.
+ (load_comp_unit, load_full_comp_unit): Set type_hash.
+ (process_queue): Remove call to reset_die_and_siblings_types.
+ (process_die): Do not read most types here. Use read_type_die
+ for others.
+ (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
+ (quirk_gcc_member_function_pointer): Return the new type.
+ (process_structure_scope, process_enumeration_scope): Use
+ get_die_type and read the DIE's type.
+ (read_full_die): Do not initialize die->type.
+ (tag_type_to_type): Use read_type_die.
+ (read_type_die): Check for already defined types. Return the
+ type.
+ (determine_prefix): Use get_die_type.
+ (set_die_type): Return the type.
+ (get_die_type): Take a CU argument. Check for no type_hash.
+
+2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
+ locals.
+
+2008-05-04 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
+ and bp_longjmp_resume breakpoints.
+ (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
+ meaningful.
+ (create_longjmp_breakpoint): Don't create bp_longjmp_resume
+ breakpoints. Create bp_longjmp breakpoints as momentary
+ breakpoints.
+ (enable_longjmp_breakpoint): Delete.
+ (set_longjmp_breakpoint): New.
+ (disable_longjmp_breakpoint): Delete.
+ (delete_longjmp_breakpoint): New.
+ (set_longjmp_resume_breakpoint): Delete.
+ (set_momentary_breakpoint_at_pc): New.
+ (breakpoint_re_set_one): Don't delete bp_longjmp and
+ bp_longjmp_resume breakpoints.
+ (breakpoint_re_set): Don't create longjmp and longjmp-resume
+ breakpoints.
+
+ * infrun.c (step_resume_breakpoint): Add comment.
+ (struct execution_control_state): Delete handling_longjmp member.
+ (init_execution_control_state). Don't clear handling_longjmp.
+ (context_switch): Don't context switch handling_longjmp.
+ (handle_inferior_event): If handling a bp_longjmp breakpoint,
+ create a bp_longjmp_resume breakpoint, and set it as current
+ step_resume_breakpoint, then step over the longjmp breakpoint. If
+ handling a bp_longjmp_resume breakpoint, don't delete the longjmp
+ breakpoint, delete the longjmp-resume breakpoint, and stop
+ stepping.
+ (currently_stepping): Remove handling_longjmp from expression.
+ (insert_step_resume_breakpoint_at_sal): Update comment.
+ (insert_longjmp_resume_breakpoint): New.
+
+ * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
+ (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
+ declarations.
+ (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
+ (set_longjmp_resume_breakpoint): Delete declaration.
+
+ * gdbthread.h (save_infrun_state): Remove handling_longjmp
+ parameter.
+ (load_infrun_state): Delete *handling_longjmp parameter.
+ * thread.c (save_infrun_state): Remove handling_longjmp parameter.
+ Update body.
+ (load_infrun_state): Delete *handling_longjmp parameter. Update
+ body.
+
+ * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
+ (delete_longjmp_breakpoint_cleanup): New.
+ (step_1): Call set_longjmp_breakpoint instead of
+ enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
+ instead of disable_longjmp_breakpoint_cleanup when making cleanup.
+ (step_1_continuation): Pass thread id in the continuation args to
+ step_once.
+ (step_once): Add thread parameter. Pass thread id the the
+ continuation.
+
+2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Set CU BASE_ADDRESS already from partial DIEs.
+ * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
+ BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
+ DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
+ from these variables if it was still unset.
+
+ * Makefile.in: Update dependencies.
+ * dwarf2read.c: Include "addrmap.h"
+ (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
+ (dwarf2_ranges_read): New prototype.
+ (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
+ Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
+ HAS_RANGES_OFFSET, otherwise add there the contiguous range.
+ (dwarf2_ranges_read): New parameter RANGES_PST, update the function
+ comment for it. Add the found ranges to RANGES_PST. New variable
+ BASEADDR, initialize it the common way.
+ (dwarf2_get_pc_bounds): Update the caller for the new parameter.
+ (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
+ HAS_RANGES_OFFSET for the later processing.
+ * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
+ * symtab.c: Include "addrmap.h"
+ (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
+ Move the psymtab locator into ...
+ (find_pc_sect_psymtab_closer): ... a new function.
+
+2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * arch-utils.c (gdbarch_update_p): Use default values for
+ info.abfd and info.target_desc if they are NULL.
+ (gdbarch_from_bfd): Remove assertion.
+ (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
+ using the current target description.
+ (gdbarch_info_fill): Do not use default values for info->abfd
+ and info->target_desc.
+
+2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
+
+2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * inferior.h (read_pc_pid, write_pc_pid): Remove.
+ * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
+
+ * regcache.c (read_pc_pid): Remove, replace by ...
+ (regcache_read_pc): ... this function.
+ (write_pc_pid): Remove, replace by ...
+ (regcache_write_pc): ... this function.
+ (read_pc, write_pc): Update.
+
+ * infrun.c (displaced_step_prepare): Replace read_pc_pid and
+ write_pc_pid by regcache_read_pc and regcache_write_pc.
+ (displaced_step_fixup): Likewise.
+ (resume): Likewise. Use regcache arch instead of current_gdbarch.
+ (prepare_to_proceed): Likewise.
+ (proceed): Likewise.
+ (adjust_pc_after_break): Likewise.
+ (handle_inferior_event): Likewise.
+
+ * linux-nat.c (cancel_breakpoint): Likewise.
+ * linux-thread-db.c (check_event): Likewise.
+ * aix-thread.c (aix_thread_wait): Likewise.
+ * tracepoint.c (trace_dump_command): Likewise.
+
+2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
+ SYMBOL_LOCATION_BATON.
+
+2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
+
+ * target.h (struct target_ops): New field to_auxv_parse.
+ * auxv.c (default_auxv_parse): New, renamed from previous
+ target_auxv_parse.
+ (target_auxv_parse): Try to call target method. Fallback to
+ default_auxv_parse if not found.
+ * procfs.c (procfs_auxv_parse): New.
+ (init_procfs_ops): On Solaris, in 64-bit mode, install
+ procfs_auxv_parse.
+
+2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
+
+ * symfile.c (add_symbol_file_command): Use paddress rather than
+ hex_string to print the address.
+
+2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
+ return the null frame ID to terminate the backtrace.
+
+2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * rs6000-tdep.c: Do not include "rs6000-tdep.h".
+ (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
+ (SIG_FRAME_PC_OFFSET): Likewise.
+ (SIG_FRAME_LR_OFFSET): Likewise.
+ (SIG_FRAME_FP_OFFSET): Likewise.
+ (rs6000_push_dummy_call): Likewise.
+ (rs6000_return_value): Likewise.
+ (rs6000_convert_from_func_ptr_addr): Likewise.
+ (branch_dest, rs6000_software_single_step): Likewise.
+ (deal_with_atomic_sequence): Rename to ...
+ (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
+ Do not call branch_dest; inline required parts of that function.
+ (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
+ with SYMBOL_LINKAGE_NAME.
+ (struct reg, regsize): Delete.
+ (read_memory_addr): Delete; inline into callers.
+ (rs6000_skip_prologue): Move after skip_prologue.
+ (skip_prologue): Remove prototype.
+ (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
+ initialization as if this variable were true. Do not install
+ ppc64_sysv_abi_adjust_breakpoint_address.
+
+ * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
+ "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
+ and "breakpoint.h".
+ (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
+ (SIG_FRAME_PC_OFFSET): Likewise.
+ (SIG_FRAME_LR_OFFSET): Likewise.
+ (SIG_FRAME_FP_OFFSET): Likewise.
+ (rs6000_push_dummy_call): Likewise.
+ (rs6000_return_value): Likewise.
+ (rs6000_convert_from_func_ptr_addr): Likewise.
+ (branch_dest, rs6000_software_single_step): Likewise. Replace
+ tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
+ (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
+ rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
+ Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
+ Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
+
+ * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
+ (AIX_TEXT_SEGMENT_BASE): New macro.
+ * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
+ by AIX_TEXT_SEGMENT_BASE.
+
+ * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
+ (struct gdbarch_tdep): Remove text_segment_base member.
+ * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
+ ppc64_sysv_abi_adjust_breakpoint_address.
+
+ * Makefile.in (rs6000-tdep.o): Update dependencies.
+ (rs6000-aix-tdep.o): Likewise.
+
+2008-05-03 Luis Machado <luisgpm@br.ibm.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
+ * doublest.c (convert_typed_floating): Fix typo in comment.
+ * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
+ * frame-unwind.h (frame_sniffer_ftype): Likewise.
+ * frame.c (frame_unwind_address_in_block): Likewise.
+ * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
+ * symtab.h (struct symbol): Likewise.
+ * tramp-frame.h (struct trad_frame_cache): Likewise.
+ * value.c (allocate_repeat_value): Likewise.
+
+2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * infrun.c (handle_inferior_event): Do not insert breakpoints at
+ TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
+
+2008-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * parse.c (parse_exp_in_context): Don't override
+ expression_context_pc if get_selected_block returned a valid
+ block.
+
+2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
+ * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
+ * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
+ Delete.
+ * c-typeprint.c (c_type_print_base): Delete handling of template
+ instantiations.
+ * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
+ (METHOD_PTR_TO_VOFFSET): Delete.
+ * defs.h (QUIT_FIXME): Delete.
+ * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
+ (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
+ * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
+ ninstantiations, and instantiations.
+ (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
+ (TYPE_FN_FIELD_INLINED): Delete.
+ * srec.h (SREC_BINARY): Delete.
+ * symtab.c (symbol_init_demangled_name): Delete.
+ * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
+ (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
+ (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
+ (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
+ (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
+ (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
+ * target.h (enum thread_control_capabilities): Delete tc_switch.
+ (target_can_switch_threads): Delete.
+
+2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (objfiles.o): Update.
+ * exec.c (exec_set_section_address): Support p->addr != 0.
+ * objfiles.c (objfile_relocate): Update exec_ops section
+ addresses.
+ * symfile.c (place_section): Move exec_set_section_address call...
+ (default_symfile_offsets): ...to here.
+
+2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * Makefile.in (ppc_linux_tdep_h): New macro.
+ (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
+ (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
+ (powerpc_e500l_c): Likewise.
+ (ppc-linux-nat.o): Update dependencies.
+ (ppc-linux-tdep.o): Update dependencies.
+ (rs6000-tdep.o): Update dependencies.
+
+ * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
+ (ppc_linux_svr4_fetch_link_map_offsets): Remove.
+ (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
+ (ppc_supply_reg, ppc_collect_reg): Add prototypes.
+ (tdesc_powerpc_e500): Remove.
+
+ * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
+ and "features/rs6000/powerpc-altivec64.c".
+ (ppc_supply_reg, ppc_collect_reg): Make global.
+ (variants): Use tdesc_powerpc_32 for "powerpc" and
+ tdesc_powerpc_altivec64 for "powerpc64".
+ (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
+
+ * ppc-linux-tdep.h: New file.
+
+ * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
+ Include "features/rs6000/powerpc-32l.c".
+ Include "features/rs6000/powerpc-altivec32l.c".
+ Include "features/rs6000/powerpc-64l.c".
+ Include "features/rs6000/powerpc-altivec64l.c".
+ Include "features/rs6000/powerpc-e500l.c".
+ (ppc_linux_supply_gregset): New function.
+ (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
+ (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
+ (ppc64_linux_gregset): Likewise.
+ (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
+ (ppc_linux_trap_reg_p): New function.
+ (ppc_linux_write_pc): New function.
+ (ppc_linux_core_read_description): New function.
+ (ppc_linux_init_abi): Install ppc_linux_write_pc and
+ ppc_linux_core_read_description. Install orig_r3 and trap
+ registers if present in the target description.
+ (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
+
+ * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
+ (PT_ORIG_R3, PT_TRAP): Define if necessary.
+ (ppc_register_u_addr): Handle orig_r3 and trap registers.
+ (fetch_ppc_registers): Likewise.
+ (store_ppc_registers): Likewise.
+ (store_register): Likewise.
+ (ppc_linux_read_description): Check whether AltiVec is supported.
+ Check whether inferior is 32-bit or 64-bit. Return the appropriate
+ Linux target description.
+
+ * features/Makefile (WHICH): Use rs6000/powerpc-32l and
+ rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
+ Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
+ of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
+ rs6000/powerpc-e500. Update -expedite variables accordingly.
+
+ * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
+ * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
+ * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
+ * features/rs6000/powerpc-e500.c: Regenerate.
+ * features/rs6000/powerpc-32.c: Regenerate.
+ * features/rs6000/powerpc-64.c: Regenerate.
+
+ * features/rs6000/power-linux.xml: New file.
+ * features/rs6000/power64-linux.xml: New file.
+ * features/rs6000/powerpc-32l.xml: New file.
+ * features/rs6000/powerpc-altivec32l.xml: New file.
+ * features/rs6000/powerpc-64l.xml: New file.
+ * features/rs6000/powerpc-altivec64l.xml: New file.
+ * features/rs6000/powerpc-e500l.xml: New file.
+ * features/rs6000/powerpc-32l.c: New (generated) file.
+ * features/rs6000/powerpc-altivec32l.c: New (generated) file.
+ * features/rs6000/powerpc-64l.c: New (generated) file.
+ * features/rs6000/powerpc-altivec64l.c: New (generated) file.
+ * features/rs6000/powerpc-e500l.xml: New (generated) file.
+
+ * regformats/reg-ppc.dat: Remove.
+ * regformats/reg-ppc64.dat: Remove.
+ * regformats/rs6000/powerpc-32.dat: Remove.
+ * regformats/rs6000/powerpc-64.dat: Remove.
+ * regformats/rs6000/powerpc-e500.dat: Remove.
+ * regformats/rs6000/powerpc-32l.dat: New (generated) file.
+ * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
+ * regformats/rs6000/powerpc-64l.dat: New (generated) file.
+ * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
+ * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
+
+2008-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * thread.c (delete_thread): Call observer_notify_thread_exit.
+ * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
+ thread_exit observer.
+ (mi_thread_exit): New.
+
+2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * breakpoint.c (create_exception_catchpoint): Remove prototype
+ for already deleted function.
+ * breakpoint.h (ep_is_exception_catchpoint): Likewise.
+ * frame.h (show_stack_frame): Remove prototype.
+ * stack.c (show_stack_frame): Remove empty, unused function.
+ * source.c (symtab_to_fullname, print_source_lines): Small fix
+ in comment.
+ * value.c (show_values): Update comments to mention "show values"
+ command instead of "info history".
+
+2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linespec.c: Include "target.h".
+ (minsym_found): Handle minimal symbols pointing to function
+ descriptors. Use find_function_start_pc.
+ * minsyms.c (msymbol_objfile): New function.
+ * parse.c (write_exp_msymbol): Handle minimal symbols pointing
+ to function descriptors.
+ * symtab.c (fixup_section): Only use minimal symbol at the same
+ address to determine section of a symbol.
+ (find_function_start_pc): New function.
+ (find_function_start_sal): Use it.
+ * symtab.h (msymbol_objfile): Add prototype.
+ (find_function_start_pc): Likewise.
+ * value.c: Include "objfiles.h".
+ (value_fn_field): Handle minimal symbols pointing to function
+ descriptors.
+ * Makefile.in (linespec.o): Update dependencies.
+ (value.o): Likewise.
+
+2008-05-02 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (unwrap_value): Handle the case where the "F" field
+ inside a PAD type is a bitfield.
+
+2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
+ TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
+ Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
+ Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
+ Allow typedefs when checking for function pointer arguments.
+ Right-align small structs passed on the stack.
+ (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
+ TYPE_CODE_CHAR the same as TYPE_CODE_INT.
+ Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
+
+2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (arm-tdep.o): Update.
+ * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
+ (struct arm_per_objfile, arm_compare_mapping_symbols): New.
+ (arm_pc_is_thumb): Use mapping symbols.
+ (arm_objfile_data_cleanup, arm_record_special_symbol): New.
+ (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
+ (_initialize_arm_tdep): Initialize arm_objfile_data_key.
+ * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
+ * gdbarch.sh: Add record_special_symbol.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * objfiles.c (struct objfile_data): Add cleanup member.
+ (register_objfile_data_with_cleanup): New function, from
+ register_objfile_data.
+ (register_objfile_data): Use it.
+ (objfile_free_data): Call clear_objfile_data.
+ (clear_objfile_data): Call cleanup functions.
+ * objfiles.h (register_objfile_data_with_cleanup): Declare.
+
+2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * objfiles.c (init_entry_point_info): Handle shared libraries.
+
+2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
+ lowest_pc.
+
+2008-05-02 Jim Blandy <jimb@codesourcery.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ Implement displaced stepping.
+
+ * gdbarch.sh (max_insn_length): New 'variable'.
+ (displaced_step_copy, displaced_step_fixup)
+ (displaced_step_free_closure, displaced_step_location): New
+ functions.
+ (struct displaced_step_closure): Add forward declaration.
+ * gdbarch.c, gdbarch.h: Regenerated.
+
+ * arch-utils.c: #include "objfiles.h".
+ (simple_displaced_step_copy_insn)
+ (simple_displaced_step_free_closure)
+ (displaced_step_at_entry_point): New functions.
+ * arch-utils.h (simple_displaced_step_copy_insn)
+ (simple_displaced_step_free_closure)
+ (displaced_step_at_entry_point): New prototypes.
+
+ * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
+ (I386_MAX_MATCHED_INSN_LEN): ... this.
+ (i386_absolute_jmp_p, i386_absolute_call_p)
+ (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
+ (i386_displaced_step_fixup): New functions.
+ (struct i386_insn, i386_match_insn): Update.
+ (i386_gdbarch_init): Set gdbarch_max_insn_length.
+ * i386-tdep.h (I386_MAX_INSN_LEN): New.
+ (i386_displaced_step_fixup): New prototype.
+ * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
+ Register gdbarch_displaced_step_copy,
+ gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
+ and gdbarch_displaced_step_location functions.
+
+ * infrun.c (debug_displaced): New variable.
+ (show_debug_displaced): New function.
+ (struct displaced_step_request): New struct.
+ (displaced_step_request_queue, displaced_step_ptid)
+ (displaced_step_gdbarch, displaced_step_closure)
+ (displaced_step_original, displaced_step_copy)
+ (displaced_step_saved_copy, can_use_displaced_stepping): New
+ variables.
+ (show_can_use_displaced_stepping, use_displaced_stepping)
+ (displaced_step_clear, cleanup_displaced_step_closure)
+ (displaced_step_dump_bytes, displaced_step_prepare)
+ (displaced_step_clear_cleanup, write_memory_ptid)
+ (displaced_step_fixup): New functions.
+ (resume): Call displaced_step_prepare.
+ (proceed): Call read_pc once, and remember the value. If using
+ displaced stepping, don't remove breakpoints.
+ (handle_inferior_event): Call displaced_step_fixup. Add some
+ debugging output. When we try to step over a breakpoint, but get
+ a signal to deliver to the thread instead, ensure the step-resume
+ breakpoint is actually inserted. If a thread hop is needed, and
+ displaced stepping is enabled, don't remove breakpoints.
+ (init_wait_for_inferior): Call displaced_step_clear.
+ (_initialize_infrun): Add "set debug displaced" command. Add
+ "maint set can-use-displaced-stepping" command. Clear
+ displaced_step_ptid.
+ * inferior.h (debug_displaced): Declare variable.
+ (displaced_step_dump_bytes): Declare function.
+
+ * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
+ dependencies.
+
+2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
+ (arm_force_mode_string, arm_show_fallback_mode)
+ (arm_show_force_mode): New.
+ (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
+ arm_frame_is_thumb.
+ (_initialize_arm_tdep): Add "set arm fallback-mode"
+ and "set arm force-mode".
+ * NEWS: Document new commands.
+
+2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
+
+ * main.h (batch_silent): Declare.
+ * event-top.c: Include main.h.
+ (gdb_setup_readline): Remove extern batch_silent declaration.
+ * infrun.c (normal_stop): Don't print source location when running in
+ --batch-silent mode.
+ * Makefile.in (event-top.o): Add main.h dependency.
+
+2008-05-02 Andreas Schwab <schwab@suse.de>
+
+ * target.h (struct target_ops): Add
+ to_watchpoint_addr_within_range.
+ (target_watchpoint_addr_within_range): New function.
+ * target.c (update_current_target): Inherit
+ to_watchpoint_addr_within_range, defaulting to
+ default_watchpoint_addr_within_range.
+ (default_watchpoint_addr_within_range): New function.
+ (debug_to_watchpoint_addr_within_range): New function.
+ (setup_target_debug): Set to_watchpoint_addr_within_range.
+ * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
+ New function.
+ (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
+ * breakpoint.c (watchpoints_triggered): Use
+ target_watchpoint_addr_within_range.
+
+2008-05-01 Pedro Alves <pedro@codesourcery.com>
+
+ * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
+ (i[34567]86-*-dicos*, x86_64-*-dicos*):
+ Set gdb_osabi to GDB_OSABI_DICOS.
+
+ * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
+ * osabi.c (gdb_osabi_name): Add "DICOS".
+
+ * i386-dicos-tdep.c: New file.
+
+ * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
+ (ALLDEPFILES): Add i386-dicos-tdep.c.
+ (i386-dicos-tdep.o): New rule.
+
+2008-05-01 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
+ and register the fork's PTID as a thread.
+
+2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
+
+ PR gdb/1665
+ * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
+ assign its value to the breakpoint created.
+ (create_breakpoints): Add breakpoint_ops argument and pass it
+ to create_breakpoint call.
+ (break_command_really): Add breakpoint_ops argument and pass/assign
+ appropriately.
+ (break_command_1): Pass NULL as ops argument.
+ (set_breakpoint): Pass NULL as ops argument.
+ (print_one_exception_catchpoint): Print <PENDING> if no loc available.
+ (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
+ catch and throw catchpoints.
+
+2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
+
+ PR gdb/2343
+ * corelow.c (core_open): Use gdbarch_target_signal_from_host to
+ translate signal numeric value from the target to GDB's enum
+ target_signal.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * gdbarch.sh: Added two new functions target_signal_from_host and
+ target_signal_to_host.
+ * target.h (default_target_signal_from_host,
+ default_target_signal_to_host): New functions - declarations.
+ * signals/signals.c (struct gdbarch): New declaration.
+ (default_target_signal_to_host, default_target_signal_from_host): New
+ functions.
+
+2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
+ * arm-tdep.c (arm_frame_is_thumb): New.
+ (arm_pc_is_thumb): Clarify comment.
+ (thumb_analyze_prologue): Remove PC special case.
+ (thumb_scan_prologue): Take a block_addr argument. Use it for
+ find_pc_partial_function. Remove unused variables.
+ (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
+ for find_pc_partial_function. Remove PC special case.
+ (arm_prologue_prev_register): Add special handling for PC and CPSR.
+ (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
+ (arm_get_next_pc): Use arm_frame_is_thumb.
+ (arm_write_pc): Use CPSR_T instead of 0x20.
+ (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
+ * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
+ (CPSR_T): Define.
+ * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
+ DWARF2_FRAME_REG_FN.
+ * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
+ DWARF2_FRAME_REG_FN.
+ (struct dwarf2_frame_state_reg): Add FN to loc union.
+
+2008-05-01 Nick Roberts <nickrob@snap.net.nz>
+
+ * exec.c (print_section_info): Add missing '\n'.
+
+2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
+
+ * thread.c (add_thread): Move observer call to ...
+ (add_thread_silent): ... here.
+
+2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * rs6000-tdep.c: Update for unwinder changes.
+ * ppcobsd-tdep.c: Likewise.
+
+2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * s390-tdep.c: Update for unwinder changes.
+
+2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-tdep.c: Update for unwinder changes.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
+ ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
+ sparc64-linux-tdep.c: Update for unwinder changes.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
+ for unwinder changes.
+ * mips-tdep.c: Likewise.
+ (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
+ raw one.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
+ unwinder changes.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ Update i386 and amd64 ports for unwinder changes.
+
+ * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
+ (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
+ (amd64_frame_unwind): Use default_frame_sniffer.
+ (amd64_frame_sniffer): Delete.
+ (amd64_sigtramp_frame_cache): Expect this_frame.
+ (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
+ (amd64_sigtramp_frame_sniffer): Update signature.
+ (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
+ (amd64_frame_base_address): Expect this_frame.
+ (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
+ this_frame.
+ (amd64_init_abi): Use set_gdbarch_dummy_id and
+ frame_unwind_append_unwinder.
+ * i386-tdep.c (i386_frame_cache): Expect this_frame.
+ (i386_frame_this_id, i386_frame_prev_register): Update signature.
+ (i386_frame_unwind): Use default_frame_sniffer.
+ (i386_frame_sniffer): Delete.
+ (i386_sigtramp_frame_cache): Expect this_frame.
+ (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
+ (i386_sigtramp_frame_sniffer): Update signature.
+ (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
+ (i386_frame_base_address): Update signature.
+ (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
+ (i386_push_dummy_call): Update comment.
+ (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
+ Expect this_frame.
+ (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
+ and frame_unwind_append_unwinder.
+ * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
+ amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
+ i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
+ i386nbsd-tdep.c: Update for unwinder changes.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
+ (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
+ this_frame.
+ (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
+ * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
+ (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
+ signature.
+ * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
+ this_frame.
+ (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
+ Update signature.
+ * tramp-frame.h (struct tramp_frame): Update signature of init.
+ * Makefile.in (trad-frame.o): Update.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
+ (execute_stack_op): Put this_frame in the baton.
+ (execute_cfa_program): Take this_frame.
+ (struct dwarf2_frame_ops): Update comment for signal_frame_p.
+ (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
+ (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
+ (dwarf2_frame_this_id): Adjust to work on this_frame.
+ (dwarf2_signal_frame_this_id): Delete.
+ (dwarf2_frame_prev_register): Update signature. Use new frame
+ unwind methods.
+ (dwarf2_frame_sniffer): Update signature. Expect this_frame.
+ (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
+ dwarf2_frame_sniffer.
+ (dwarf2_append_unwinders): New.
+ (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
+ this_frame.
+ * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
+ (sparc32_dwarf2_frame_init_reg): Expect this_frame.
+ * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
+ * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
+ * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
+ * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
+ * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
+ * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
+ (dwarf2_append_unwinders): Declare.
+ (dwarf2_frame_base_sniffer): Update declaration.
+ * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
+ this_frame.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ Convert frame unwinders to use the current frame and
+ "struct value".
+
+ * frame.c (frame_debug): Make global.
+ (get_frame_id): Pass this frame to unwinder routines.
+ (frame_pc_unwind): Remove unused unwind->prev_pc support.
+ (do_frame_register_read): Do not discard the return value of
+ frame_register_read.
+ (frame_register_unwind): Remove debug messages. Use
+ frame_unwind_register_value.
+ (frame_unwind_register_value, get_frame_register_value): New
+ functions.
+ (create_new_frame, get_frame_base_address, get_frame_locals_address)
+ (get_frame_args_address, get_frame_type): Pass this frame to
+ unwinder routines.
+ (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
+ functions.
+ * frame.h: Update comments.
+ (frame_debug, frame_unwind_register_value, get_frame_register_value)
+ (frame_prepare_for_sniffer): Declare.
+ * frame-unwind.h: Update comments and parameter names.
+ (default_frame_sniffer): Declare.
+ (frame_prev_register_ftype): Return a struct value *.
+ (struct frame_unwind): Remove prev_pc member.
+ (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
+ (frame_unwind_append_unwinder, frame_unwind_got_optimized)
+ (frame_unwind_got_register, frame_unwind_got_memory)
+ (frame_unwind_got_constant, frame_unwind_got_address): Declare.
+ * frame-base.h: Update comments and parameter names.
+ * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
+ if necessary. Add debugging output.
+ * sentinel-frame.c (sentinel_frame_prev_register)
+ (sentinel_frame_this_id): Update for new signature.
+ (sentinel_frame_prev_pc): Delete.
+ (sentinel_frame_unwinder): Remove prev_pc.
+ * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
+ prev_pc.
+ * libunwind-frame.c (libunwind_frame_unwind): Likewise.
+ * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
+ (frame_unwind_append_sniffer): Delete.
+ (frame_unwind_append_unwinder): New function.
+ (frame_unwind_find_by_frame): Take this frame. Only use sniffers
+ from unwinders. Use frame_prepare_for_sniffer.
+ (default_frame_sniffer, frame_unwind_got_optimized)
+ (frame_unwind_got_register, frame_unwind_got_memory)
+ (frame_unwind_got_constant, frame_unwind_got_address): New functions.
+ * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
+ (dummy_frame_prev_register, dummy_frame_this_id): Update for new
+ signature.
+ * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
+ * gdbarch.c, gdbarch.c: Regenerated.
+ * frame-base.c (default_frame_base_address)
+ (default_frame_locals_address, default_frame_args_address): Update
+ for new signature.
+ (frame_base_find_by_frame): Pass this frame to unwinder routines.
+ * infcall.c (call_function_by_hand): Update comments.
+ * Makefile.in (frame-unwind.o): Update dependencies.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * ada-lang.c (ada_value_primitive_packed_val): Only check
+ value_lazy for memory lvals.
+ * findvar.c (value_of_register_lazy): New function.
+ (locate_var_value): Only check value_lazy for memory lvals.
+ * valarith.c (value_subscripted_rvalue): Likewise.
+ * valops.c (value_fetch_lazy): Handle both memory and register
+ lvals.
+ (search_struct_field, value_slice): Only check value_lazy for memory
+ lvals.
+ * value.c (struct value): Update comment for lazy.
+ (value_primitive_field): Only check value_lazy for memory lvals.
+ * value.h (value_lazy): Update comment.
+ (value_of_register_lazy): Declare.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * corefile.c (reopen_exec_file): Close any open files.
+
+2008-04-29 Joel Brobecker <brobecker@adacore.com>
+
+ * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
+ show_memory_breakpoints to 1 while reading the instruction bundle.
+
+2008-04-29 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbarch.sh: Document the return_value method. Explain that
+ the FUNCTYPE parameter might be NULL.
+ * gdbarch.h: Regenerated.
+ * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
+ type when calling using_struct_return, as this is unnecessary
+ on this target.
+
+2008-04-28 Joel Brobecker <brobecker@adacore.com>
+
+ * terminal.h (create_tty_session): Fix return type.
+
+2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-interp.c (mi_new_thread): Quote the thread id.
+
+2008-04-26 Joel Brobecker <brobecker@adacore.com>
+
+ * breakpoint.c (condition_command, commands_from_control_command)
+ (break_command_really): Minor reformatting.
+
+2008-04-25 Pedro Alves <pedro@codesourcery.com>
+
+ * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
+
+2008-04-25 Pedro Alves <pedro@codesourcery.com>
+
+ * amd64-tdep.c (amd64_get_longjmp_target): New.
+ (amd64_init_abi): Register amd64_get_longjmp_target as
+ gdbarch_get_longjmp_target callback.
+ * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
+
+2008-04-25 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.h (enum bpstat_what_main_action): Delete
+ BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
+
+ * breakpoint.c (clrs): Delete.
+ (bpstat_what): Update table.
+
+ * infrun.c (handle_inferior_event): Remove
+ BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
+ Adjust all prototypes using mi_cmd_args_ftype to use
+ mi_cmd_argv_ftype.
+ (struct mi_cmd): Remove the args_func field.
+ * mi/mi-cmds.c: Don't provide value for the args_func field.
+ * mi/mi-main.c (mi_execute_async_cli_command)
+ (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
+ (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
+ (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
+ (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
+ (mi_cmd_target_download): Adjust.
+ (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
+ (mi_cmd_execute): Do not check for args_func.
+ (mi_execute_async_cli_command): Adjust.
+ * mi/mi-parse.c: Don't check for args_func.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * breakpoint.c (bpstat_check_location)
+ (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
+ New, extracted from bpstat_stop_status.
+ (bpstat_stop_status): Use the above.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-main.c (last_async_command): Rename to current_token.
+ (previous_async_command): Remove.
+ (mi_cmd_gdb_exit): Adjust.
+ (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
+ (mi_cmd_target_select): Adjust.
+ (mi_cmd_execute): Don't set previous_async_command. Free token
+ here even in async mode.
+ (mi_execute_async_cli_command): Adjust.
+ (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
+ token.
+ (mi_load_progress): Adjust.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * infcmd.c (step_1_continuation): Always disable longjmp
+ breakpoint if we're not going to do another step.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ exec_cleanup murder.
+ * breakpoint.c (until_break_command_continuation): Add
+ the 'error' parameter. Directly delete the breakoint as
+ opposed to running cleanups.
+ (until_break_command): Install continuation only
+ after starting the target. Don't use exec cleanups,
+ use ordinary cleanups. Discard cleanups is successfully
+ started the target in async mode.
+ (make_cleanup_delete_breakpoint): Remove.
+ * breakpoint.h (make_cleanup_delete_breakpoint): Remove
+ declaration.
+ * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
+ declarations.
+ (struct continations): Add the 'error' parameter to the
+ continuation_hook field.
+ (add_continuation, do_all_continuations)
+ (add_intermediate_continuation)
+ (do_all_intermediate_continuations): Add the 'error' parameter.
+ * exceptions.c (throw_exception): Don't call do_exec_cleanups.
+ * inf-loop.c (inferior_event_handler): Instead of calling
+ discard_all_continuations, use do_all_continuations with 1 as
+ 'error' parameter. Pass 0 as 'error' parameter in existing uses
+ of discard_all_continuations.
+ * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
+ cleanups.
+ (step_once): Install continuation only after resuming the target.
+ (step_1_continuation): Disable longjmp breakpoint on error.
+ (finish_command_continuation): Add the error parameter. Delete
+ the finish breakpoint directly, do not use cleanups.
+ (finish_command): Do not use exec_cleanups. Always setup
+ continuation. For sync case, immediately run them.
+ (attach_command_continuation): Add the error parameter.
+ * infrun.c (fetch_inferior_event): Do not use exec cleanups to
+ remove step_resume_breakpoint -- adjust delete it directly.
+ * interps.c (interp_set): Adjust call to do_all_continations.
+ * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
+ do exec cleanups.
+ * mi/mi-main.c (mi_cmd_target_select): Do not do exec
+ cleanups.
+ (mi_cmd_execute): Do not use exec_cleanup.
+ (mi_execute_async_cli_command): Simplify the string concatenation
+ logic. Do no use exec cleanup.
+ (mi_exec_async_cli_cmd_continuation): New parameter error.
+ Free last_async_command.
+ * top.c (command_line_handler_continuation): New parameter error.
+ * utils.c (exec_cleanup_chain, make_exec_cleanup)
+ (do_exec_cleanups): Remove.
+ (add_continuation, do_all_continations)
+ (add_intermediate_continuation)
+ (do_all_intermediate_continuations): New parameter error.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * breakpoint.h (bp_location_p): New typedef.
+ Register a vector of bp_location_p.
+ * breakpoint.c (always_inserted_mode)
+ (show_always_inserted_mode): New.
+ (unlink_locations_from_global_list): Remove.
+ (update_global_location_list)
+ (update_global_location_list_nothrow): New.
+ (update_watchpoint): Don't free locations.
+ (should_insert_location): New.
+ (insert_bp_location): Use should_insert_location.
+ (insert_breakpoint_locations): Copied from
+ insert_breakpoints.
+ (insert_breakpoint): Use insert_breakpoint_locations.
+ (bpstat_stop_status): Call update_global_location_list
+ when disabling breakpoint.
+ (allocate_bp_location): Don't add to bp_location_chain.
+ (set_raw_breakpoint)
+ (create_longjmp_breakpoint, enable_longjmp_breakpoint)
+ (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
+ (enable_overlay_breakpoints, disable_overlay_breakpoints)
+ (set_longjmp_resume_breakpoint)
+ (enable_watchpoints_after_interactive_call_stop)
+ (disable_watchpoints_before_interactive_call_start)
+ (create_internal_breakpoint)
+ (create_fork_vfork_event_catchpoint)
+ (create_exec_event_catchpoint, set_momentary_breakpoint)
+ (create_breakpoints, break_command_1, watch_command_1)
+ (create_exception_catchpoint)
+ (handle_gnu_v3_exceptions)
+ (disable_breakpoint, breakpoint_re_set_one)
+ (create_thread_event_breakpoint, create_solib_event_breakpoint)
+ (create_ada_exception_breakpoint): : Don't call check_duplicates.
+ Call update_global_location_list.
+ (delete_breakpoint): Don't remove locations and don't
+ try to reinsert them. Call update_global_location_list.
+ (update_breakpoint_locations): Likewise.
+ (restore_always_inserted_mode): New.
+ (update_breakpoints_after_exec): Temporary disable
+ always inserted mode.
+ * Makefile.in: Update dependencies.
+
+ * infrun.c (proceed): Remove breakpoints while stepping
+ over breakpoint.
+ (handle_inferior_event): Don't remove or insert
+ breakpoints.
+ * linux-fork.c (checkpoint_command): Remove breakpoints
+ before fork and insert after.
+ (linux_fork_context): Remove breakpoints before switch
+ and insert after.
+ * target.c (target_disconnect, target_detach): Remove
+ breakpoints from target.
+
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * breakpoint.c (print_one_breakpoint_location): In MI
+ mode, report the location string the breakpoint was
+ originally created with.
+
+2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
+
+ * Makefile.in (xtensa-tdep.o): Update dependencies.
+ * configure.tgt (xtensa*): Update dependencies.
+ * xtensa-tdep.c (arreg_number): Renamed from areg_number.
+ Local variable areg renamed to arreg.
+ (areg_number): New function.
+ (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
+ (xtensa_extract_return_value, xtensa_store_return_value): areg_number
+ replaced by arreg_number.
+ (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
+ (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
+ (xtensa_scan_prologue): New function.
+ (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
+ when ENTRY instraction hasn't been executed yet. Get the frame pointer
+ value based on prologue analysis. Fix the bugs preventing WS and
+ AR4-AR7/A11 registers from getting right values for intermediate frames,
+ whose registers have been already spilled.
+ (xtensa_frame_prev_register): Fix WS register value. Use are_number
+ and arreg_number appropriately.
+ (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
+ svr4_ilp32_fetch_link_map_offsets.
+
2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
* printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
PR gdb/2445
* exec.c: Correct "arch-utils.h" include.
-2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
+2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
PR gdb/2424
* infrun.c (normal_stop) Move breakpoint_auto_delete further down
* symmisc.c (free_symtab_block): Delete.
(free_symtab, case free_code): Delete.
-2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
+2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
* valops.c (value_cast_structs): New function. Cast related
STRUCT types up/down and return cast value. The body of this
* ia64-tdep.c (examine_prologue): Correct array access.
-2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
+2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
* cp-support.c (first_component_command): Return if no arguments.