* symtab.h (print_source_lines_flags): New enum.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 54782fbed965291121033c4cebd6bd1e019ac4a9..498b6a7df7050664d311ce0f51e93ef0582c9e24 100644 (file)
@@ -1,3 +1,295 @@
+2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
+
+       * symtab.h (print_source_lines_flags): New enum.
+       * source.c (print_source_lines_base): Change noerror to flags.
+       (print_source_lines): Change noerror to flags.
+
+2012-11-13  Pierre Muller  <muller@sourceware.org>
+
+       ARI fixes: Avoid sprintf function use rule.
+       * charset.c (convert_between_encodings): Use xsnprintf.
+       * cli-out.c (cli_field_int): Likewise.
+       * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
+       * expprint.c (op_name_standard): Likewise.
+       * frv-tdep.c (set_variant_num_gprs): Likewise.
+       (set_variant_num_fprs): Likewise.
+       * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
+       * nto-tdep.c (nto_find_and_open_solib): Likewise.
+       (nto_init_solib_absolute_prefix): Likewise.
+       * source.c (init_source_path): Likewise.
+       (print_source_lines_base): Likewise.
+       * valprint.c (print_wchar): Likewise.
+       * mi/mi-out.c (mi_field_int): Likewise.
+       windows-nat.c (windows_pid_to_exec_file): Likewise.
+       (windows_create_inferior): Likewise.
+       (_initialize_check_for_gdb_ini): Likewise.
+
+2012-11-12  Joel Brobecker  <brobecker@adacore.com>
+
+       * frame.h (deprecated_frame_register_read): Renames
+       frame_register_read.
+       * frame.c (deprecated_frame_register_read): Renames
+       frame_register_read.  Update all callers.
+       * i386-tdep.c: Update all callers of frame_register_read.
+       * infcmd.c: Likewise.
+       * jit.c: Likewise.
+       * mips-tdep.c: Likewise.
+       * mt-tdep.c: Likewise.
+       * sh64-tdep.c: Likewise.
+
+2012-11-12  Joel Brobecker  <brobecker@adacore.com>
+
+       * frame.h (frame_register_read): Remove FIXME comment.
+       * frame.c (frame_register_read): Add suggestion explaining
+       which function to use in place of this one.
+
+2012-11-12  Tom Tromey  <tromey@redhat.com>
+
+       * python/python.c (start_type_printers): Initialize 'result_obj'.
+
+2012-11-12  Tom Tromey  <tromey@redhat.com>
+
+       * NEWS: Update.
+       * data-directory/Makefile.in (PYTHON_FILES): Add
+       type_printers.py.
+       * python/lib/gdb/command/type_printers.py: New file.
+       * python/lib/gdb/command/types.py (TypePrinter): New class.
+       (_get_some_type_recognizers, get_type_recognizers,
+       apply_type_recognizers, register_type_printer): New
+       functions.
+       * python/py-objfile.c (objfile_object) <type_printers>: New
+       field.
+       (objfpy_dealloc): Decref new field.
+       (objfpy_new): Set new field.
+       (objfpy_get_type_printers, objfpy_set_type_printers): New
+       functions.
+       (objfile_to_objfile_object): Set new field.
+       (objfile_getset): Add "type_printers".
+       * python/py-progspace.c (pspace_object) <type_printers>: New
+       field.
+       (pspy_dealloc): Decref new field.
+       (pspy_new): Set new field.
+       (pspy_get_type_printers, pspy_set_type_printers): New functions.
+       (pspace_to_pspace_object): Set new field.
+       (pspace_getset): Add "type_printers".
+       * python/python.c (start_type_printers, apply_type_printers,
+       free_type_printers): New functions.
+       (_initialize_python): Set gdb.type_printers.
+       * python/python.h (start_type_printers, apply_type_printers,
+       free_type_printers): Declare.
+       * typeprint.c (type_print_raw_options, default_ptype_flags):
+       Update for new fields.
+       (do_free_global_table, create_global_typedef_table,
+       find_global_typedef): New functions.
+       (find_typedef_in_hash): Use find_global_typedef.
+       (whatis_exp): Use create_global_typedef_table.  Change cleanup
+       handling.
+       * typeprint.h (struct type_print_options) <global_typedefs,
+       global_printers>: New fields.
+
+2012-11-12  Tom Tromey  <tromey@redhat.com>
+
+       * c-typeprint.c (find_typedef_for_canonicalize,
+       print_name_maybe_canonical): New functions.
+       (c_print_type): Look up type name.
+       (cp_type_print_derivation_info): Add flags argument.  Use
+       print_name_maybe_canonical.
+       (cp_type_print_method_args): Add wrapping.
+       (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
+       (c_type_print_template_args): New function.
+       (c_type_print_base): Change wrapping.  Use
+       print_name_maybe_canonical.
+       <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
+       type name lookups.
+       * gdbtypes.c (types_equal): No longer static.
+       * gdbtypes.h (types_equal): Declare.
+       * typeprint.c (type_print_raw_options, default_ptype_flags):
+       Update.
+       (struct typedef_hash_table): New.
+       (hash_typedef_field, eq_typedef_field,
+       recursively_update_typedef_hash, add_template_parameters,
+       create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
+       make_cleanup_free_typedef_hash, copy_typedef_hash_element,
+       copy_typedef_hash, find_typedef_in_hash): New functions.
+       * typeprint.h (struct type_print_options) <local_typedefs>:
+       New field.
+       (recursively_update_typedef_hash, add_template_parameters,
+       create_typedef_hash, free_typedef_hash,
+       make_cleanup_free_typedef_hash, copy_typedef_hash,
+       find_typedef_in_hash): Declare.
+
+2012-11-12  Tom Tromey  <tromey@redhat.com>
+
+       * cp-support.c (inspect_type,
+       replace_typedefs_qualified_name, replace_typedefs): Add
+       finder, data arguments.  Call as needed.
+       (cp_canonicalize_string_full): New function.
+       (cp_canonicalize_string_no_typedefs): Rewrite.
+       * cp-support.h (canonicalization_ftype): New typedef.
+       (cp_canonicalize_string_full): Declare.
+
+2012-11-12  Tom Tromey  <tromey@redhat.com>
+
+       * NEWS: Update.
+       * c-typeprint.c (c_type_print_base): Handle print_method and
+       print_typedefs flags.
+       * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
+       * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
+       options.
+       * typeprint.c (type_print_raw_options, default_ptype_flags):
+       Update for new field.s
+       (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
+       (setprinttypelist, showprinttypelist, print_methods,
+       print_typedefs): New globals.
+       (set_print_type, show_print_type, set_print_type_methods,
+       show_print_type_methods, set_print_type_typedefs,
+       show_print_type_typedefs): New functions.
+       (_initialize_typeprint): Update documentation.  Add "print
+       type methods" and "print type typedefs" parameters.
+       * typeprint.h (struct type_print_options) <print_methods,
+       print_typedefs>: New fields.
+
+2012-11-12  Tom Tromey  <tromey@redhat.com>
+
+       * c-typeprint.c (cp_type_print_method_args): Add flags
+       argument.  Call c_print_type, not type_print.
+       (c_type_print_base): Call c_print_type, not type_print.
+       Update.
+
+2012-11-12  Tom Tromey  <tromey@redhat.com>
+
+       * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
+       to type-printing functions.
+       * ada-lang.h (ada_print_type): Add argument.
+       * ada-typeprint.c (print_array_type, print_variant_clauses,
+       print_variant_part, print_selected_record_field_types,
+       print_record_field_types, print_unchecked_union_type,
+       print_func_type, ada_print_type): Add flags argument.
+       (ada_print_typedef): Update.
+       * c-exp.y (OPERATOR conversion_type_id): Update.
+       * c-lang.h (c_print_type, c_type_print_base): Update.
+       * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
+       c_type_print_modifier, c_type_print_args,
+       c_type_print_varspec_suffix, c_type_print_base): Add flags
+       argument.
+       * cp-valprint.c (cp_print_class_member): Update.
+       * dwarf2read.c (dwarf2_compute_name): Update.
+       * f-lang.h (f_print_type): Add argument.
+       * f-typeprint.c (f_print_type): Add flags argument.
+       * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
+       * go-lang.h (go_print_type): Add argument.
+       * go-typeprint.c (go_print_type): Add flags argument.
+       * jv-lang.h (java_print_type): Add argument.
+       * jv-typeprint.c (java_type_print_base, java_print_type): Add
+       flags argument.
+       * language.c (unk_lang_print_type): Add flags argument.
+       * language.h (struct language_defn) <la_print_type>: Add flags
+       argument.
+       (LA_PRINT_TYPE): Likewise.
+       * m2-lang.h (m2_print_type): Add argument.
+       * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
+       m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
+       m2_unbounded_array, m2_record_fields): Add flags argument.
+       * p-lang.h (pascal_print_type, pascal_type_print_base,
+       pascal_type_print_varspec_prefix): Add argument.
+       * p-typeprint.c (pascal_print_type,
+       pascal_type_print_varspec_prefix, pascal_print_func_args,
+       pascal_type_print_varspec_suffix, pascal_type_print_base): Add
+       flags argument.
+       * symmisc.c (print_symbol): Update.
+       * typeprint.c (type_print_raw_options, default_ptype_flags):
+       New globals.
+       (type_print): Update.
+       * typeprint.h (struct type_print_options): New.
+       (type_print_raw_options): Declare.
+       (c_type_print_varspec_suffix, c_type_print_args): Add argument.
+
+2012-11-10  Keith Seitz  <keiths@redhat.com>
+
+       * breakpoint.c (clear_command): Add cleanup for
+       sals.sals if an argument is given.
+
+       * linespec.c (parse_linespec): Do cleanups after
+       parsing a convenience variable.
+
+2012-11-10  Keith Seitz  <keiths@redhat.com>
+
+       PR gdb/14288
+       * c-valprint.c (c_val_print): For character arrays
+       with "print null" option on, print ellipses if
+       the output is truncated and the next character is not \000.
+       * valprint.c (MAX_WCHARS): Define.
+       (WCHAR_BUFLEN): Likewise.
+       (WCHAR_BUFLEN_MAX): Likewise.
+       (struct converted_character): New structure.
+       (count_next_character): New function.
+       (print_converted_chars_to_obstack): New function.
+       (generic_printstr): Rewrite using count_next_character
+       and print_converted_chars_to_obstack.
+
+2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
+
+       * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
+       while executing the gdb command.
+       (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
+       are called from prompt_for_continue.
+       * tui/tui-io.c (tui_redisplay_readline): Likewise.
+
+2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
+
+       PR tui/9584
+
+       * tui/tui.c (tui_rl_command_key): Do not call execute_command
+       but insert the command to execute in readline's buffer.
+
+2012-11-09  Tom Tromey  <tromey@redhat.com>
+
+       * gdbarch.sh (target_gdbarch): Remove macro.
+       (get_target_gdbarch): Rename to target_gdbarch.
+       * gdbarch.c, gdbarch.h: Rebuild.
+       * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
+       arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
+       darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
+       filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
+       ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
+       linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
+       mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
+       mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
+       nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
+       procfs.c, progspace.c, ravenscar-thread.c, record.c,
+       remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
+       rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
+       solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
+       solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
+       solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
+       spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
+       target-descriptions.c, target.c, target.h, tracepoint.c,
+       windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
+       common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
+       python/py-inferior.c, python/python.c: Update.
+
+2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
+
+       * source.c (print_source_lines_base): Add fullname field giving
+       full path to file in mi output.
+       * NEWS: Mention the new fullname field.
+
+2012-11-09  Yao Qi  <yao@codesourcery.com>
+
+       * NEWS: Mention the fix to the ambiguity of 'fo' command.
+
+2012-11-09  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/14306
+
+       * infrun.c: Include target-descriptions.h.
+       (follow_exec): Fetch new target description.
+
+2012-11-09  Yao Qi  <yao@codesourcery.com>
+
+       * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
+       0x8d (lea).
+
 2012-11-09  Yao Qi  <yao@codesourcery.com>
 
        * breakpoint.c: Declare set_tracepoint_count.
This page took 0.027742 seconds and 4 git commands to generate.