+2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
+
+ PR python/12149
+
+ * python/python.c (gdbpy_write): Accept a stream argument and
+ operate to the appropriate stream.
+ (gdbpy_flush): Likewise.
+ (_initialize_python): Add stream constants.
+ (finish_python_initialization): Add GdbOutputErrorFile class.
+
+2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * MAINTAINERS: Add myself as a write-after-approval maintainer.
+
+2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
+ to store_signed_integer. Add debug message when relocating CALL
+ instructions. Fix formatting of debug message.
+ * i386-tdep.c (i386_relocate_instruction): Ditto.
+
+2011-03-17 Joel Brobecker <brobecker@gnat.com>
+
+ * target.h (struct target_ops): Remove to_lookup_symbol field.
+ (target_lookup_symbol): Delete macro.
+ * target.c (nosymbol, debug_to_lookup_symbol): Delete.
+ (update_current_target, setup_target_debug): Remove handling
+ of to_lookup_symbol target_ops field.
+ * ada-tasks.c (get_known_tasks_addr): Remove use of
+ target_lookup_symbol.
+ * coffread.c (coff_symtab_read): Likewise.
+ * dbxread.c (read_dbx_symtab): Ditto.
+
+2011-03-17 Joel Brobecker <brobecker@gnat.com>
+
+ PR gdb/12116:
+ * configure.ac: Add getthrds declaration check.
+ * configure, config.in: Regenerate.
+ * aix-thread.c (getthrds): Declare only if not already declared
+ in procinfo.h. More declaration out of get_signaled_thread to
+ global scope.
+
+2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
+
+ * python/py-symtab.c: Populate symtab_object_methods,
+ sal_object_methods.
+ (stpy_is_valid): New function.
+ (salpy_is_valid): Ditto.
+ * python/py-symbol.c: Declare symbol_object_methods. Populate.
+ (sympy_is_valid): New function.
+ * python/py-objfile.c: Declare objfile_object_methods. Populate.
+ (objfpy_is_valid): New function.
+ * python/py-inferior.c: Populate inferior_object_methods.
+ (infpy_is_valid): New function.
+ * python/py-infthread.c: Populate thread_object_methods.
+ (thpy_is_valid): New function.
+ * python/py-block.c: Declare block_object_methods. Populate. Declare
+ block_iterator_object_methods. Populate.
+ (blpy_is_valid): New function.
+ (blpy_iter_is_valid): Ditto.
+
+2011-03-16 Keith Seitz <keiths@redhat.com>
+
+ * linespec.c (find_methods): Canonicalize NAME before looking
+ up the symbol.
+ (name_end): New function.
+ (keep_name_info): New function.
+ (decode_line_1): Use keep_name_info.
+ (decode_compound): Likewise.
+ * cli/cli-utils.h (remove_trailing_whitespace): New function.
+ * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
+
+ PR c++/12273
+ * linespec.c (locate_first_half): Keep overload information, too.
+ (decode_compound): Use a string to represent break characters
+ to escape the loop.
+ If P points to a break character, do not increment it.
+ For C++ and Java, keep overload information and relevant keywords.
+ If we cannot find a symbol, search the minimal symbols.
+
+ PR c++/11734
+ * linespec.c (decode_compound): Rename SAVED_ARG to
+ THE_REAL_SAVED_ARG.
+ Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
+ single-quotes.
+ Pass a valid block to lookup_symbol.
+ (lookup_prefix_sym): Likewise.
+ (find_method): Construct search name based on SYM_CLASS instead
+ of SAVED_ARG.
+ * psymtab.c (lookup_partial_symbol): Add language parameter.
+ (lookup_symbol_aux_psymtabs): Likewise.
+ Don't assume that the psymtab we found was the right one. Search
+ for the desired symbol in the symtab to be certain.
+ (psymtab_search_name): New function.
+ (lookup_partial_symbol): Use psymtab_search_name.
+ Add language parameter.
+ (read_symtabs_for_function): Add language parameter and pass to
+ lookup_partial_symbol.
+ (find_symbol_file_from_partial): Likewise.
+
+2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ PR gdb/12528
+ * dwarf2read.c (noop_record_line): New function.
+ (dwarf_decode_lines): Ignore line tables for GCd functions.
+
+2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Fix ARI warnings about new lines at the end of messages, which
+ are unneeded as there is a new line added at the end of the message
+ automatically.
+ * darwin-nat.c (darwin_stop_inferior): Ditto.
+ * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
+ * dfp.c (decimal_to_number): Ditto.
+ * exec.c (print_section_info): Ditto.
+ * i386-darwin-nat.c (darwin_set_sstep): Ditto.
+ * osdata.c (get_osdata): Ditto.
+ * record.c (bfdcore_write): Ditto.
+ * remote-mips.c (mips_readchar): Ditto.
+ * remote.c (read_ptid): Ditto.
+ * ser-mingw.c (ser_windows_raw): Ditto.
+ * tracepoint.c (add_local_symbols): Ditto.
+ * windows-nat.c (fake_create_process): Ditto.
+
+2011-03-16 Tom Tromey <tromey@redhat.com>
+
+ * tracepoint.c (stop_tracing): Don't declare.
+ * event-top.c (after_char_processing_hook): Add `(void)'.
+
+2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
+
+ * NEWS: Add Parameter sub-classing description.
+
+2011-03-16 Kai Tietz <ktietz@redhat.com>
+
+ * MAINTAINERS: Update my e-mail address.
+
+2011-03-15 Andreas Tobler <andreast@fgznet.ch>
+
+ * MAINTAINERS: Add myself for write after approval privileges.
+
+2011-03-15 Michael Snyder <msnyder@vmware.com>
+
+ * frame.c (find_frame_sal): Assert sym is not null.
+
+ * dbxread.c (process_one_symbol): Assert 'name' is not null.
+
+ * objc-lang.c (selectors_info): Check strchr for null result.
+
+ * stabsread.c (define_symbol): Guard against bad stabstring input.
+
+2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Remove trailing spaces and tabulations from pascal language
+ support sources.
+ p-exp.y: Ditto.
+ p-lang.c: Ditto.
+ p-lang.h: Ditto.
+ p-valprint.c: Ditto.
+
+2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
+ than LOW. Comment it.
+ (read_partial_die): Call complaint for inappropriate zero LOWPC or
+ HIGHPC not strictly higher than LOWPC.
+
+2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Fix formatting of function declarations returning a pointer in
+ previous commit.
+ * varobj.c (varobj_add_child): Ditto.
+ * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
+ * inferior.h (get_displaced_step_closure_by_addr): Ditto.
+
+2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
+ for the "generic" vector ABI used with GCC 4.3 and later.
+ (ppc64_sysv_abi_return_value): Likewise.
+
+2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * infcall.c (call_function_by_hand): Function return value is
+ always a non_lval, even when using struct_return.
+
+2011-03-15 Pedro Alves <pedro@codesourcery.com>
+
+ * printcmd.c (ALL_DISPLAYS_SAFE): New.
+ (map_display_numbers): New.
+ (do_delete_display): New.
+ (undisplay_command): Use map_display_numbers.
+ (do_enable_disable_display): New.
+ (enable_disable_display_command): New function.
+ (enable_display): Delete.
+ (enable_display_command): New.
+ (disable_display_command): Reimplement.
+ (_initialize_printcmd): Adjust "enable display" command to use
+ `enable_display_command' as callback.
+
+2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
+
+ * NEWS: Add Python breakpoint 'stop' operation.
+
+2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
+
+ * NEWS: Delete duplicate entry. Fix typo.
+
+2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Fix ARI warning about function names in first column.
+ Put prototype declaration on same line as return type.
+ * objc-exp.y: Ditto.
+ * p-exp.y: Ditto.
+ * python/py-stopevent.h: Ditto.
+ For long function names, split parameters to
+ allow function name on same line as return type.
+ * solib-pa64.c: Ditto.
+ * varobj.c: Ditto.
+ * varobj.h: Ditto.
+ For long function declaration, use single line.
+ * hppa-tdep.h: Ditto.
+ * inferior.h: Ditto.
+
+2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
+
+ * python/python.h: Declare gdbpy_should_stop and
+ gdbpy_breakpoint_has_py_cond.
+ * python/python.c: Add python.h to includes. Remove python.h from
+ HAVE_PYTHON definition
+ (gdbpy_should_stop): New dummy function.
+ (gdbpy_breakpoint_has_py_cond): New dummy function.
+ * python/py-breakpoint.c (bppy_init): Rewrite to allow
+ sub-classing capabilities.
+ (gdbpy_should_stop): New function.
+ (gdbpy_breakpoint_has_py_cond): New function.
+ (local_setattro): New function.
+ * breakpoint.c (condition_command): Add check for Python 'stop'
+ operation.
+ (bpstat_check_breakpoint_conditions): Execute Python 'stop'
+ operation function as part of stop/continue tests.
+
+2011-03-14 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/12576:
+ * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
+ (needs_frame_dwarf_call): Likewise.
+
+2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Fix ARI warning about functions without parameters that do not
+ use (void).
+ * breakpoint.c (all_tracepoints): Replace () by (void).
+ * f-exp.y (match_string_literal): Ditto.
+ (yylex): Ditto.
+ * m2-exp.y (yylex): Ditto.
+ * mep-tdep.c (current_me_module): Ditto.
+ (current_options): Ditto.
+ (current_cop_data_bus_width): Ditto.
+ (current_cr_names): Ditto.
+ (current_cr_is_float): Ditto.
+ (current_ccr_names): Ditto.
+ * objc-exp.y (yylex): Ditto.
+ * p-exp.y (yylex): Ditto.
+ * remote.c (send_interrupt_sequence): Ditto.
+ * tracepoint.c (current_trace_status): Ditto.
+ * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
+ * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
+
+2011-03-11 Michael Snyder <msnyder@vmware.com>
+
+ * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
+ * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
+ (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
+ * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
+ * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
+
+ * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
+ (delete_async_event_handler): Ditto.
+
+ * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
+
+ * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
+
+ * top.c (set_verbose): Assert showcmd was found.
+
+2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
+
+ * xtensa-tdep.c (warning_once): Correct style issues.
+
+2011-03-11 Yao Qi <yao@codesourcery.com>
+
+ * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
+
+2011-03-11 Andreas Schwab <schwab@redhat.com>
+
+ * common/aclocal.m4: Remove.
+
+2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
+
+ * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
+ (xtensa_write_register, xtensa_read_register): Likewise.
+ (xtensa_hextochar): Removed.
+ (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
+
+2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
+
+ * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
+ (xtensa_call0_frame_cache_t): Update comments. New fields added.
+ (xtensa_alloc_frame_cache): Add initialization for new fields.
+ (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
+ (warning_once): New function.
+ (xtensa_insn_kind): New item c0opc_and.
+ (call0_classify_opcode): Add the case for AND instruction.
+ (call0_track_op): Change arguments. New local variable litbase.
+ Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
+ c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
+ in the prologue.
+ Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
+ (call0_analyze_prologue): Update the comments. Change arguments.
+ Add the variety of updates to handle extended prologues, which now can
+ conduct dynamic stack adjustments.
+ (call0_frame_cache): Likewise.
+ (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
+ (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
+
+2011-03-10 Michael Snyder <msnyder@vmware.com>
+
+ * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
+ (cmd_qtframe): Ditto.
+ (cmd_qtbuffer): Ditto.
+ (cmd_bigqtbuffer): Ditto.
+
+2011-03-10 Tom Tromey <tromey@redhat.com>
+
+ * tracepoint.c (trace_actions_command): Update.
+ * thread.c (thread_apply_command): Update.
+ * reverse.c (delete_bookmark_command): Update.
+ (bookmarks_info): Update.
+ * printcmd.c (undisplay_command): Update.
+ * memattr.c (mem_enable_command): Update.
+ (mem_disable_command): Update.
+ (mem_delete_command): Update.
+ * inferior.c (detach_inferior_command): Update.
+ (kill_inferior_command): Update.
+ (remove_inferior_command): Update.
+ * cli/cli-utils.h (struct get_number_or_range_state): New.
+ (init_number_or_range): Declare.
+ (get_number_or_range): Update.
+ * cli/cli-utils.c (init_number_or_range): New function.
+ (get_number_or_range): Change 'pp' parameter to 'state'. Remove
+ static variables.
+ (number_is_in_list): Update.
+ * breakpoint.h (get_tracepoint_by_number): Update.
+ * breakpoint.c (map_breakpoint_numbers): Update for change to
+ get_number_or_range.
+ (find_location_by_number): Use get_number, not
+ get_number_or_range.
+ (trace_pass_set_count): New function.
+ (trace_pass_command): Update for change to get_number_or_range.
+ Rework loop logic.
+ (get_tracepoint_by_number): Remove 'multi_p' parameter; add
+ 'state' parameter.
+
+2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
+
+ * python/py-param.c (add_setshow_generic): Add set/show callback
+ parameters. Register Python object context.
+ (get_show_value): New function.
+ (get_set_value): New function.
+ (call_doc_function): New function.
+ (get_doc_string): Move behind get_show_value/get_set_value.
+
+2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
+
+ * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
+
+2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
+
+ * xtensa-tdep.c (xtensa_read_register): Add comment.
+ (xtensa_write_register): Likewise.
+ (xtensa_hextochar): Add comment and update to match coding conventions.
+ (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
+ (execute_l32e, execute_s32e, execute_code): Update comments.
+ (xtensa_exception_handler_t): Update to match coding conventions.
+ (xtensa_insn_kind): Likewise.
+
+2011-03-09 Michael Snyder <msnyder@vmware.com>
+
+ * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
+
+2011-03-09 Pedro Alves <pedro@codesourcery.com>
+
+ * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
+
+2011-03-09 Tom Tromey <tromey@redhat.com>
+
+ * thread.c (restore_selected_frame): Handle frame_level == -1.
+ (make_cleanup_restore_current_thread): Use
+ get_selected_frame_if_set.
+ * frame.h (get_selected_frame_if_set): Declare.
+ * frame.c (get_selected_frame_if_set): New function.
+
+2011-03-09 Pedro Alves <pedro@codesourcery.com>
+
+ * cli/cli-cmds.c (shell_escape): Use lbasename.
+ * coffread.c (coff_start_symtab): Constify parameter.
+ (complete_symtab): Constify `name' parameter.
+ (coff_symtab_read): Constify `filestring' local.
+ (coff_getfilename): Constify return and `result' local.
+ Use lbasename.
+ * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
+ * linux-fork.c (info_checkpoints_command): Use lbasename.
+ * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
+ * minsyms.c (lookup_minimal_symbol): Use lbasename.
+ * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
+ * procfs.c (procfs_make_note_section): Use lbasename.
+ * tui/tui-io.c (printable_part): Constity return and parameter.
+ Use lbasename.
+ (print_filename): Constify parameters, and local `s'.
+ (tui_rl_display_match_list): Constify local `temp'.
+
+2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Revert:
+ 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Fix DWARF-3+ DW_AT_accessibility default assumption.
+ * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
+ cu->header.version >= 3.
+
+2011-03-09 Yao Qi <yao@codesourcery.com>
+
+ * common/Makefile.in: Remove.
+ * common/configure: Remove.
+ * common/configure.ac: Remove.
+
2011-03-09 Yao Qi <yao@codesourcery.com>
Revert:
* symfile.c (simple_overlay_update): Check for null return value
from lookup_minimal_symbol.
- * gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc.
-
* xml-syscall.c (syscall_start_syscall): Assert name is non null.
2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
* mdebugread.c (parse_partial_symbols): Fix indent.
- * gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc
- with xmalloc.
-
* target-descriptions.c (tdesc_gdb_type): No need to call
xstrdup, callee saves a copy.
* utils.c (parse_escape): Escape the escape char.
- * python/py-inferior.c (build_inferior_list): Error out if
+ * python/py-inferior.c (build_inferior_list): Error out if
PyList_Append fails.
(gdbpy_inferiors): Error out if build_inferior_list fails.
* coffread.c (coff_getfilename): Add check to avoid overflow.
- * objc-lang.c (selectors_info): Add a small safety margin to
+ * objc-lang.c (selectors_info): Add a small safety margin to
avoid overflow.
(classes_info): Error out on too long REGEXP.
* tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
error in strncpy.
- * symtab.c (rbreak_command): Move variable 'file_name' to
+ * symtab.c (rbreak_command): Move variable 'file_name' to
outer scope.
* d-valprint.c (dynamic_array_type): Avoid shadowing a function
* breakpoint.c (breakpoint_1): Change first argument from an int
to a char pointer, so that the function now accepts a list of
- breakpoints rather than just one. Use new function
+ breakpoints rather than just one. Use new function
'number_is_in_list' to implement.
(breakpoints_info): Pass char * instead of int to breakpoint_1.
(watchpoints_info): Ditto.
(info_threads_command): Pass char* to print_thread_info.
* cli/cli-utils.c (number_is_in_list): New function.
* cli/cli-utils.h (number_is_in_list): Export.
- * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
+ * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
print_thread_info.
(print_one_inferior): Ditto.
(mi_cmd_list_thread_groups): Ditto.
2011-02-18 Michael Snyder <msnyder@vmware.com>
- * thread.c (info_threads_command): Re-implement using
+ * thread.c (info_threads_command): Re-implement using
get_number_or_range.
(thread_apply_command): Ditto.
(DEFAULT_HPUX_MAJOR_RELEASE): New macro.
(hpux_major_release): Make global, change default value to
DEFAULT_HPUX_MAJOR_RELEASE.
- (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
+ (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
* hppa-hpux-nat.c: Add <sys/utsname.h> include.
Add "solib-som.h" header.
(set_hpux_major_release): New function.
Make value allocations more lazy.
* ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
instead of allocate_value and set_value_lazy when possible.
- * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
+ * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
instead of allocate_value and set_value_lazy.
* findvar.c (value_of_register_lazy): Likewise.
(read_var_value): Remove V preallocation, call just check_typedef in
- advance. Move allocate_value to LOC_CONST, LOC_LABEL,
+ advance. Move allocate_value to LOC_CONST, LOC_LABEL,
LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
Thiago Jung Bauermann <bauerman@br.ibm.com>
Implement support for PowerPC BookE ranged watchpoints.
- * breakpoint.h
+ * breakpoint.h
(struct breakpoint_ops) <resources_needed>: New method.
Initialize to NULL in all existing breakpoint_ops instances.
(struct breakpoint) <exact>: New field.
<insert_location>: ... this. Return int instead of void.
Accept pointer to struct bp_location instead of pointer to
struct breakpoint. Adapt all implementations.
- (breakpoint_ops) <remove>: Rename to...
+ (breakpoint_ops) <remove>: Rename to...
<remove_location>: ... this. Accept pointer to struct bp_location
instead of pointer to struct breakpoint. Adapt all implementations.
* breakpoint.c (insert_catchpoint): Delete function.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
for i18n.
- * tui/tui-layout.c (tui_set_layout_for_display_command):
+ * tui/tui-layout.c (tui_set_layout_for_display_command):
Split line so that operator goes to beginning of line.
* tui/tui-winsource.c (tui_horizontal_source_scroll): Move
assignment out of if statement.