* NEWS: Mention new python command class gdb.COMMAND_USER.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 9533556ec6bc8fd8049af3a902d9f9c16f3b4c2f..0fe7178bf3abbf3985e66e4652266c431bd250b0 100644 (file)
@@ -1,3 +1,290 @@
+2012-03-01  Scott J. Goldman <scottjg@vmware.com>
+
+       * NEWS: Mention new python command class gdb.COMMAND_USER.
+       * cli/cli-cmds.c (show_user): Print error when used on a python
+       command.
+       (init_cli_cmds): Update documentation strings for "show user" and
+       "set/show max-user-call-depth" to clarify that it does not apply to
+       python commands.
+       * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
+       error check.
+       (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
+       gdb python api.
+       * top.c (execute_command): Only execute a user-defined command as a
+       legacy macro if c->user_commands is set.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * valprint.h (struct generic_val_print_decorations): New.
+       (generic_val_print): Declare.
+       * valprint.c (generic_val_print): New function.
+       * p-valprint.c (p_decorations): New global.
+       (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
+       TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
+       TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
+       TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
+       * m2-valprint.c (m2_decorations): New global.
+       (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
+       TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
+       TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
+       TYPE_CODE_ERROR>: Call generic_val_print.
+       * f-valprint.c (f_decorations): New global.
+       (f_val_print): Use print_function_pointer_address.
+       <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
+       TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
+       TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
+       generic_val_print.
+       * c-valprint.c (c_decorations): New global.
+       (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
+       TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
+       TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
+       TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
+       TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
+       * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
+       case.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * valprint.c (val_print): Update.
+       * p-valprint (pascal_val_print): Return void.
+       * p-lang.h (pascal_val_print): Return void.
+       * m2-valprint.c (m2_val_print): Return void.
+       * m2-lang.h (m2_val_print): Return void.
+       * language.h (struct language_defn) <la_val_print>: Return void.
+       * language.c (unk_lang_val_print): Return void.
+       * jv-valprint.c (java_val_print): Return void.
+       * jv-lang.h (java_val_print): Return void.
+       * f-valprint.c (f_val_print): Return void.
+       * f-lang.h (f_val_print): Return void.
+       * d-valprint.c (d_val_print): Return void.
+       (dynamic_array_type): Update.
+       * d-lang.h (d_val_print): Return void.
+       * c-valprint.c (c_val_print): Return void.
+       * c-lang.h (c_val_print): Return void.
+       * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
+       void.
+       * ada-lang.h (ada_val_print): Return void.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * value.h (val_print): Return void.
+       * valprint.c (val_print): Return void.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * value.h (common_val_print): Return void.
+       * valprint.c (common_val_print): Return void.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * value.h (value_print): Return void.
+       * valprint.c (value_print): Return void.
+       * p-valprint.c (pascal_value_print): Return void.
+       * p-lang.h (pascal_value_print): Return void.
+       * language.h (struct language_defn) <la_value_print>: Return
+       void.
+       * language.c (unk_lang_value_print): Return void.
+       * jv-valprint.c (java_value_print): Return void.
+       * jv-lang.h (java_value_print): Return void.
+       * f-valprint.c (c_value_print): Don't declare.
+       Include c-lang.h.
+       * c-valprint.c (c_value_print): Return void.
+       * c-lang.h (c_value_print): Return void.
+       * ada-valprint.c (ada_value_print): Return void.
+       * ada-lang.h (ada_value_print): Return void.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * value.c (value_primitive_field): Handle virtual base classes.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * gdbtypes.h (struct vbase): Remove.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * c-valprint.c (print_function_pointer_address): Move...
+       * valprint.c: ... here.  Make non-static.
+       * m2-valprint.c (print_function_pointer_address): Remove.
+       * valprint.h (print_function_pointer_address): Declare.
+
+2012-03-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Document the fact that one can provide a condition when
+       creating an Ada exception catchpoint.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * valprint.c (val_print_type_code_flags): Fix placement of
+       trailing brace.
+
+2012-03-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
+       (update_files): Do not set MULTILINE_COMMENT_PREFIXES
+       environment variable before calling update-copyright.
+
+2012-03-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * gnulib/extra/update-copyright: Update to the latest from
+       gnulib's git repository.
+       * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
+       variable to 2 instead of 1.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * varobj.c (c_value_of_variable): Remove dead code.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lex.p (processId): Do not modify already encoded IDs.
+       Update function documentation.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.h (ada_find_renaming_symbol): Replace parameter
+       "name" with "struct symbol *name_sym".
+       * ada-exp.y (write_var_or_type): Update call to
+       ada_find_renaming_symbol.
+       "name" with "struct symbol *name_sym". Adjust Implementation
+       accordingly.  Adjust the function documentation.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
+       * ada-lang.c (ada_find_any_type): Add advance declaration.
+       Make static.  Replace ada_find_any_symbol by
+       ada_find_any_type_symbol.
+       (ada_find_any_type_symbol): Renames ada_find_any_symbol.
+       Improve function description.  Make static.
+       (ada_find_renaming_symbol, find_old_style_renaming_symbol):
+       Replace ada_find_any_symbol by ada_find_any_type_symbol.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (struct tag_args): Delete.
+       (ada_get_tsd_type): Function body moved up in source file.
+       (ada_tag_name_1, ada_tag_name_2): Delete.
+       (ada_get_tsd_from_tag): New function.
+       (ada_tag_name_from_tsd): New function.
+       (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
+       to determine the tag name.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
+       declaration.
+       * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
+       function.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
+       full searches.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (constrained_packed_array_type): If there is a
+       parallel XA type, use it to determine the array index type.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-valprint.c (ada_val_print_1): If our value is a reference
+       to an array descriptor, dereference it before converting it
+       to a simple array.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
+       creating fixed value.
+       (ada_value_ind, ada_coerce_ref, assign_component)
+       (ada_evaluate_subexp): Remove call to unwrap_value before
+       call to ada_to_fixed_value.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (to_fixed_array_type): Set result's type name.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (catch_ada_exception_command_split): Add new
+       argument cond_string.  Add support for condition at end of
+       "catch exception" commands.
+       (ada_decode_exception_location): Add new argument cond_string.
+       Update call to catch_ada_exception_command_split.
+       (create_ada_exception_catchpoint): Add new argument cond_string.
+       Set the breakpoint condition if needed.
+       (catch_ada_exception_command): Update call to
+       ada_decode_exception_location.
+       (ada_decode_assert_location): Add function documentation.
+       Add support for condition at end of "catch assert" command.
+       (catch_assert_command): Update calls to ada_decode_assert_location
+       and create_ada_exception_catchpoint.
+
+2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix disp-step-syscall.exp: fork: single step over fork.
+       * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
+       (i386_linux_get_syscall_number_from_regcache): ... here, new function
+       comment, change parameters gdbarch and ptid to regcache.  Remove
+       parameter regcache, initialize gdbarch from regcache here.
+       (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
+       New functions.
+       (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
+       instead.
+       * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
+       'syscall'.  Make the 'int' check more strict.
+
+2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
+       * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
+       (i386_linux_intx80_sysenter_syscall_record): ... here.
+       (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
+       Use the renamed function name.
+
+2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
+       * breakpoint.c (until_break_command): Likewise.
+       * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
+       * infcall.c (call_function_by_hand): Likewise.
+       * infcmd.c (finish_forward): Likewise.
+       * infrun.c (insert_exception_resume_breakpoint): Likewise.
+
+2012-02-28  Joel Brobecker  <brobecker@adacore.com>
+
+       From Tristan Gingold  <gingold@adacore.com>.
+       * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
+       avoid variable assignments inside condition.
+
+2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix static analysis issue found by cppcheck.
+       * microblaze-tdep.c (microblaze_extract_return_value): Fix
+       uninitialized BUF for size 2.
+
+2012-02-27  Chris Dearman  <chris@mips.com>
+            Nathan Froyd  <froydnj@codesourcery.com>
+            Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
+       (mips16_instruction_has_delay_slot): Likewise.
+       (mips_segment_boundary): Likewise.
+       (mips_adjust_breakpoint_address): Likewise.
+       (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
+
+2012-02-27  Maciej W. Rozycki  <macro@mips.com>
+            Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * infrun.c (handle_inferior_event): Don't proceed through
+       shared library trampolines if stepping at the machine
+       instruction level.
+
 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
This page took 0.026067 seconds and 4 git commands to generate.