* infrun.c (start_remote): Don't clear thread list here.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index a9d59746f6b0ed131300802ec974ceb3f4f6c4b3..63be2c46c31d81280c7a950992df8d601ee620ee 100644 (file)
@@ -1,3 +1,993 @@
+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
This page took 0.042099 seconds and 4 git commands to generate.