gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 8d3541aa778dd0f6d46074e0746de98fc6b3467a..cd282322235cf740b5a1cdd904cab023e6c0da4a 100644 (file)
@@ -1,3 +1,217 @@
+2012-12-15  Yao Qi  <yao@codesourcery.com>
+
+       * remote.c (discard_pending_stop_replies): Update declaration.
+       (remote_detach_1, extended_remote_mourn_1): Likewise.
+       (discard_pending_stop_replies): Change parameter from PID to
+       INF.
+       (remote_close): Update caller.
+       (_initialize_remote): Attach discard_pending_stop_replies to
+       inferior_exit observer.
+
+2012-12-15  Yao Qi  <yao@codesourcery.com>
+
+       * remote.c (getpkt_or_notif_sane): Add one more argument in
+       its declaration.
+       (getpkt_or_notif_sane_1): Add one more argument.
+       (getpkt_sane): Update caller.
+       (getpkt_or_notif_sane): Likewise.  Update call
+       togetpkt_or_notif_sane_1.
+       (remote_wait_ns): Update caller.
+
+2012-12-15  Yao Qi  <yao@codesourcery.com>
+           Doug Evans  <dje@google.com>
+
+       * common/queue.h: New.
+
+2012-12-15  Yao Qi  <yao@codesourcery.com>
+
+       * breakpoint.c (print_one_breakpoint_location): Display the
+       state of 'installed' of each non-pending location of a tracepoint
+       in both CLI and MI.
+       (download_tracepoint_locations): Notify 'breakpoint-modified'
+       observer if any tracepoint location is downloaded.
+       * tracepoint.c (start_tracing): Likewise.
+       (merge_uploaded_tracepoints): Record all modified
+       tracepoints and notify 'breakpoint-modified' observer for them.
+
+       * NEWS: Mention the change for CLI and MI.
+
+2012-12-15  Yao Qi  <yao@codesourcery.com>
+
+       * breakpoint.c (download_tracepoint_locations): Iterate over
+       ALL_TRACEPOINTS first and then iterate over locations of
+       each tracepoint.
+
+2012-12-14  Pierre Muller  <muller@sourceware.org>
+           Pedro Alves  <palves@redhat.com>
+
+       * solib-target.c (solib_target_current_sos): Remove 'const'
+       qualifier from type of library_document local variable to be
+       able to free it and avoid a memory leak.
+       Use cleanup chain to avoid leak even if exceptino is generated.
+
+2012-12-14  Tom Tromey  <tromey@redhat.com>
+
+       PR c++/8888:
+       * symtab.c (lookup_symbol_aux): If constructor is found, consider
+       returning the type instead.
+       * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
+       found.
+
+2012-12-14  Tom Tromey  <tromey@redhat.com>
+
+       Partial fix for PR c++/14160:
+       * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
+       * dwarf2read.c (dwarf2_is_constructor): New function.
+       (dwarf2_add_member_fn): Use it.
+       * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
+       TYPE_FN_FIELD_CONSTRUCTOR.
+       * jv-typeprint.c (java_type_print_base): Use
+       TYPE_FN_FIELD_CONSTRUCTOR.
+       * gdbtypes.h (struct fn_field) <is_constructor>: New field.
+       <dummy>: Shrink.
+       (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
+
+2012-12-14  Tom Tromey  <tromey@redhat.com>
+
+       * c-exp.y (block, variable, name_not_typename, lex_one_token,
+       classify_name): Update.
+       * c-valprint.c (c_val_print): Update.
+       * f-exp.y (yylex): Update.
+       * go-exp.y (package_name_p, classify_packaged_name)
+       (classify_name): Update.
+       * jv-exp.y (push_variable): Update.
+       * m2-exp.y (variable): Update.
+       * mi/mi-cmd-stack.c (list_args_or_locals): Update.
+       * p-exp.y (block, variable, yylex): Update.
+       * p-valprint.c (pascal_val_print): Update.
+       * parse.c (write_dollar_variable): Update.
+       * printcmd.c (address_info): Update.
+       * python/py-symbol.c (gdbpy_lookup_symbol): Update.
+       * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
+       (lookup_symbol): Change type of 'is_a_field_of_this'.
+       (check_field): Add 'is_a_field_of_this' argument.
+       * symtab.h (struct field_of_this_result): New.
+       (lookup_symbol, lookup_symbol_in_language): Update.
+
+2012-12-14  Tom Tromey  <tromey@redhat.com>
+
+       * symtab.c (check_field): Now static.  Move from...
+       * valops.c (check_field): ... here.  Remove.
+       * value.h (check_field): Don't declare.
+
+2012-12-14  Tom Tromey  <tromey@redhat.com>
+
+        * NEWS: Mention "info proc" and core files.
+        * corelow.c (core_info_proc): New function.
+        (init_core_ops): Set to_info_proc.
+        * gdbarch.c, gdbarch.h: Rebuild.
+        * gdbarch.sh (core_info_proc): New method.
+        * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
+        * linux-tdep.c (linux_core_info_proc_mappings)
+        (linux_core_info_proc): New functions.
+        (linux_find_memory_region_ftype): New typedef.
+        (linux_find_memory_regions_full): New function, from
+        linux_find_memory_regions.
+        (struct linux_find_memory_regions_data): New.
+        (linux_find_memory_regions_thunk): New function.
+        (linux_find_memory_regions): Rewrite.
+        (struct linux_make_mappings_data): New.
+        (linux_make_mappings_callback)
+        (linux_make_mappings_corefile_notes): New functions.
+        (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
+        (linux_init_abi): Call set_gdbarch_core_info_proc.
+        * target.c (target_info_proc): Return 'int'.
+        * target.h (target_info_proc): Update.
+
+2012-12-14  Pierre Muller  <muller@sourceware.org>
+
+       * windows-nat.c (windows_xfer_shared_libraries): Avoid
+       memory leak when OFFSET >= LEN_AVAIL.
+
+2012-12-13  Tom Tromey  <tromey@redhat.com>
+
+       * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
+
+2012-12-13  Tom Tromey  <tromey@redhat.com>
+
+       * acinclude.m4 (CY_AC_C_WORKS): Remove.
+
+2012-12-13  Pierre Muller  <muller@sourceware.org>
+
+       * coff-pe-read.c (pe_text_section_offset): Increase size of sname
+       local variable and zero terminate it to avoid possible problems
+       in strcmp.
+
+2012-12-13  Pedro Alves  <palves@redhat.com>
+
+       * coff-pe-read.c: Include coff/internal.h.
+       (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
+       Null terminate buffer explicitly instead of memset the whole
+       buffer.
+
+2012-12-13  Pierre Muller  <muller@sourceware.org>
+
+       * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
+       (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
+       for already defined macros.
+
+2012-12-13  Pierre Muller  <muller@sourceware.org>
+
+       * coff-pe-read.h (pe_text_section_offset): Declare new function.
+       * coff-pe-read.c (debug_coff_pe_read): New static variable.
+       (struct read_pe_section_data): Add section_name field.
+       (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
+       (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
+       (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
+       (get_pe_section_index): New function.
+       (struct pe_sections_info): New type.
+       (get_section_vmas): Use new struct pe_sections_info.
+       (add_pe_exported_sym): Handle unnamed exported function.
+       (add_pe_forwarded_sym): New function.
+       (read_pe_truncate_name): Truncate at last dot.
+       (pe_as16): New function.
+       (read_pe_exported_syms): Use ordinal of function to
+       retrieve correct RVA address of function and handle
+       forwarded symbol.
+       (pe_text_section_offset): New function.
+       (show_debug_coff_pe_read): New function.
+       (_initialize_coff_pe_read): New function adding
+       'set/show debug coff_pe_read' commands.
+
+       * windows-tdep.c (windows_xfer_shared_library): Use
+       pe_text_section_offset function instead of possibly wrong
+       0x1000 constant for .text sextion offset.
+
+2012-12-13  Pedro Alves  <palves@redhat.com>
+
+       * gdbarch.sh (do_read): Set IFS to blank.
+
+2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
+
+       * NEWS: Mention the -catch-load/-catch-unload MI commands.
+
+2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
+
+       * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
+       (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
+       * breakpoint.c (add_solib_catchpoint): New function that
+       can be used by both CLI and MI, factored out from
+       catch_load_or_unload.
+       (catch_load_or_unload): Strip it down and make it use the
+       new add_solib_catchpoint.
+       * breakpoint.h (add_solib_catchpoint): Declare it.
+       * mi/mi-cmd-break.h: New file.
+       * mi/mi-cmd-break.c: Include mi-cmd-break.h.
+       (setup_breakpoint_reporting): New function used for both
+       catchpoints and breakpoints.
+       (mi_cmd_break_insert): Use setup_breakpoint_reporting.
+       * mi/mi-cmd-catch.c: New file.
+       * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
+       and -catch-unload.
+       * mi/mi-cmds.h: Declare the handlers for -catch-load and
+       -catch-unload.
+
 2012-11-28  Tom Tromey  <tromey@redhat.com>
 
        * dbxread.c (read_dbx_symtab): Update.
        * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
        string case for Python 3.
        (unicode_to_encoded_python_string): Shorten code (no functional
-       change). 
+       change).
        (python_string_to_target_python_string): Comment that in Python 3
        returned value is a Python "bytes" type.
        (gdbpy_is_string): Omit non-Unicode string check in Python 3.
        (value_object_as_number): Adjust struct initializations for
        differences in layout for Python 2 vs. Python 3.
        * python/python-config.py: Adjust syntax for Python 3
-       compatibility. 
+       compatibility.
        Include "sys.abiflags" string as part of python library name, if
        that attribute exists (Python 3).
        * python/python-internal.h (IS_PY3): Define if Python 3.
        (xcoff_free_info): New function.
        (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
 
+2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
+
+       * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
+
 2012-12-12  Tom Tromey  <tromey@redhat.com>
 
        * coffread.c (coff_symfile_init): Use set_objfile_data.
 
 2012-11-29  Jerome Guitton  <guitton@adacore.com>
 
-        * ada-lang.h (ada_tag_value_at_base_address): New function
+       * ada-lang.h (ada_tag_value_at_base_address): New function
        declaration.
        * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
        New functions.
        * gdbarch.c: Regenerate.
 
 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
-            Tom Tromey  <tromey@redhat.com>
+           Tom Tromey  <tromey@redhat.com>
 
        * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
        inneffective if condition by gdb assertion.  Add function
        for command 'remotetimeout'.
        * command.h (enum var_types): New zuinteger_unlimited.  Update comment
        to var_integer.
-       * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
-       for command 'set listsize'.
+       * source.c (_initialize_source): Call
+       add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
 
 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        error message from the target.
 
        * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
-       Catch this exception and print the error message contained within. Do not
-       print the default hardware error breakpoint message in this case.
+       Catch this exception and print the error message contained within.
+       Do not print the default hardware error breakpoint message in this
+       case.
 
 2012-09-12  Doug Evans  <dje@google.com>
 
        DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
        Update some commands.
        * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
-       * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
-       to 1.
+       * mi/mi-main.c (mi_cmd_execute): Set
+       '*parse->cmd->suppress_notification' to 1.
 
 2012-08-31  Yao Qi  <yao@codesourcery.com>
 
        can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
        can_use_displaced_stepping_enum.
        Change can_use_displaced_stepping's type to 'enum auto_boolean'.
-       (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
+       (show_can_use_displaced_stepping, use_displaced_stepping): Update
+       callers.
        (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
        add_setshow_enum_cmd.
 
This page took 0.029502 seconds and 4 git commands to generate.