Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: gdb/ChangeLog

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/CONTRIBUTE ('k') | gdb/ChangeLog-2011 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/ChangeLog
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 67a46b48852e73363e7eb12428efd4e393441518..4df03c51822e468e8a62861cb4ade8585ae861b9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,12488 +1,8534 @@
-2012-04-26 Joel Brobecker <brobecker@adacore.com>
-
- * version.in: Update GDB version number to 7.4.1.
-
-2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
-
- * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
- any thread.
-
-2012-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
+2012-11-29 Joel Brobecker <brobecker@adacore.com>
- * p-typeprint.c (pascal_type_print_method_args):
- Fix display of parameter of methods.
-
-2012-03-20 Pedro Alves <palves@redhat.com>
+ * version.in: Update GDB version number to 7.5.1.
- * remote.c (remote_start_remote): Clear `rs->starting_up' on early
- returns.
+2012-11-15 Luis Machado <lgustavo@codesourcery.com>
-2012-03-13 Hui Zhu <teawater@gmail.com>
- Pedro Alves <palves@redhat.com>
+ * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
+ target types.
- * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
- CREATE_BREAKPOINT_FLAGS_INSERTED.
- (create_breakpoint_sal, create_breakpoints_sal)
- (create_breakpoint): New flags parameter. Pass it down.
- (break_command_1, handle_gnu_v3_exceptions, trace_command)
- (ftrace_command, strace_command): Adjust.
- (create_tracepoint_from_upload): Pass
- CREATE_BREAKPOINT_FLAGS_INSERTED.
- * breakpoint.h (enum breakpoint_create_flags): New.
- (create_breakpoint): New flags parameter.
- * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
- * python/py-breakpoint.c (bppy_init): Adjust.
- * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
- * spu-tdep.c (spu_catch_start): Adjust.
+2012-11-10 H.J. Lu <hongjiu.lu@intel.com>
-2012-03-13 Pedro Alves <palves@redhat.com>
- Hui Zhu <teawater@gmail.com>
- Yao Qi <yao@codesourcery.com>
+ PR backtrace/14646
+ PR gdb/14647
+ * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
+ pc_regnum_from_eax.
+ * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
+ nor pc_regnum_from_eax.
+ * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
+ nor pc_regnum_from_eax.
- * remote.c (struct remote_state): New field `starting_up'.
- (remote_start_remote): Set and clear it.
- (remote_can_download_tracepoint): If starting up, return false.
+2012-10-11 Doug Evans <dje@google.com>
-2012-03-06 Pedro Alves <palves@redhat.com>
+ PR breakpoints/14643.
+ * linespec.c (struct ls_parser): New member keyword_ok.
+ (linespec_lexer_lex_string): Add comment.
+ (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
+ for one.
+ (parse_linespec): Set keyword_ok.
- PR gdb/13766
+2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
- * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
- the register state is clear, supply explicit zero, instead of
- marking the register unavailable.
+ Fix crash during stepping on ppc32.
+ * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
+ SYM.
-2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
- PR backtrace/13716
- * infcmd.c (finish_forward): New variable frame_id, initialize it, use
- it after set_momentary_breakpoint.
+ * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
+ (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
+ __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
+ Extend code also for PaX support. Convert all gdb_assert to warning
+ calls.
-2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
- PR build/13638
- * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
- (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
- * configure: Regenerate.
+ Implement auto-load user conveniences suggested by Doug Evans.
+ * auto-load.c: Include top.h.
+ (file_is_auto_load_safe): New variable advice_printed. Print advice.
+ (_initialize_auto_load): New variable scripts_directory_help. Mention
+ GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
+ scripts-directory. Document in online help one can use also files for
+ set auto-load safe-path.
+ * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
+ * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
-2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
- * configure: Regenerate.
- * config.in: Regenerate.
+ PR 14119
+ * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
+ (frame_pop): Drop also TAILCALL_FRAME frames.
+ * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
-2012-01-24 Joel Brobecker <brobecker@adacore.com>
+2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Pedro Alves <palves@redhat.com>
- * version.in: Set version to 7.4.0.20120124-cvs.
+ PR 14548
+ * infrun.c (handle_inferior_event): Do not reverse-continue back to the
+ function start if we are already at function start. Both for
+ reverse-next and for reverse-step into function without line number
+ info.
-2012-01-24 Joel Brobecker <brobecker@adacore.com>
+2012-08-29 Doug Evans <dje@google.com>
- GDB 7.4 released.
+ * main.c (print_gdb_help): Remove reference to
+ --use-deprecated-index-sections.
-2012-01-24 Joel Brobecker <brobecker@adacore.com>
+2012-08-27 Eli Zaretskii <eliz@gnu.org>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
- * NEWS: Change "since GDB 7.3.1" into "in GDB 7.4".
+ * auto-load.c (auto_load_objfile_script): Rename to ...
+ (auto_load_objfile_script_1): ... here, change variable realname to
+ parameter realname, document it, add return value, add variable retval.
+ (auto_load_objfile_script): New function.
-2012-01-24 Joel Brobecker <brobecker@adacore.com>
+2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
- * version.in: Update GDB version number to 7.4.
+ * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
+ followed by a whitespace.
-2012-01-14 Doug Evans <dje@google.com>
+2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
- Restore "mt set python print-stack on|off" for 7.4.
- * NEWS: Update to indicate "mt set python print-stack" is deprecated,
- but not deleted yet, and will be gone in gdb 7.5.
- * python/python.c (maint_set_python_list, maint_show_python_list):
- New global vars.
- (maint_set_python, maint_show_python): New functions.
- (gdbpy_should_print_stack_deprecated): New global var.
- (set_maint_python_print_stack): New function.
- (show_maint_python_print_stack): New function.
- (_initialize_python): Define commands
- "mt set python print-stack on|off" and ""mt show python print-stack".
+ PR gdb/14494.
+ * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
+ Move the SEC_HAS_CONTENTS check here - for any NAMES use.
+ (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
+ here.
-2012-01-13 Eli Zaretskii <eliz@gnu.org>
+2012-08-22 Keith Seitz <keiths@redhat.com>
- * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
- including curses.h.
+ * defs.h: Include build-gnulib/config.h
-2012-01-12 Pedro Alves <palves@redhat.com>
+2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
- * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
- available when %ebp is found to be zero (outermost).
+ * symfile.c (allocate_symtab): Use host_address_to_string
+ function instead of cast of pointer to long which is not
+ compatible with x86_64-w64-mingw32 build.
-2012-01-10 Doug Evans <dje@google.com>
+2012-08-17 Joel Brobecker <brobecker@adacore.com>
- * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
- "want_line_info". All callers updated.
- (dwarf_decode_lines_1): New function.
- (handle_DW_AT_stmt_list): Add function comment.
- New arg "want_line_info". All callers updated.
- (read_file_scope,read_type_unit_scope): Move comment from
- handle_DW_AT_stmt_list to here.
+ * version.in: Set version to 7.5.0.20120817-cvs.
-2012-01-06 Joel Brobecker <brobecker@adacore.com>
+2012-08-17 Joel Brobecker <brobecker@adacore.com>
- * version.in: Set version to 7.3.92.20120106-cvs.
+ GDB 7.5 released.
-2012-01-06 Joel Brobecker <brobecker@adacore.com>
+2012-08-17 Joel Brobecker <brobecker@adacore.com>
- GDB 7.3.92 released.
+ * version.in: Update GDB version number to 7.5.
-2012-01-06 Joel Brobecker <brobecker@adacore.com>
+2012-08-16 Tom Tromey <tromey@redhat.com>
- * version.in: Update GDB version number to 7.3.92.
+ PR python/14386:
+ * varobj.c (update_dynamic_varobj_children): Don't call
+ PyIter_Check.
-2012-01-06 Joel Brobecker <brobecker@adacore.com>
+2012-08-06 Tom Tromey <tromey@redhat.com>
- Copyright year update in most files of the GDB Project.
+ * dwarf2-frame.c (clear_pointer_cleanup): New function.
+ (dwarf2_frame_cache): Use it.
+ * frame-unwind.h (frame_sniffer_ftype): Document prologue
+ cache initialization constraint.
-2012-01-06 Joel Brobecker <brobecker@adacore.com>
+2012-08-06 Tom Tromey <tromey@redhat.com>
- * README (Copyright and License Notices): New section.
+ PR cli/14392:
+ * cli/cli-cmds.c (list_command): Filter 'sals_end'.
-2012-01-06 Joel Brobecker <brobecker@adacore.com>
+2012-08-03 Tom Tromey <tromey@redhat.com>
- * ada-lang.c: Reformat the copyright notice.
+ * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
+ return.
-2012-01-06 Joel Brobecker <brobecker@adacore.com>
+2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
- * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
- gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
- Reformat the copyright header.
+ * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
+ to attempting lseek/write.
+ (inf_child_fileio_pread): Likewise for pread.
-2012-01-06 Joel Brobecker <brobecker@adacore.com>
+2012-08-01 Richard Henderson <rth@redhat.com>
- * top.c (print_gdb_version): Update copyright year.
+ * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
+ (mep-*-*) [gdb_target_obs]: Likewise.
-2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
- Revert:
- 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
- Joel Brobecker <brobecker@adacore.com>
- Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
- * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
- 3 times.
- * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
- fall through into AT_ENTRY_POINT.
- (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
- DUMMY_ADDR with it.
- * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
- PPC_INSN_SIZE skip to 3 times.
+ * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
+ attempt to 4-byte-align HW breakpoint addresses for Thumb.
-2012-01-04 Joel Brobecker <brobecker@adacore.com>
+2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
- * linespec.c (add_minsym): Preserve function descriptors.
+ * ppc-linux-tdep.c (ppc_linux_init_abi): Register
+ linux_get_siginfo_type.
-2012-01-04 Joel Brobecker <brobecker@adacore.com>
+2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
- * linespec.c (struct collect_minsyms) [list_mode]: New field.
- (add_minsym): Ignore data symbols if not in list mode.
- (search_minsyms_for_name): Set local.list_mode.
+ * infcall.c (call_function_by_hand): Move BP_ADDR comment to
+ AT_ENTRY_POINT.
+ (call_function_by_hand) <ON_STACK>: Call write_memory with
+ gdbarch_breakpoint_from_pc, if possible.
+ (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
+ here.
-2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
+2012-07-30 Keith Seitz <keiths@redhat.com>
- * breakpoint.c (all_locations_are_pending): Consider locations
- in program spaces executing during startup pending as well.
+ * linespec.c (linespec_lexer_lex_number): A number followed
+ by quotes is a valid number, too.
-2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
- Joel Brobecker <brobecker@adacore.com>
+2012-07-26 Keith Seitz <keiths@redhat.com>
- Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
- * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
- 3 times.
- * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
- fall through into AT_ENTRY_POINT.
- (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
- DUMMY_ADDR with it.
- * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
- PPC_INSN_SIZE skip to 3 times.
+ * linespec.c (linespec_lexer_lex_number): The input
+ is also a valid number if the next character is a comma
+ or colon.
-2012-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * NEWS (Changes in GDB 7.4): Add gdbtui deprecation note.
- * tui/tui-main.c: Likewise.
-
-2011-12-23 Kevin Pouget <kevin.pouget@st.com>
-
- Introduce gdb.FinishBreakpoint in Python
- * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
- (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
- Add build rule for this file.
- * infcmd.c (print_return_value): Split to create get_return_value.
- (get_return_value): New function based on print_return_value. Handle
- case where stop_registers are not set.
- * inferior.h (get_return_value): New prototype.
- * python/py-breakpoint.c (bppy_pending_object): Make non-static.
- (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
- (struct breakpoint_object): Move to python-internal.h
- (BPPY_REQUIRE_VALID): Likewise.
- (BPPY_SET_REQUIRE_VALID): Likewise.
- (gdbpy_breakpoint_created): Initialize is_finish_bp.
- (gdbpy_should_stop): Add pre/post hooks before/after calling stop
- method.
- * python/python-internal.h (breakpoint_object_type): Add as extern.
- (bppy_pending_object): Likewise.
- (typedef struct breakpoint_object) Removed.
- (struct breakpoint_object): Moved from py-breakpoint.c.
- Add field is_finish_bp.
- (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
- (BPPY_SET_REQUIRE_VALID): Likewise.
- (frame_object_to_frame_info): New prototype.
- (gdbpy_initialize_finishbreakpoints): New prototype.
- (bpfinishpy_is_finish_bp): Likewise.
- (bpfinishpy_pre_stop_hook): Likewise.
- (bpfinishpy_post_stop_hook): Likewise.
- * python/py-finishbreakpoint.c: New file.
- * python/py-frame.c(frame_object_to_frame_info): Make non-static and
- accept PyObject instead of frame_object.
- (frapy_is_valid): Don't cast to frame_object.
- (frapy_name): Likewise.
- (frapy_type): Likewise.
- (frapy_unwind_stop_reason): Likewise.
- (frapy_pc): Likewise.
- (frapy_block): Likewise.
- (frapy_function): Likewise.
- (frapy_older): Likewise.
- (frapy_newer): Likewise.
- (frapy_find_sal): Likewise.
- (frapy_read_var): Likewise.
- (frapy_select): Likewise.
- * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
- (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
- * python/python.h: Include breakpoint.h
- (gdbpy_is_stopped_at_finish_bp): New prototype.
-
-2011-12-22 Andreas Schwab <schwab@linux-m68k.org>
-
- * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
- watchpoints when supported.
-
- * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
- obstack_empty_p.
-
-2011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
+2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
- PR tdep/12797
- * arm-tdep.c (arm_return_value): Handle complex types.
+ * configure.tgt: Add v850*-*-rtems*.
-2011-12-19 Doug Evans <dje@google.com>
+2012-07-25 Hui Zhu <hui_zhu@mentor.com>
- * python/py-auto-load.c (info_auto_load_scripts): Pass address of
- scripts vector to collect_matching_scripts.
- (collect_matching_scripts): Update.
+ * linespec.c (linespec_lexer_lex_number): Update comments,
+ change the return and add check to make sure the input is
+ the decimal numbers.
+ (linespec_lexer_lex_one): If linespec_lexer_lex_number return
+ false, call linespec_lexer_lex_string.
-2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
- * symfile.c (reread_symbols): Move free_objfile_separate_debug,
- preserve_values, sym_finish and clear_objfile_data calls before BFD
- close. Move free_objfile_separate_debug as the very first call. New
- comment on the ordering.
+ * breakpoint.c (create_breakpoint): Store condition for pending
+ breakpoints.
-2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
+2012-07-23 Keith Seitz <keiths@redhat.com>
- * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
- in return PSWA.
+ * linespec.c (convert_linespec_to_sal): Don't add
+ any symbols to the result vector if symbol_to_sal
+ returns zero.
-2011-12-17 Mark Kettenis <kettenis@gnu.org>
+2012-07-20 Doug Evans <dje@google.com>
- * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
- regset_from_core_section.
- (amd64obsd_core_init_abi): New function that sets
- regset_from_core_section.
- (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
- traditional core dumps.
+ * NEWS: Document new options "set/show use-deprecated-index-sections",
+ and delete reference to --use-deprecated-index-sections.
+ * symfile.h (use_deprecated_index_sections): Delete.
+ * dwarf2read.c (use_deprecated_index_sections): Make static.
+ (read_index_from_section): Update wording of how to load
+ deprecated index sections.
+ (_initialize_dwarf2_read): New options
+ "set/show use-deprecated-index-sections".
+ * main.c (captured_main): Delete --use-deprecated-index-sections.
-2011-12-17 Mark Kettenis <kettenis@gnu.org>
+2012-07-18 Joel Brobecker <brobecker@adacore.com>
- * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
- trampoline to be introduced in OpenBSD 5.0.
+ * version.in: Set version to 7.4.91.20120718-cvs.
-2011-12-16 Tom Tromey <tromey@redhat.com>
+2012-07-18 Joel Brobecker <brobecker@adacore.com>
- * linespec.c (collect_symbols): Call maybe_add_address after
- calling symbol_to_sal.
- (minsym_found): Call maybe_add_address here.
- (search_minsyms_for_name): Don't call maybe_add_address.
+ GDB 7.4.91 released.
-2011-12-16 Tom Tromey <tromey@redhat.com>
+2012-07-18 Joel Brobecker <brobecker@adacore.com>
- * linespec.c (struct collect_info) <objfile>: Remove field.
- (decode_objc): Update.
- (find_method): Update.
- (decode_variable): Update.
- (struct minsym_and_objfile): New.
- (struct collect_minsyms): New.
- (classify_mtype): New function.
- (compare_msyms): Likewise.
- (add_minsym): Likewise.
- (check_minsym): Remove.
- (search_minsyms_for_name): Sort minsyms and apply only those with
- top priority.
+ * NEWS: Replace "Changes since GDB 7.4" with "Changes in GDB 7.5".
-2011-12-16 Tom Tromey <tromey@redhat.com>
+2012-07-18 Joel Brobecker <brobecker@adacore.com>
- * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
+ * version.in: Update GDB version number to 7.4.91.
-2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
+2012-07-18 Joel Brobecker <brobecker@adacore.com>
- * python/python.c: Define python_excp_enums.
- (eval_python_from_control_command): Do not call gdbpy_print_stack.
- (python_command): Ditto.
- (gdbpy_print_stack): Rewrite to use new enum constants.
- (maint_set_python): Remove function.
- (maint_show_python): Ditto.
- (_initialize_python): Do not add "maint" commands. Add "set/show
- python print-stack commands".
- * NEWS: Update to reflect removal for "maint set/show
- print-stack"
+ * configure.ac (development): Set to false.
+ * configure: Regenerate.
-2011-12-15 Tom Tromey <tromey@redhat.com>
+2012-07-18 Joel Brobecker <brobecker@adacore.com>
- * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
- do_cleanups call.
+ GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
+ * version.in: Bump version to 7.4.90.20120718-cvs.
-2011-12-14 Pedro Alves <pedro@codesourcery.com>
+2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
- * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
- target_write_raw_memory.
- * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
- target_write_raw_memory.
- * microblaze-linux-tdep.c
- (microblaze_linux_memory_remove_breakpoint): Use
- target_write_raw_memory.
- * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
- target_write_raw_memory.
+ PR 11914
+ * f-valprint.c (info_common_command): New variable frame_id.
+ Reinitialize FI form FRAME_ID after each print_variable_and_value.
+ * printcmd.c (print_variable_and_value): Extend function comment.
+ Add comment for invalidated FRAME.
+ * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
+ FI form FRAME_ID after each print_frame_local_vars.
+ (struct print_variable_and_value_data): Change frame to frame_id.
+ (do_print_variable_and_value): New variable frame, initialize it from
+ p->frame_id. Add comment for invalidated FRAME.
+ (print_frame_local_vars, print_frame_arg_vars): New function comment.
+ Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
+ for invalidated FRAME.
-2011-12-14 Yao Qi <yao@codesourcery.com>
+2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
+ Pedro Alves <palves@redhat.com>
- * breakpoint.c (create_breakpoint): Set canonical.addr_string
- for static tracepoint.
+ * linux-nat.c (linux_nat_detach): Don't unregister from the event
+ loop.
+
+2012-07-16 Tom Tromey <tromey@redhat.com>
+
+ * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
+
+2012-07-15 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (stmt_list_hash): New struct.
+ (type_unit_group): Embed "per_cu" member, remove pointer.
+ New union member "t", move member "tus" into it, all uses updated.
+ New member "hash", replaces member "line_offset, all uses updated.
+ (quick_file_names): Replace member "offset" with "hash", all uses
+ updated.
+ (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
+ (hash_file_name_entry, eq_file_name_entry): Call them.
+ (hash_type_unit_group, eq_type_unit_group): Ditto.
+ (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
+ (dw2_get_file_names_reader): Fix file name table calculation for TUs.
+ (dw2_get_file_names): Update.
+ (create_type_unit_group): Replace "per_cu" arg with "cu".
+ All callers updated. Fix "quick" (.gdb_index) handling.
+ (get_type_unit_group): Replace "per_cu" arg with "cu".
+ All callers updated.
+ (build_type_unit_groups): Don't reset tu_stats.
-2011-12-13 Joel Brobecker <brobecker@adacore.com>
+ * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
+ "tab_cur_size". Change member "tab" to be a htab_t.
+ (create_filename_seen_cache): Update.
+ (clear_filename_seen_cache, delete_filename_seen_cache): Update.
+ (filename_seen): Update.
- * version.in: Set version to 7.3.91.20111213-cvs.
+2012-07-13 Doug Evans <dje@google.com>
-2011-12-13 Joel Brobecker <brobecker@adacore.com>
+ * symtab.c (filename_seen): Update comment.
- GDB 7.3.91 released.
+2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Doug Evans <dje@google.com>
-2011-12-13 Joel Brobecker <brobecker@adacore.com>
+ * buildsym.c (end_symtab_1): Split it to ...
+ (end_symtab_get_static_block): ... this ...
+ (end_symtab_from_static_block): ... and this function.
+ (end_symtab, end_expandable_symtab): Call them.
+ * buildsym.h (end_symtab_get_static_block)
+ (end_symtab_from_static_block): New declarations.
+ * dwarf2read.c (process_full_comp_unit): New variable static_block.
+ Set its valid CU ranges.
- * version.in: Update GDB version number to 7.3.91.
+2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-12-13 Joel Brobecker <brobecker@adacore.com>
+ * dwarf2loc.c (disassemble_dwarf_expression): Handle
+ DW_OP_GNU_parameter_ref.
- * configure.ac: Disable -Werror by default.
- * configure: Regenerate.
+2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-12-13 Joel Brobecker <brobecker@adacore.com>
+ * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
+ read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
- GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
- * version.in: Bump version to 7.3.90.20111213-cvs.
+2012-07-13 Doug Evans <dje@google.com>
-2011-12-11 Joel Brobecker <brobecker@adacore.com>
+ * symtab.c (output_source_filename): Delete unnecessary forward decl.
+ (filename_seen_cache): New struct.
+ (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
+ (create_filename_seen_cache): New function.
+ (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
+ (filename_seen): Delete arg "first". New arg "cache". All callers
+ updated.
+ (output_source_filename_data): New struct.
+ (output_source_filename): Delete arg "first". New arg "data".
+ All callers updated.
+ (sources_info): Delete local "first". New locals "data", "cleanups".
+ Rewrite to use filename_seen_cache.
+ (add_partial_filename_data): Delete member "first". New member
+ "filename_seen_cache". All uses updated.
+ (make_source_files_completion_list): Rewrite to use
+ filename_seen_cache.
+
+2012-07-12 Doug Evans <dje@google.com>
+
+ * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
+
+2012-07-10 Doug Evans <dje@google.com>
+
+ PR gdb/13498
+ * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
+ all_type_unit_groups, type_unit_groups, tu_stats.
+ (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
+ All uses updated. Add type_unit_group to union "s".
+ (type_unit_group): New struct.
+ (IS_TYPE_UNIT_GROUP): New macro.
+ (abbrev_table): Delete unused member "section".
+ (dw2_do_instantiate_symtab): Early exit if type_unit_group.
+ (dw2_get_cu): Assert not used with type_unit_group.
+ (dw2_get_primary_cu): New function.
+ (dw2_build_type_unit_groups_reader): New function.
+ (dw2_build_type_unit_groups): New function.
+ (dw2_get_file_names): Assert not called on type units.
+ (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
+ Redo loop to iterate over type unit groups instead of type units.
+ (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
+ (read_abbrev_offset): New function.
+ (init_cutu_and_read_dies): New arg "abbrev_table". All callers
+ updated.
+ (create_partial_symtab): New function.
+ (process_psymtab_comp_unit_reader): Assert not used with type units.
+ Call create_partial_symtab.
+ (process_psymtab_type_unit): Delete.
+ (hash_type_unit_group, eq_type_unit_group): New functions.
+ (allocate_type_unit_groups_table): New function.
+ (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
+ (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
+ (create_type_unit_group, get_type_unit_group): New functions.
+ (tu_abbrev_offset): New struct.
+ (sort_tu_by_abbrev_offset): New function.
+ (add_type_unit_group_to_table): New function.
+ (build_type_unit_groups): New function.
+ (build_type_psymtabs_reader): New function.
+ (build_type_psymtab_dependencies): New function.
+ (build_type_psymtabs): Rewrite.
+ (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
+ is seen in a type unit.
+ (process_queue): Move symtab expansion debugging printfs here.
+ Call process_full_type_unit for type units.
+ (compute_symtab_includes): Assert not called for type units.
+ (process_cu_includes): Don't call compute_symtab_includes for
+ type units.
+ (process_full_type_unit): New function.
+ (process_imported_unit_die): Flag an error if called for type units.
+ (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
+ updated. Assert not called for type units.
+ (read_file_scope): Call dwarf2_start_symtab.
+ (setup_type_unit_groups): New function.
+ (read_type_unit_scope): Rewrite.
+ (abbrev_table_read_table): Initialize abbrev_table->offset.
+ (abbrev_table_free_cleanup): New function.
+ (dwarf2_start_symtab): New function.
+ (load_full_type_unit): Assert not called for type unit groups.
+ * buildsym.c (finish_block_internal): New arg "expandable".
+ All callers updated.
+ (start_symtab): Move most contents to ...
+ (restart_symtab): ... here. New function.
+ (reset_symtab_globals): New function.
+ (end_symtab_1): Renamed from end_symtab. New arg "expandable".
+ Call reset_symtab_globals.
+ (end_symtab, end_expandable_symtab): New functions.
+ (set_missing_symtab, augment_type_symtab): New functions.
+ * buildsym.h (end_expandable_symtab): Declare.
+ (augment_type_symtab, restart_symtab): Declare.
+ * psympriv.h (struct partial_symtab): New member "anonymous".
+ * psymtab.c (partial_map_symtabs_matching_filename): Ignore
+ anonymous psymtabs.
+ (read_psymtabs_with_filename): Ditto.
+ (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
+ (expand_symtabs_matching_via_partial): Ditto.
+ (dump_psymtab): Update.
+ * dictionary.c (dict_add_pending): New function.
+ * dictionary.h (dict_add_pending): Declare.
+
+2012-07-09 Doug Evans <dje@google.com>
+
+ * buildsym.c (start_subfile): Remove unnecessary check for
+ name == NULL.
+
+ * psymtab.c (allocate_psymtab): Use host_address_to_string.
+
+ * dwarf2read.c (load_full_type_unit): Simplify.
+
+ * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
+ to struct signatured_type **. All uses updated.
+
+ * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
+ All callers updated.
- * ada-lang.c (ada_exception_support_info_sniffer): Improve
- error message.
+2012-07-09 Tom Tromey <tromey@redhat.com>
-2011-12-11 Joel Brobecker <brobecker@adacore.com>
+ * c-exp.y (check_parameter_typelist): New function.
+ (parameter_typelist): Call it.
+ * eval.c (make_params): Handle '(void)' case.
+ * gdbtypes.c (lookup_function_type_with_arguments): Handle
+ '(void)' case.
- * ada-lang.c (struct ada_inferior_data) [exception_info]:
- New field.
- (exception_info): Delete.
- (ada_exception_support_info_sniffer): Get exception_support_info
- data from our per-inferior data. Adjust code accordingly.
- (ada_unhandled_exception_name_addr_from_raise): Likewise.
- (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
- (ada_executable_changed_observer): Delete.
- (_initialize_ada_language): Remove call to
- observer_attach_executable_changed.
+2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-12-11 Joel Brobecker <brobecker@adacore.com>
+ * common/linux-ptrace.c: Include gdb_assert.h.
+ <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
+ <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
+ stdint.h.
+ (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
+ functions.
+ * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
+ * linux-nat.c (linux_child_post_attach)
+ (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
- * ada-lang.c (ada_has_this_exception_support): Raise an error
- if we could find the Ada exception hook in the Ada runtime,
- but no debugging info for that hook.
+2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-12-11 Joel Brobecker <brobecker@adacore.com>
+ * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
+ nptl <2.7 bug workaround for core files.
- * ada-lang.c (ada_has_this_exception_support): New function,
- extracted out of ada_exception_sal and ada_exception_sal.
- (ada_exception_support_info_sniffer): Simplify by using
- ada_has_this_exception_support.
- (ada_exception_sal): Replace unnecessary checks by assertions.
- Minor simplifications.
+2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
+ clearing.
+ (save_siginfo): Remove.
+ (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
+ call.
+ (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
+ (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
+ * linux-nat.h (struct lwp_info): Remove field siginfo.
+
+2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup for the next patch.
+ * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
+ siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
+ call for it.
+ * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
+ (ia64_linux_stopped_data_address):
+ * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
+ the return value.
+ * linux-nat.h (linux_nat_get_siginfo): Likewise.
+ * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
+ siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
+ call for it.
+
+2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR 14321
+ * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
+ Increase buffer sizes to 2x we need, not just 2x of the previous size.
+
+2012-07-06 Tom Tromey <tromey@redhat.com>
+
+ * c-exp.y (DOTDOTDOT): New token.
+ (func_mod, exp): Use parameter_typelist.
+ (parameter_typelist): New production.
+ (tokentab3): Add "..." token.
+ * eval.c (make_params): Handle varargs.
+ * gdbtypes.c (lookup_function_type_with_arguments): Handle
+ varargs.
+
+2012-07-06 Tom Tromey <tromey@redhat.com>
+
+ PR exp/9608:
+ * c-exp.y (%union) <tvec>: Change type.
+ (func_mod): Now uses <tvec> type.
+ (exp): Update for tvec change.
+ (direct_abs_decl): Push the typelist.
+ (func_mod): Return a typelist.
+ (nonempty_typelist): Update for tvec change.
+ * gdbtypes.c (lookup_function_type_with_arguments): New function.
+ * gdbtypes.h (lookup_function_type_with_arguments): Declare.
+ * parse.c (pop_type_list): New function.
+ (push_typelist): New function.
+ (follow_types): Handle tp_function_with_arguments.
+ * parser-defs.h (type_ptr): New typedef. Define a VEC.
+ (enum type_pieces) <tp_function_with_arguments>: New constant.
+ (union type_stack_elt) <typelist_val>: New field.
+ (push_typelist): Declare.
+
+2012-07-06 Tom Tromey <tromey@redhat.com>
+
+ * c-exp.y (%union) <type_stack>: New field.
+ (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
+ (ptr_operator_ts): New production.
+ (ptype): Update.
+ * parse.c (type_stack_reserve): New function.
+ (check_type_stack_depth): Use it.
+ (pop_type_stack, append_type_stack, push_type_stack)
+ (get_type_stack, type_stack_cleanup): New functions.
+ (follow_types): Handle tp_type_stack.
+ (_initialize_parse): Simplify initialization.
+ * parser-defs.h (enum type_pieces) <tp_type_stack>: New
+ constant.
+ (union type_stack_elt) <stack_val>: New field.
+ (get_type_stack, append_type_stack, push_type_stack)
+ (type_stack_cleanup): Declare.
+
+2012-07-06 Tom Tromey <tromey@redhat.com>
+
+ * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
+ Remove.
+ (struct type_stack): New.
+ * parse.c (type_stack, type_stack_size, type_stack_depth):
+ Remove.
+ (type_stack): New global.
+ (parse_exp_in_context, check_type_stack_depth)
+ (insert_into_type_stack, insert_type, push_type, push_type_int)
+ (insert_type_address_space, pop_type, pop_type_int)
+ (_initialize_parse): Update.
- * breakpoint.c (update_global_location_list): Remove nested
- definition of `b'(-Wshadow).
+2012-07-06 Tom Tromey <tromey@redhat.com>
-2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
+ Remove %type.
- * breakpoint.c (insert_breakpoint_locations): Rename `error' to
- `error_flag'(-Wshadow).
+2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
-2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
- * bfd-target.c (target_bfd_reopen): Rename `bfd' to
- `abfd'(-Wshadow).
+2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * cp-valprint.c (cp_print_value): Replace potentially unsafe
+ alloca with xmalloc/xfree.
- * annotate.c (annotate_array_section_begin): Rename `index' to
- `idx'(-Wshadow).
+2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
-2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * MAINTAINERS (Write After Approval): Add myself to the list.
- * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
- `idx'(-Wshadow).
+2012-07-05 Doug Evans <dje@google.com>
-2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
- * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
- `syscall' to `syscall_number'(-Wshadow).
+2012-07-05 Hui Zhu <hui_zhu@mentor.com>
-2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * ax-gdb.c (cli/cli-utils.h): New include.
+ (linespec.h): Ditto.
+ (agent_eval_command_one): New function.
+ (agent_command_1): Ditto.
+ (agent_command): Call function agent_command_1.
+ (agent_eval_command): Ditto.
+ (_initialize_ax_gdb): Change help for "maint agent"
+ and "maint agent-eval".
- * ada-lang.c (remove_extra_symbols): Rename `remove' to
- `remove_p'(-Wshadow).
+2012-07-05 Hui Zhu <hui_zhu@mentor.com>
-2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
+ * cli/cli-utils.c (check_for_argument): New function.
+ * cli/cli-utils.h (check_for_argument): Ditto.
- * ada-exp.y (write_var_or_type): Rename nested `renaming' to
- `ren_sym'(-Wshadow).
+2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
-2011-12-10 Doug Evans <dje@google.com>
+ * NEWS: Mention x32 ABI support.
- * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
- debug_types_section. All uses updated.
- (partial_read_comp_unit_head): Rename parameter is_debug_type_section
- to is_debug_types_section.
+2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
- * python/py-auto-load.c (source_section_scripts): Call xfree
- instead of free.
+ * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
+ AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
-2011-12-10 Hui Zhu <teawater@gmail.com>
- Yao Qi <yao@codesourcery.com>
+ * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
+ and pc_regnum_from_eax to -1. Update SP regnum from
+ sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
+ needed.
- * tracepoint.c (start_tracing): Clear `inserted' flag.
+ * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
+ pc_regnum_from_eax.
-2011-12-10 Hui Zhu <teawater@gmail.com>
+2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
- * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
+ Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
+ * dwarf2expr.h: Include gdbtypes.h.
+ (enum call_site_parameter_kind, union call_site_parameter_u): Remove
+ these forward declarations.
+ (cu_offset, sect_offset): Move these ...
+ * gdbtypes.h: Remove include dwarf2expr.h.
+ (cu_offset, sect_offset): ... here.
-2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
+2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
- * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
- `bpoint'(-Wshadow).
+ * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
+ (amd64_linux_sigtramp_code): This.
+ (amd64_x32_linux_sigtramp_code): New.
+ (LINUX_SIGTRAMP_LEN): Updated.
+ (amd64_linux_sigtramp_start): Check x32 sigtramp.
-2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
+2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
- * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
- `marker' variables to `sal2' and `tpmarker' respectively
- (-Wshadow).
+ * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
-2011-12-09 Andrew Pinski <apinski@cavium.com>
+2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
- * linespec.c (hash_address_entry): Use iterative_hash_object on each
- field rather than the struct itself.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * configure.ac: Remove check for gnu/libc-version.h.
+ * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
+ gnu/libc-version.h.
+ (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
+ variables libc_version, libc_major and libc_minor. Replace sscanf by
+ inferior_has_bug. Extend the comment.
+
+2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-thread-db.c (inferior_has_bug): New function.
+ (thread_db_find_new_threads_silently): Return boolean as checked by
+ inferior_has_bug, describe it in the comments.
+ (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
+ earlier. Abort the initialization if it returned non-zero.
+ (thread_db_new_objfile): Exclude debug files.
+ (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
+ if UNTIL_NO_NEW,
+
+2012-07-02 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
+ related to queue management.
+
+ * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
+ instead of "debug dwarf2-die" in debugging printfs.
+ (create_debug_info_hash_table_reader): Ditto.
+ (create_debug_info_hash_table): Ditto.
+ (init_dwo_file): Ditto.
+ (init_cutu_and_read_dies): Add debugging printf.
+ (init_cutu_and_read_dies_no_follow): Ditto.
+ (process_psymtab_comp_unit_reader): Ditto.
+
+2012-07-02 Stan Shebs <stan@codesourcery.com>
+
+ Add target-side support for dynamic printf.
+ * NEWS: Mention the additional style.
+ * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
+ (struct bp_location): New field cmd_bytecode.
+ * breakpoint.c: Include format.h.
+ (disconnected_dprintf): New global.
+ (parse_cmd_to_aexpr): New function.
+ (build_target_command_list): New function.
+ (insert_bp_location): Call it.
+ (remove_breakpoints_pid): Skip dprintf breakpoints.
+ (print_one_breakpoint_location): Ditto.
+ (dprintf_style_agent): New global.
+ (dprintf_style_enums): Add dprintf_style_agent.
+ (update_dprintf_command_list): Add agent case.
+ (agent_printf_command): New function.
+ (_initialize_breakpoint): Add new commands.
+ * common/ax.def (printf): New bytecode.
+ * ax.h (ax_string): Declare.
+ * ax-gdb.h (gen_printf): Declare.
+ * ax-gdb.c: Include cli-utils.h, format.h.
+ (gen_printf): New function.
+ (maint_agent_print_command): New function.
+ (_initialize_ax_gdb): Add maint agent-printf command.
+ * ax-general.c (ax_string): New function.
+ (ax_print): Add printf disassembly.
+ * Makefile.in (SFILES): Add format.c
+ (COMMON_OBS): Add format.o.
+ * common/format.h: New file.
+ * common/format.c: New file.
+ * printcmd.c: Include format.h.
+ (ui_printf): Call parse_format_string.
+ * remote.c (remote_state): New field breakpoint_commands.
+ (PACKET_BreakpointCommands): New enum.
+ (remote_breakpoint_commands_feature): New function.
+ (remote_protocol_features): Add new BreakpointCommands entry.
+ (remote_can_run_breakpoint_commands): New function.
+ (remote_add_target_side_commands): New function.
+ (remote_insert_breakpoint): Call it.
+ (remote_insert_hw_breakpoint): Ditto.
+ (_initialize_remote): Add new packet configuration for
+ target-side breakpoint commands.
+ * target.h (struct target_ops): New field
+ to_can_run_breakpoint_commands.
+ (target_can_run_breakpoint_commands): New macro.
+ * target.c (update_current_target): Handle
+ to_can_run_breakpoint_commands.
+
+2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Execute -ix and -iex only after system and user gdbinit files.
+ * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
+ processing down after gdbinit files.
+
+2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Add fnmatch-gnu module.
+ * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
+ * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
+ * gnulib/aclocal.m4: Regenerate.
+ * gnulib/config.in: Regenerate.
+ * gnulib/configure: Regenerate.
+ * gnulib/import/dummy.c: Remove.
+ * gnulib/import/Makefile.am: Regenerate.
+ * gnulib/import/Makefile.in: Likewise.
+ * gnulib/import/m4/gnulib-cache.m4: Likewise.
+ * gnulib/import/m4/gnulib-comp.m4: Likewise.
+ * gnulib/import/alloca.c: New file.
+ * gnulib/import/alloca.in.h: Likewise.
+ * gnulib/import/config.charset: Likewise.
+ * gnulib/import/fnmatch.c: Likewise.
+ * gnulib/import/fnmatch.in.h: Likewise.
+ * gnulib/import/fnmatch_loop.c: Likewise.
+ * gnulib/import/localcharset.c: Likewise.
+ * gnulib/import/localcharset.h: Likewise.
+ * gnulib/import/m4/alloca.m4: Likewise.
+ * gnulib/import/m4/codeset.m4: Likewise.
+ * gnulib/import/m4/configmake.m4: Likewise.
+ * gnulib/import/m4/fcntl-o.m4: Likewise.
+ * gnulib/import/m4/fnmatch.m4: Likewise.
+ * gnulib/import/m4/glibc21.m4: Likewise.
+ * gnulib/import/m4/localcharset.m4: Likewise.
+ * gnulib/import/m4/locale-fr.m4: Likewise.
+ * gnulib/import/m4/locale-ja.m4: Likewise.
+ * gnulib/import/m4/locale-zh.m4: Likewise.
+ * gnulib/import/m4/mbrtowc.m4: Likewise.
+ * gnulib/import/m4/mbsinit.m4: Likewise.
+ * gnulib/import/m4/mbsrtowcs.m4: Likewise.
+ * gnulib/import/m4/mbstate_t.m4: Likewise.
+ * gnulib/import/m4/stdbool.m4: Likewise.
+ * gnulib/import/m4/wchar_h.m4: Likewise.
+ * gnulib/import/m4/wctype_h.m4: Likewise.
+ * gnulib/import/m4/wint_t.m4: Likewise.
+ * gnulib/import/mbrtowc.c: Likewise.
+ * gnulib/import/mbsinit.c: Likewise.
+ * gnulib/import/mbsrtowcs-impl.h: Likewise.
+ * gnulib/import/mbsrtowcs-state.c: Likewise.
+ * gnulib/import/mbsrtowcs.c: Likewise.
+ * gnulib/import/ref-add.sin: Likewise.
+ * gnulib/import/ref-del.sin: Likewise.
+ * gnulib/import/stdbool.in.h: Likewise.
+ * gnulib/import/streq.h: Likewise.
+ * gnulib/import/strnlen1.c: Likewise.
+ * gnulib/import/strnlen1.h: Likewise.
+ * gnulib/import/verify.h: Likewise.
+ * gnulib/import/wchar.in.h: Likewise.
+ * gnulib/import/wctype.in.h: Likewise.
+
+2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Support shell wildcards for 'set auto-load safe-path'.
+ * auto-load.c: Include fnmatch.h.
+ (filename_is_in_dir): Rename to ...
+ (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
+ it. Update function comment. Rename dir_len to pattern_len. New
+ variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
+ messages. Use gdb_filename_fnmatch.
+ (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
+ pattern.
+ (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
+ * defs.h (gdb_filename_fnmatch): New declaration.
+ * utils.c: Include fnmatch.h.
+ (gdb_filename_fnmatch): New function.
+
+2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
+ `-probe' and `-probe-stap' options.
+
+2012-07-01 Yao Qi <yao@codesourcery.com>
+
+ * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
+ always_inserted_off, and always_inserted_enums.
+ Change always_inserted_mode's type to 'enum auto_boolean'.
+ (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
+ callers.
+ (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
+ of add_setshow_enum_cmd.
+ * infrun.c: Remove can_use_displaced_stepping_auto,
+ 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.
+ (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
+ add_setshow_enum_cmd.
+
+2012-06-30 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (signatured_type): Make "per_cu" member first.
+ (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
+ currently being read. Propagate DW_AT_comp_dir to DWO DIE.
+
+2012-06-29 Doug Evans <dje@google.com>
+
+ * linespec.c: #include "stack.h".
+ (decode_line_with_current_source): Moved here from symtab.c and
+ renamed from decode_line_spec. All callers updated.
+ (decode_line_with_last_displayed): Moved here from breakpoint.c and
+ renamed from decode_line_spec_1. All callers updated.
+ * linespec.h (decode_line_with_current_source): Move declaration here
+ from symtab.h and renamed from decode_line_spec.
+ (decode_line_with_last_displayed): Move declaration here from symtab.h
+ and renamed from decode_line_spec_1.
+ * macrocmd.c: #include "linespec.h".
+ * symtab.c: Remove #include "linespec.h".
+
+2012-06-28 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (get_cu_length): New function.
+ (offset_in_cu_p, error_check_comp_unit_head): Call it.
+ (create_debug_types_hash_table): Ditto.
+ (init_cutu_and_read_dies): Ditto.
+ (init_cutu_and_read_dies_no_follow): Ditto.
+
+ * dwarf2read.c (dwarf2_find_base_address): Move definition.
+
+ * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
+ (struct abbrev_table): Define.
+ (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
+ abbrev_table.
+ (init_cutu_and_read_dies): Update.
+ (abbrev_table_alloc_abbrev): New function. Replaces
+ dwarf_alloc_abbrev. All callers updated.
+ (abbrev_table_add_abbrev): New function.
+ (abbrev_table_lookup_abbrev): New function. Replaces
+ dwarf2_lookup_abbrev. All callers updated.
+ (abbrev_table_read_table): New function. Contents moved here from
+ dwarf2_read_abbrevs.
+ (dwarf2_read_abbrevs): Call it.
+ (abbrev_table_free): New function.
+ (dwarf2_free_abbrev_table): Call it.
+
+2012-06-28 Stan Shebs <stan@codesourcery.com>
+
+ * osdata.c (info_osdata_command): Filter out "Title" columns
+ from non-MI uses.
+ * common/linux-osdata.c (struct osdata_type): Add title field.
+ (osdata_table): Add titles to each entry.
+ (linux_command_xfer_osdata): Add a column for title data.
+
+2012-06-28 Stan Shebs <stan@codesourcery.com>
+
+ Make logging work for MI.
+ * NEWS: Mention it.
+ * interps.h (interp_set_logging_ftype): New typedef.
+ (struct interp_procs): New field set_logging_proc.
+ (current_interp_set_logging): Declare.
+ * interps.c (current_interp_set_logging): New function.
+ * cli/cli-logging.c: Include interps.h.
+ (set_logging_redirect): Call current_interp_set_logging.
+ (pop_output_files): Ditto.
+ (handle_redirections): Ditto, plus skip ui-out redirect if MI.
+ * mi/mi-console.h (mi_console_set_raw): Declare.
+ * mi/mi-console.c (mi_console_set_raw): New function.
+ * mi/mi-interp.c (saved_raw_stdout): New global.
+ (mi_set_logging): New function.
+ (_initialize_mi_interp): Add it to interp procs.
+
+2012-06-28 Doug Evans <dje@google.com>
+
+ * symtab.c (lookup_symbol_aux_objfile): Use
+ ALL_OBJFILE_PRIMARY_SYMTABS.
+
+ * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
+
+2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * common/buffer.c: Include inttypes.h and stdint.h.
+ (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
+
+2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Pedro Alves <palves@redhat.com>
-2011-12-09 Tom Tromey <tromey@redhat.com>
+ * gdbthread.h (ALL_THREADS): New macro.
+ (thread_list): Declare.
+ * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
+ going, but instead fall through to the stepping handling.
+ * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
+ the passed in signal. Adjust debug output.
+ (resume_callback): Rename to ...
+ (linux_nat_resume_callback): ... this. Pass the thread's last
+ stop signal, if in "pass" state.
+ (linux_nat_resume): Adjust to rename.
+ (stop_wait_callback): New assertion. Don't respawn signals;
+ instead let the LWP remain with SIGNALLED set.
+ (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
+ * remote.c (append_pending_thread_resumptions): New.
+ (remote_vcont_resume): Call it.
+ * target.h (target_resume): Extend comment.
+
+2012-06-28 Iain Sandoe <iain@codesourcery.com>
+
+ * auxv.c (fprint_target_auxv): Handle extended cache data tags.
+
+2012-06-27 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (dwarf2_cu): Add ranges_base.
+ Delete have_addr_base, unused. All uses updated.
+ (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
+ (dwarf2_get_pc_bounds): Add ranges_base.
+ (dwarf2_record_block_ranges): Ditto.
+
+2012-06-27 Tom Tromey <tromey@redhat.com>
+
+ PR macros/7961:
+ * varobj.c (varobj_create): Update.
+ (varobj_set_value): Update.
+ * tracepoint.c (validate_actionline): Update.
+ (encode_actions_1): Update.
+ * parse.c (parse_exp_1): Add 'pc' argument.
+ (parse_exp_in_context): Add 'pc' argument. Change how
+ expression_context_pc is set.
+ (parse_expression): Update.
+ (parse_field_expression): Update.
+ * expression.h (parse_exp_1): Update.
+ * eval.c (parse_to_comma_and_eval): Update.
+ * breakpoint.c (set_breakpoint_condition): Update.
+ (update_watchpoint): Update.
+ (init_breakpoint_sal): Update
+ (find_condition_and_thread): Update.
+ (watch_command_1): Update.
+ (update_breakpoint_locations): Update.
+ * ada-lang.c (ada_read_renaming_var_value): Update.
+ (create_excep_cond_exprs): Update.
+
+2012-06-27 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
+ type units.
+
+2012-06-26 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
+ prototype.
+ (error_check_comp_unit_head): New arg abbrev_section. All callers
+ updated.
+ (read_and_check_comp_unit_head): Ditto.
+ (read_and_check_type_unit_head): Ditto.
+
+2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
+
+ New attribute 'last' for gdb.Symtab_and_line.
+ * NEWS (Python Scripting): Add entry about the new attribute.
+ * python/py-symtab.c (salpy_get_last): New function which
+ implements the get method for the 'last' attribute of
+ gdb.Symtab_and_line.
+ (sal_object_getset): Add entry for the 'last' attribute.
+
+2012-06-26 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
+ (dwo_sections): Add macinfo, macro.
+ (dwarf2_locate_dwo_sections): Watch for macro sections.
+ (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
+ All callers updated. Handle DWO files.
+
+ * NEWS: Mention new options "set debug dwarf2-read" and
+ "set debug symtab-create".
+ * dwarf2read.c (dwarf2_read_debug): New static global.
+ (dwarf2_build_psymtabs_hard): Add debugging printfs.
+ (process_queue): Ditto.
+ (process_full_comp_unit): Ditto.
+ (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
+ * elfread.c (elf_symfile_read): Add debugging printf.
+ * minsyms.c (install_minimal_symbols): Ditto.
+ * psymtab.c (allocate_psymtab): Ditto.
+ * symfile.c (allocate_symtab): Ditto.
+ * symtab.c (symtab_create_debug): New global.
+ (_initialize_symtab): Add new option "set debug symtab-create".
+ * symtab.h (symtab_create_debug): Declare.
+
+ * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
+ (lookup_dwo_type_unit): Ditto.
+
+2012-06-26 Roland McGrath <roland@hack.frob.com>
+ H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-linux-nat.c: Include <sys/user.h>.
+ (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
+ if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
+ HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
+
+ * configure.ac: Check if the fs_base and gs_base members of
+ `struct user_regs_struct' exist.
+ * config.in: Regenerated.
+ * configure: Likewise.
+
+2012-06-25 Michael Eager <eager@eagercon.com>
+
+ PR python/14291
+ * python/python.c (gdbpy_write): Check for interrupted output.
+
+2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
+
+ * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
+ register as a stack alignment in ARM mode.
+
+2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
+ * gnulib/config.in: Regenerate.
+ * gnulib/configure: Likewise.
+ * gnulib/import/m4/extensions.m4: Update it.
+ * gnulib/import/m4/gnulib-common.m4: Likewise.
+ * gnulib/import/m4/memmem.m4: Likewise.
+ * gnulib/import/m4/mmap-anon.m4: Likewise.
+ * gnulib/import/m4/multiarch.m4: Likewise.
+ * gnulib/import/stdint.in.h: Likewise.
+
+2012-06-24 Yao Qi <yao@codesourcery.com>
+
+ * corefile.c (write_memory_with_notification): New.
+ * gdbcore.h: Declare write_memory_with_notification.
+ * ada-lang.c (ada_value_assign): Replace 'write_memory' and
+ 'observer_notify_memory_changed' with 'write_memory_with_notification'.
+ * valops.c (value_assign): Likewise.
+ * python/py-inferior.c (infpy_write_memory): Call
+ 'write_memory_with_notification'.
+
+2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * cc-with-index.sh: Use also -ex "set auto-load no".
+
+2012-06-23 Doug Evans <dje@google.com>
+
+ PR 14125
+ * NEWS: Document additions to .gdb_index.
+ * dwarf2read.c: #include "gdb/gdb-index.h".
+ (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
+ (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
+ (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
+ (dwarf2_read_index): Recognize version 7.
+ (dw2_do_expand_symtabs_matching): New args want_specific_block,
+ block_kind, domain): All callers updated.
+ (dw2_find_symbol_file): Handle new index CU values.
+ (dw2_expand_symtabs_matching): Match symbol kind if requested.
+ (add_index_entry): New args is_static, kind. All callers updated.
+ (offset_type_compare, uniquify_cu_indices): New functions
+ (symbol_kind): New function.
+ (write_psymtabs_to_index): Remove duplicate CU values.
+ (write_psymtabs_to_index): Write .gdb_index version 7.
+
+2012-06-22 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
+ * configure: Regenerate.
- * breakpoint.c (compare_breakpoints): New function.
- (clear_command): Remove duplicate breakpoints. Properly clean
- up.
+2012-06-20 Yao Qi <yao@codesourcery.com>
+
+ * python/py-inferior.c: Update comments of infpy_read_memory
+ and infpy_write_memory.
+
+2012-06-19 Tom Tromey <tromey@redhat.com>
+
+ PR exp/9514:
+ * parser-defs.h (insert_type, insert_type_address_space): Declare.
+ (push_type_address_space): Remove.
+ * parse.c (insert_into_type_stack): New function.
+ (insert_type): Likewise.
+ (insert_type_address_space): Rename from push_type_address_space.
+ Insert tp_space_identifier.
+ * c-exp.y (ptr_operator): New production.
+ (abs_decl): Use ptr_operator.
+ (space_identifier): Call insert_type_address_space.
+ (ptype): Don't use const_or_volatile_or_space_identifier.
+ (const_or_volatile_noopt): Call insert_type.
+ (conversion_type_id, conversion_declarator): New productions.
+ (operator): Use conversion_type_id.
+
+2012-06-18 Doug Evans <dje@google.com>
+
+ * symtab.h (minimal_symbol): New member created_by_gdb.
+ * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
+ created by gdb.
+ * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
+ (search_symbols): Call it instead of lookup_symbol.
+ Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
+
+ * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
+ Adjust address for DW_OP_GNU_addr_index.
+ * dwarf2expr.h (dwarf_expr_context): Update comment.
+ * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
+ all callers updated. Handle TLS vars described with
+ DW_OP_GNU_const_index.
+ (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
+ and DW_OP_GNU_const_index.
+ * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
+
+ * block.c (find_block_in_blockvector): Make explicit the fact that we
+ ignore GLOBAL_BLOCK.
+
+2012-06-18 Tom Tromey <tromey@redhat.com>
+
+ * c-exp.y (operator): Remove trailing space after "delete" and
+ "delete[]".
+
+2012-06-18 Mark Kettenis <kettenis@gnu.org>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-12-08 Maciej W. Rozycki <macro@mips.com>
- Maciej W. Rozycki <macro@codesourcery.com>
+ Switch i386 and derived targets to ON_STACK.
+ * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
+ (amd64_dicos_init_abi): Remove its installment.
+ * dicos-tdep.c (dicos_init_abi): Remove the
+ set_gdbarch_call_dummy_location call. Update the comment here.
+ * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
+ (i386_dicos_init_abi): Remove its installment.
+ * i386-tdep.c (i386_push_dummy_code): New function.
+ (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
+ i386_push_dummy_code.
+
+2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Remove stale dummy frames.
+ * breakpoint.c: Include dummy-frame.h.
+ (longjmp_breakpoint_ops): New variable.
+ (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
+ bp_longjmp_call_dummy.
+ (bpstat_what, bptype_string, print_one_breakpoint_location)
+ (init_bp_location): Support bp_longjmp_call_dummy.
+ (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
+ (set_longjmp_breakpoint_for_call_dummy)
+ (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
+ functions.
+ (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
+ * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
+ FIXME comment and extend the other comment for bp_call_dummy.
+ (set_longjmp_breakpoint_for_call_dummy)
+ (check_longjmp_breakpoint_for_call_dummy): New declarations.
+ * dummy-frame.c: Include gdbthread.h.
+ (pop_dummy_frame_bpt): New function.
+ (pop_dummy_frame): Call pop_dummy_frame_bpt.
+ (dummy_frame_discard): New function.
+ (cleanup_dummy_frames): Update the comment about longjmps.
+ * dummy-frame.h (dummy_frame_discard): New declaration.
+ * gdbthread.h (struct thread_info): Extend initiating_frame comment.
+ * infcall.c (call_function_by_hand): New variable longjmp_b. Call
+ set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
+ * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
+ Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
+ keep_going if IS_LONGJMP and there is no other reason to stop.
+
+2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
+
+ * remote-sim.c (sim_command_completer): Initialize
+ variable 'result'.
+
+2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
+ * dwarf2loc.c (call_site_parameter_matches): Support
+ CALL_SITE_PARAMETER_PARAM_OFFSET.
+ (needs_dwarf_reg_entry_value): Push stub value.
+ * dwarf2read.c (read_call_site_scope): New variable origin. Support
+ CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
+ * gdbtypes.h (enum call_site_parameter_kind): New item
+ CALL_SITE_PARAMETER_PARAM_OFFSET.
+ (struct call_site.parameter.u): New field param_offset.
+
+2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup: Generalize call_site.parameter key.
+ * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
+ variable dwarf_reg. New variable kind_u. Update parameters to
+ push_dwarf_reg_entry_value.
+ (ctx_no_push_dwarf_reg_entry_value): Update parameters.
+ * dwarf2expr.h (enum call_site_parameter_kind)
+ (union call_site_parameter_u): Forward declarations.
+ (struct dwarf_expr_context_funcs): Update parameters and their
+ description for push_dwarf_reg_entry_value.
+ (ctx_no_push_dwarf_reg_entry_value): Update parameters.
+ * dwarf2loc.c (call_site_parameter_matches): New function.
+ (dwarf_expr_reg_to_entry_parameter): Update parameters and their
+ description. Use call_site_parameter_matches.
+ (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
+ Update parameters and their description.
+ (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
+ New variable kind_u. Adjust the caller for updated parameters.
+ (needs_dwarf_reg_entry_value): Update parameters.
+ * dwarf2read.c (read_call_site_scope): New variable loc. Use it
+ instead of attr. Update for the changed fields of struct
+ call_site_parameter.
+ * gdbtypes.h: Include dwarf2expr.h.
+ (enum call_site_parameter_kind): New.
+ (struct call_site.parameter): New field kind. Wrap dwarf_reg and
+ fb_offset into new union u.
+
+2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
+ (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
+ for x32.
+
+2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-linux-nat.c (compat_x32_clock_t): New.
+ (compat_x32_siginfo_t): Likewise.
+ (compat_x32_siginfo_from_siginfo): Likewise.
+ (siginfo_from_compat_x32_siginfo): Likewise.
+ (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
+ and siginfo_from_compat_x32_siginfo for x32.
+
+2012-06-15 Hui Zhu <hui_zhu@mentor.com>
+
+ * tracepoint.c (tfile_xfer_partial): Add a lseek.
+
+2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
+ instead of gdbarch_ptr_bit.
+ * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
+ (amd64_supply_native_gregset): Likewise.
+ (amd64_collect_native_gregset): Likewise.
+ * amd64-tdep.c (amd64_supply_fxsave): Likewise.
+ (amd64_supply_xsave): Likewise.
+ (amd64_collect_fxsave): Likewise.
+ (amd64_collect_xsave): Likewise.
+
+2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
+ (amd64_linux_read_description): Check DS segment register for
+ x32 process.
+
+2012-06-15 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
+ init_cutu_and_read_dies.
+
+2012-06-15 Iain Sandoe <iain@codesourcery.com>
- * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
- address chunks retrieved from decoded lui/addiu pairs.
+ * MAINTAINERS (Write After Approval): Add myself to the list.
-2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
+2012-06-15 Tom Tromey <tromey@redhat.com>
- * mips-tdep.c (extended_offset): Correct calculation.
- (unpack_mips16): Correct bitfield positions used for extraction
- of the immediate argument; fix sign-extension of same.
- (extended_mips16_next_pc): Correct B instruction's offset
- calculation. Correct register decoding of the BEQZ and BNEZ
- as well as jump-register instructions. Handle compact jumps.
+ * valops.c (value_find_oload_method_list): Now static.
+ * value.h (value_find_oload_method_list): Don't declare.
-2011-12-08 Tom Tromey <tromey@redhat.com>
+2012-06-15 Tom Tromey <tromey@redhat.com>
- * objfiles.h (struct objfile): Remove obsolete comment.
- * objfiles.c (build_objfile_section_table): Remove obsolete
- comment.
+ * valops.c (find_overload_match): Use value_ind.
-2011-12-07 Stan Shebs <stan@codesourcery.com>
+2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
- * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
- maintainer of the tic6x target.
+ * infrun.c (handle_inferior_event): Correct indentation.
-2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
+2012-06-14 Doug Evans <dje@google.com>
- * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
- * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
- (arm_deal_with_atomic_sequence_raw): Likewise.
- (arm_deal_with_atomic_sequence): Likewise.
- (arm_software_single_step): Call it.
- * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
+ * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
+ (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
+ All uses updated.
+ (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
+ updated. Handle DEBUG_LOC_START_LENGTH.
+ (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
+ (loclist_describe_location): Ditto.
-2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
+2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
- * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
- where appropriate.
- * s390-tdep.h: Likewise.
+ PR backtrace/13866
+ * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
+ after hiding inline functions.
-2011-12-07 Tristan Gingold <gingold@adacore.com>
+2012-06-13 Joel Brobecker <brobecker@adacore.com>
- * machoread.c (macho_symtab_read): Do not consider N_OPT as
- a debugging stab. Improve complaint message.
+ * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
+ _initialize_inf_ttrace.
-2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
+2012-06-13 Joel Brobecker <brobecker@adacore.com>
- * mips-tdep.c (mips32_scan_prologue): Only update the immediate
- load adjustment if still within the prologue.
+ * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
+ _initialize_hppa_hpux_nat.
-2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
+2012-06-13 Joel Brobecker <brobecker@adacore.com>
- * mips-tdep.c (mips32_next_pc): Fix floating point condition
- code mask.
+ * remote-sim.c (sim_command_completer): Change type of return
+ value to "VEC (char_ptr) *". Adjust implementation accordingly.
-2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
+2012-06-13 Mark Kettenis <kettenis@gnu.org>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
- * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
- of BLTZ* and BGEZ* instructions.
+ PR tdep/14222
+ * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
+ stack on a 16-byte boundary.
+
+2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
+
+ * jit.c (finalize_symtab): Set function's return type to 'void' by
+ default.
+
+2012-06-13 Mark Kettenis <kettenis@gnu.org>
+ H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
+ Move bits common to both the classic LP64 and the new x32 ILP32
+ ABI here.
+ (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
+ (amd64_x32_linux_init_abi): New function.
+ (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
+ subtype.
+
+ * i386-tdep.h (i386_pseudo_register_name): New prototype.
+ * i386-tdep.c (i386_pseudo_register_name): Make public.
+ * amd64-tdep.h (amd64_x32_init_abi): New prototype.
+ * amd64-tdep.c (amd64_dword_names): Add "eip".
+ (amd64_x32_pseudo_register_type): New function
+ (amd64_x32_init_abi): New function.
+
+2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR build/14003
+ * inferior.h (struct inferior_suspend_state): Comment out.
+ (struct inferior): Comment out the field suspend.
+ * infrun.c (struct infcall_suspend_state): Comment out the field
+ inferior_suspend.
+ (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
+ out its assignment.
+
+2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
+ * c-exp.y (classify_inner_name): Remove caller assumptions in the
+ function comment. Return ERROR for unresolved cases. Implement
+ returning proper NAME.
+ (yylex): Accept also NAME from classify_inner_name.
+ * cp-namespace.c (cp_lookup_nested_type): Rename to ...
+ (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
+ LOC_TYPEDEF type.
+ * cp-support.h (cp_lookup_nested_type): Update its declaration.
+
+2012-06-13 Tom Tromey <tromey@redhat.com>
+
+ * breakpoint.c (condition_completer): New function.
+ (_initialize_breakpoint): Use it.
+ * value.c (complete_internalvar): New function.
+ * value.h (complete_internalvar): Declare.
+
+2012-06-13 Tom Tromey <tromey@redhat.com>
+
+ * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
+ * breakpoint.c (catch_syscall_completer): Return a VEC.
+ * cli/cli-cmds.c (complete_command): Update.
+ * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
+ (complete_on_enum): Likewise.
+ * command.h: Include gdb_vecs.h.
+ (completer_ftype): Change return type.
+ (complete_on_cmdlist, complete_on_enum): Likewise.
+ * completer.c (noop_completer, filename_completer)
+ (location_completer): Return a VEC.
+ (add_struct_fields): Remove 'nextp' argument. Change 'output'
+ to a VEC.
+ (expression_completer, complete_line_internal, complete_line)
+ (command_completer): Return a VEC.
+ (gdb_completion_word_break_characters, line_completion_function):
+ Update.
+ * completer.h: Include gdb_vecs.h.
+ (complete_line, noop_completer, filename_completer)
+ (expression_completer, location_completer, command_completer):
+ Update.
+ * f-lang.c (f_word_break_characters): Return a VEC.
+ * interps.c (interpreter_completer): Return a VEC.
+ * language.h (struct language_defn)
+ <la_make_symbol_completion_list>: Return a VEC.
+ * python/py-cmd.c (cmdpy_completer): Return a VEC.
+ * symtab.c (free_completion_list): Take a VEC.
+ (return_val_size, return_val_index): Remove.
+ (return_val): Now a VEC.
+ (completion_list_add_name): Update.
+ (default_make_symbol_completion_list_break_on)
+ (default_make_symbol_completion_list, make_symbol_completion_list)
+ (make_symbol_completion_list_fn, make_file_symbol_completion_list):
+ Return a VEC.
+ (add_filename_to_list): Update.
+ (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
+ <list>: Now a VEC.
+ (maybe_add_partial_symtab_filename): Update.
+ (make_source_files_completion_list): Return a VEC.
+ * symtab.h (default_make_symbol_completion_list_break_on)
+ (default_make_symbol_completion_list, make_symbol_completion_list)
+ (make_symbol_completion_list_fn, make_file_symbol_completion_list)
+ (make_source_files_completion_list): Update.
+
+2012-06-13 Tom Tromey <tromey@redhat.com>
+
+ * breakpoint.c (add_catch_command): Use completer_ftype.
+ * breakpoint.h: Include command.h.
+ (add_catch_command): Use completer_ftype.
+ * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
+ * cli/cli-decode.h (struct cmd_list_element) <completer>:
+ Use completer_ftype.
+ * command.h (completer_ftype): New typedef.
+ (set_cmd_completer): Use it.
+ * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
+ completer_ftype.
+
+2012-06-13 Pedro Alves <palves@redhat.com>
+
+ Partial revert of previous change.
+
+ * serial.c (scb_base): New global.
+ (serial_for_fd): New.
+ (serial_open, serial_fdopen_ops): Link new serial in open serials
+ chain.
+ (do_serial_close): Unlink serial from the open serials chain.
+
+2012-06-12 Pedro Alves <palves@redhat.com>
+
+ * infrun.c (infrun_thread_stop_requested_callback): Don't switch
+ threads here.
+ (prepare_for_detach): No longer context switch here in non-stop
+ mode.
+ (fetch_inferior_event): Ditto.
+ (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
+ to the event thread before removing breakpoints. Switch to the
+ event thread before inserting breakpoints and resuming.
+ (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
+ event thread before resuming.
+ (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
+ Switch to the event thread before removing breakpoints.
-2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
+2012-06-12 Eli Zaretskii <eliz@gnu.org>
- * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
- performed to determine whether an address refers to standard
- MIPS or MIPS16 code.
- (mips16_next_pc): Use mips_pc_is_mips16 instead of
- is_mips16_addr.
+ * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
+ special characters correctly for the Windows shells. See
+ http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
+ report.
+ [!__MINGW32__]: Remove extra double quote character from special
+ characters.
-2011-12-06 Pedro Alves <pedro@codesourcery.com>
+2012-06-11 Stan Shebs <stan@codesourcery.com>
- * breakpoint.c (breakpoint_restore_shadows): Rename to ...
- (breakpoint_xfer_memory): ... this. Change prototype. Handle
- memory writes too.
- * breakpoint.h (breakpoint_restore_shadows): Delete.
- (breakpoint_xfer_memory): Declare.
- * mem-break.c (default_memory_insert_breakpoint)
- (default_memory_remove_breakpoint): Use target_write_raw_memory.
- (memory_xfer_partial): Rename to ...
- (memory_xfer_partial_1): ... this. Don't mask out breakpoints
- here.
- (memory_xfer_partial): New.
- (target_write_raw_memory): New.
- * target.h (target_write_raw_memory): New.
-
-2011-12-06 Doug Evans <dje@google.com>
-
- * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
-
-2011-12-06 Joel Brobecker <brobecker@acacore.com>
-
- * language.h (struct language_defn): Add new component
- la_symbol_name_compare.
- * symfile.h (struct quick_symbol_functions): Update the profile
- of parameter "name_matcher" for the expand_symtabs_matching
- method. Update the documentation accordingly.
- * ada-lang.h (ada_name_for_lookup): Add declaration.
- * ada-lang.c (ada_name_for_lookup): New function, extracted out
- from ada_iterate_over_symbols.
- (ada_iterate_over_symbols): Do not encode symbol name anymore.
- (ada_expand_partial_symbol_name): Adjust profile.
- (ada_language_defn): Add value for la_symbol_name_compare field.
- * linespec.c: #include "ada-lang.h".
- (iterate_name_matcher): Add language parameter. Replace call
- to strcmp_iw by call to language->la_symbol_name_compare.
- (decode_variable): Encode COPY if current language is Ada.
- * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
- of name_matcher parameter. Adjust call to name_matcher.
- * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
- (expand_partial_symbol_names): Update profile of parameter "fun".
- * psymtab.h (expand_partial_symbol_names): Update profile of
- parameter "fun".
- * symtab.c (demangle_for_lookup): Update function documentation.
- (search_symbols_name_matches): Add language parameter.
- (expand_partial_symbol_name): Likewise.
- * c-lang.c (c_language_defn, cplus_language_defn)
- (asm_language_defn, minimal_language_defn): Add value for
- la_symbol_name_compare field.
- * d-lang.c (d_language_defn): Likewise.
- * f-lang.c (f_language_defn): Ditto.
- * jv-lang.c (java_language_defn): Ditto.
- * m2-lang.c (m2_language_defn): Ditto.
- * objc-lang.c (objc_language_defn): Ditto.
- * opencl-lang.c (opencl_language_defn): Ditto.
- * p-lang.c (pascal_language_defn): Ditto.
- * language.c (unknown_language_defn, auto_language_defn)
- (local_language_defn): Ditto.
-
-2011-12-06 Tom Tromey <tromey@redhat.com>
-
- * linespec.c (iterate_over_all_matching_symtabs): Use
- LA_ITERATE_OVER_SYMBOLS.
- (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
- (find_function_symbols, decode_variable): Remove Ada special
- case.
- * language.h (struct language_defn) <la_iterate_over_symbols>: New
- field.
- (LA_ITERATE_OVER_SYMBOLS): New macro.
- * language.c (unknown_language_defn, auto_language_defn)
- (local_language_defn): Update.
- * c-lang.c (c_language_defn, cplus_language_defn)
- (asm_language_defn, minimal_language_defn): Update.
- * d-lang.c (d_language_defn): Update.
- * f-lang.c (f_language_defn): Update.
- * jv-lang.c (java_language_defn): Update.
- * m2-lang.c (m2_language_defn): Update.
- * objc-lang.c (objc_language_defn): Update.
- * opencl-lang.c (opencl_language_defn): Update.
- * p-lang.c (pascal_language_defn): Update.
- * ada-lang.c (ada_iterate_over_symbols): New function.
- (ada_language_defn): Update.
-
-2011-12-06 Tom Tromey <tromey@redhat.com>
- Joel Brobecker <brobecker@acacore.com>
-
- PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
- PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
- PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
- PR shlibs/8929, PR shlibs/7393:
- * python/py-type.c (compare_maybe_null_strings): Rename from
- compare_strings.
- (check_types_equal): Update.
- * utils.c (compare_strings): New function.
- * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
- location changes.
- * tracepoint.c (scope_info): Update.
- (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
- * symtab.h (iterate_over_minimal_symbols)
- (iterate_over_some_symtabs, iterate_over_symtabs)
- (find_pcs_for_symtab_line, iterate_over_symbols)
- (demangle_for_lookup): Declare.
- (expand_line_sal): Remove.
- * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
- (lookup_symtab_callback): New functions.
- (lookup_symtab): Rewrite.
- (demangle_for_lookup): New function, extract from
- lookup_symbol_in_language.
- (lookup_symbol_in_language): Use it.
- (iterate_over_symbols): New function.
- (find_line_symtab): Update.
- (find_pcs_for_symtab_line): New functions.
- (find_line_common): Add 'start' argument.
- (decode_line_spec): Update. Change argument to 'flags', change
- interpretation.
- (append_expanded_sal): Remove.
- (append_exact_match_to_sals): Remove.
- (expand_line_sal): Remove.
- * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
- Remove.
- <map_symtabs_matching_filename>: New field.
- * stack.c (func_command): Only look in the current program space.
- Use DECODE_LINE_FUNFIRSTLINE.
- * source.c (line_info): Set pspace on sal. Check program space in
- the loop. Use DECODE_LINE_LIST_MODE.
- (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
- * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
- * python/python.c (gdbpy_decode_line): Update.
- * psymtab.c (partial_map_expand_apply): New function.
- (partial_map_symtabs_matching_filename): Rename from
- lookup_partial_symbol. Update arguments.
- (lookup_symtab_via_partial_symtab): Remove.
- (psym_functions): Update.
- * objc-lang.h (parse_selector, parse_method): Don't declare.
- (find_imps): Update.
- * objc-lang.c (parse_selector, parse_method): Now static.
- (find_methods): Change arguments. Fill in a vector of symbol
- names.
- (uniquify_strings): New function.
- (find_imps): Change arguments.
- * minsyms.c (iterate_over_minimal_symbols): New function.
- * linespec.h (enum decode_line_flags): New.
- (struct linespec_sals): New.
- (struct linespec_result) <canonical>: Remove.
- <pre_expanded, addr_string, sals>: New fields.
- (destroy_linespec_result, make_cleanup_destroy_linespec_result)
- (decode_line_full): Declare.
- (decode_line_1): Update.
- * linespec.c (struct address_entry, struct linespec_state, struct
- collect_info): New types.
- (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
- (eq_address_entry, maybe_add_address): New functions.
- (total_number_of_methods): Remove.
- (iterate_name_matcher, iterate_over_all_matching_symtabs): New
- functions.
- (find_methods): Change arguments. Don't canonicalize input.
- Simplify logic.
- (add_matching_methods, add_constructors)
- (build_canonical_line_spec): Remove.
- (filter_results, convert_results_to_lsals): New functions.
- (decode_line_2): Change arguments. Rewrite for new data
- structures.
- (decode_line_internal): Rename from decode_line_1. Change
- arguments. Add cleanups. Update for new data structures.
- (linespec_state_constructor, linespec_state_destructor)
- (decode_line_full, decode_line_1): New functions.
- (decode_indirect): Change arguments. Update.
- (locate_first_half): Use skip_spaces.
- (decode_objc): Change arguments. Update for new data structures.
- Simplify logic.
- (decode_compound): Change arguments. Add cleanups. Remove
- fallback code, replace with error.
- (struct decode_compound_collector): New type.
- (collect_one_symbol): New function.
- (lookup_prefix_sym): Change arguments. Update.
- (compare_symbol_name, add_all_symbol_names_from_pspace)
- (find_superclass_methods ): New functions.
- (find_method): Rewrite.
- (struct symtab_collector): New type.
- (add_symtabs_to_list, collect_symtabs_from_filename): New
- functions.
- (symtabs_from_filename): Change API. Rename from
- symtab_from_filename.
- (collect_function_symbols): New function.
- (find_function_symbols): Change API. Rename from
- find_function_symbol. Rewrite.
- (decode_all_digits): Change arguments. Rewrite.
- (decode_dollar): Change arguments. Use decode_variable.
- (decode_label): Change arguments. Rewrite.
- (collect_symbols): New function.
- (minsym_found): Change arguments. Rewrite.
- (check_minsym, search_minsyms_for_name)
- (add_matching_symbols_to_info): New function.
- (decode_variable): Change arguments. Iterate over all symbols.
- (symbol_found): Remove.
- (symbol_to_sal): New function.
- (init_linespec_result, destroy_linespec_result)
- (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
- New functions.
- (decode_digits_list_mode, decode_digits_ordinary): New functions.
- * dwarf2read.c (dw2_map_expand_apply): New function.
- (dw2_map_symtabs_matching_filename): Rename from
- dw2_lookup_symtab. Change arguments.
- (dwarf2_gdb_index_functions): Update.
- * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
- * defs.h (compare_strings): Declare.
- * cli/cli-cmds.c (compare_strings): Move to utils.c.
- (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
- filter_sals.
- (compare_symtabs, filter_sals): New functions.
- * breakpoint.h (struct bp_location) <line_number, source_file>:
- New fields.
- (struct breakpoint) <line_number, source_file>: Remove.
- <filter>: New field.
- * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
- (momentary_breakpoint_from_master, add_location_to_breakpoint):
- Update for changes to locations.
- (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
- breakpoint.
- (create_breakpoint_sal): Add 'filter' argument.
- (remove_sal, expand_line_sal_maybe): Remove.
- (create_breakpoints_sal): Remove 'sals' argument. Handle
- pre-expanded sals and the filter.
- (parse_breakpoint_sals): Use decode_line_full.
- (check_fast_tracepoint_sals): Use get_sal_arch.
- (create_breakpoint): Create a linespec_sals. Update.
- (break_range_command): Use decode_line_full. Update.
- (until_break_command): Update.
- (clear_command): Update match conditions for linespec.c changes.
- Use DECODE_LINE_LIST_MODE.
- (say_where): Update for changes to locations.
- (bp_location_dtor): Free 'source_file'.
- (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
- (update_static_tracepoint): Update for changes to locations.
- (update_breakpoint_locations): Disable ranged breakpoint if too
- many locations match. Update.
- (addr_string_to_sals): Use decode_line_full. Resolve all sal
- PCs.
- (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
- (decode_line_spec_1): Update. Change argument name to 'flags',
- change interpretation.
- * block.h (block_containing_function): Declare.
- * block.c (block_containing_function): New function.
- * skip.c (skip_function_command): Update.
- (skip_re_set): Update.
- * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
- * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
- * NEWS: Add entry.
-
-2011-12-06 Tom Tromey <tromey@redhat.com>
-
- * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
- breakpoint's pspace to be NULL.
- * breakpoint.h (struct breakpoint) <pspace>: Update comment.
- * breakpoint.c (init_raw_breakpoint): Conditionally set
- breakpoint's pspace.
- (init_breakpoint_sal): Don't set breakpoint's pspace.
- (prepare_re_set_context): Conditionally switch program space.
- (addr_string_to_sals): Check executing_startup on location's
- program space.
-
-2011-12-06 Tom Tromey <tromey@redhat.com>
-
- * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
- * breakpoint.c (should_be_inserted): Explicitly check if program
- space is executing startup.
- (describe_other_breakpoints): Update.
- (disable_breakpoints_before_startup): Change executing_startup
- earlier. Remove loop.
- (enable_breakpoints_after_startup): Likewise.
- (init_breakpoint_sal): Don't use bp_startup_disabled.
- (create_breakpoint): Don't use bp_startup_disabled.
- (update_global_location_list): Use should_be_inserted.
- (bkpt_re_set): Update.
-
-2011-12-06 Tom Tromey <tromey@redhat.com>
-
- * python/lib/gdb/command/pretty_printers.py
- (InfoPrettyPrinter.invoke1): Remove extra double quote.
-
-2011-12-06 Tom Tromey <tromey@redhat.com>
-
- * NEWS: Add MI news.
-
-2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
-
- * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
- (S390_LAST_BREAK_REGNUM): Likewise.
- (S390_SYSTEM_CALL_REGNUM): Likewise.
- (S390_NUM_REGS): Update.
-
- (s390_regmap_last_break): Add declaration.
- (s390x_regmap_last_break): Likewise.
- (s390_regmap_system_call): Likewise.
-
- (tdesc_s390_linux32v1): Add declaration.
- (tdesc_s390_linux32v2): Likewise.
- (tdesc_s390_linux64v1): Likewise.
- (tdesc_s390_linux64v2): Likewise.
- (tdesc_s390x_linux64v1): Likewise.
- (tdesc_s390x_linux64v2): Likewise.
-
- * s390-tdep.c: Include new target description files
- "features/s390-linux32v1.c", "features/s390-linux32v2.c",
- "features/s390-linux64v1.c", "features/s390-linux64v2.c",
- "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
- (s390_cannot_store_register): New function.
- (s390_write_pc): Likewise.
- (s390_dwarf_regmap): Add fields for new registers.
- (s390_regmap_gregset): Likewise.
- (s390x_regmap_gregset): Likewise.
- (s390_regmap_fpregset): Likewise.
- (s390_regmap_upper): Likewise.
- (s390_regmap_last_break): New variable.
- (s390x_regmap_last_break): Likewise.
- (s390_regmap_system_call): Likewise.
- (s390_last_break_regset): Likewise.
- (s390x_last_break_regset): Likewise.
- (s390_system_call_regset): Likewise.
- (s390_upper_regset_sections): Rename to ...
- (s390_linux64_regset_sections): ... this.
- (s390_linux32_regset_sections): New variable.
- (s390x_linux64_regset_sections): Likewise.
- (s390_linux32v1_regset_sections): Likewise.
- (s390_linux32v2_regset_sections): Likewise.
- (s390_linux64v1_regset_sections): Likewise.
- (s390_linux64v2_regset_sections): Likewise.
- (s390x_linux64v1_regset_sections): Likewise.
- (s390x_linux64v2_regset_sections): Likewise.
- (s390_regset_from_core_section): Handle .reg-s390-last-break and
- .reg-s390-system-call core file sections.
- (s390_core_read_description): Check for presence of
- .reg-s390-last-break and .reg-s390-system-call core file
- sections and return appropriate target description.
- (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
- "last_break" and "system_call" in target description. Install
- appropriate gdbarch_core_regset_sections array.
- Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
- (_initialize_s390_tdep): Initialize additional target descriptions.
-
- * s390-nat.c: Include "elf/common.h".
- (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
- (have_regset_last_break): New static variable.
- (have_regset_system_call): Likewise.
- (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
- (s390_native_collect): Likewise.
- (fetch_regset, store_regset, check_regset): New functions.
- (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
- and S390_SYSTEM_CALL_REGNUM.
- (s390_linux_store_inferior_registers): Likewise.
- (s390_read_description): Check for presence of NT_S390_LAST_BREAK
- and NT_S390_SYSTEM_CALL regsets and use appropriate description.
-
- * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
- s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
- (s390-linux32v1-expedite): Define.
- (s390-linux32v2-expedite): Likewise.
- (s390-linux64v1-expedite): Likewise.
- (s390-linux64v2-expedite): Likewise.
- (s390x-linux64v1-expedite): Likewise.
- (s390x-linux64v2-expedite): Likewise.
-
- * features/s390-linux32.xml: Add orig_r2 register.
- * features/s390-linux64.xml: Likewise.
- * features/s390x-linux64.xml: Likewise.
- * features/s390-linux32v1.xml: New file.
- * features/s390-linux32v2.xml: Likewise.
- * features/s390-linux64v1.xml: Likewise.
- * features/s390-linux64v2.xml: Likewise.
- * features/s390x-linux64v1.xml: Likewise.
- * features/s390x-linux64v2.xml: Likewise.
-
- * features/s390-linux32.c: Regenerate.
- * features/s390-linux64.c: Likewise.
- * features/s390x-linux64.c: Likewise.
- * features/s390-linux32v1.c: New generated file.
- * features/s390-linux32v2.c: Likewise.
- * features/s390-linux64v1.c: Likewise.
- * features/s390-linux64v2.c: Likewise.
- * features/s390x-linux64v1.c: Likewise.
- * features/s390x-linux64v2.c: Likewise.
+ * ui-out.h: Remove #if 0 declarations.
+ * ui-out.c: Remove #if 0 functions.
- * regformats/s390-linux32.dat: Regenerate.
- * regformats/s390-linux64.dat: Regenerate.
- * regformats/s390x-linux64.dat: Regenerate.
- * regformats/s390-linux32v1.dat: New generated file.
- * regformats/s390-linux32v2.dat: Likewise.
- * regformats/s390-linux64v1.dat: Likewise.
- * regformats/s390-linux64v2.dat: Likewise.
- * regformats/s390x-linux64v1.dat: Likewise.
- * regformats/s390x-linux64v2.dat: Likewise.
+2012-06-11 Pedro Alves <palves@redhat.com>
-2011-12-05 Pedro Alves <pedro@codesourcery.com>
+ * ser-base.c (run_async_handler_and_reschedule): New.
+ (fd_event, push_event): Use it.
+ * serial.c (serial_open, serial_fdopen_ops): Set the initial
+ reference count to 1.
+ (do_serial_close): Set the bufp field to NULL. Use serial_unref
+ instead of xfree.
+ (serial_is_open, serial_ref, serial_unref): New.
+ * serial.h (serial_open): Adjust comment.
+ (serial_is_open): Declare.
+ (serial_close): Adjust comment.
+ (serial_ref, serial_unref) Declare.
+ (struct serial): New field 'refcnt'.
- * linux-nat.c (resume_stopped_resumed_lwps): Call
- registers_changed.
+2012-06-11 Pedro Alves <palves@redhat.com>
-2011-12-05 Pedro Alves <pedro@codesourcery.com>
+ Remove #if 0'd "connect" command, and unnecessary associated
+ refcounting and serial reuse bits.
- * breakpoint.c: Include record.h.
- (breakpoints_always_inserted_mode): Return false when the record
- target is in use.
+ * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
+ * serial.c (last_serial_opened): Delete.
+ (scb_base): Delete.
+ (serial_open): Adjust.
+ (serial_for_fd): Delete.
+ (serial_fdopen_ops, do_serial_close): Adjust.
+ (serial_fdopen_ops): Adjust.
-2011-12-05 Pedro Alves <pedro@codesourcery.com>
+2012-06-11 Pedro Alves <palves@redhat.com>
- * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
- Reinstate perror_with_name call on ptrace error. Remove #if 0.
- * i386-linux-nat.c (i386_linux_dr_get): Likewise.
- * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
+ * serial.c (do_serial_close): Remove early return when SCB is
+ null.
-2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
+2012-06-11 Tom Tromey <tromey@redhat.com>
- * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
- `i'(-Wshadow).
+ * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
-2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
+2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
- * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
+ Fix regression by the "ambiguous linespec" series.
+ * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
+ get_last_displayed_symtab and get_last_displayed_line and depending
+ on CURSAL.
-2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
+2012-06-11 Tom Tromey <tromey@redhat.com>
- * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
- of `tdep'(-Wshadow).
+ * dwarf2read.c (dw2_get_primary_filename_reader): New function.
+ (dw2_find_symbol_file): Use it.
-2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-06-11 Michael Eager <eager@eagercon.com>
- Fix compilation --without-expat.
- * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
- from ...
- [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
+ * mips-linux-tdep.c (mips_gdb_signal_from_target): New
+ * mips-linux-tdep.h (mips_signals): New
-2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-06-11 Tom Tromey <tromey@redhat.com>
- * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
- * features/library-list-svr4.dtd: New file.
- * remote.c (PACKET_qXfer_libraries_svr4): New.
- (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
- (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
- * solib-svr4.c (struct svr4_library_list): New.
- [HAVE_LIBEXPAT]: Include xml-support.h.
- [HAVE_LIBEXPAT] (svr4_library_list_start_library)
- [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
- [HAVE_LIBEXPAT] (svr4_library_list_children)
- [HAVE_LIBEXPAT] (svr4_library_list_attributes)
- [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
- [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
- [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
- (svr4_read_so_list): Extend the corruption message by addresses.
- (svr4_current_sos): New variable library_list, call
- svr4_current_sos_via_xfer_libraries.
- * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
-
-2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- PR threads/13448
- * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
- For DW_OP_GNU_push_tls_address increment the value, new comment for it.
-
-2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- PR breakpoints/13346
- * dwarf2read.c (process_psymtab_comp_unit): Set
- PSYMTABS_ADDRMAP_SUPPORTED.
- * psympriv.h (struct partial_symtab): Comment textlow and texthigh
- validity. New field psymtabs_addrmap_supported.
- * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
- psymtabs_addrmap_supported.
- (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
- !PSYMTABS_ADDRMAP_SUPPORTED.
- (dump_psymtab, maintenance_info_psymtabs): Print also
- psymtabs_addrmap_supported.
-
-2011-12-01 Doug Evans <dje@google.com>
-
- * python/py-type.c (type_object_methods): Fix "array" doc string.
-
-2011-12-01 Andrew Burgess <aburgess@broadcom.com>
-
- * source.c (print_source_lines_base): Fix missing braces on else
- clause leading to additional output.
-
-2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
-
- * s390-nat.c (SUBOFF): Remove.
- (s390_native_supply, s390_native_collect): New functions.
- (supply_gregset, supply_fpregset): Use s390_native_supply.
- (fill_gregset, fill_fpregset): Use s390_native_collect.
-
- * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
- (s390_unwind_pseudo_register): New function.
- (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
- registers instead of PC and CC.
- (s390_backchain_frame_unwind_cache): Likewise.
- (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
- full GPR pseudos.
- (s390_trad_frame_prev_register): New function.
- (s390_frame_prev_register): Use it.
- (s390_sigtramp_frame_prev_register): Likewise.
- (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
- (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
- special callback to unwind any pseudo.
-
- * features/s390-core32.xml: Add pswm/pswa to save/restore group.
- * features/s390-core64.xml: Likewise.
- * features/s390x-core64.xml: Likewise.
- * features/s390-linux32.c: Regenerate.
- * features/s390-linux64.c: Likewise.
- * features/s390x-linux64.c: Likewise.
+ * infrun.c (handle_inferior_event)
+ <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
+ breakpoint.
+ <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
+ exception logic in all cases. Update comments.
+ (insert_longjmp_resume_breakpoint): Set the exception resume
+ breakpoint.
-2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
+2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
- * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
+ * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
-2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
+2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
- * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
- instruction. Add more diagnostic output.
+ * valarith.c (binop_types_user_defined_p): Fix a typo.
-2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
+2012-06-08 Yao Qi <yao@codesourcery.com>
+ Chung-Lin Tang <cltang@codesourcery.com>
- * MAINTAINERS (Write After Approval): Add myself to the list.
+ * arch-utils.c (default_return_in_first_hidden_param_p): New.
+ * arch-utils.h: Declare.
+ * gdbarch.sh: Add return_in_first_hidden_param_p.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * infcall.c (call_function_by_hand): Call
+ gdbarch_return_in_first_hidden_param_p instead of
+ language_pass_by_reference.
-2011-11-29 Sanjoy Das <sdas@igalia.com>
+ * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
+ (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
+ * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
+ (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
+ * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
+ `cplus_return_struct_by_reference'.
+ (tic6x_return_value): Handle language cplusplus.
+ (tic6x_return_in_first_hidden_param_p): New.
+ (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
- * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
- (jit_bfd_try_read_symtab): Fix comments.
+2012-06-07 Doug Evans <dje@google.com>
-2011-11-28 DJ Delorie <dj@redhat.com>
+ * dwarf2read.c (dwarf2_cu): Add comment.
- * NEWS: Mention RL78 simulator.
+2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
-2011-11-28 Joel Brobecker <brobecker@adacore.com>
+ * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
+ variable.
+ (mips_eabi_push_dummy_call): Likewise.
+ (mips_n32n64_push_dummy_call): Likewise.
+ (mips_o32_push_dummy_call): Likewise.
+ (mips_o64_push_dummy_call): Likewise.
- * symfile.h (struct quick_symbol_functions): Fix the documentation
- of field map_matching_symbols, as symbols are sorted using
- strcmp_iw_ordered, not strcmp_iw.
+2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
-2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
+ * mips-tdep.c (mips_convert_register_p): Correct coding style.
- * symfile.h (struct quick_symbol_functions): Update the
- documentation for field map_matching_symbols.
+2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
-2011-11-28 Joel Brobecker <brobecker@adacore.com>
+ * mips-tdep.c (mips_pseudo_register_type): Use
+ mips_float_register_p.
- * ada-lang.c (compare_names): Fix wrong return value in case
- string1 starts with the same contents as string2, followed
- by an underscore that do not start a symbol name suffix.
+2012-06-06 Pedro Alves <palves@redhat.com>
-2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
+ * infrun.c (handle_inferior_event): Remove calls to
+ reinit_frame_cache that follow a context_switch call.
- PR python/13369
- PR python/13374
+2012-06-06 Pedro Alves <palves@redhat.com>
- * python/python.c (gdbpy_decode_line): Do not acquire GIL.
- * python/py-inferior.c (inferior_to_inferior_object): Ditto.
- * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
- exceptions.
- * python/py-type.c (typy_strip_typedefs): Ditto.
- (typy_legacy_template_argument): Ditto.
- * python/py-inferior.c (inferior_to_inferior_object): Ditto.
- * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
+ * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
+ context_switch and remove stale comment.
-2011-11-27 Joel Brobecker <brobecker@acacore.com>
+2012-06-06 Pedro Alves <palves@redhat.com>
- * remote.c (remote_get_tracepoint_status): Delete addrbuf
- local variable. Avoid use of sprintf_vma.
+ * infrun.c (struct execution_control_state): Remove
+ `new_thread_event' field.
+ (handle_inferior_event): Simplify new threads handling; don't
+ resume the inferior if we find a new thread.
-2011-11-27 Sanjoy Das <sdas@igalia.com>
+2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
- Fix regression in jit.exp.
- * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
- (jit_register_code): Set the jit_objfile_data field to the correct
- value.
+ * NEWS: Document the deprecation of SH's 'regs' command.
+ * inferior.h (all_registers_info): Add function declaration.
+ * sh-tdep.c (sh_show_regs): Remove variable.
+ (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
+ (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
+ (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
+ (sh_show_regs_command): Remove functions.
+ (sh_gdbarch_init): Don't set sh_show_regs.
+ (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
+ 'info all-registers'.
+ * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
+ (sh64_show_regs): Remove functions.
+ * sh64-tdep.h (sh64_show_regs): Remove function declaration.
-2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
+2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
- * alpha-tdep.c (br_opcode): New.
- (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
- (alpha_deal_with_atomic_sequence): New function.
- (alpha_gdbarch_init): Handle single stepping of atomic sequences
- with alpha_deal_with_atomic_sequence.
+ * configure.ac: Move development=true below AC_INIT.
+ * configure: Regenerate.
-2011-11-24 Tristan Gingold <gingold@adacore.com>
+2012-06-05 Stan Shebs <stan@codesourcery.com>
- * machoread.c (oso_el): Remove num_Sections, symbols, offsets
- fields. Add oso_sym, end_sym and nbr_syms.
- (macho_register_oso): Change interface.
- (macho_symtab_add_minsym): New function.
- (macho_symtab_read): Rewritten.
- (get_archive_prefix_len): Remove trailing blanks.
- (oso_el_compare_name): Add comment.
- (struct macho_sym_hash_entry): New structure.
- (macho_relocate_common_syms): Remove.
- (macho_sym_hash_newfunc): New function.
- (macho_resolve_oso_sym_with_minsym): Likewise.
- (macho_add_oso_symfile): Rewritten.
- (macho_symfile_read_all_oso): Remove trailing blanks.
- Adjust code to free oso vector.
- (macho_symfile_read): Likewise.
- Move code to initialize minimal symbol
+ * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
+ gdb_stdout.
-2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
+2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
- * mips-tdep.c (extended_offset): Fix formatting.
-
-2011-11-23 Doug Evans <dje@google.com>
-
- * dwarf2read.c (dw2_lookup_symtab): Add comment.
- (dw2_expand_symtabs_with_filename): Ditto.
- (dw2_expand_symtabs_matching): Ditto.
- (dw2_map_symbol_filenames): Ditto.
-
-2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
-
- * ada-lang.c (assign_aggregate): Minor reformatting.
-
-2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
-
- * ada-lang.c (assign_aggregate): Remove declaration of local
- variable `i' which is shadowing another variable with the same
- name declared in the outer scope.
-
-2011-11-23 Joel Brobecker <brobecker@adacore.com>
-
- * ada-lang.c (get_base_type): Renames base_type. Adjust all
- calls throughout this file.
-
-2011-11-23 Joel Brobecker <brobecker@adacore.com>
-
- * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
- FormatMessage.
-
-2011-11-22 Tom Tromey <tromey@redhat.com>
-
- PR mi/8444:
- * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
- (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
- (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
- * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
- * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
- (print_it_catch_syscall, print_it_catch_exec)
- (internal_bkpt_print_it): Use ui_out. Emit stop reason.
- (bpstat_print): Add 'kind' argument. Handle
- TARGET_WAITKIND_LOADED.
- * infrun.c (normal_stop): Update for bpstat_print change. Don't
- handle TARGET_WAITKIND_LOADED here.
- * breakpoint.h (bpstat_print): Update.
-
-2011-11-22 Tom Tromey <tromey@redhat.com>
-
- * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
-
-2011-11-22 Tom Tromey <tromey@redhat.com>
-
- * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
- Use static_assert to check the size of
- async_reason_string_lookup.
- * common/gdb_assert.h (static_assert): New macro.
-
-2011-11-22 Alan Modra <amodra@gmail.com>
-
- * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
- destination calculation. Don't expect >> to sign extend. Don't
- add a break if branch lands inside the sequence anywhere.
-
-2011-11-21 Keith Seitz <keiths@redhat.com>
-
- * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
- -var-evaluate-expression of an enumeration and fix expected result.
- * gdb.mi/mi2-varvdisplay.exp: Likewise.
-
-2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
-
- * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
- the case where osdata->items is empty. Rename column names to a
- canonical form to avoid problems with unusual column names.
-
-2011-11-21 Yao Qi <yao@codesourcery.com>
-
- * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
-
-2011-11-20 Stan Shebs <stan@codesourcery.com>
-
- * NEWS: Mention tracepoint additions.
- * breakpoint.h (struct tracepoint): New field traceframe_usage.
- * breakpoint.c (print_one_breakpoint_location): Identify
- tracepoints as such when reporting hit counts, report
- trace buffer usage.
- (create_tracepoint_from_upload): Copy status info.
- * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
- add fields user_name, notes, start_time, stop_time.
- (struct uploaded_tp): Add fields hit_count, traceframe_usage.
- * tracepoint.c (trace_user): New global.
- (trace_notes): New global.
- (trace_stop_notes): New global.
- (start_tracing): Add argument and trace note handling.
- (stop_tracing): Ditto.
- (trace_start_command): Add notes argument.
- (trace_stop_command): Ditto.
- (trace_status_command): Report additional status info.
- (trace_status_mi): Similarly.
- (trace_save): Update, record tracepoint status.
- (set_disconnected_tracing): Call target method directly.
- (send_disconnected_tracing_value): Remove.
- (set_trace_user): New function.
- (set_trace_notes): New function.
- (set_trace_stop_notes): New function.
- (parse_trace_status): Handle additional status.
- (parse_tracepoint_status): New function.
- (parse_tracepoint_definition): Call it.
- (tfile_get_tracepoint_status): New function.
- (init_tfile_ops): Use it.
- (_initialize_tracepoint): Add new setshows.
- * target.h (struct target_ops): New methods to_get_tracepoint_status
- and to_set_trace_notes.
- (target_get_tracepoint_status): New macro.
- (target_set_trace_notes): New macro.
- * target.c (update_current_target): Add new methods.
- * remote.c (remote_get_tracepoint_status): New function.
- (remote_set_trace_notes): New function.
- (init_remote_ops): Add them.
- * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
- (mi_cmd_trace_stop): Ditto.
-
-2011-11-20 Sanjoy Das <sdas@igalia.com>
-
- * jit.c: Include regcache.h.
- (jit_gdbarch_data, jit_frame_unwind): New static variables.
- (jit_unwind_reg_set_impl, free_reg_value_impl)
- (jit_unwind_reg_get_impl, jit_frame_sniffer)
- (jit_frame_unwind_stop_reason, jit_frame_this_id)
- (jit_frame_prev_register, jit_dealloc_cache)
- (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
- (jit_inferior_init): Prepend (new) pseudo unwinder by calling
- jit_prepend_unwinder.
- (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
-
-2011-11-20 Sanjoy Das <sdas@igalia.com>
-
- * jit.c: Include block.h, dictionary.h and frame-unwind.h.
- (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
- (jit_symtab_open_impl, compare_block, jit_block_open_impl)
- (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
- (finalize_symtab, jit_object_close_impl)
- (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
- (free_objfile_data): New functions.
- (_initialize_jit): Register jit_objfile_data with a proper cleanup
- function.
+ * corefile.c (read_memory, read_stack, write_memory): Accept LEN
+ argument as ssize_t.
+ * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
+ * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
+ * target.c (target_read_stack, target_write_memory)
+ (target_write_raw_memory): Likewise.
+ * target.h (target_read_stack, target_write_memory)
+ (target_write_raw_memory): Likewise.
-2011-11-20 Sanjoy Das <sdas@igalia.com>
+2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
- * jit.c: Include gdb-dlfcn.h.
- (loaded_jit_reader, reader_init_fn_sym): New static variables.
- (jit_reader_load, jit_reader_load_command)
- (jit_reader_unload_command): New functions.
- (_initialize_jit): Add commands "jit-reader-load" and
- "jit-reader-unload".
+ * symfile-mem.c: Change gdb_static_assert to ssize_t.
+ (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
+ * target.c (target_read_memory): Change LEN to ssize_t.
+ * target.h (target_read_memory): Change LEN to ssize_t.
-2011-11-20 Sanjoy Das <sdas@igalia.com>
+2012-06-05 Pedro Alves <palves@redhat.com>
- * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
- * config.in: Add new #define HAVE_LIBDL.
- * configure.ac: Add check for -ldl.
- * configure: Re-generated by autoconf.
- * gdb-dlfcn.c: New file.
- * gdb-dlfcn.h: New file.
+ PR backtrace/13866
-2011-11-20 Sanjoy Das <sdas@igalia.com>
+ * breakpoint.c (until_break_command): Only fetch the selected
+ frame after decode_line_1.
- * config.in: Add new #defines: JIT_READER_DIR and
- JIT_READER_DIR_RELOCATABLE.
- * configure.ac: New GDB directory entry for jit-reader-dir.
- * configure: Re-generated by autoconf.
- * jit.c: New static variable: const char *jit_reader_dir.
- (_initialize_jit): Relocate jit_reader_dir.
+2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
-2011-11-20 Sanjoy Das <sdas@igalia.com>
+ * solib-svr4.c (enable_break): Don't fallback to setting the solib
+ event breakpoint at _start, __start or main if a program
+ interpreter is not found.
- * Makefile.in: Add jit-reader.h as a header. Have it installed in
- $(includedir)/gdb.
- * configure.ac: Generate a correct value for TARGET_PTR for
- jit-reader.h. Tell configure to generate jit-reader.h from
- jit-reader.in.
- * configure: Re-generated by autoconf.
- * jit-reader.in: New file.
- * jit.c: Include jit-reader.h.
+2012-06-05 Joel Brobecker <brobecker@adacore.com>
-2011-11-20 Sanjoy Das <sdas@igalia.com>
+ * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
+ Add declaration.
+ * windows-tdep.c: #include "objfiles.h".
+ (windows_iterate_over_objfiles_in_search_order): New function.
+ * amd64-windows-tdep.c (amd64_windows_init_abi): Set
+ iterate_over_objfiles_in_search_order gdbarch method to
+ windows_iterate_over_objfiles_in_search_order.
+ * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
- * MAINTAINERS (Write After Approval): Add myself to the list.
+2012-06-05 Joel Brobecker <brobecker@adacore.com>
-2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
+ * gdbarch.sh: Add generation of
+ "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
+ gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
+ (iterate_over_objfiles_in_search_order): New gdbarch method.
+ * gdbarch.h, gdbarch.c: Regenerate.
+ * objfiles.h (default_iterate_over_objfiles_in_search_order):
+ Add declaration.
+ * objfiles.c (default_iterate_over_objfiles_in_search_order):
+ New function.
+ * symtab.c (lookup_symbol_aux_objfile): New function, extracted
+ out of lookup_symbol_aux_symtabs.
+ (lookup_symbol_aux_symtabs): Replace extracted-out code by
+ call to lookup_symbol_aux_objfile.
+ (struct global_sym_lookup_data): New type.
+ (lookup_symbol_global_iterator_cb): New function.
+ (lookup_symbol_global): Search for symbol using
+ gdbarch_iterate_over_objfiles_in_search_order and
+ lookup_symbol_global_iterator_cb.
+ * findvar.c (struct minsym_lookup_data): New type.
+ (minsym_lookup_iterator_cb): New function.
+ (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
+ symbol's address via gdbarch_iterate_over_objfiles_in_search_order
+ and minsym_lookup_iterator_cb.
- * findvar.c (read_frame_register_value): Respect value_offset
- of the register value. Remove big-endian special case.
+2012-06-05 Joel Brobecker <brobecker@adacore.com>
-2011-11-18 Tom Tromey <tromey@redhat.com>
+ Revert the following patch:
+ * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
+ try locating the symbol in the symbol's own objfile first, before
+ extending the search to all objfiles.
+ * symtab.c (lookup_symbol_aux_objfile): New function, extracted
+ out of lookup_symbol_aux_symtabs.
+ (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
+ Replace extracted-out code by call to lookup_symbol_aux_objfile.
+ Do not search EXCLUDE_OBJFILE.
+ (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
+ (lookup_symbol_global): Search for matches in the block's objfile
+ first, before searching all other objfiles.
- PR build/7196:
- * remote.c (putpkt_for_catch_errors): New function.
- (remote_kill): Use it.
+2012-06-05 Joel Brobecker <brobecker@adacore.com>
-2011-11-18 Yao Qi <yao@codesourcery.com>
+ * breakpoint.c (find_condition_and_thread): Stop parsing
+ as soon as the first invalid keyword is found.
- * breakpoint.c (create_breakpoint): Produce query message according to
- breakpoint's type.
- Allocate tracepoint per correct type.
- Don't check SALs for pending fast tracepoints.
- * tracepoint.c (process_tracepoint_on_disconnect): New.
- (disconnect_tracing): Call process_tracepoint_on_disconnect.
+2012-06-05 Joel Brobecker <brobecker@adacore.com>
-2011-11-18 Yao Qi <yao@codesourcery.com>
+ * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
- * breakpoint.c (install_breakpoint): Add one more parameter so that
- update_global_location_list is called conditionally.
- (create_fork_vfork_event_catchpoint): Update.
- (create_syscall_event_catchpoint): Update.
- (create_breakpoint_sal): Update.
- (create_breakpoint_sal): Update. Call do_cleanups before
- install_breakpoint.
- * ada-lang.c (create_ada_exception_catchpoint): Update.
- * breakpoint.h (install_breakpoint): Update declaration.
+2012-06-05 Joel Brobecker <brobecker@adacore.com>
-2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
+ * config/djgpp/djcheck.sh: Add copyright header.
- * spu-tdep.c (spu_return_value): Fix handling of
- TYPE_CALLING_CONVENTION annotation.
+2012-06-05 Joel Brobecker <brobecker@adacore.com>
-2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
-
- * skip.c (skip_function_command): Work around uninitialized
- variable warning.
-
-2011-11-16 David S. Miller <davem@davemloft.net>
-
- * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
- 'tv_usec' to long for printf since these fields have a type which
- varies.
-
-2011-11-15 Doug Evans <dje@google.com>
-
- * buildsym.c (add_symbol_to_list): Delete outdated comment.
-
-2011-11-15 Paul Koning <paul_koning@dell.com>
-
- * python/py-type.c (typy_get_composite): New function.
- (typy_nonzero): New function.
- (typy_values): Rename from typy_fields.
- (typy_fields): New function.
- (typy_length): Raise exception if not struct, union, or enum type.
- (typy_getitem): Ditto.
- (typy_has_key): Ditto.
- (typy_make_iter): Ditto.
-
-2011-11-15 Doug Evans <dje@google.com>
-
- PR gdb/8367
- * NEWS: Mention new parameter basenames-may-differ.
- * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
- ! basenames_may_differ.
- * psymtab.c (lookup_partial_symtab): Ditto.
- * symtab.c (lookup_symtab): Ditto.
- (basenames_may_differ): New global.
- (_initialize_symtab): New parameter basenames-may-differ.
- * symtab.h (basenames_may_differ): Declare.
-
-2011-11-15 Pedro Alves <pedro@codesourcery.com>
- Luis Machado <lgustavo@codesourcery.com>
-
- * auxv.c: Include observer.h.
- (auxv_inferior_data_cleanup): New.
- (invalidate_auxv_cache_inf): New.
- (invalidate_auxv_cache): New.
- (get_auxv_inferior_data): New.
- (auxv_inferior_data): New static global.
- (auxv_info): New structure.
- (target_auxv_search): Use get_auxv_inferior_data instead of
- target_read_alloc and don't free cached buffers.
- (fprint_target_auxv): Likewise
- (_initialize_auxv): Register per-inferior auxv cache and register
- observers to invalidate auxv cache when needed.
-
-2011-11-14 Doug Evans <dje@google.com>
-
- PR gdb/7200 Make "!" an alias for "shell".
- * NEWS: Add mention.
- * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
- adding "!" command, always add it.
- * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
- command of length one.
-
-2011-11-14 Stan Shebs <stan@codesourcery.com>
- Kwok Cheung Yeung <kcy@codesourcery.com>
+ * copyright.py (update_files, main): Fix path to update-copyright
+ script.
- * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
- * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
- the minimum instruction size for fast tracepoints.
- * target.h (struct target_ops): Add new method
- to_get_min_fast_tracepoint_insn_len.
- (target_get_min_fast_tracepoint_insn_len): New.
- * target.c (update_current_target): Set up new target operation.
- * remote.c (remote_write_bytes_aux): Fix typo.
- (remote_get_min_fast_tracepoint_insn_len): New.
- (init_remote_ops): Initialize new field.
-
-2011-11-14 Tom Tromey <tromey@redhat.com>
-
- * tracepoint.c (encode_actions_1): Use the location's gdbarch.
- (encode_actions): Likewise.
-
-2011-11-14 Yao Qi <yao@codesourcery.com>
-
- * remote.c (struct remote_state): <install_in_trace> new field.
- (PACKET_InstallInTrace): New enum value.
- (remote_install_in_trace_feature): Support InstallInTrace.
- (remote_supports_install_in_trace): Likewise.
- (remote_protocol_features): Likewise.
- (_initialize_remote): Likewise.
- (remote_can_download_tracepoint): New.
- * target.h (struct target): New field
- `to_can_download_tracepoint'.
- (target_can_download_tracepoint): New macro.
- * target.c (update_current_target): Update.
- * breakpoint.h (struct bp_location): Add comment on field
- `duplicate'.
- * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
- and tracepoint.
- (remove_breakpoints): Don't remove tracepoints.
- (tracepoint_locations_match ): New.
- (breakpoint_locations_match): Call it.
- (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
- (download_tracepoint_locations): New.
- (update_global_location_list): Call it.
- * tracepoint.c (find_matching_tracepoint): Delete.
- (find_matching_tracepoint_location): Renamed from
- find_matching_tracepoint. Return bp_location rather than
- tracepoint.
- (merge_uploaded_tracepoints): Set `inserted' field to 1 if
- tracepoint is found.
-
-2011-11-14 Yao Qi <yao@codesourcery.com>
-
- * target.h (struct target): <to_download_tracepoint> Change type
- of parameter from tracepoint to bp_location.
- * target.c (update_current_target): Update.
- * tracepoint.c (start_tracing): Update.
- * remote.c (remote_download_tracepoint): Remove loop for each location
- of a tracepoint.
+2012-06-05 Joel Brobecker <brobecker@adacore.com>
-2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
+ * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
+ (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
+ for which a reminder to update by hand is printed.
- * i386-nat.c (i386_insert_hw_breakpoint): Call
- i386_update_inferior_debug_regs.
- (i386_remove_hw_breakpoint): Likewise.
+2012-06-04 Doug Evans <dje@google.com>
-2011-11-14 Yao Qi <yao@codesourcery.com>
+ * buildsym.c (make_blockvector): Add comment.
- * breakpoint.c (init_raw_breakpoint): Call
- add_location_to_breakpoint to replace duplicated code.
- (add_location_to_breakpoint): Adjust the breakpoint's
- address prior to allocating a location.
+2012-06-04 Pedro Alves <palves@redhat.com>
-2011-11-12 Matt Rice <ratmice@gmail.com>
+ * arch-utils.c (default_gdb_signal_from_target): Delete.
+ * arch-utils.h (default_gdb_signal_from_target): Delete.
+ * corelow.c (core_open) <signal mapping>: Extended comment. Check
+ gdbarch_gdb_signal_from_target_p.
+ * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
+ predicate).
+ * gdbarch.h: Regenerate.
+ * gdbarch.c: Regenerate.
- * macrocmd.c (macro_no_macro_info): New function.
- (macro_expand_command): Use macro_no_macro_info.
- (macro_expand_once_command): Ditto.
- (info_macro_command): Add argument processing,
- move info_definitions_command here.
- (_initialize_macrocmd): Remove info definitions command.
- Add arguments to info macro help text.
- * NEWS: Replace info definitions command with new info macro options.
+2012-06-04 Pedro Alves <palves@redhat.com>
-2011-11-11 Keith Seitz <keiths@redhat.com>
+ * gdbarch.sh (gdb_signal_from_target): Mention that the
+ implementation of the method must be host independent.
+ * gdbarch.h: Regenerate.
- PR gdb/12843
- * linespec.c (locate_first_half): Keep ':' if it looks
- like it could be part of a Windows path starting with
- a drive letter.
+2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-11-10 Pedro Alves <pedro@codesourcery.com>
+ * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
+ parameters.
+ (target_read_memory_bfd): New function.
+ (symbol_file_add_from_memory): Use it.
- * linux-nat.c (linux_nat_wait): Don't force waking up the event
- loop when returning a TARGET_WAITKIND_NO_RESUMED.
+2012-06-03 Doug Evans <dje@google.com>
-2011-11-10 Pedro Alves <pedro@codesourcery.com>
+ * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
+ of primary symtab.
+ (basic_lookup_transparent_type): Ditto.
- * target.c (target_waitstatus_to_string): Handle
- TARGET_WAITKIND_NO_RESUMED.
+ * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
+ (ALL_PRIMARY_SYMTABS): Use it.
+ (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
+ * dwarf2read.c (dw2_find_symbol_file): Ditto.
+ * linespec.c (iterate_over_all_matching_symtabs): Ditto.
+ * symtab.c (lookup_symbol_aux_objfile): Ditto.
+ (basic_lookup_transparent_type): Ditto.
-2011-11-10 Doug Evans <dje@google.com>
+2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
- * dwarf2read.c (dw2_map_symbol_filenames): New parameter
- `need_fullname'.
- * psymtab.c (map_symbol_filenames_psymtab): Ditto.
- (map_partial_symbol_filenames): Ditto. All callers updated.
- * psymtab.h (map_partial_symbol_filenames): Update prototype.
- * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
- parameter need_fullname.
+ * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
+ it to optimize resolution of demangled name.
- * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
- * source.c (symtab_to_fullname): Ditto.
+2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
- * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
- * gdb-demangle.h: ... here. New file.
- * demangle.c: #include "gdb-demangle.h".
- (_initialize_demangler): Use initialize_file_ftype for prototype.
- Move "set demangle" and "set asm-demangle" parameters here from utils.c
- (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
- from utils.c
- * utils.c: Update. #include "gdb-demangle.h".
- * symtab.h (asm_demangle): Delete.
- (demangle): Move declaration next to use.
- * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
- * dwarf2read.c: #include "gdb-demangle.h".
- * gnu-v2-abi.c: Ditto.
- * jv-typeprint.c: Ditto.
- * mdebugread.c: Ditto.
- * p-typeprint.c: Ditto.
- * stabsread.c: Ditto.
- * printcmd.c: Ditto.
- (asm_demangle): Delete declaration.
- * tui/tui-stack.c: #include "gdb-demangle.h".
+ * configure.ac (development): Define new variable.
+ Call AC_CHECK_LIB for mcheck if $development.
+ (ERROR_ON_WARNING): Enable it by default only if $development.
+ * config.in: Regenerate.
+ * configure: Regenerate.
- * python/py-type.c (typy_fields_items): Call check_typedef.
+2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
-2011-11-10 Joel Brobecker <brobecker@adacore.com>
+ * target.c (target_read_memory): Make LEN argument as size_t.
+ * target.h (target_read_memory): Likewise.
- * findvar.c (read_frame_register_value): Read the correct bytes
- from registers on big-endian architectures.
+2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-11-10 Tom Tromey <tromey@redhat.com>
+ * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
- * procfs.c (load_syscalls): Make a cleanup.
- (open_procinfo_files): fd==0 is ok.
+2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
-2011-11-10 Joel Brobecker <brobecker@adacore.com>
+ * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
+ BookE interface for PowerPC server processors if not available
+ in the Linux Kernel.
- * procfs.c (iterate_over_mappings): Call do_cleanups before
- returning.
+2012-05-31 Keith Seitz <keiths@redhat.com>
-2011-11-09 Doug Evans <dje@google.com>
+ * linespec.c (decode_objc): Add cleanup to free
+ INFO.FILE_SYMTABS.
+ (find_linespec_symbols): Add cleanup to free CLASSES.
+ * symfile.c (find_separate_debug_file_by_debuglink): Add
+ cleanup to free DEBUGLINK.
+ * ui-out.c (clear_header_list): No need to check if
+ HEADER_NEXT.COLHDR is NULL.
+ Free HEADER_NEXT.COL_NAME.
- * gdbtypes.c (check_typedef): Document that this function can
- throw an exception.
+2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
-2011-11-09 Tom Tromey <tromey@redhat.com>
+ * ada-lang.c (standard_lookup): Prevent uninitialized variable
+ warning.
- PR c++/13342:
- * valops.c (value_full_object): Return early if real type is
- smaller than the enclosing type.
+2012-05-30 Jeff Kenton <jkenton@tilera.com>
-2011-11-08 Yao Qi <yao@codesourcery.com>
+ * configure.host (gdb_host_cpu): Handle tilegx*.
+ (gdb_host): Handle tilegx-*-linux*.
+ * tilegx-linux-nat.c: New file.
+ * config/tilegx/linux.mh: New file.
- * amd64-tdep.c (amd64_relocate_instruction): Make it static.
+2012-05-30 Jeff Kenton <jkenton@tilera.com>
-2011-11-08 Meador Inge <meadori@codesourcery.com>
+ * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
+ tilegx-linux-tdep.o.
+ (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
+ tilegx-linux-tdep.c.
+ * configure.tgt: Handle tilegx-*-linux*.
+ * tilegx-tdep.h: New file.
+ * tilegx-tdep.c: New file.
+ * tilegx-linux-tdep.c: New file.
+ * regformats/reg-tilegx.dat: New file.
- * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
- register when the frame can't be determined.
- * arm-tdep.c (arm_analyze_prologue): Ditto.
+2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
-2011-11-07 Stan Shebs <stan@codesourcery.com>
+ * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
+ accounting of hw watchpoints on ppc.
- * MAINTAINERS: Move Michael Snyder to Past Maintainers.
+2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
-2011-11-07 Joel Brobecker <brobecker@adacore.com>
+ * source.c (openp): Expand tilde in path entries.
- * infrun.c (handle_inferior_event): Minor reformatting.
+2012-05-29 Doug Evans <dje@google.com>
-2011-11-05 Doug Evans <dje@google.com>
+ * buildsym.c (block_compar): Fix comment.
+ (end_symtab): Fix and clarify some comments.
- * source.c (forget_cached_source_info_for_objfile): Move call to
- objfile->sf->qf->forget_cached_source_info outside of
- ALL_OBJFILE_SYMTABS loop.
- (forget_cached_source_info): Delete unused variable `s'.
+ * stabsread.h (cleanup_undefined_stabs_types): Renamed from
+ cleanup_undefined_types.
+ * stabsread.c (cleanup_undefined_stabs_types): Ditto.
+ All callers updated.
-2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-05-29 Tom Tromey <tromey@redhat.com>
- * i386-nat.c (dr_ref_count): Remove unused variable.
+ * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
+ fails.
+ * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
+ * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
+ fails.
+ * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
+ fails.
-2011-11-05 Doug Evans <dje@google.com>
+2012-05-29 Tristan Gingold <gingold@adacore.com>
- * main.c (captured_main): Set lim_at_start before calling
- make_command_stats_cleanup.
+ * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
+ (struct darwin_info): ... New struct.
+ (solib_darwin_pspace_data): New variable.
+ (darwin_pspace_data_cleanup): New function.
+ (get_darwin_info): Likewise.
+ (darwin_dyld_version_ok, darwin_load_image_infos)
+ (darwin_solib_get_all_image_info_addr_at_init)
+ (darwin_solib_read_all_image_info_addr): Add info argument.
+ Adjust code.
+ (darwin_current_sos): Use per pspace structure.
+ (darwin_solib_create_inferior_hook): Likewise.
+ (darwin_clear_solib): Likewise.
+ (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
-2011-11-04 Doug Evans <dje@google.com>
+2012-05-28 Pedro Alves <palves@redhat.com>
- * utils.c: #include "timeval-utils.h".
- (cmd_stats): Rename start_time to start_cpu_time.
- New member start_wall_time.
- (report_command_stats): Report wall time.
- (make_command_stats_cleanup): Record start wall time.
+ * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
+ block that uses them. Clear ecss before handling each event.
-2011-11-04 Tom Tromey <tromey@redhat.com>
+2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
- * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
+ * solib-svr4.c (svr4_current_sos): New comment on
+ svr4_current_sos_via_xfer_libraries fall back.
-2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
- * coff-pe-read.c: Include defs.h before bfd.h.
+ * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
+ it as a fallback for TYPE_IS_OPAQUE.
+ * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
+ symbols for lookup_symbol.
-2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
+2012-05-24 John Steele Scott <toojays@toojays.net>
- PR Python/13345
+ PR symtab/13277: Resolving opaque structures in ICC generated binaries.
+ * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
+ (producer_is_gxx_lt_4_6): Move the checking and caching to...
+ (check_producer): ... this new function, which also checks for ICC
+ and caches the result.
+ (producer_is_icc): New function.
+ (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
+ producer was ICC.
- * python/python.c (python_run_simple_file): Expand tilde in path.
+2012-05-24 Pedro Alves <palves@redhat.com>
-2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
+ PR gdb/7205
- PR Python/13363
+ * arch-utils.c (default_gdb_signal_to_host): Rename to ...
+ (default_gdb_signal_to_target): ... this. Add comment.
+ (default_gdb_signal_from_host): Rename to ...
+ (default_gdb_signal_from_target): ... this. Add comment.
+ * arch-utils.h (default_gdb_signal_to_host): Rename to ...
+ (default_gdb_signal_to_target): ... this.
+ (default_gdb_signal_from_host): Rename to ...
+ (default_gdb_signal_from_target): ... this.
+ * corelow.c (core_open): Adjust to naming change. Replace comment.
+ * gdbarch.sh (gdb_signal_from_host): Rename to ...
+ (gdb_signal_from_target): ... this. Adjust to
+ default_gdb_signal_from_host naming change. Extend comment.
+ (gdb_signal_to_host): Rename to ...
+ (gdb_signal_to_target): ... this. Adjust to
+ default_gdb_signal_to_host naming change.
+ * gdbarch.h, gdbarch.c: Renegerate.
- * python/py-type.c (typy_lookup_type): Do not return a type in
- an exception handler.
+2012-05-24 Pedro Alves <palves@redhat.com>
-2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
- Eli Zaretskii <eliz@gnu.org>
+ PR gdb/7205
- * linux-nat.c (_initialize_linux_nat): Improve help
- for `info proc stat', `info proc status', `info proc cwd',
- `info proc cmdline' and `info proc exe'.
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
-2011-11-02 Stan Shebs <stan@codesourcery.com>
+2012-05-24 Pedro Alves <palves@redhat.com>
- String collection for tracepoints.
- * NEWS: Mention string collection.
- * common/ax.def (tracenz): New bytecode.
- * ax-gdb.h (trace_string_kludge): Declare.
- * ax-gdb.c: Include valprint.h and c-lang.h.
- (trace_string_kludge): New global.
- (gen_traced_pop): Add string case.
- (agent_command): Add string case.
- * tracepoint.h (decode_agent_options): Declare.
- * tracepoint.c: Include cli-utils.h.
- (decode_agent_options): New function.
- (validate_actionline): Call it.
- (encode_actions_1): Ditto.
- * target.h (struct target_ops): New method to_supports_string_tracing.
- (target_supports_string_tracing): New macro.
- * target.c (update_current_target): Add to_supports_string_tracing.
- * remote.c (struct remote_state): New field string_tracing.
- (remote_string_tracing_feature): New function.
- (remote_protocol_features): New feature tracenz.
- (remote_supports_string_tracing): New function.
- (init_remote_ops): Set to_supports_string_tracing.
+ PR gdb/7205
-2011-11-02 Pedro Alves <pedro@codesourcery.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+ Replace target_signal with gdb_signal throughout.
- * linux-nat.c: Include cli/cli-utils.h.
- (enum info_proc_what): New.
- (linux_nat_info_proc_cmd): Rename to ...
- (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
- New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
- status_f and stat_f from WHAT. Throw error on extra parameters.
- (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
- (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
- (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
- (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
- (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
- proc mappings', `info proc stat`, `info proc status', `info proc cwd',
- `info proc cmdline', `info proc exe' and `info proc all' as real
- subcommands of `info proc'.
-
-2011-11-01 Justin Lebar <justin.lebar@gmail.com>
-
- * Makefile.in: (SFILES): Add skip.c.
- (HFILES_NO_SRCDIR): Add skip.h.
- (COMMON_OBS): Add skip.o.
- * skip.h, skip.c: New.
- * breakpoint.h (set_default_breakpoint): Remove.
- (get_sal_arch): Declare.
- * breakpoint.c: Remove default_breakpoint_valid,
- default_breakpoint_address, default_breakpoint_symtab,
- default_breakpoint_line, default_breakpoint_pspace variables.
- (get_sal_arch): Make public.
- (set_default_breakpoint): Remove.
- (parse_breakpoint_sals, create_breakpoint, clear_command,
- decode_line_spec_1): Remove uses of default_breakpoint variables;
- replaced with function calls into stack.c.
- * cli/cli-cmds.h: Add cmd_list_element *skiplist.
- * cli/cli-cmds.c: Add skiplist.
- (init_cmd_lists): Initialize skiplist.
- (init_cli_cmds): Fix comment (classes of commands appear in
- alphabetical order).
- * infrun.c (handle_inferior_event): Add check that we don't step into
- a function whose pc is marked for skip.
- * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
- last_displayed_addr, last_displayed_symtab, last_displayed_line
- variables.
- (set_last_displayed_sal): New static function.
- (print_frame_info): Switch call to set_default_breakpoint to call to
- set_last_displayed_sal.
- (clear_last_displayed_sal, last_displayed_sal_is_valid,
- get_last_displayed_pspace, get_last_displayed_addr,
- get_last_displayed_symtab, get_last_displayed_line,
- get_last_displayed_sal): New public functions.
- * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
- get_last_displayed_pspace, get_last_displayed_addr,
- get_last_displayed_symtab, get_last_displayed_line,
- get_last_displayed_sal): Declare.
-
-2011-11-01 Justin Lebar <justin.lebar@gmail.com>
+2012-05-24 Pedro Alves <palves@redhat.com>
- * MAINTAINERS (Write After Approval): Add myself to the list.
+ PR tui/14159
-2011-10-29 Yao Qi <yao@codesourcery.com>
+ * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
+ string, instead of reusing the va_list argument.
- * infcmd.c (disconnect_command): Call disconnect_tracing.
+2012-05-24 Tom Tromey <tromey@redhat.com>
-2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
+ Remove.
- Code cleanup.
- * symtab.c (skip_prologue_sal): Code reformatting.
+2012-05-23 Doug Evans <dje@google.com>
+
+ * symtab.c (search_symbols): Formatting fixes.
+ (print_symbol_info): Formatting fixes.
+
+ * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
+ int64_t change to leb128 API.
+ (read_encoded_value, decode_frame_entry_1): Ditto.
+ * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
+ (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
+ (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
+ (execute_stack_op): Ditto.
+ * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
+ (safe_read_uleb128, safe_read_sleb128): Ditto.
+ * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
+ (dwarf2_compile_expr_to_ax): Ditto.
+ (locexpr_describe_location_piece): Ditto.
+ (disassemble_dwarf_expression): Ditto.
+ (locexpr_describe_location_1): Ditto.
+
+2012-05-23 Stan Shebs <stan@codesourcery.com>
+ Kwok Cheung Yeung <kcy@codesourcery.com>
-2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
+ (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
+ (mi-cmd-info.o): New rule.
+ * osdata.h (info_osdata_command): New declaration.
+ * osdata.c (info_osdata_command): Change to non-static.
+ * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
+ * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
+ * mi/mi-cmd-info.c: New file.
- PR symtab/13208
- * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
- for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
- SAI.
+2012-05-23 Doug Evans <dje@google.com>
-2011-10-28 Pedro Alves <pedro@codesourcery.com>
+ * symtab.c (search_symbols): Pass NULL for file_matcher to
+ expand_symtabs_matching if there are no files to match.
- * linux-nat.c (linux_nat_filter_event): Remove `options'
- parameter, and dead code that used it. If we're handling a
- PTRACE_EVENT_EXEC event, and the thread group leader is no longer
- in our lwp list, re-add it.
- (check_zombie_leaders): New.
- (linux_nat_wait_1): Remove `options' and `pid' locals. Always
- wait for children with WNOHANG, and always wait for all children.
- Don't check for no resumed children upfront. Simplify wait loop.
- Check for zombie thread group leaders after handling all wait
- statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
- unwaited-for children left.
- * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
- (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
- (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
- * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
+ * gdbtypes.c (lookup_typename): Simplify.
-2011-10-28 Sterling Augustine <saugustine@google.com>
+2012-05-23 Pedro Alves <palves@redhat.com>
- * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
- * symtab.c (free_completion_list): New function.
- (do_free_completion_list): Likewise.
- (default_make_symbol_completion_list_break_on): New variable
- back_to. Call make_cleanup and discard_cleanups.
- (make_source_files_completion_list): Likewise.
+ * arch-utils.h (default_target_signal_to_host): Delete.
+ * arch-utils.c (default_target_signal_to_host): Delete.
+ * gdbarch.sh (target_signal_to_host): Remove.
+ * gdbarch.h, gdbarch.c: Regenerate.
-2011-10-28 Paul Koning <paul_koning@dell.com>
+2012-05-22 Doug Evans <dje@google.com>
+
+ * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
+ "const gdb_byte *".
+ (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
+ (execute_cfa_program): Update to match API of leb128 functions.
+ (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
+ "const gdb_byte *".
+ (read_unsigned_leb128, read_signed_leb128): Delete.
+ (read_initial_length): Change type of buf argument to
+ "const gdb_byte *".
+ (read_encoded_value): Update to match API of leb128 functions.
+ (decode_frame_entry): Change result to "const gdb_byte *", and
+ similarly for "start" parameter.
+ (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
+ (dwarf2_build_frame_info): Change local frame_ptr to
+ "const gdb_byte *".
+ * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
+ read_uleb128, read_sleb128. All callers updated.
+ (safe_skip_leb128): New function.
+ (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
+ Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
+ (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
+ functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
+ read_uleb128, read_sleb128.
+ (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
+ (execute_stack_op): Update to match API of leb128 functions.
+ * dwarf2expr.h: #include "leb128.h".
+ (read_uleb128, read_sleb128): Delete.
+ (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
+ (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
+ * dwarf2loc.c (debug_loc_kind): New enum.
+ (decode_debug_loc_addresses): New function.
+ (decode_debug_loc_dwo_addresses): New function.
+ (dwarf2_find_location_expression): Rewrite.
+ (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
+ (locexpr_describe_location_piece): Ditto.
+ (disassemble_dwarf_expression): Ditto.
+ (locexpr_describe_location_1): Ditto.
+ (loclist_describe_location): Rewrite.
+ * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
+ * dwarf2read.c (die_reader_specs): New member "buffer_end".
+ (dwarf2_section_buffer_overflow_complaint): Renamed from
+ dwarf2_macros_too_long_complaint. All callers updated.
+ (skip_leb128): Delete.
+ (init_cu_die_reader): Initialize reader->buffer_end.
+ (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
+ (skip_form_bytes): New arg buffer_end. All callers updated.
+ Replace call to skip_leb128 with gdb_skip_leb128.
+ (skip_unknown_opcode): New arg mac_end. All callers updated.
+ (fill_in_loclist_baton): Initialize baton->from_dwo.
+
+2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-linux-nat.c (mips_linux_read_description): Use a more
+ verbose error message.
+
+2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * NEWS: Add MIPS/Linux DSP support.
+ * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
+ (SIGCONTEXT_DSPCTL): New macro.
+ (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
+ (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
+ (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
+ (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
+ (N64_SIGCONTEXT_HI3): Likewise.
+ (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
+ (N64_SIGCONTEXT_LO3): Likewise.
+ (N64_SIGCONTEXT_DSPCTL): Likewise.
+ (N64_SIGCONTEXT_FPCSR): Clarify definition.
+ (mips_linux_o32_sigframe_init): Handle DSP registers.
+ (mips_linux_n32n64_sigframe_init): Likewise.
+
+2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
+ call to abort.
+
+2012-05-22 Pedro Alves <palves@redhat.com>
+
+ * target.h (store_waitstatus): Move declaration ...
+ * inf-child.h (store_waitstatus): ... here.
+ * target.c: Move inclusion of gdb_wait.h, and ...
+ (store_waitstatus): ... this ...
+ * inf-child.c: ... here.
+ * linux-nat.c: Include inf-child.h.
+ * rs6000-nat.c: Include inf-child.h.
+ * spu-linux-nat.c: Include inf-child.h.
+
+2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * tracepoint.c (start_tracing): Add missing i18n markup.
+ (stop_tracing, set_trace_user): Ditto.
+ (set_trace_notes, set_trace_stop_notes): Ditto.
+
+2012-05-21 Tom Tromey <tromey@redhat.com>
+
+ PR c++/7173:
+ * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
+ types.
+ * value.h (value_cast_pointers): Update.
+ * valops.c (value_cast_pointers): Add 'subclass_check' argument.
+ (value_cast): Update.
+ (update_search_result): New function.
+ (do_search_struct_field): New, from search_struct_field. Check
+ for ambiguous results.
+ (search_struct_field): Rewrite.
+ * infcall.c (value_arg_coerce): Update.
+ * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
+ value_cast_pointers.
+ * ada-lang.c (ada_convert_actual): Update.
+
+2012-05-21 Tom Tromey <tromey@redhat.com>
+
+ * macroexp.c (macro_stringify): Terminate the string.
+
+2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
+ Describe it.
+ * auto-load.c (auto_load_expand_dir_vars): New function.
+ (auto_load_safe_path_vec_update): Use it, remove the
+ substitute_path_component call thanks to it.
+ (auto_load_objfile_script): Remove the debug_file_directory processing.
+ Use auto_load_expand_dir_vars, remove the substitute_path_component
+ call thanks to it.
+ * configure: Regenerate.
+ * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
+ path. Escape $ also for $debugdir.
+ (--with_auto_load_safe_path): Escape $ also for $debugdir.
+ * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
+
+2012-05-20 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
+ before use. Check for symtab->includes == NULL before scanning it.
+
+2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
+
+2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * NEWS: Add microMIPS support and "set mips compression",
+ "show mips compression" commands.
+ * mips-tdep.h (mips_isa): New enum.
+ (gdbarch_tdep): Add mips_isa.
+ (mips_pc_is_mips16): Update prototype.
+ (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
+ * mips-tdep.c (mips_compression_mips16): New variable.
+ (mips_compression_micromips): Likewise.
+ (mips_compression_strings): Likewise.
+ (mips_compression_string): Likewise.
+ (is_mips16_isa, is_micromips_isa): New functions.
+ (is_mips16_addr): Rename to...
+ (is_compact_addr): ... this.
+ (unmake_mips16_addr): Likewise to...
+ (unmake_compact_addr): ... this.
+ (make_mips16_addr): Likewise to...
+ (make_compact_addr): ... this.
+ (is_mips_addr, is_mips16_addr, is_micromips_addr): New
+ functions.
+ (mips_elf_make_msymbol_special): Handle microMIPS code.
+ (msymbol_is_special): Rename to...
+ (msymbol_is_mips16): ... this.
+ (mips_make_symbol_special, mips_pc_is_mips16): Update
+ accordingly.
+ (msymbol_is_mips, msymbol_is_micromips): New functions.
+ (mips16_to_32_reg): Rename to...
+ (mips_reg3_to_reg): ... this.
+ (mips_pc_is_mips, mips_pc_is_micromips): New functions.
+ (mips_pc_isa): Likewise.
+ (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
+ code.
+ (mips_fetch_instruction): Pass return status instead of printing
+ an error message if requested. Handle microMIPS code. Bail out
+ on an invalid ISA.
+ (micromips_op): New macro.
+ (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
+ (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
+ (b6s4_op, b7s3_reg): Likewise.
+ (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
+ (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
+ (mips_insn_size): New function.
+ (mips32_next_pc): Update mips_fetch_instruction call.
+ (micromips_relative_offset7): New function.
+ (micromips_relative_offset10): Likewise.
+ (micromips_relative_offset16): Likewise.
+ (micromips_pc_insn_size): Likewise.
+ (micromips_bc1_pc): Likewise.
+ (micromips_next_pc): Likewise.
+ (unpack_mips16): Update mips_fetch_instruction call.
+ (extended_mips16_next_pc): Update according to change to
+ mips16_to_32_reg.
+ (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
+ code.
+ (mips16_scan_prologue): Update mips_fetch_instruction call.
+ Update according to change to mips16_to_32_reg.
+ (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
+ (mips_insn16_frame_base_sniffer): Likewise.
+ (micromips_decode_imm9): New function.
+ (micromips_scan_prologue): Likewise.
+ (mips_micro_frame_cache): Likewise.
+ (mips_micro_frame_this_id): Likewise.
+ (mips_micro_frame_prev_register): Likewise.
+ (mips_micro_frame_sniffer): Likewise.
+ (mips_micro_frame_unwind): New variable.
+ (mips_micro_frame_base_address): New function.
+ (mips_micro_frame_base): New variable.
+ (mips_micro_frame_base_sniffer): New function.
+ (mips32_scan_prologue): Update mips_fetch_instruction call.
+ (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
+ rather than for MIPS16.
+ (mips_insn32_frame_base_sniffer): Likewise.
+ (mips_addr_bits_remove): Handle microMIPS code.
+ (deal_with_atomic_sequence): Rename to...
+ (mips_deal_with_atomic_sequence): ... this. Update the type
+ of the variable used to hold an instruction. Remove the ISA bit
+ check. Update mips_fetch_instruction call.
+ (micromips_deal_with_atomic_sequence): New function.
+ (deal_with_atomic_sequence): Likewise.
+ (mips_about_to_return): Handle microMIPS code. Update
+ mips_fetch_instruction call.
+ (heuristic_proc_start): Check for the standard MIPS ISA rather
+ than for MIPS16. Update mips_pc_is_mips16 and
+ mips_fetch_instruction calls. Handle microMIPS code.
+ (mips_push_dummy_code): Handle microMIPS code.
+ (mips_eabi_push_dummy_call): Likewise.
+ (mips_o32_return_value): Update mips_pc_is_mips16 call.
+ (mips_o64_push_dummy_call): Handle microMIPS code.
+ (mips_o64_return_value): Update mips_pc_is_mips16 call.
+ (is_delayed): Remove function.
+ (mips_single_step_through_delay): Replace the call to is_delayed
+ with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
+ Handle microMIPS code.
+ (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
+ microMIPS code.
+ (mips32_in_function_epilogue_p): Update mips_fetch_instruction
+ call.
+ (micromips_in_function_epilogue_p): New function.
+ (mips16_in_function_epilogue_p): Update mips_fetch_instruction
+ call.
+ (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
+ Handle microMIPS.
+ (gdb_print_insn_mips): Likewise.
+ (mips_breakpoint_from_pc): Likewise.
+ (mips_remote_breakpoint_from_pc): New function.
+ (mips32_instruction_has_delay_slot): Simplify making use of the
+ updated mips_fetch_instruction interface.
+ (micromips_instruction_has_delay_slot): New function.
+ (mips16_instruction_has_delay_slot): Simplify making use of the
+ updated mips_fetch_instruction interface.
+ (mips_adjust_breakpoint_address): Check for the standard MIPS
+ ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
+ calls. Handle microMIPS code.
+ (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
+ (mips_skip_trampoline_code): Handle microMIPS code.
+ (global_mips_compression): New function.
+ (mips_gdbarch_init): Handle the compressed ISA setting from ELF
+ file flags. Register the microMIPS remote breakpoint handler
+ and heuristic frame unwinder.
+ (show_mips_compression): New function.
+ (_initialize_mips_tdep): Add the "set mips compression" and
+ "show mips compression" commands.
+
+2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * ada-lang.c:
+ * ada-tasks.c:
+ * ada-varobj.c:
+ * amd64-darwin-tdep.c:
+ * arm-symbian-tdep.c:
+ * arm-tdep.c:
+ * avr-tdep.c:
+ * ax-gdb.c:
+ * bfin-linux-tdep.c:
+ * breakpoint.c:
+ * c-valprint.c:
+ * cli/cli-cmds.c:
+ * coffread.c:
+ * cp-support.c:
+ * cris-tdep.c:
+ * dwarf2-frame-tailcall.c:
+ * dwarf2-frame.c:
+ * dwarf2expr.c:
+ * dwarf2loc.c:
+ * dwarf2read.c:
+ * elfread.c:
+ * eval.c:
+ * expprint.c:
+ * f-valprint.c:
+ * frv-tdep.c:
+ * h8300-tdep.c:
+ * hppa-hpux-tdep.c:
+ * hppa-tdep.c:
+ * hppanbsd-tdep.c:
+ * i386-nto-tdep.c:
+ * i386-tdep.c:
+ * i387-tdep.c:
+ * ia64-tdep.c:
+ * jit.c:
+ * linespec.c:
+ * linux-tdep.c:
+ * lm32-tdep.c:
+ * m2-valprint.c:
+ * m32c-tdep.c:
+ * m32r-rom.c:
+ * m32r-tdep.c:
+ * m68k-tdep.c:
+ * m68klinux-tdep.c:
+ * mi/mi-main.c:
+ * microblaze-tdep.c:
+ * mips-linux-tdep.c:
+ * mips-tdep.c:
+ * mn10300-tdep.c:
+ * p-valprint.c:
+ * parse.c:
+ * ppc-linux-tdep.c:
+ * ppc-sysv-tdep.c:
+ * printcmd.c:
+ * python/py-finishbreakpoint.c:
+ * python/py-inferior.c:
+ * python/py-infthread.c:
+ * python/py-type.c:
+ * python/python.c:
+ * remote-fileio.c:
+ * remote-m32r-sdi.c:
+ * remote-mips.c:
+ * reverse.c:
+ * rl78-tdep.c:
+ * rs6000-aix-tdep.c:
+ * rs6000-tdep.c:
+ * s390-tdep.c:
+ * score-tdep.c:
+ * sh64-tdep.c:
+ * skip.c:
+ * solib-darwin.c:
+ * solib-dsbt.c:
+ * solib-frv.c:
+ * sparc-tdep.c:
+ * spu-multiarch.c:
+ * spu-tdep.c:
+ * stack.c:
+ * symfile.c:
+ * symtab.c:
+ * tic6x-tdep.c:
+ * tracepoint.c:
+ * v850-tdep.c:
+ * valarith.c:
+ * valprint.c:
+ * value.c:
+ * xcoffread.c:
+ * xtensa-tdep.c:
+ * ada-lang.c:
+ * ada-tasks.c:
+ * ada-varobj.c:
+ * amd64-darwin-tdep.c:
+ * arm-symbian-tdep.c:
+ * arm-tdep.c: Delete unused variables.
+
+2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Rename $ddir to $datadir.
+ * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
+ * auto-load.c (auto_load_safe_path_vec_update)
+ (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
+ * configure: Regenerate.
+ * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
+ Likewise. Remove the 'use $ddir' help string.
- * python/lib/gdb/types.py (deep_items): Rename from deepitems.
- * NEWS: Mention deep_items.
+2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-10-28 Alen Skondro <askondro@gmail.com>
+ * auto-load.c (show_auto_load_safe_path): Accept any combination of
+ DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
- * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
- defined.
+2012-05-18 Tom Tromey <tromey@redhat.com>
-2011-10-27 Meador Inge <meadori@codesourcery.com>
+ PR exp/13907:
+ * valprint.h (struct value_print_options) <symbol_print>: New
+ field.
+ * valprint.c (user_print_options): Add default for symbol_print.
+ (show_symbol_print): New function.
+ (generic_val_print): Respect symbol_print.
+ (_initialize_valprint): Add "print symbol" setting.
+ * f-valprint.c (f_val_print): Respect symbol_print.
+ * c-valprint.c (c_val_print): Respect symbol_print.
+ * NEWS: Update.
+ * printcmd.c (print_address_symbolic): Return int. Ignore some
+ zero-size symbols.
+ (print_address_demangle): Return int.
+ * defs.h: (print_address_symbolic): Return int.
+ * value.h (print_address_demangle): Return int.
+
+2012-05-18 Tom Tromey <tromey@redhat.com>
+
+ * valprint.c (val_print_string): Don't print leading space.
+ * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
+ print space before string or vtbl.
+ * m2-valprint.c (print_unpacked_pointer): Optionally print space
+ before string.
+ * jv-valprint.c (java_value_print): Print space before string.
+ * go-valprint.c (print_go_string): Print space before string.
+ * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
+ space before string.
+ * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
+ space before string or vtbl.
+ * auxv.c (fprint_target_auxv): Print space after address.
+
+2012-05-18 Tom Tromey <tromey@redhat.com>
+
+ * printcmd.c (print_address_demangle): Remove special case for 0.
+
+2012-05-18 Tom Tromey <tromey@redhat.com>
+
+ * printcmd.c (print_address_demangle): Add 'opts' argument.
+ * p-valprint.c (pascal_val_print): Update.
+ * jv-valprint.c (java_val_print): Update.
+ * value.h: Update.
+ * valprint.c (generic_val_print): Update.
+ (print_function_pointer_address): Add 'options' argument. Remove
+ 'addressprint' argument. Update.
+ * m2-valprint.c (print_unpacked_pointer): Update.
+ * gnu-v3-abi.c (print_one_vtable): Update.
+ (gnuv3_print_method_ptr): Update.
+ * f-valprint.c (f_val_print): Update.
+ * cp-valprint.c (cp_print_value_fields): Update.
+ * valprint.h (print_function_pointer_address): Update.
+ * c-valprint.c (c_val_print): Update.
+
+2012-05-18 Tom Tromey <tromey@redhat.com>
+
+ * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
+ directly corresponding to the found psymtab.
+ * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
+ (dw2_find_pc_sect_symtab): Use it.
+ * block.h (blockvector_contains_pc): Declare.
+ * block.c (find_block_in_blockvector): New function.
+ (blockvector_for_pc_sect): Use it.
+ (blockvector_contains_pc): New function.
+
+2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.h (mips_write_pc): New prototype.
+ * mips-tdep.c (mips_write_pc): Make external, add description.
+ * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
+ add description.
+
+2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
+ mips_regnum->pc.
+ (mips_unwind_pc, mips_write_pc): Likewise.
+ (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
+ gdbarch_read_pc.
+
+2012-05-17 Joel Brobecker <brobecker@adacore.com>
+
+ * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
+ proc_warn, proc_error, proc_get_status, proc_flags,
+ proc_why, proc_what, proc_nsysarg, proc_sysargs,
+ proc_set_run_on_last_close, proc_unset_run_on_last_close,
+ proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
+ proc_stop_process, proc_wait_for_stop, proc_run_process,
+ proc_set_traced_signals, proc_set_traced_faults,
+ proc_set_traced_sysentry, proc_set_traced_sysexit,
+ proc_set_held_signals, proc_get_held_signals,
+ proc_get_traced_signals, proc_get_traced_faults,
+ proc_get_traced_sysentry, proc_get_traced_sysexit,
+ proc_clear_current_fault, proc_set_current_signal,
+ proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
+ proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
+ proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
+ proc_get_current_thread, proc_get_current_thread,
+ proc_get_current_thread, proc_update_threads,
+ proc_update_threads, proc_update_threads, proc_update_threads,
+ proc_iterate_over_threads, procfs_find_new_threads,
+ procfs_pid_to_str): Make static. Remove advance declaration.
+ (proc_cursig): Make static. Conditionalized defintion on
+ PROCFS_DONT_PIOCSSIG_CURSIG being defined.
+ (proc_syscall, proc_set_kill_on_last_close,
+ proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
+ proc_get_pending_signals, proc_get_signal_actions,
+ proc_trace_signal, proc_ignore_signal): Delete.
+
+2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * coffread.c (cs_section_address): Passing proper argument for
+ `bfd_get_section_vma'.
+ * dwarf2read.c (dwarf2_locate_sections): Likewise, for
+ `bfd_get_section_flags'.
+ * remote.c (remote_trace_set_readonly_regions): Likewise, for
+ `bfd_get_section_vma'.
+
+2012-05-16 Tom Tromey <tromey@redhat.com>
+
+ PR macros/13205:
+ * macrotab.h: (macro_define_special): Declare.
+ (enum macro_special_kind): New.
+ (struct macro_definition) <argc, replacement>: Update comments.
+ * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
+ (macro_define_object_internal): New function.
+ (macro_define_object): Use it.
+ (macro_define_special): New function.
+ (fixup_definition): New function.
+ (macro_lookup_definition, foreach_macro_in_scope)
+ (foreach_macro): Use fixup_definition.
+ * macroexp.h (macro_stringify): Declare.
+ * macroexp.c (free_buffer_return_text): New function.
+ (stringify): Constify "arg".
+ (macro_stringify): New function.
+ * dwarf2read.c (macro_start_file): Call macro_define_special.
+
+2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
+ Maciej W. Rozycki <macro@mips.com>
+
+ * breakpoint.h (bp_location): Add related_address member.
+ * inferior.h (get_return_value): Take a pointer to struct value
+ instead of struct type for the function requested.
+ * value.h (using_struct_return): Likewise.
+ * gdbarch.sh (return_value): Take a pointer to struct value
+ instead of struct type for the function requested.
+ * breakpoint.c (set_breakpoint_location_function): Initialize
+ related_address for bp_gnu_ifunc_resolver breakpoints.
+ * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
+ requested function's address to gdbarch_return_value.
+ * eval.c (evaluate_subexp_standard): Pass the requested
+ function's address to using_struct_return.
+ * infcall.c (call_function_by_hand): Pass the requested
+ function's address to using_struct_return and
+ gdbarch_return_value.
+ * infcmd.c (get_return_value): Take a pointer to struct value
+ instead of struct type for the function requested.
+ (print_return_value): Update accordingly.
+ (finish_command_continuation): Likewise.
+ * stack.c (return_command): Pass the requested function's
+ address to using_struct_return and gdbarch_return_value.
+ * value.c (using_struct_return): Take a pointer to struct value
+ instead of struct type for the function requested. Pass the
+ requested function's address to gdbarch_return_value.
+ * python/py-finishbreakpoint.c (finish_breakpoint_object):
+ New function_value member, replacing function_type.
+ (bpfinishpy_dealloc): Update accordingly.
+ (bpfinishpy_pre_stop_hook): Likewise.
+ (bpfinishpy_init): Likewise. Record the requested function's
+ address.
+ * mips-tdep.c (mips_fval_reg): New enum.
+ (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
+ words put in GP registers.
+ (mips_o64_push_dummy_call): Update a comment.
+ (mips_o32_return_value): Take a pointer to struct value instead
+ of struct type for the function requested and use it to check if
+ using the MIPS16 calling convention. Return the designated
+ general purpose registers for floating-point values returned in
+ MIPS16 mode.
+ (mips_o64_return_value): Likewise.
+ * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
+ (ppc_sysv_abi_broken_return_value): Likewise.
+ (ppc64_sysv_abi_return_value): Likewise.
+ * alpha-tdep.c (alpha_return_value): Take a pointer to struct
+ value instead of struct type for the function requested.
+ * amd64-tdep.c (amd64_return_value): Likewise.
+ * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
+ * arm-tdep.c (arm_return_value): Likewise.
+ * avr-tdep.c (avr_return_value): Likewise.
+ * bfin-tdep.c (bfin_return_value): Likewise.
+ * cris-tdep.c (cris_return_value): Likewise.
+ * frv-tdep.c (frv_return_value): Likewise.
+ * h8300-tdep.c (h8300_return_value): Likewise.
+ (h8300h_return_value): Likewise.
+ * hppa-tdep.c (hppa32_return_value): Likewise.
+ (hppa64_return_value): Likewise.
+ * i386-tdep.c (i386_return_value): Likewise.
+ * ia64-tdep.c (ia64_return_value): Likewise.
+ * iq2000-tdep.c (iq2000_return_value): Likewise.
+ * lm32-tdep.c (lm32_return_value): Likewise.
+ * m32c-tdep.c (m32c_return_value): Likewise.
+ * m32r-tdep.c (m32r_return_value): Likewise.
+ * m68hc11-tdep.c (m68hc11_return_value): Likewise.
+ * m68k-tdep.c (m68k_return_value): Likewise.
+ (m68k_svr4_return_value): Likewise.
+ * m88k-tdep.c (m88k_return_value): Likewise.
+ * mep-tdep.c (mep_return_value): Likewise.
+ * microblaze-tdep.c (microblaze_return_value): Likewise.
+ * mn10300-tdep.c (mn10300_return_value): Likewise.
+ * moxie-tdep.c (moxie_return_value): Likewise.
+ * mt-tdep.c (mt_return_value): Likewise.
+ * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
+ * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
+ (ppc_sysv_abi_broken_return_value): Likewise.
+ (ppc64_sysv_abi_return_value): Likewise.
+ * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
+ * rl78-tdep.c (rl78_return_value): Likewise.
+ * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
+ * rx-tdep.c (rx_return_value): Likewise.
+ * s390-tdep.c (s390_return_value): Likewise.
+ * score-tdep.c (score_return_value): Likewise.
+ * sh-tdep.c (sh_return_value_nofpu): Likewise.
+ (sh_return_value_fpu): Likewise.
+ * sh64-tdep.c (sh64_return_value): Likewise.
+ * sparc-tdep.c (sparc32_return_value): Likewise.
+ * sparc64-tdep.c (sparc64_return_value): Likewise.
+ * spu-tdep.c (spu_return_value): Likewise.
+ * tic6x-tdep.c (tic6x_return_value): Likewise.
+ * v850-tdep.c (v850_return_value): Likewise.
+ * vax-tdep.c (vax_return_value): Likewise.
+ * xstormy16-tdep.c (xstormy16_return_value): Likewise.
+ * xtensa-tdep.c (xtensa_return_value): Likewise.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Regenerate.
- * MAINTAINERS (Write After Approval): Add myself to the list.
+2012-05-15 Tom Tromey <tromey@redhat.com>
-2011-10-27 Joel Brobecker <brobecker@adacore.com>
+ * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
- * value.h (read_frame_register_value): Add declaration.
- * findvar.c (read_frame_register_value): New function.
- (value_from_register): Use read_frame_register_value
- instead of get_frame_register_value + value_contents_copy
- to get value contents.
+2012-05-15 Joel Brobecker <brobecker@adacore.com>
-2011-10-27 Doug Evans <dje@google.com>
+ * breakpoint.c (init_breakpoint_sal): Add quotes around part
+ of command in two error message.
- * cli/cli-cmds.c (source_script_with_search): Pass full path to
- source_script_from_stream if it may have been found on the search path.
- * python/py-auto-load.c (source_section_scripts): Pass full path to
- source_python_script_for_objfile.
- * python/python.c (source_python_script): Delete stream parameter.
- All callers updated.
- (source_python_script_for_objfile): Ditto.
- * python/python-internal.h (source_python_script_for_objfile): Update.
- * python/python.h (source_python_script): Update.
+2012-05-15 Joel Brobecker <brobecker@adacore.com>
-2011-10-27 Tom Tromey <tromey@redhat.com>
+ * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
- * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
- (ada_sals_for_line): Remove declarations.
+2012-05-15 Joel Brobecker <brobecker@adacore.com>
-2011-10-27 Kevin Pouget <kevin.pouget@st.com>
+ * breakpoint.c (find_condition_and_thread): Minor reformatting.
- Move unwind reasons to an external .def file
- * frame.c (frame_stop_reason_string): Rewrite using
- unwind_stop_reasons.def.
- * frame.h (enum unwind_stop_reason): Likewise.
- * python/py-frame.c (gdbpy_initialize_frames): Likewise.
- (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
- constants for bound-checking.
- * unwind_stop_reasons.def: New file.
- * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
- instead of a distinct value.
+2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
+ * NEWS (show auto-load scripts-directory): Add forgotten command.
- PR python/13331
+2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
- * python/py-function.c (fnpy_call): Check 'args' is not NULL.
- (convert_values_to_python): Return on Python tuple allocation
- failure. Return NULL on value conversion error.
+ * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
+ parameters.
-2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
+2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
- * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
- (bppy_set_task): Ditto.
- (bppy_delete_breakpoint): Ditto.
- * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
- (gdbpy_lookup_global_symbol): Ditto.
- * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
- * python/py-frame.c (frapy_is_valid): Ditto.
- (frame_info_to_frame_object): Ditto.
- * python/py-type.c (typy_lookup_type): Ditto.
- (typy_getitem): Ditto.
- (typy_has_key): Ditto.
- (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
+ * amd64-tdep.c: Include features/i386/x32.c and
+ features/i386/x32-avx.c.
+ (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
+ initialize_tdesc_x32_avx.
-2011-10-26 Joel Brobecker <brobecker@adacore.com>
+2012-05-14 Stan Shebs <stan@codesourcery.com>
- * gdbarch.h: Regenerate.
+ Add dynamic printf.
+ * breakpoint.h (enum bptype): New type bp_dprintf.
+ (struct breakpoint): New field extra_string.
+ (struct breakpoint_ops): Add arg to create_breakpoints_sal.
+ (create_breakpoint): Add extra_string arg.
+ * breakpoint.c (dprintf_breakpoint_ops): New.
+ (is_breakpoint): Add bp_dprintf.
+ (bpstat_what): Add dprintf case.
+ (bptype_string): Ditto.
+ (print_one_breakpoint_location): Ditto.
+ (init_bp_location): Ditto.
+ (bkpt_print_mention): Ditto.
+ (dprintf_style_enums): New array.
+ (dprintf_style): New global.
+ (dprintf_function): New global.
+ (dprintf_channel): New global.
+ (update_dprintf_command_list): New function.
+ (update_dprintf_commands): New function.
+ (init_breakpoint_sal): Add extra_string argument, handle it.
+ (create_breakpoint_sal): Add extra_string argument.
+ (create_breakpoints_sal): Add extra_string argument, update callers.
+ (find_condition_and_thread): Add extra argument.
+ (create_breakpoint): Add extra_string argument, record it.
+ (dprintf_command): New function.
+ (break_command_1): Add arg to create_breakpoint call.
+ (handle_gnu_v3_exceptions): Ditto.
+ (trace_command): Ditto.
+ (ftrace_command): Ditto.
+ (strace_command): Ditto.
+ (bkpt_print_mention): Add dprintf case.
+ (create_breakpoint_sal_default): Add extra_string argument.
+ (_initialize_breakpoint): Add new commands.
+ * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
+ * python/py-breakpoint.c (bppy_init): Ditto.
+ * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
-2011-10-26 Meador Inge <meadori@codesourcery.com>
+2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
- * gdbarch.sh (function_list): Use 'pstring' when printing
- 'gcore_bfd_target'.
- * gdbarch.c: Regenerate.
+ * mips-tdep.c (mips_push_dummy_code): Correct description typo.
-2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
+2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
- * regcache.c (registers_changed_ptid): Invalidate thread architecture
- and frame caches if PTID refers to all threads of a process.
+ * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
+ unsigned long long.
-2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
+2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
- * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
- to create_breakpoint.
+ Add a new function gdb.find_pc_line to the Python API.
+ * NEWS (Python Scripting): Add entry about the new function.
+ * python/python.c (gdbpy_find_pc_line): New function which
+ implements gdb.find_pc_line.
+ (GdbMethods): Add entry for the new function.
-2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
+2012-05-12 Pedro Alves <palves@redhat.com>
- * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
- (ppc_sysv_abi_push_dummy_call): Use it.
- (do_ppc_sysv_return_value): Likewise.
- (ppc64_sysv_abi_push_dummy_call): Likewise.
- (ppc64_sysv_abi_return_value): Likewise.
+ * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
+ initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
-2011-10-26 Paul Koning <paul_koning@dell.com>
+2012-05-12 Eli Zaretskii <eliz@gnu.org>
- * python/lib/gdb/types.py (deepitems): New function.
-
-2011-10-25 Paul Koning <paul_koning@dell.com>
+ * inferior.c: Include completer.h
+ (initialize_inferiors): Set completer of add-inferior to
+ filename_completer.
- PR python/13327
-
- * python/py-value.c (value_to_value_object): Remove fetching of
- the value if it was lazy.
- (valpy_get_is_lazy): New function.
- (valpy_fetch_lazy): New function.
+2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
-2011-10-24 Joel Brobecker <brobecker@adacore.com>
+ * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
+ gdbarch_ptr_bit for x32 core dump.
- * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
- FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
+2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
-2011-10-24 Pedro Alves <pedro@codesourcery.com>
+ * amd64-linux-tdep.c: Include features/i386/x32-linux.c
+ and features/i386/x32-avx-linux.c.
- * linux-nat.c (linux_handle_extended_wait): When handling a clone
- event, in non-stop, if not stopping, make sure the new lwp has
- last_resume_kind set to resume_continue. Assert that when we're
- resuming the new lwp, its last_resume_kind is resume_continue.
+2012-05-11 Stan Shebs <stan@codesourcery.com>
+ Kwok Cheung Yeung <kcy@codesourcery.com>
-2011-10-24 Pedro Alves <pedro@codesourcery.com>
+ * NEWS: Describe new info os commands.
+ * common/linux-osdata.c (PID_T, TIME_T): Define.
+ (MAX_PID_T_STRLEN): New.
+ (linux_common_core_of_thread): Add comment. Change to use PID_T and
+ MAX_PID_T_STRLEN.
+ (command_from_pid): Add comment. Change to use PID_T.
+ (commandline_from_pid): Change to use PID_T.
+ (user_from_pid): Add comment.
+ (get_process_owner): Add comment. Change to use PID_T and
+ MAX_PID_T_STRLEN.
+ (get_number_of_cpu_cores): Add comment.
+ (get_cores_used_by_process): Add comment. Change to use PID_T and
+ MAX_PID_T_STRLEN.
+ (linux_xfer_osdata_processes): Change to use PID_T and
+ MAX_PID_T_STRLEN.
+ (compare_processes): New function.
+ (linux_xfer_osdata_processgroups): New function.
+ (linux_xfer_osdata_threads): Change to use PID_T.
+ (linux_xfer_osdata_fds): New function.
+ (format_socket_state, print_sockets): New functions.
+ (union socket_addr): New union.
+ (linux_xfer_osdata_isockets): New function.
+ (time_from_time_t, group_from_gid): New functions.
+ (linux_xfer_osdata_shm): New function.
+ (linux_xfer_osdata_sem): New function.
+ (linux_xfer_osdata_msg): New function.
+ (linux_xfer_osdata_modules): New function.
+ (osdata_table): Add new entries.
+ * common/buffer.c (buffer_xml_printf): Add support for long and
+ long long format specifiers.
+
+2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-linux-tdep.h (tdesc_x32_linux): New.
+ (tdesc_x32_avx_linux): Likewise.
+
+2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Implement multi-component --with-auto-load-dir.
+ * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
+ entries.
+ (--with-auto-load-safe-path): Update the default value description.
+ * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
+ New.
+ (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
+ GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
+ AUTO_LOAD_DIR. Support $ddir and multiple components in it.
+ (_initialize_auto_load): Initialize also auto_load_dir. Install new
+ "set auto-load scripts-directory".
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * configure.ac (--with-auto-load-dir): New configure option.
+ (--auto-load-safe-path): Change the default to --with-auto-load-dir.
- * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
- already set when marking the event thread as not executing in
- non-stop mode.
+2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-10-24 Pedro Alves <pedro@codesourcery.com>
+ Provide $ddir substitution for --with-auto-load-safe-path.
+ * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
+ entries.
+ * auto-load.c: Include observer.h.
+ (auto_load_safe_path_vec_update): Call substitute_path_component for
+ each component. New variable ddir_subst.
+ (auto_load_gdb_datadir_changed): New function.
+ (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
+ AUTO_LOAD_SAFE_PATH. New comment.
+ (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
+ AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * configure.ac (--auto-load-safe-path): Rename
+ DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
+ GDB_DATADIR/auto-load.
+ * defs.h (substitute_path_component): New declaration.
+ * top.c: Include observer.h.
+ (set_gdb_datadir): New function.
+ (init_main): Install it for "set data-directory".
+ * utils.c (substitute_path_component): New function.
- * infrun.c (handle_inferior_event): Add debug output for
- TARGET_WAITKIND_NO_HISTORY.
+2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
+ Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
+ * auto-load.c (auto_load_objfile_script): Remove check for NULL
+ DEBUG_FILE_DIRECTORY. Handle multiple components of
+ DEBUG_FILE_DIRECTORY.
- * NEWS: Move set/show extended-prompt to "New Options". Expand
- description. Fix typos.
+2012-05-10 Tom Tromey <tromey@redhat.com>
-2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
+ * dwarf2read.c (recursively_write_psymbols): New function.
+ (write_psymtabs_to_index): Use it.
- PR python/13310
+ * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
+ field.
+ (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
+ (load_partial_comp_unit): Update.
+ (queue_comp_unit): Add argument 'pretend_language'.
+ (process_queue): Update.
+ (psymtab_to_symtab_1): Skip dependencies that have a user.
+ (load_partial_comp_unit_reader): Give meaning to the 'data'
+ argument.
+ (load_full_comp_unit): Add 'pretend_language' argument.
+ (process_full_comp_unit): Add 'pretend_language' argument. Set
+ language on CU.
+ (process_imported_unit_die, read_file_scope, read_type_unit_scope):
+ Update.
+ (maybe_queue_comp_unit): Add 'pretend_language' argument.
+ (follow_die_offset, follow_die_sig, read_signatured_type_reader):
+ Update.
+ (prepare_one_comp_unit): Add 'pretend_language' argument.
+
+ * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
+ (struct dwarf2_per_objfile) <just_read_cus>: New field.
+ (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
+ (dw2_do_instantiate_symtab): Check whether symtab was read in
+ before queueing.
+ (dw2_instantiate_symtab): Add assertion. Call
+ process_cu_includes.
+ (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
+ (partial_symtab_p): New typedef.
+ (set_partial_user): New function.
+ (dwarf2_build_psymtabs_hard): Use set_partial_user.
+ (scan_partial_symbols): Add imported CU to imported_symtabs.
+ (dwarf2_psymtab_to_symtab): Call process_cu_includes.
+ (psymtab_to_symtab_1): Do nothing if psymtab is readin.
+ (get_symtab, recursively_compute_inclusions)
+ (compute_symtab_includes, process_cu_includes)
+ (process_imported_unit_die): New functions.
+ (process_die) <DW_TAG_imported_unit>: New case.
+ (dwarf2_per_objfile_free): Free 'imported_symtabs'.
+
+ * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
+ comment.
+ (struct partial_die_info) <locdesc>: Remove.
+ <d>: New field.
+ (process_psymtab_comp_unit): Add 'read_partial' argument.
+ Update.
+ (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
+ (scan_partial_symbols): Handle DW_TAG_imported_unit.
+ (add_partial_symbol): Update.
+ (process_die): Handle DW_TAG_partial_unit.
+ (read_file_scope): Update comment.
+ (load_partial_dies): Handle DW_TAG_imported_unit.
+ (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
+ (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
+
+2012-05-10 Tom Tromey <tromey@redhat.com>
+
+ * cc-with-dwz.sh: New file.
+
+2012-05-10 Tom Tromey <tromey@redhat.com>
+
+ * symtab.h (struct symtab) <includes, user>: New fields.
+ * block.h (struct block_iterator) <d, idx, which>: New fields.
+ * block.c (initialize_block_iterator, find_iterator_symtab)
+ (block_iterator_step, block_iter_name_step)
+ (block_iter_match_step): New functions.
+ (block_iterator_first, block_iterator_next)
+ (block_iter_name_first, block_iter_name_next)
+ (block_iter_match_first, block_iter_match_next): Rewrite.
+ (get_block_symtab): New function.
+
+2012-05-10 Tom Tromey <tromey@redhat.com>
+
+ * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
+ set_block_symtab.
+ * jit.c (finalize_symtab): Use allocate_global_block,
+ set_block_symtab.
+ * buildsym.c (finish_block_internal): New function, from old
+ finish_block.
+ (finish_block): Rewrite.
+ (end_symtab): Use finish_block_internal, set_block_symtab.
+ * block.h (struct global_block): New.
+ (allocate_global_block, set_block_symtab): Declare.
+ * block.c (allocate_global_block, set_block_symtab): New
+ functions.
- * python/py-param.c (call_doc_function): Correctly deference on
- function exit.
+2012-05-10 Tom Tromey <tromey@redhat.com>
-2011-10-21 Joel Brobecker <brobecker@adacore.com>
+ * psymtab.c (partial_map_expand_apply): Add assertion.
+ (partial_map_symtabs_matching_filename): Skip included psymtabs.
+ (psymtab_to_symtab): Find unshared psymtab.
+ (dump_psymtab): Print including psymtabs.
+ (recursively_search_psymtabs): New function.
+ (expand_symtabs_matching_via_partial): Use it.
+ * psympriv.h (struct partial_symtab) <user, searched_flag>: New
+ fields.
+ (enum psymtab_search_status): New.
- * ada-tasks.c (print_ada_task_info): Fix computation of
- number of tasks displayed in command output.
+2012-05-10 Tom Tromey <tromey@redhat.com>
-2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
- Ulrich Weigand <uweigand@de.ibm.com>
+ * tracepoint.c (scope_info): Update.
+ * symtab.c (lookup_block_symbol, iterate_over_symbols)
+ (find_pc_sect_symtab, search_symbols)
+ (default_make_symbol_completion_list_break_on)
+ (make_file_symbol_completion_list): Update.
+ * symmisc.c (dump_symtab_1): Update.
+ * stack.c (print_frame_args, iterate_over_block_locals)
+ (print_frame_labels, iterate_over_block_arg_vars): Update.
+ * python/py-block.c (block_object) <dict>: Remove.
+ <block>: New field.
+ <iter>: Change type.
+ (blpy_iter): Update.
+ (blpy_block_syms_iternext): Update.
+ * psymtab.c (map_block): Use block iterators.
+ * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
+ * mi/mi-cmd-stack.c (list_args_or_locals): Update.
+ * mdebugread.c (parse_symbol, mylookup_symbol): Update.
+ * infrun.c (check_exception_resume): Update.
+ * cp-support.c (make_symbol_overload_list_block): Update.
+ * coffread.c (patch_opaque_types): Update.
+ * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
+ * block.h (struct block_iterator): New.
+ (block_iterator_first, block_iterator_next, block_iter_name_first)
+ (block_iter_name_next, block_iter_match_first)
+ (block_iter_match_next): Declare.
+ (ALL_BLOCK_SYMBOLS): Redefine.
+ * block.c (block_iterator_first, block_iterator_next)
+ (block_iter_name_first, block_iter_name_next)
+ (block_iter_match_first, block_iter_match_next): New functions.
+ * ada-lang.c (ada_add_block_symbols)
+ (ada_make_symbol_completion_list): Use block iterator.
+
+2012-05-10 Tom Tromey <tromey@redhat.com>
+
+ * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
+ (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
+ (lookup_partial_symbol, find_last_source_symtab_from_partial)
+ (read_psymtabs_with_filename, map_matching_symbols_psymtab)
+ (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
+ Update.
- * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
- (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
- (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
- gdbarch_pc_regnum and frame_unwind_register_unsigned by
- gdbarch_unwind_pc.
+2012-05-10 Joel Brobecker <brobecker@adacore.com>
-2011-10-20 Cary Coutant <ccoutant@google.com>
+ * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
+ print-file-var-lib2.c, print-file-var-main.c and
+ print-file-var.exp (located in gdb/testsuite/gdb.base).
- * dwarf2read.c (dw2_get_file_names): Move adjustment for type
- section to...
- (partial_read_comp_unit_head): ...here. Add is_debug_type_section
- flag. Adjust all callers.
- (process_psymtab_comp_unit): Remove adjustment for type section.
+2012-05-10 Joel Brobecker <brobecker@adacore.com>
-2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
+ * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
+ try locating the symbol in the symbol's own objfile first, before
+ extending the search to all objfiles.
+ * symtab.c (lookup_symbol_aux_objfile): New function, extracted
+ out of lookup_symbol_aux_symtabs.
+ (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
+ Replace extracted-out code by call to lookup_symbol_aux_objfile.
+ Do not search EXCLUDE_OBJFILE.
+ (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
+ (lookup_symbol_global): Search for matches in the block's objfile
+ first, before searching all other objfiles.
- * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
- arguments by adding OBJFILE. Instead of getting objfile from
- symbol's symtab, use new argument OBJFILE.
- * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
- arguments by adding OBJFILE.
- * gdb/dwarf2read.c (new_symbol_full): Change call to
- cp_scan_for_anonymous_namespaces to match new signature.
- * gdb/stabsread.c (define_symbol): Change call to
- cp_scan_for_anonymous_namespaces to match new signature.
+2012-05-10 Tristan Gingold <gingold@adacore.com>
-2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
+ * printcmd.c (set_command): Add pre/post inc/dec.
- PR python/13308
- PR python/13309
+2012-05-09 Frank Ch. Eigler <fche@redhat.com>
- * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
- leak.
- * python/py-inferior.c (gdbpy_inferiors): Fix List reference
- leak. Delete unused variables.
+ * gdb.1: Document -ex option.
-2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
+2012-05-09 Joel Brobecker <brobecker@adacore.com>
- PR python/12656
+ * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
+ * inferior.h (AT_SYMBOL): Delete.
- * python/py-frame.c (frapy_read_var): Use const struct *block.
- * python/py-type.c (typy_lookup_typename): Likewise.
- (typy_lookup_type): Likewise.
- (typy_legacy_template_argument): Likewise.
- (typy_template_argument): Likewise.
- (gdbpy_lookup_type): Likewise.
- * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
- * python/py-block.c (blpy_block_object): Likewise.
- (blpy_iter): Likewise.
- (blpy_get_start): Likewise.
- (blpy_get_end): Likewise.
- (blpy_get_function): Likewise.
- (blpy_get_superblock): Likewise.
- (set_block): Likewise.
- (block_to_block_object): Likewise.
- (block_object_to_block): Likewise.
- (blpy_is_valid): Likewise.
- (blpy_get_global_block): New function.
- (blpy_get_static_block): New function.
- (blpy_is_global): New function.
- (blpy_is_static): New function.
- * blockframe.c (block_innermost_frame): Likewise.
- * valops.c (value_of_variable): Likewise.
- * frame.h: Update prototypes.
- * python/python-internal.h: Likewise.
- * value.h: Likewise.
+2012-05-09 Joel Brobecker <brobecker@adacore.com>
-2011-10-19 Cary Coutant <ccoutant@google.com>
+ * mips-tdep.c (mips_push_dummy_code): New function.
+ (mips_gdbarch_init): Set the gdbarch call_dummy_location to
+ ON_STACK and install mips_push_dummy_code as our gdbarch
+ push_dummy_code routine.
- * dwarf2read.c (create_debug_types_hash_table): Fix size of
- type_offset field.
+2012-05-09 Pedro Alves <palves@redhat.com>
-2011-10-19 Cary Coutant <ccoutant@google.com>
+ * target.c (set_maintenance_target_async_permitted): Rename to ...
+ (set_target_async_command): ... this.
+ (show_maintenance_target_async_permitted): Rename to ...
+ (show_target_async_command): ... this.
+ (initialize_targets): Adjust.
- * dwarf2read.c (peek_abbrev_code): New function.
- (dw2_get_file_names): Check for dummy compilation units.
- (create_debug_types_hash_table): Likewise.
- (process_psymtab_comp_unit): Likewise.
- (load_partial_comp_unit): Likewise.
- (load_full_comp_unit): Likewise.
-
-2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
-
- * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
- initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
- pt_phdr if PT_PHDR was found.
-
-2011-10-17 Joost van der Sluis <joost@cnoc.nl>
-
- * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
- type or "<unnamed type"> when there is no name assigned.
- * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
- avoid a sigint when no name is assigned.
-
-2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-05-08 Doug Evans <dje@google.com>
- Revert:
- 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
- * dwarf2expr.c (ctx_no_read_reg): New function.
- * dwarf2expr.h (ctx_no_read_reg): New declaration.
- * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
- (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
- (decode_locdesc): Replace by a caller of dwarf_expr_eval.
-
-2011-10-16 Doug Evans <dje@google.com>
-
- * NEWS: Document python gdb.printing.register_pretty_printer's new
- `replace' parameter.
-
-2011-10-14 Keith Seitz <keiths@redhat.com>
-
- PR c++/13225
- * eval.c (evaluate_subexp_standard): Do not construct
- an array of types; pass the value array directly to
- find_overload_match.
- * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
- (rank_function): Take an array of values instead of types.
- (rank_one_type): Add struct value * parameter.
- * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
- (rank_function): For each argument, pass the argument's
- value to rank_one_type.
- (rank_one_type): Add VALUE parameter.
- If the parameter type is a pointer and the argument type
- is an integer, return NULL_POINTER_CONVERSION_BADNESS if
- VALUE is zero.
- Update all calls to rank_one_type, passing NULL for new
- VALUE parameter.
- * valarith.c (value_user_defined_cpp_op): Do not construct
- an array of types; pass the value array directly to
- find_overload_match.
- * valops.c (find_overload_method_list): Take an array of
- values instead of types.
- Save the type of OBJP for later use.
- Update calls to find_oload_champ, and find_oload_champ_namespace.
- (find_oload_champ_namespace): Take an array of values instead
- of types.
- (find_oload_champ_namespace_loop): Likewise.
- (find_oload_champ): Likewise.
- (classify_oload_match): Inspect all arguments
- until INCOMPATIBLE is found. Return the worst badness found
- otherwise.
- (compare_parameters): Update call to rank_one_type.
- * value.h (find_overload_match): Take an array of values instead
- of types.
-
-2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Drop lazy lm_info reading.
- * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
- l_addr_inferior, l_ld, l_next, l_prev and l_name.
- (lm_info_read): New function.
- (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
- (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
- lm_dynamic_from_link_map.
- (lm_next, lm_prev, lm_name): Remove.
- (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
- initialization incl. read_memory. No longer use lm_name.
- (svr4_free_so): Drop lm_info->lm freeing.
- (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
- explicit lm_addr and lm initialization.
- (svr4_read_so_list): Use lm_info_read, drop the initailization of
- fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
- lm_name.
-
-2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
- Paul Pluzhnikov <ppluzhnikov@google.com>
-
- * defs.h (struct so_list): New forward declaration.
- (make_cleanup_free_so): New declaration.
- * solib-svr4.c (ignore_first_link_map_entry): Remove.
- (svr4_free_so): Move the function here from downwards. Handle NULL
- so->lm_info.
- (svr4_free_library_list): New.
- (svr4_read_so_list): New, moved here code from svr4_current_sos.
- Use more cleanups. Use new parameter ignore_first instead of
- ignore_first_link_map_entry.
- (svr4_current_sos): New variable ignore_first, initialize it. New
- variable back_to, use it for svr4_free_library_list protection.
- (svr4_free_so): Remove - move upwards.
- * utils.c: Include solist.h.
- (do_free_so, make_cleanup_free_so): New functions.
-
-2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix internal error regression.
- * value.c (value_primitive_field): Handle value_optimized_out. Move
- packed bitfields comment.
-
-2011-10-13 Tom Tromey <tromey@redhat.com>
-
- * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
- always released.
-
-2011-10-13 Tom Tromey <tromey@redhat.com>
-
- * python/py-type.c (typy_has_key): Make 'field' const.
-
-2011-10-13 Luis Machado <lgustavo@codesourcery.com>
-
- * remote.c (remote_save_trace_data): Invert comparison.
-
-2011-10-13 Luis Machado <lgustavo@codesourcery.com>
-
- * tracepoint.c (trace_save_command): Use filename instead of
- args when printing.
-
-2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
- if .size is 0.
-
-2011-10-13 Yao Qi <yao@codesourcery.com>
-
- PR gdb/12703
- * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
- whether insn is a 32-bit Thumb-2 instruction.
- (thumb_in_function_epilogue_p): Likewise.
- (thumb_get_next_pc_raw): Likewise.
- (arm_breakpoint_from_pc): Likewise.
-
-2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix empty DWARF expressions DATA vs. SIZE conditionals.
- * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
- (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
- (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
- (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
- zero DATA.
- * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
- validity.
- * dwarf2read.c (struct dwarf_block): Comment DATA validity.
- (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
- clear DATA on zero SIZE.
-
-2011-10-12 Doug Evans <dje@google.com>
-
- * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
- header->first_die_offset here. All callers updated.
-
-2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix compatibility with texinfo versions older than 4.12.
- * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
- (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
- (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
- (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
- * configure: Regenerate.
- * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
- (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
- (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
+ * go-exp.y (classify_name): Add missing assignment of fields of
+ yylval.ssym.
-2011-10-12 Gary Benson <gbenson@redhat.com>
+2012-05-08 Eli Zaretskii <eliz@gnu.org>
- * breakpoint.h (pc_at_non_inline_function): Declare.
- * breakpoint.c (is_non_inline_function,
- pc_at_non_inline_function): New functions.
- * infrun.c (handle_inferior_event): Don't call skip_inline_frames
- if the stop is at a location where functions cannot be inlined.
+ Display the ">" prompt in interactive mode while reading canned
+ commands, even when the current interpreter is MI.
-2011-10-12 Pedro Alves <pedro@codesourcery.com>
+ * interps.c (interp_set_temp): New function.
- * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
- the core wanted them stopped, or if they now have a pending event
- to report.
- (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
- down to stop_and_resume_callback.
- (linux_nat_wait_1): Always clear `options' when retrying. Handle
- having new pending events after calling linux_nat_filter_event.
+ * interps.h (interp_set_temp): Add prototype.
-2011-10-11 Sterling Augustine <saugustine@google.com>
+ * cli/cli-script.c (restore_interp): New cleanup function.
+ (read_command_lines): Temporarily override the current interpreter
+ with CLI and arrange for restoring the original one.
- * dwarf2read.c: Undo inadvertent changes in previous commit.
+2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
-2011-10-11 Sterling Augustine <saugustine@google.com>
+ * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
- * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
- logic.
+2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
-2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
+ * probe.c (parse_probes): Move conditional to check for
+ debuginfo files from here...
+ * stap-probe.c (stap_get_probes): ... to here.
- * symfile.c (separate_debug_file_exists): Fix condition.
+2012-05-07 Mark Kettenis <kettenis@gnu.org>
+ H.J. Lu <hongjiu.lu@intel.com>
-2011-10-11 David S. Miller <davem@davemloft.net>
+ * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
+ `movl %esp, %ebp' for the X32 ABI.
- * regcache.c (regcache_restore): Do not write unavailable regs, mark
- static.
- * regcache.h (regcache_restore): Remove declaration.
+2012-05-07 Tom Tromey <tromey@redhat.com>
- * gdbarch.sh: New field 'long_long_align_bit'.
- * gdbarch.c, gdbarch.h: Regenerate.
- * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
- * jit.c (jit_read_code_entry): Use it to determine correct size offset.
+ * dwarf2read.c (dwarf_tag_name): Return const char *. Use
+ get_DW_TAG_name.
+ (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
+ (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
+ (dwarf_stack_op_name): Remove.
+ (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
+ (decode_locdesc): Use get_DW_OP_name.
+ * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
+ (dwarf2_compile_expr_to_ax): Likewise.
+ (disassemble_dwarf_expression): Likewise.
+ * dwarf2expr.h: (dwarf_stack_op_name): Remove.
-2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
- Revert this part of:
- 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
- Support @entry in input expressions.
- * c-exp.y (ENTRY, unknown_cpp_name): New.
- (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
- (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
- (variable: name_not_typename '@' ENTRY, name: ENTRY)
- (name_not_typename: ENTRY): New.
- (yylex): Recognize ENTRY.
+ * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
+ (sh_linux_sigtramp_cache): New function.
+ (sh_linux_sigreturn_init): New function.
+ (sh_linux_rt_sigreturn_init): New function.
+ (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
+ patterns.
+ (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
+ syscall codes.
+ (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
+ (sh_linux_rt_sigreturn_tramp_frame): Likewise.
+ (sh_linux_init_abi): Add init calls to register new tramp_frame
+ definitions under 32-bit SH, update comments.
- Reimplement @entry in input expressions.
- * c-exp.y (ENTRY): New.
- (variable: name_not_typename ENTRY): New.
- (lex_one_token): Optionally return ENTRY instead of the '@' lex.
-
-2011-10-11 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.c (linux_handle_extended_wait): Always dump both the
- parent and child's pids as soon as we detect a clone event.
- Adjust another debug message.
-
-2011-10-11 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
- not zombie instead of reading the whole file.
-
-2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix separate debuginfo warning with "remote:" access.
- * objfiles.h (struct objfile): New fields crc32 and crc32_p.
- * symfile.c (get_file_crc): New function with the code moved from ...
- (separate_debug_file_exists): ... this function, specifically variables
- buffer and count. New variable verified_as_different, set it. Remove
- file_crc initialization. Verify also if both files are not the same
- manually, if needed.
-
-2011-10-11 Yao Qi <yao@codesourcery.com>
-
- * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
- to get address.
-
-2011-10-10 Doug Evans <dje@google.com>
-
- * linux-thread-db.c (thread_db_new_objfile): Only try to load
- libthread_db when we load libpthread or the main symbol file.
- (thread_db_inferior_created): New function.
- (_initialize_thread_db): Attach inferior_created observer.
- * linux-nat.c (linux_child_post_attach): Remove call to
- check_for_thread_db.
- (linux_child_post_startup_inferior): Ditto.
- * objfiles.h (OBJF_MAINLINE): Define.
- * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
- allocate_objfile when appropriate.
-
-2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- PR gdb/13218
- * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
- Remove unused variables.
- (get_linux_version): Remove function.
- (_initialize_arm_linux_nat): Do not call it.
-
-2011-10-10 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.c (linux_handle_extended_wait): Don't resume the new
- new clone lwp if the core asked it to stop. Don't pass on
- unexpected signals to the new clone; leave them pending instead.
-
-2011-10-10 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.c (resume_lwp): Remove redundant debug output.
-
-2011-10-10 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
- last_resume_kind before clearing it, and use the copy instead to
- determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
- resume_clear_callback in the non-stop path too.
-
-2011-10-09 Yao Qi <yao@codesourcery.com>
-
- * valprint.c (value_check_printable): Add one parameter OPTIONS.
- Honor OPTIONS and VAL's type.
- (common_val_print, value_print): Update to pass one more parameter.
-
-2011-10-09 Doug Evans <dje@google.com>
-
- Add new "alias" command.
- * NEWS: Mention new command.
- * command.h (valid_user_defined_cmd_name_p): Declare.
- * defs.h (make_cleanup_dyn_string_delete): Declare.
- * utils.c: #include "dyn-string.h".
- (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
- * cli/cli-cmds.c: #include "dyn-string.h".
- (argv_to_dyn_string, valid_command_p, alias_command): New functions.
- (init_cli_cmds): Add new command.
- * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix compatibility with older GCCs.
- * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
- * stack.c (read_frame_arg): Initialize val_deref.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Entry values NEWS entries, DWARF disassembly support.
- * NEWS: New entry values entry.
- (set print entry-values, show print entry-values)
- (set debug entry-values, show debug entry-values): New entries.
- * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
- indent. Remove variable start. Move header printing out. Respect
- INDENT. Support DW_OP_GNU_entry_value.
- (locexpr_describe_location_1): Move the header printing here, extend
- the disassemble_dwarf_expression passed parameters.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Display @entry parameter values even for references.
- * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
- coerce_ref_if_computed.
- * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
- * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
- (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
- existing push_dwarf_reg_entry_value call. Add new detection calling
- dwarf_block_to_dwarf_reg_deref. Update the error message.
- (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
- * dwarf2expr.h
- (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
- parameter deref_size, describe it in the comment.
- (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
- (dwarf_block_to_dwarf_reg_deref): New declaration.
- * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
- deref_size, describe it in the function comment. New variables
- data_src and size, fetch the alternative block accoring to DEREF_SIZE.
- (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
- describe it in the function comment. Fetch the alternative block
- accoring to DEREF_SIZE.
- (entry_data_value_coerce_ref, entry_data_value_copy_closure)
- (entry_data_value_free_closure, entry_data_value_funcs): New.
- (value_of_dwarf_reg_entry): New variables checked_type, target_type,
- outer_val, target_val, val and addr. Try to fetch and create also
- referenced value content.
- (pieced_value_funcs): NULL value for coerce_ref.
- (needs_dwarf_reg_entry_value): Add new parameter deref_size.
- * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
- coerce_ref_if_computed.
- * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
- * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
- * stack.c (read_frame_arg): Compare also dereferenced values.
- * value.c (value_computed_funcs): Make the parameter v const, use
- value_lval_const for it.
- (value_lval_const, coerce_ref_if_computed): New function.
- (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
- * value.h (struct lval_funcs): New field coerce_ref.
- (value_computed_funcs): Make the parameter v const.
- (value_lval_const, coerce_ref_if_computed): New declarations.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Support @entry in input expressions.
- * c-exp.y (ENTRY, unknown_cpp_name): New.
- (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
- (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
- (variable: name_not_typename '@' ENTRY, name: ENTRY)
- (name_not_typename: ENTRY): New.
- (yylex): Recognize ENTRY.
- * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
- * expprint.c (print_subexp_standard, dump_subexp_body_standard):
- Likewise.
- * parse.c (operator_length_standard): Likewise.
- * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
+2012-05-07 Pedro Alves <palves@redhat.com>
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+ PR gdb/10952
- Display referenced values in backtraces.
- * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
- * stack.c (print_frame_arg): Likewise.
+ * amd64-linux-tdep.c: Include glibc-tdep.h.
+ (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
+ gdbarch_skip_solib_resolver callback.
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
- Make some lval_funcs methods to default on NULL.
- * valops.c (value_fetch_lazy): Check if lval_computed read method is
- NULL.
- (value_assign): Check if lval_computed write method is NULL.
- * value.h (struct lval_funcs): Comment NULL values for read and write
- methods.
+ * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
+ back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
+ (show_auto_load_safe_path): Check any-directory by comparison with "/".
+ (add_auto_load_safe_path): Change the error message.
+ (_initialize_auto_load): Change the "safe-path" help text.
+ * configure: Regenerate
+ * configure.ac (--without-auto-load-safe-path): Set
+ WITH_AUTO_LOAD_SAFE_PATH to /.
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
- Display @entry parameter values (without references).
- * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
- New functions.
- * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
- New declarations.
- * dwarf2loc.c (dwarf2_find_location_expression): Support location list
- entry record.
- (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
- (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
- functions.
- (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
- (loclist_read_variable_at_entry): New function.
- (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
- * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
- DW_AT_location, call dwarf_block_to_sp_offset for it.
- * frame.h (print_entry_values_no, print_entry_values_only)
- (print_entry_values_preferred, print_entry_values_if_needed)
- (print_entry_values_both, print_entry_values_compact)
- (print_entry_values_default, print_entry_values): New declarations.
- (struct frame_arg): New field entry_kind.
- (read_frame_arg): New parameter entryargp.
- * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
- arg->entry_kind. Optionally print the `@entry' suffix.
- (list_args_or_locals): New variable entryarg, initialize it.
- Initialize also entry_kind of arg and entryarg. Conditionalize
- list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
- xfree for entryarg.error.
- * stack.c (print_entry_values_no, print_entry_values_only)
- (print_entry_values_preferred, print_entry_values_if_needed)
- (print_entry_values_both, print_entry_values_compact)
- (print_entry_values_default, print_entry_values_choices)
- (print_entry_values): New variables.
- (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
- print the `@entry' suffix, possibly in combination for
- print_entry_values_compact.
- (read_frame_arg): New parameter entryargp, new variables entryval,
- entryval_error and val_equal. Read in also entryargp, respect
- print_entry_values, compare the values using val_equal, fill in also
- argp->entry_kind (together with entryargp->entry_kind).
- (print_frame_args): New variable entryarg, initialize it.
- Conditionalize print_frame_arg for arg, add print_frame_arg for
- entryarg. Call xfree for entryarg.error.
- (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
- * symtab.h (struct symbol_computed_ops): New field
- read_variable_at_entry.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Code reshuffle.
- * frame.h (struct frame_arg): New definition.
- (read_frame_arg): New declaration.
- * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
- (list_args_or_locals): ... the code here. New variable arg, call
- read_frame_arg and list_arg_or_local with it. Unify the
- PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
- arg.error.
- * stack.c (print_frame_arg): New functiom from the code of
- print_frame_args.
- (read_frame_arg): New function.
- (print_frame_args): Remove variable val. New variable arg, call
- read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Protect entry values against self tail calls.
- * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
- (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Recognize virtual tail call frames.
- * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
- (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
- (COMMON_OBS): Add dwarf2-frame-tailcall.o.
- * dwarf2-frame-tailcall.c: New file.
- * dwarf2-frame-tailcall.h: New file.
- * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
- (execute_cfa_program): New function comment. Return INSN_PTR. Reset
- REGS.PREV only after CIE execution.
- (struct dwarf2_frame_cache): New field tailcall_cache.
- (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
- entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
- parts, try to find entry_cfa_sp_offset. Call
- dwarf2_tailcall_sniffer_first.
- (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
- when appropriate.
- (dwarf2_frame_dealloc_cache): New function.
- (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
- (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
- (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
- (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
- (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
- * dwarf2loc.c (func_addr_to_tail_call_list)
- (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
- (call_site_find_chain_1, call_site_find_chain): New.
- * dwarf2loc.h (struct call_site_chain): New.
- (call_site_find_chain): New declaration.
- * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
- * frame.h (enum frame_type): New entry TAILCALL_FRAME.
- * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
- * stack.c (frame_info): Support also TAILCALL_FRAME.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Tail call sites reader implementation.
- * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
- fill in TYPE_TAIL_CALL_LIST.
- * gdbtypes.h (struct func_type): New field tail_call_list.
- (struct call_site): New field tail_call_next.
- (TYPE_TAIL_CALL_LIST): New definition.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Implement basic support for DW_TAG_GNU_call_site.
- * block.c: Include gdbtypes.h and exceptions.h.
- (call_site_for_pc): New function.
- * block.h (call_site_for_pc): New declaration.
- * defs.h: Include hashtab.h.
- (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
- declarations.
- * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
- ctx_no_push_dwarf_reg_entry_value.
- * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
- (dwarf_block_to_dwarf_reg): New function.
- (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
- (ctx_no_push_dwarf_reg_entry_value): New function.
- * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
- push_dwarf_reg_entry_value.
- (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
- declarations.
- * dwarf2loc.c: Include gdbcmd.h.
- (dwarf_expr_ctx_funcs): New forward declaration.
- (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
- (dwarf_expr_reg_to_entry_parameter)
- (dwarf_expr_push_dwarf_reg_entry_value): New.
- (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
- (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
- (needs_dwarf_reg_entry_value): New function.
- (needs_frame_ctx_funcs): Install it.
- (_initialize_dwarf2loc): New function.
- * dwarf2loc.h (entry_values_debug): New declaration.
- * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
- (read_call_site_scope): New forward declaration.
- (process_full_comp_unit): Copy call_site_htab.
- (process_die): Support DW_TAG_GNU_call_site.
- (read_call_site_scope): New function.
- (dwarf2_get_pc_bounds): Support NULL HIGHPC.
- (dwarf_tag_name): Support DW_TAG_GNU_call_site.
- (cleanup_htab): Delete.
- (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
- * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
- * gdb-gdb.py (StructMainTypePrettyPrinter): Support
- FIELD_LOC_KIND_DWARF_BLOCK.
- * gdbtypes.h (enum field_loc_kind): New entry
- FIELD_LOC_KIND_DWARF_BLOCK.
- (struct main_type): New loc entry dwarf_block.
- (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
- (TYPE_FIELD_DWARF_BLOCK): New.
- * python/py-type.c: Include dwarf2loc.h.
- (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
- internal_error call on unknown FIELD_LOC_KIND.
- * symtab.h (struct symtab): New field call_site_htab.
- * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
- (core_addr_hash, core_addr_eq): New functions.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Code reshuffle.
- * gdb-gdb.py (StructMainTypePrettyPrinter): Change
- TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
- calling_convention under func_stuff there.
- * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
- (init_type) <TYPE_CODE_FUNC>: Likewise.
- (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
- TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
- * gdbtypes.h (enum type_specific_kind): Change
- TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
- (struct main_type) <type_specific>: Change calling_convention to
- func_stuff. Move calling_convention to ...
- (struct func_type): ... this new struct.
- (INIT_FUNC_SPECIFIC): New #define.
- (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
- * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
- * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
- ctx->ref_addr_size. Handle its invalid value.
- * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
- * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
- (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
- * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
- * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
- (dwarf2_per_cu_ref_addr_size): New function.
-
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * stap-probe.h: Do not include unecessary `probe.h'.
- Code cleanup.
- * dwarf2read.c (per_cu_header_read_in): New function.
- (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
- variables cu_header_local and cu_headerp.
+2012-05-05 Alan Modra <amodra@gmail.com>
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
+ bfd_und_section_ptr.
+ * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
+ and bfd_com_section_ptr.
- Fix initial language detection with -readnow.
- * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
- * symfile.h (struct quick_symbol_functions): State find_symbol_file
- searches only for global symbols.
+2012-05-04 Joel Brobecker <brobecker@adacore.com>
-2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * MAINTAINERS (Past Maintainers): Add Chris Faylor.
- Fix printed anonymous struct name.
- * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
- DW_TAG_interface_type. Strip for anonymous structs any prefixes.
- (anonymous_struct_prefix): New function.
- (determine_prefix): New variables retval. Call anonymous_struct_prefix.
- (dwarf2_name): Strip for anonymous structs any prefixes.
+2012-05-04 Joel Brobecker <brobecker@adacore.com>
-2011-10-07 Doug Evans <dje@google.com>
+ * windows-nat.h (segment_register_p_ftype): New typedef.
+ (windows_set_segment_register_p): Add declaration.
+ * windows-nat.c (segment_register_p): New static global.
+ (windows_set_segment_register_p): New function.
+ (do_windows_fetch_inferior_registers): Add special handling
+ for segment registers.
+ * amd64-windows-nat.c: #include "amd64-tdep.h".
+ (amd64_windows_segment_register_p): New function.
+ (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
+ * i386-windows-nat.c: #include "i386-tdep.h".
+ (i386_windows_segment_register_p): New function.
+ (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
- * python/lib/gdb/printing.py (register_pretty_printer): New argument
- `replace'.
+2012-05-04 Tristan Gingold <gingold@adacore.com>
- * python/lib/gdb/printing.py: Whitespace cleanup.
+ * printcmd.c (set_command): Emit a warning if the expression is not
+ an assignment.
- * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
- warning.
+2012-05-03 Joel Brobecker <brobecker@adacore.com>
-2011-10-07 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
- * amd64-linux-nat.c (amd64_linux_dr_set_control)
- (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
- * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
- (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
- (arm_linux_remove_watchpoint): Adjust.
- * i386-linux-nat.c (i386_linux_dr_set_control)
- (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
- * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
- (ia64_linux_remove_watchpoint): Adjust.
- * mips-linux-nat.c (write_watchpoint_regs): Adjust.
- * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
- (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
- (ppc_linux_insert_mask_watchpoint)
- (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
- (ppc_linux_remove_watchpoint): Adjust.
- * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
- Adjust.
-
-2011-10-07 Corinna Vinschen <vinschen@redhat.com>
-
- * windows-nat.c: Include wchar.h to avoid compiler warnings.
- (clear_win32_environment): New function for Cygwin to clear out
- Win32 environment.
- (windows_create_inferior): Prepare new environment from in_env
- for Cygwin, too.
-
-2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
-
- PR python/13264
- * python/py-value.c (valpy_call): Check that arguments are
- a tuple.
- (is_intlike): Remove call to CHECK_TYPEDEF.
- (valpy_nonzero): Catch GDB exceptions.
- (valpy_absolute): Ditto.
- (valpy_lazy_string): Ditto.
- (valpy_call): Ditto.
- (valpy_get_is_optimized_out): Ditto.
- (valpy_long): Ditto.
- (valpy_float): Ditto.
- (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
- (valpy_richcompare): Ditto.
-
-2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * inferior.h (disable_randomization): Declare.
- * infrun.c (disable_randomization): New global variable.
- (show_disable_randomization): New function.
- (set_disable_randomization): Likewise.
- (_initialize_infrun): Install set/show disable-randomization
- commands.
- * linux-nat.c (disable_randomization): Remove.
- (show_disable_randomization): Likewise.
- (set_disable_randomization): Likewise.
- (_initialize_linux_nat): No longer install set/show
- disable-randomization commands here.
- (linux_nat_supports_disable_randomization): New function.
- (linux_nat_add_target): Install it.
- * remote.c (PACKET_QDisableRandomization): New enum value.
- (remote_protocol_packets): Support QDisableRandomization.
- (_initialize_remote): Likewise.
- (remote_supports_disable_randomization): New function.
- (init_remote_ops): Install it.
- (extended_remote_supports_disable_randomization): New function.
- (init_extended_remote_ops): Install it.
- (extended_remote_disable_randomization): New function.
- (extended_remote_create_inferior_1): Call it.
- * target.h (struct target_ops): Add to_supports_disable_randomization.
- (target_supports_disable_randomization): Add prototype.
- * target.c (target_supports_disable_randomization): New function.
- (find_default_supports_disable_randomization): Likewise.
- (init_dummy_target): Install it.
-
-2011-10-07 Kevin Pouget <kevin.pouget@st.com>
-
- Allow Python notification of new object-file loadings.
- * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
- (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
- Add build rule for this file.
- * python/py-event.h (emit_new_objfile_event): New prototype.
- (newobjfile): New Python event emitter.
- * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
- Python event registry.
- * python/py-inferior.c: Include objfiles.h
- (python_new_objfile): New function.
- (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
- observers.
- * python/py-newobjfileevent.c: New file.
- * python-internal.h (gdbpy_initialize_new_objfile_event): New
- prototype.
- * python/python.c (_initialize_python): Add
- gdbpy_initialize_new_objfile_event call.
- * NEWS: Add item for new Python event "gdb.newobjfile"
+ * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
+ Make static.
-2011-10-05 Tristan Gingold <gingold@adacore.com>
+2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
- * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
- Extract the ravenscar task name from the symbol for the atcb.
+ * stap-probe.c (stap_is_operator): Change declaration.
+ (stap_get_opcode): Change return value.
+ (stap_parse_argument_1): Update calls to `stap_get_opcode' and
+ `stap_parse_argument_1'.
-2011-10-04 Paul Koning <paul_koning@dell.com>
+2012-05-03 Pedro Alves <pedro@codesourcery.com>
- * python/py-type.c (typy_make_iter): Add forward declaration.
- (typy_fields_items): Use the gdb.Type iterator.
+ * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
+ debug log.
-2011-10-04 Paul Koning <paul_koning@dell.com>
+2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
- * NEWS: Add entry for Python gdb.Type mapping methods.
+ Add two new methods global_block and static_block to gdb.Symtab
+ objects.
+ * NEWS (Python scripting): Add entry about the new methods.
+ * python/py-symtab.c (stpy_global_block): New function which
+ implements the gdb.Symtab.global_block() method.
+ (stpy_static_block): New function which implements the
+ gdb.Symtab.static_block() method.
+ (symtab_object_methods): Add entries for the two new methods.
-2011-10-04 Kevin Pouget <kevin.pouget@st.com>
+2012-05-03 Doug Evans <dje@google.com>
- PR python/12691: Add the inferior to Python exited event
- * python/py-exitedevent.c (create_exited_event_object): Add inferior
- to exited_event.
- * python/py-event.h (emit_exited_event): Likewise
- * python/-inferior.c (python_inferior_exit): Likewise
+ * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
+ files.
-2011-10-03 Joel Brobecker <brobecker@adacore.com>
+2012-05-03 Yao Qi <yao@codesourcery.com>
- * ada-tasks.c (print_ada_task_info): Add "thread-id" field
- in output of -ada-task-info GDB/MI command.
+ * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
+ space.
+ (i386_process_record): Ditto.
-2011-10-03 Joel Brobecker <brobecker@adacore.com>
+2012-05-02 Joel Brobecker <brobecker@adacore.com>
- * ada-lang.h (struct inferior): Declare.
- (print_ada_task_info): Add declaration.
- * ada-tasks.c (print_ada_task_info): Make non-static.
- * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
- * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
- * mi/mi-main.c: #include "ada-lang.h".
- (mi_cmd_list_features): Add "ada-task-info" to the list
- of supported features.
- (mi_cmd_ada_task_info): New function.
+ * infcall.c (unwind_on_signal_p): Make static.
-2011-10-03 Joel Brobecker <brobecker@adacore.com>
+2012-05-02 Joel Brobecker <brobecker@adacore.com>
- * python/python.c (python_run_simple_file): New function.
- (source_python_script, source_python_script_for_objfile):
- Replace call to PyRun_SimpleFile by call to
- python_run_simple_file.
+ * sol-thread.c (solaris_pid_to_str): Make static.
+ (_initialize_sol_thread): Add prototype.
-2011-10-03 Paul Koning <paul_koning@dell.com>
+2012-05-02 Joel Brobecker <brobecker@adacore.com>
- * python/py-value.c (valpy_get_address): Use Py_XINCREF.
- (value_to_value_object): Fetch value if it was lazy.
+ * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
-2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
- Code cleanup.
- * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
- Rearrange the code for it.
-
-2011-10-02 Joel Brobecker <brobecker@adacore.com>
-
- * breakpoint.c (bkpt_print_recreate): Add call to
- print_recreate_thread.
-
-2011-09-29 Mike Frysinger <vapier@gentoo.org>
-
- * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
- PTRACE_GETFDPIC_INTERP): Define.
-
-2011-09-28 Yao Qi <yao@codesourcery.com>
-
- * symfile.c (add_symbol_file_command): Update message on usage.
-
-2011-09-28 Paul Koning <paul_koning@dell.com>
-
- * python/py-type.c (make_fielditem, typy_field_names, typy_items)
- (typy_length, typy_get, typy_has_key, typy_make_iter)
- (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
- (typy_iterator_iter, typy_iterator_iternext)
- (typy_iterator_dealloc): New functions to implement standard
- Python mapping methods on gdb.Type object.
- (gdb.TypeIterator): New Python type.
- * python/python-internal.h (gdbpy_iter_kind): New enum.
-
-2011-09-28 David S. Miller <davem@davemloft.net>
-
- * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
- SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
- * sparc-tdep.c (sparc_complex_floating_p): New function.
- (sparc32_store_arguments): Handle complex floats.
- (sparc32_extract_return_value): Likewise.
- (sparc32_store_return_value): Likewise.
- (sparc32_stabs_argument_has_addr): Likewise.
- * sparc64-tdep.c (sparc64_complex_floating_p): New function.
- (sparc64_store_floating_fields): Handle complex floats.
- (sparc64_store_arguments): Likewise.
- (sparc64_store_return_value): Likewise.
-
-2011-09-28 Eli Zaretskii <eliz@gnu.org>
-
- * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
- before the change on 2006-12-09.
- (windows_create_inferior) [!__CYGWIN__]: Restore code that
- generates the environment block for CreateProcessA, modulo the
- Cygwin-specific parts that are not needed here.
-
-2011-09-27 Tristan Gingold <gingold@adacore.com>
-
- * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
- * solib-darwin.c (DYLD_VERSION_MAX): Update number.
- (darwin_solib_get_all_image_info_addr_at_init): New function.
- (darwin_solib_read_all_image_info_addr): Likewise.
- (darwin_solib_create_inferior_hook): Use the above two functions.
- * darwin-nat.c (darwin_execvp): Renames retval to res.
- (darwin_read_write_inferior): Update comment.
- (darwin_read_dyld_info): New function.
- (darwin_xfer_partial): Handle DYLD_INFO.
-
-2011-09-27 Stan Shebs <stan@codesourcery.com>
-
- Add return address collection for tracepoints.
- * tracepoint.c (encode_actions_1): Add case for $_ret.
- (validate_actionline): Check for $_ret.
- (trace_dump_actions): Ditto.
- * ax-gdb.h (gen_trace_for_return_address): Declare.
- * ax-gdb.c: Include arch-utils.h.
- (gen_trace_for_return_address): New function.
- (agent_command): Add return address special case.
- * amd64-tdep.c: Include ax.h and ax-gdb.h.
- (amd64_gen_return_address): New function.
- (amd64_init_abi): Call it.
- * i386-tdep.c: Include ax.h and ax-gdb.h.
- (i386_gen_return_address): New function.
- (i386_init_abi): Call it.
- * arch-utils.h (default_gen_return_address): Declare.
- * arch-utils.c (default_gen_return_address): New function.
- * gdbarch.sh (gen_return_address): New method.
- * gdbarch.h, gdbarch.c: Regenerate.
+ * MAINTAINERS: Remove myself.
-2011-09-23 Joseph Myers <joseph@codesourcery.com>
+2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
- PR gdb/13079
- * i386-tdep.c (i386_frame_align): New.
- (i386_gdbarch_init): Use i386_frame_align.
+ Fix --without-auto-load-safe-path for MS-Windows host platform.
+ * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
-2011-09-23 Yao Qi <yao@codesourcery.com>
+2012-05-02 Eli Zaretskii <eliz@gnu.org>
- * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
- to get address.
+ * gdb_curses.h: Undefine KEY_EVENT before including curses
+ headers. Move "#undef MOUSE_MOVED" before any curses header
+ inclusion.
-2011-09-22 Tristan Gingold <gingold@adacore.com>
+2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
- * fork-child.c (fork_inferior): Add exec_fun parameter.
- Call exec_fun or execvp.
- * inferior.h: Adjust prototype.
- * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
- * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
- * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
- * procfs.c (procfs_create_inferior): Ditto.
- * darwin-nat.c (darwin_execvp): New function.
- (darwin_create_inferior): Use it.
+ * features/i386/i386-mmx-linux.c: Regenerate.
+ * features/rs6000/powerpc-32.c: Likewise.
+ * features/rs6000/powerpc-32l.c: Likewise.
+ * features/rs6000/powerpc-403.c: Likewise.
+ * features/rs6000/powerpc-403gc.c: Likewise.
+ * features/rs6000/powerpc-405.c: Likewise.
+ * features/rs6000/powerpc-505.c: Likewise.
+ * features/rs6000/powerpc-601.c: Likewise.
+ * features/rs6000/powerpc-602.c: Likewise.
+ * features/rs6000/powerpc-603.c: Likewise.
+ * features/rs6000/powerpc-604.c: Likewise.
+ * features/rs6000/powerpc-64.c: Likewise.
+ * features/rs6000/powerpc-64l.c: Likewise.
+ * features/rs6000/powerpc-750.c: Likewise.
+ * features/rs6000/powerpc-860.c: Likewise.
+ * features/rs6000/powerpc-e500.c: Likewise.
+ * features/rs6000/powerpc-e500l.c: Likewise.
+ * features/rs6000/powerpc-isa205-32l.c: Likewise.
+ * features/rs6000/powerpc-isa205-64l.c: Likewise.
+ * features/rs6000/rs6000.c: Likewise.
-2011-09-22 Yao Qi <yao@codesourcery.com>
+2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
- * infrun.c (context_switch): Print debug message when switching to
- a different thread.
+ * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
+ variable.
+ * stap-probe.c (stap_parse_single_operand) <reg_suffix,
+ reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
+ (stap_parse_argument) <e>: Likewise.
+ (handle_stap_probe) <byte_order>: Likewise.
-2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
+2012-04-30 Doug Evans <dje@google.com>
- * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
- complex and vector types.
- (s390_return_value_convention): Likewise.
+ * dwarf2read.c (init_cutu_and_read_dies): Renamed from
+ init_and_read_dies_worker. All callers updated.
+ (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
+ replaced with init_cutu_and_read_dies.
+ (load_partial_comp_unit): Pass 1 for use_existing_cu.
+ (find_partial_die): Remove FIXME. Don't free current CU.
- (s390_value_from_register): Call check_typedef.
- (extend_simple_arg): Likewise.
- (alignment_of): Likewise.
- (s390_push_dummy_call): Likewise.
- (s390_return_value): Likewise.
+2012-04-30 Sterling Augustine <saugustine@google.com>
-2011-09-21 Joseph Myers <joseph@codesourcery.com>
+ * contrib: New directory.
+ * contrib/test_pubnames_and_indexes.py: New file.
- * event-top.c (async_disconnect): If an exception is thrown from
- quit_cover, call pop_all_targets. Use TRY_CATCH instead of
- catch_errors.
- * top.c (quit_cover): Return void and take no arguments.
- * top.h (quit_cover): Update prototype.
+2012-04-30 Doug Evans <dje@google.com>
-2011-09-20 Joseph Myers <joseph@codesourcery.com>
+ * dwarf2read.c (dwarf_decode_macros): New arg section_name.
+ All callers updated.
+ (init_cu_die_reader): Verify the section is non-empty.
+ (dwarf_decode_line_header): Don't dereference section->asection
+ until we know the section is present.
+
+2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
+ probes.
+
+2012-04-29 Yao Qi <yao@codesourcery.com>
+
+ * gdb-code-style.el: New hook gdb-markup-hook
+ and gdb-comment-hook.
+
+2012-04-28 Doug Evans <dje@google.com>
+
+ Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
+ * symfile.c (default_symfile_relocate): Use sectp->owner instead of
+ objfile->obfd.
+ * symfile.h (dwarf2_debug_sections): New member addr.
+ * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
+ (ctx_no_get_addr_index): New function.
+ * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
+ (ctx_no_get_addr_index): Declare.
+ * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
+ * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
+ (dwarf_expr_ctx_funcs): Update.
+ (needs_get_addr_index): New function.
+ (needs_frame_ctx_funcs): Update.
+ * dwarf2loc.h (dwarf2_read_addr_index): Declare.
+ * dwarf2read.c: #include "gdbcore.h".
+ (dwarf2_per_objfile): New members addr, dwo_files.
+ (dwarf2_elf_names): Add entry for addr.
+ (struct dwo_section_names): New type.
+ (dwo_section_names): New static global.
+ (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
+ (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
+ old debug_types_section member updated to use this.
+ Rename member debug_types_section to info_or_types_section,
+ all uses updated.
+ (signatured_type): Rename member type_offset to type_offset_in_tu,
+ all uses updated. New member type_offset_in_section.
+ (struct dwo_sections): New type.
+ (struct dwo_unit): New type.
+ (struct dwo_file): New type.
+ (die_reader_specs): New member dwo_file.
+ (dwarf2_locate_sections): Watch for .debug_addr.
+ (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
+ (dwarf2_read_section): Get bfd of section from bfd's asection,
+ instead of objfile.
+ (create_cus_from_index): Initialize the_cu->info_or_types_section.
+ (create_signatured_type_table_from_index): Initialize
+ sig_type->info_or_types_section.
+ (dw2_get_file_names): Statement lists for type units with DWO files
+ live in the DWO file.
+ (create_debug_types_hash_table): New function.
+ (create_all_type_units): Rewrite.
+ (init_cu_die_reader): New arg dwo_file, all callers updated.
+ (init_and_read_dies_worker): Get section from
+ this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
+ Watch for DW_AT_GNU_dwo_name and if present lookup the file and
+ continue reading the CU/TU from there.
+ (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
+ updated. Get section from this_cu->info_or_types_section.
+ (create_all_comp_units): Initialize this_cu->info_or_types_section.
+ (skip_one_die): New cases DW_FORM_GNU_addr_index,
+ DW_FORM_GNU_str_index.
+ (hash_dwo_file, eq_dwo_file): New functions.
+ (allocate_dwo_file_hash_table): New function.
+ (hash_dwo_unit, eq_dwo_unit): New functions.
+ (allocate_dwo_unit_table): New function.
+ (dwarf2_locate_dwo_sections): New function.
+ (struct create_dwo_info_table_data): New type.
+ (create_debug_info_hash_table_reader): New function.
+ (create_debug_info_hash_table): New function.
+ (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
+ (lookup_dwo_file): New function.
+ (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
+ (free_dwo_file, free_dwo_file_cleanup): New functions.
+ (free_dwo_file_from_slot, free_dwo_files): New functions.
+ (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
+ (dwarf2_record_block_ranges): Ditto.
+ (read_partial_die): Ditto.
+ (process_enumeration_scope): Update to use type_offset_in_section.
+ (read_full_die_1): New function.
+ (read_full_die): Rewrite.
+ (read_attribute_value): New cases DW_FORM_GNU_addr_index,
+ DW_FORM_GNU_str_index.
+ (read_addr_index_1, read_addr_index): New functions.
+ (read_addr_index_from_leb128): New function.
+ (struct dwarf2_read_addr_index_data): New type.
+ (dwarf2_read_addr_index_reader): New function.
+ (dwarf2_read_addr_index): New function.
+ (read_str_index): New function.
+ (leb128_size): New function.
+ (dwarf_decode_line_header): Delete arg abfd, all callers updated.
+ If processing a type unit from a DWO file, get the line section
+ from the DWO file.
+ (var_decode_location): Watch for DW_OP_GNU_addr_index.
+ (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
+ DW_FORM_GNU_str_index.
+ (lookup_die_type): Check whether section offset of type's die is
+ known before looking it up. Remove assert. Condition can
+ legimately happen for inter-cu type references.
+ (dwarf_attr_name): Handle Fission attributes.
+ (dwarf_form_name): Handle Fission forms.
+ (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
+ DW_FORM_GNU_str_index.
+ (follow_die_sig): Update to use type_offset_in_section.
+ (decode_locdesc): New case DW_OP_GNU_addr_index.
+ (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
+ DW_FORM_GNU_str_index.
+ (cu_debug_loc_section): New function.
+ (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
+ (dwarf2_per_objfile_free): Unmap .debug_addr section.
+ Free DWO files if present.
+ * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
+
+ Refactor DIE reading.
+ * dwarf2read.c (dwarf2_per_objfile): Replace members
+ debug_info_type_hash and debug_types_type_hash with die_type_hash.
+ (die_reader_specs): New member "die_section". Temporarily make
+ member "buffer" non-const, pending constifying all info_ptr uses.
+ (die_reader_func_ftype): New typedef.
+ (dw2_get_file_names_reader): New function.
+ (dw2_get_file_names): Rewrite.
+ (read_and_check_type_unit_head): Rename arg type_offset to
+ type_offset_in_tu.
+ (create_all_type_units): Improve debugging message.
+ Improve dummy type unit check.
+ (init_cu_die_reader): New arg "section". All callers updated.
+ (init_and_read_dies_worker): New function.
+ (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
+ (init_cutu_and_read_dies_no_follow): New function.
+ (init_cutu_and_read_dies_simple): New function.
+ (process_psymtab_comp_unit_reader): New function.
+ (process_psymtab_comp_unit): Delete args section,
+ is_debug_types_section. Rewrite. All callers updated.
+ (process_psymtab_type_unit): Renamed from process_type_comp_unit.
+ All callers updated. Rewrite.
+ (load_partial_comp_unit_reader): New function.
+ (load_partial_comp_unit): Rewrite.
+ (skip_children): New arg reader. Delete args buffer, cu.
+ All callers updated.
+ (skip_one_die): New arg reader. Delete args buffer, cu.
+ All callers updated.
+ (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
+ All callers updated.
+ (load_full_comp_unit_reader): New function.
+ (load_full_comp_unit): Rewrite.
+ (read_comp_unit): Delete.
+ (read_die_and_children_1): Delete, contents moved ...
+ (read_die_and_children): ... here.
+ (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
+ (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
+ All callers updated.
+ (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
+ All callers updated.
+ (find_partial_die): Rewrite load_all_dies support.
+ (read_attribute_value): New arg reader. Delete args abfd, cu.
+ All callers updated.
+ (read_attribute): New arg reader. Delete args abfd, cu.
+ All callers updated.
+ (load_full_type_unit): Add assert.
+ (read_signatured_type_reader): New function.
+ (read_signatured_type): Rewrite.
+ (free_stack_comp_unit): Remove call to age_cached_comp_units.
+ (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
+ All callers updated. Set per_cu->cu = NULL after freeing it.
+ (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
+ (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
+ (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
+ (set_die_type): Update.
+ (get_die_type_at_offset): Update.
+ (read_file_scope): Call prepare_one_comp_unit.
+ (read_type_unit_scope): Ditto.
+ (prepare_one_comp_unit): Set producer if present.
+
+2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * probe.c (compile_rx_or_error): Silence ARI warning about missing
+ gettext function on `error'.
+
+2012-04-27 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
+ is empty.
+
+2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
+ Tom Tromey <tromey@redhat.com>
- * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
- current_uiout, not uiout.
+ * breakpoint.c (struct breakpoint_objfile_data)
+ <longjmp_searched>,<longjmp_probes>,<exception_searched>,
+ <exception_probes>: New fields.
+ (free_breakpoint_probes): New function.
+ (create_longjmp_master_breakpoint): Prefer SystemTap probe over
+ `_Unwind_DebugHook'.
+ (create_exception_master_breakpoint): Likewise.
+ (_initialize_breakpoint): Registering cleanup for SystemTap probes.
+ * infrun.c: Including necessary header files for handling SystemTap
+ probes.
+ (handle_inferior_event): Handling longjmp breakpoint and exceptions
+ via SystemTap probes.
+ (check_exception_resume): Remove `func' argument. Handle exception
+ unwinding breakpoint set via a SystemTap probe.
+ (insert_exception_resume_from_probe): New function.
+
+2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
+ Tom Tromey <tromey@redhat.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-09-19 Doug Evans <dje@google.com>
+ * Makefile.in (SFILES): Add `probe' and `stap-probe'.
+ (COMMON_OBS): Likewise.
+ (HFILES_NO_SRCDIR): Add `probe'.
+ * NEWS: Mention support for static and SystemTap probes.
+ * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
+ SystemTap probes' arguments parser.
+ * arm-linux-tdep.c: Including headers needed to perform the parsing
+ of SystemTap probes' arguments.
+ (arm_stap_is_single_operand): New function.
+ (arm_stap_parse_special_token): Likewise.
+ (arm_linux_init_abi): Initializing proper fields used by SystemTap
+ probes' arguments parser.
+ * ax-gdb.c (require_rvalue): Removing static declaration.
+ (gen_expr): Likewise.
+ * ax-gdb.h (gen_expr): Declaring function.
+ (require_rvalue): Likewise.
+ * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
+ (bkpt_probe_breakpoint_ops): New variable.
+ (momentary_breakpoint_from_master): Set the `probe' value.
+ (add_location_to_breakpoint): Likewise.
+ (break_command_1): Using proper breakpoint_ops according to the
+ argument passed by the user in the command line.
+ (bkpt_probe_insert_location): New function.
+ (bkpt_probe_remove_location): Likewise.
+ (bkpt_probe_create_sals_from_address): Likewise.
+ (bkpt_probe_decode_linespec): Likewise.
+ (tracepoint_probe_create_sals_from_address): Likewise.
+ (tracepoint_probe_decode_linespec): Likewise.
+ (tracepoint_probe_breakpoint_ops): New variable.
+ (trace_command): Using proper breakpoint_ops according to the
+ argument passed by the user in the command line.
+ (initialize_breakpoint_ops): Initializing breakpoint_ops for
+ static probes on breakpoints and tracepoints.
+ * breakpoint.h (struct bp_location) <probe>: New field.
+ * cli-utils.c (skip_spaces_const): New function.
+ (extract_arg): Likewise.
+ * cli-utils.h (skip_spaces_const): Likewise.
+ (extract_arg): Likewise.
+ * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
+ * configure.ac: Append `stap-probe.o' to be generated when ELF
+ support is present.
+ * configure: Regenerate.
+ * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
+ * elfread.c: Include `probe.h' and `arch-utils.h'.
+ (probe_key): New variable.
+ (elf_get_probes): New function.
+ (elf_get_probe_argument_count): Likewise.
+ (elf_evaluate_probe_argument): Likewise.
+ (elf_compile_to_ax): Likewise.
+ (elf_symfile_relocate_probe): Likewise.
+ (stap_probe_key_free): Likewise.
+ (elf_probe_fns): New variable.
+ (elf_sym_fns): Add `sym_probe_fns' value.
+ (elf_sym_fns_lazy_psyms): Likewise.
+ (elf_sym_fns_gdb_index): Likewise.
+ (_initialize_elfread): Initialize objfile cache for static
+ probes.
+ * gdb_vecs.h (struct probe): New forward declaration.
+ (probe_p): New VEC declaration.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Regenerate.
+ * gdbarch.sh (stap_integer_prefix): New variable.
+ (stap_integer_suffix): Likewise.
+ (stap_register_prefix): Likewise.
+ (stap_register_suffix): Likewise.
+ (stap_register_indirection_prefix): Likewise.
+ (stap_register_indirection_suffix): Likewise.
+ (stap_gdb_register_prefix): Likewise.
+ (stap_gdb_register_suffix): Likewise.
+ (stap_is_single_operand): New function.
+ (stap_parse_special_token): Likewise.
+ (struct stap_parse_info): Forward declaration.
+ * i386-tdep.c: Including headers needed to perform the parsing
+ of SystemTap probes' arguments.
+ (i386_stap_is_single_operand): New function.
+ (i386_stap_parse_special_token): Likewise.
+ (i386_elf_init_abi): Initializing proper fields used by SystemTap
+ probes' arguments parser.
+ * i386-tdep.h (i386_stap_is_single_operand): New function.
+ (i386_stap_parse_special_token): Likewise.
+ * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
+ * mipsread.c (ecoff_sym_fns): Likewise.
+ * objfiles.c (objfile_relocate1): Support relocation for static
+ probes.
+ * parse.c (prefixify_expression): Remove static declaration.
+ (initialize_expout): Likewise.
+ (reallocate_expout): Likewise.
+ * parser-defs.h (initialize_expout): Declare function.
+ (reallocate_expout): Likewise.
+ (prefixify_expression): Likewise.
+ * ppc-linux-tdep.c: Including headers needed to perform the parsing
+ of SystemTap probes' arguments.
+ (ppc_stap_is_single_operand): New function.
+ (ppc_stap_parse_special_token): Likewise.
+ (ppc_linux_init_abi): Initializing proper fields used by SystemTap
+ probes' arguments parser.
+ * probe.c: New file, for generic statically defined probe support.
+ * probe.h: Likewise.
+ * s390-tdep.c: Including headers needed to perform the parsing of
+ SystemTap probes' arguments.
+ (s390_stap_is_single_operand): New function.
+ (s390_gdbarch_init): Initializing proper fields used by SystemTap
+ probes' arguments parser.
+ * somread.c (som_sym_fns): Add `sym_probe_fns' value.
+ * stap-probe.c: New file, for SystemTap probe support.
+ * stap-probe.h: Likewise.
+ * symfile.h: Include `gdb_vecs.h'.
+ (struct sym_probe_fns): New struct.
+ (struct sym_fns) <sym_probe_fns>: New field.
+ * symtab.c (init_sal): Initialize `probe' field.
+ * symtab.h (struct probe): Forward declaration.
+ (struct symtab_and_line) <probe>: New field.
+ * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
+ locations.
+ (stop_tracing): Likewise.
+ * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
+
+2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
+ Tom Tromey <tromey@redhat.com>
- * python/py-auto-load.c (source_section_scripts): Fix file
- descriptor leak.
- * python/python.c (source_python_script_for_objfile): Tweak comments.
+ * ax-gdb.c (gen_expr): Clean up code to handle internal variables
+ and to compile agent expressions.
+ * infrun.c (siginfo_make_value): New argument `ignore'.
+ (siginfo_funcs): New struct.
+ (_initialize_infrun): New argument when calling
+ `create_internalvar_type_lazy'.
+ * thread.c (thread_id_make_value): New argument `ignore'.
+ (thread_funcs): New struct.
+ (_initialize_thread): New argument when calling
+ `create_internalvar_type_lazy'.
+ * tracepoint.c (sdata_make_value): New argument `ignore'.
+ (sdata_funcs): New struct.
+ (_initialize_tracepoint): New argument when calling
+ `create_internalvar_type_lazy'.
+ * value.c (make_value): New struct.
+ (create_internalvar_type_lazy): New argument `data'.
+ (compile_internalvar_to_ax): New function.
+ (value_of_internalvar): Properly handling `make_value' case.
+ (clear_internalvar): Likewise.
+ (show_convenience): Adding `TRY_CATCH' block.
+ * value.h (internalvar_make_value): Delete, replace by...
+ (struct internalvar_funcs): ... this.
+ (create_internalvar_type_lazy) <fun>: Delete argument.
+ (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
+ (compile_internalvar_to_ax): New function.
+ * windows-tdep.c (tlb_make_value): New argument `ignore'.
+ (tlb_funcs): New struct.
+ (_initialize_windows_tdep): New argument when calling
+ `create_internalvar_type_lazy'.
+
+2012-04-27 Mark Wielaard <mjw@redhat.com>
+
+ * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
+ see whether it is an address or a constant offset from DW_AT_low_pc.
+ (dwarf2_record_block_ranges): Likewise.
+ (read_partial_die): Likewise.
-2011-09-18 Yao Qi <yao@codesourcery.com>
- Ulrich Weigand <ulrich.weigand@linaro.org>
+2012-04-26 Mark Wielaard <mjw@redhat.com>
- Support displaced stepping for Thumb 16-bit insns.
- * arm-tdep.c (THUMB_NOP) Define.
- (thumb_copy_unmodified_16bit): New.
- (thumb_copy_b, thumb_copy_bx_blx_reg): New.
- (thumb_copy_alu_reg): New.
- (arm_copy_svc): Move some common code to ...
- (install_svc): ... here. New.
- (thumb_copy_svc): New.
- (install_pc_relative): New.
- (thumb_copy_pc_relative_16bit): New.
- (thumb_decode_pc_relative_16bit): New.
- (thumb_copy_16bit_ldr_literal): New.
- (thumb_copy_cbnz_cbz): New.
- (cleanup_pop_pc_16bit_all): New.
- (thumb_copy_pop_pc_16bit): New.
- (thumb_process_displaced_16bit_insn): New.
- (thumb_process_displaced_32bit_insn): New.
- (thumb_process_displaced_insn): process thumb instruction.
-
- Support displaced stepping for Thumb 32-bit insns.
- * arm-tdep.c (thumb_copy_unmodified_32bit): New.
- (thumb2_copy_preload): New.
- (thumb2_copy_copro_load_store): New.
- (thumb2_copy_b_bl_blx): New.
- (thumb2_copy_alu_imm): New.
- (thumb2_copy_load_reg_imm): New.
- (thumb2_copy_load_literal): New
- (thumb2_copy_block_xfer): New.
- (thumb_32bit_copy_undef): New.
- (thumb_32bit_copy_unpred): New.
- (thumb2_decode_ext_reg_ld_st): New.
- (thumb2_decode_svc_copro): New.
- (decode_thumb_32bit_store_single_data_item): New.
- (thumb_copy_pc_relative_32bit): New.
- (thumb_decode_pc_relative_32bit): New.
- (decode_thumb_32bit_ld_mem_hints): New.
- (thumb2_copy_table_branch): New
- (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
- instructions.
-
-2011-09-18 Yao Qi <yao@codesourcery.com>
-
- * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
- (install_b_bl_blx): Likewise.
-
-2011-09-17 Yao Qi <yao@codesourcery.com>
-
- * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
- (install_load_store): ... this. New.
- Change parameter BYTE to SIZE.
- (arm_copy_ldr_str_ldrb_strb): Update caller.
- (arm_decode_ld_st_word_ubyte): Update caller.
-
-2011-09-17 Yao Qi <yao@codesourcery.com>
-
- * infrun.c (displaced_step_fixup): Move some code ...
- (displaced_step_restore): ... here. New function.
- (handle_inferior_event): Cleanup displaced stepping state for both
- child and parent when get forked or vforked event.
- * regcache.c (get_thread_arch_aspace_regcache): New function.
- get_thread_arch_regcache (): Call it.
-
-2011-09-16 Joel Brobecker <brobecker@adacore.com>
-
- * ada-tasks.c (print_ada_task_info): New function, merging
- short_task_info and info_tasks together. Reimplement using
- ui-out instead of printing to stdout directly. Move the code
- building and checking the task list here, instead of leaving it
- in info_tasks_command.
- (info_task): Move the code building and checking the task
- list here, instead of leaving it in info_tasks_command.
- (info_tasks_command): Delete code building and checking
- the task list - moved elsewhere. Update calls to info_tasks
- and info_task.
-
-2011-09-16 Joel Brobecker <brobecker@adacore.com>
-
- * ada-tasks.c (info_task): Delete parameter `from_tty'.
-
-2011-09-16 Joel Brobecker <brobecker@adacore.com>
-
- * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
-
-2011-09-16 Joel Brobecker <brobecker@adacore.com>
-
- * ada-lang.h (ada_build_task_list): Remove parameter
- `warn_if_null'.
- * ada-tasks.c (ada_build_task_list): Remove parameter
- `warn_if_null'. Adjust implementation and documentation.
- (valid_task_id, ada_get_environment_task)
- iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
- (info_tasks_command): Adjust implementation.
- (task_command): Likewise.
- * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
- to ada_build_task_list.
-
-2011-09-16 Joel Brobecker <brobecker@adacore.com>
-
- * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
- (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
- (ada_tasks_inferior_data_handle): New static global.
- (get_ada_tasks_inferior_data): New function.
- (ada_get_task_number, get_task_number_from_id, valid_task_id)
- (ada_get_environment_task, iterate_over_live_ada_tasks)
- (add_ada_task, read_known_tasks_array, read_known_tasks_list):
- Adjust.
- (ada_set_current_inferior_known_tasks_addr): New function.
- (read_known_tasks, ada_build_task_list, short_task_info)
- (info_tasks, info_task, info_tasks_command, task_command_1)
- (task_command, ada_task_list_changed): Adjust.
- (ada_tasks_invalidate_inferior_data): New function.
- (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
- (_initialize_tasks): Set ada_tasks_inferior_data_handle.
- * ada-lang.h (struct inferior): Add declaration.
- (ada_task_list_changed): Update profile.
- * remote-wtx-pd.c: #include "inferior.h".
- (switch_to_pd_internal): Update call to ada_task_list_changed.
-
-2011-09-16 Joel Brobecker <brobecker@adacore.com>
-
- * ada-tasks.c: #include "progspace.h" and "objfiles.h".
- (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
- (atcb_fieldno): Delete these static globals.
- (struct ada_tasks_pspace_data): New struct.
- (ada_tasks_pspace_data_handle): New static global.
- (get_ada_tasks_pspace_data): New function.
- (ada_tasks_invalidate_pspace_data): New function.
- (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
- (read_known_tasks_list, ada_new_objfile_observer): Adjust.
- (_initialize_tasks): Create this module's per-progspace
- data handle.
-
-2011-09-16 Joel Brobecker <brobecker@adacore.com>
-
- * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
-
-2011-09-16 Tristan Gingold <gingold@adacore.com>
-
- * fork-child.c (fork_inferior): Update comment. Use alloca
- instead of xmalloc for argv. Move len and shell_command
- declarations in the block where they are used.
- Only call execvp. Factorize failure code.
-
-2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
+ * MAINTAINERS (Write After Approval): Add myself to the list.
- Code cleanup.
- * parse.c (write_exp_elt): Change argument to pass a pointer of union
- `exp_element' instead of an element of the same and make the function
- static.
- (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
- (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
- (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
- Change argument of `write_exp_elt' function call.
- Remove extra spaces from comments.
- * parser-defs.h (write_exp_elt): Remove prototype.
+2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * proc-utils.h (proc_prettyprint_signalset): New prototype.
+ (proc_prettyprint_signal): Likewise.
+ (proc_prettyprint_faultset): Likewise.
+ (proc_prettyprint_fault): Likewise.
+ (proc_prettyprint_actionset): Likewise.
+ (proc_prettyprint_flags): Move to new proc-flags.c section.
+ (proc_prettyfprint_flags): New prototype.
+ * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
+ (proc_syscall, proc_cursig): Likewise.
+ (proc_set_kill_on_last_close): Likewise.
+ (proc_unset_kill_on_last_close): Likewise.
+ (proc_set_watchpoint): Make static.
+ (proc_delete_dead_threads): Likewise.
+ (procfs_set_watchpoint): Likewise.
+ (_initialize_procfs): Add prototype.
+ * proc-events.c: Include proc-utils.h.
+ (init_syscall_table): Make static.
+ * proc-api.c (_initialize_proc_api): Add prototype.
+ * proc-flags.c: Include proc-utils.h.
+
+2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * configure.ac: Add AC_ARG_PROGRAM.
+ * configure: Regenerate.
-2011-09-15 Paul Koning <paul_koning@dell.com>
+2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
- * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
- count of item appended to list.
- * python/py-type.c (typy_fields): Likewise.
+ Fix DW_AT_lower_bound defaults for DWARF-4+.
+ * dwarf2read.c (read_subrange_type): Remove initialization of low and
+ high. New variable low_default_is_valid. Implement DWARF-4+
+ DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
+ no default by the DWARF standard.
-2011-09-15 Paul Koning <paul_koning@dell.com>
+2012-04-26 Maciej W. Rozycki <macro@mips.com>
+ Maciej W. Rozycki <macro@codesourcery.com>
- * MAINTAINERS (Write After Approval): Add myself to the list.
+ * infrun.c (handle_inferior_event): Move the check for return
+ trampolines ahead of the check for function trampolines.
+ * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
+ * mips-tdep.c (mips_str_mips16_call_stub): New variable.
+ (mips_str_mips16_ret_stub): Likewise.
+ (mips_str_call_fp_stub): Likewise.
+ (mips_str_call_stub): Likewise.
+ (mips_str_fn_stub): Likewise.
+ (mips_str_pic): Likewise.
+ (mips_in_frame_stub): New function.
+ (mips_unwind_pc): Return the return address rather than the PC
+ if the PC of an intermediate frame is inside a call thunk.
+ (mips_is_stub_suffix): New function.
+ (mips_is_stub_mode): Likewise.
+ (mips_get_mips16_fn_stub_pc): Likewise.
+ (mips_skip_mips16_trampoline_code): Update to handle all the
+ currently generated stub types. Don't recurse into __fn_stub
+ thunks. Remove heuristics to handle stubs beyond etext/_etext.
+ Use cooked register accesses.
+ (mips_in_return_stub): Reintroduce function.
+ (mips_skip_trampoline_code): Traverse trampolines recursively.
+ (mips_gdbarch_init): Handle MIPS16 return trampolines.
-2011-09-15 Kevin Pouget <kevin.pouget@st.com>
+2012-04-26 Joel Brobecker <brobecker@adacore.com>
- PR threads/12628
- * linux-fork.c (checkpoint_command): Disallow checkpointing of
- processes with multiple threads.
- (inf_has_multiple_thread_cb): New function.
- (inf_has_multiple_threads): New function.
-
-2011-09-15 Kevin Pouget <kevin.pouget@st.com>
-
- PR Python/12692 Add gdb.selected_inferior() to Python interface.
- * python/py-inferior.c (GdbMethods): New Python method definition.
-
-2011-09-15 Kevin Pouget <kevin.pouget@st.com>
-
- Handle multiple breakpoint hits in Python interface:
- * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
- variable to breakpoints.
- * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
- bps instead of single breakpoint. Fix some space typos.
- * python/py-stopevent.c (create_breakpoint_event_object): Rename
- variable to breakpoints.
-
-2011-09-15 Kevin Pouget <kevin.pouget@st.com>
-
- * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
- note if the breakpoint is internal.
-
-2011-09-15 Kevin Pouget <kevin.pouget@st.com>
-
- * MAINTAINERS (Write After Approval): Add myself to the list
-
-2011-09-14 Pedro Alves <pedro@codesourcery.com>
-
- * infrun.c (prepare_for_detach, wait_for_inferior)
- (fetch_inferior_event): Don't flush the register cache.
- * remote.c (struct stop_reply) <regcache>: Add comment.
-
-2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Remove excessive DWARF expressions memory duplication.
- * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
- for block.data.
- (indirect_pieced_value): Remove variable result. Remove variable
- back_to and its use for baton.data.
- (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
- block.data.
- * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
- Update the function comment.
-
-2011-09-13 Pedro Alves <pedro@codesourcery.com>
-
- * inferior.h (ALL_INFERIORS): New.
- * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
- for a stopped thread.
- (thread_db_find_new_threads): Look for threads in all inferiors.
-
-2011-09-13 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.c (update_watchpoint): Handle the case of the
- watchpoint to update not being in the breakpoint list yet.
- (hw_watchpoint_use_count): New, factored out from
- hw_watchpoint_used_count.
- (hw_watchpoint_used_count): Rename to ...
- (hw_watchpoint_used_count_others): ... this. Add `except'
- parameter. Don't count resources of `except'. Use
- hw_watchpoint_use_count.
-
-2011-09-13 Pedro Alves <pedro@codesourcery.com>
-
- * gdbthread.h (enum thread_state): Moved here.
- (struct thread_info): Rename `executing_' field to `executing' and
- `state_' to `state'.
- * thread.c (enum thread_state): Moved to gdbthread.h.
- (new_thread, add_thread_silent, delete_thread_1)
- (any_live_thread_of_process, thread_alive, set_running)
- (set_running, is_thread_state, any_running, is_executing)
- (set_executing, finish_thread_state, print_thread_info)
- (do_captured_thread_select): Adjust.
-
-2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix compatibility with gcc < 4.3 and non-gcc compilers.
- * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
-
-2011-09-12 Pedro Alves <pedro@codesourcery.com>
- Matt Rice <ratmice@gmail.com>
-
- PR gdb/13175
-
- * interps.c (struct interp) <interpreter_out>: Delete field.
- (interp_new): Remove the data and uiout parameters and adjust.
- (interp_set): Only set the current_uiout from the interpreter's
- uiout after initializing the interpreter. Adjust call to
- init_proc.
- (interp_ui_out): Adjust to call procs->ui_out_proc.
- (interp_data, interp_name): New.
- * interps.h (interp_init_ftype): Add `self' parameter.
- (interp_ui_out_ftype): New typedef.
- (struct interp_procs) <ui_out_proc>: New method pointer.
- (interp_new): Remove the data and uiout parameters.
- (interp_data, interp_name): Declare.
- * tui/tui-interp.c (tui_init): Adjust prototype.
- (tui_ui_out): New.
- (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
- tui_out here. Adjust call to interp_new.
- * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
- * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
- (cli_ui_out): New.
- (_initialize_cli_interp): Install it. Adjust call to interp_new.
- * mi/mi-common.h (struct mi_interp) <uiout>: New field.
- * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
- Initialize mi->uiout depending on the mi_version as extracted from
- the interpreter's name.
- (mi_ui_out): New.
- (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
- interp_new. Don't allocate the ui_out's of the interpreters here.
-
-2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
-
- * solib.c (solib_used): New function.
- (update_solib_list, reload_shared_libraries_1): Check if objfile is used
- by another so_list object before freeing it.
-
-2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+ GDB 7.4.1 released.
+
+2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
+
+ * arm-tdep.h (VFP_REGISTER_SIZE): Define.
+ * features/arm-with-m-vfp-d16.xml: New file. Describes
+ Cortex-M with VFPv4-sp-d16 FPU register layout.
+ * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
+ * features/arm-with-m-vfp-d16.c: New. Generated from above.
+ * arm-tdep.c: Include arm-with-m-vfp-d16.c.
+ (arm-register_g_packet_guesses): Add vfp-d16 guess.
+ (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
+
+2012-04-25 Doug Evans <dje@google.com>
+
+ * cli/cli-decode.c (print_doc_line): Use stream instead of
+ current_uiout.
+
+2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * features/arm-with-iwmmxt.c: Regenerate.
+ * features/arm-with-m-fpa-layout.c: Likewise.
+ * features/arm-with-m.c: Likewise.
+ * features/arm-with-neon.c: Likewise.
+ * features/arm-with-vfpv2.c: Likewise.
+ * features/arm-with-vfpv3.c: Likewise.
+ * features/mips-dsp-linux.c: Likewise.
+ * features/mips-linux.c: Likewise.
+ * features/mips64-dsp-linux.c: Likewise.
+ * features/mips64-linux.c: Likewise.
+ * features/s390-linux32.c: Likewise.
+ * features/s390-linux32v1.c: Likewise.
+ * features/s390-linux32v2.c: Likewise.
+ * features/s390-linux64.c: Likewise.
+ * features/s390-linux64v1.c: Likewise.
+ * features/s390-linux64v2.c: Likewise.
+ * features/s390x-linux64.c: Likewise.
+ * features/s390x-linux64v1.c: Likewise.
+ * features/s390x-linux64v2.c: Likewise.
+ * features/tic6x-c62x-linux.c: Likewise.
+ * features/tic6x-c62x.c: Likewise.
+ * features/tic6x-c64x-linux.c: Likewise.
+ * features/tic6x-c64x.c: Likewise.
+ * features/tic6x-c64xp-linux.c: Likewise.
+ * features/tic6x-c64xp.c: Likewise.
+ * target-descriptions.c: Only generate `field_type' and `type'
+ variables when needed.
+
+2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
+
+ * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
+
+2012-04-25 Doug Evans <dje@google.com>
+
+ Initial pass at Go language support.
+ * NEWS: Mention Go.
+ * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
+ go-valprint.c.
+ (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
+ (YYFILES): Add go-exp.c.
+ (YYOBJ): Add go-exp.o.
+ (local-maintainer-clean): Delete go-exp.c.
+ * defs.h (enum language): Add language_go.
+ * dwarf2read.c: #include "go-lang.h".
+ (fixup_go_packaging): New function.
+ (process_full_comp_unit): Call it when processing Go CUs.
+ (dwarf2_physname): Add Go support.
+ (read_file_scope): Handle missing language spec for GNU Go.
+ (set_cu_language): Handle DW_LANG_Go.
+ * go-exp.y: New file.
+ * go-lang.h: New file.
+ * go-lang.c: New file.
+ * go-typeprint.c: New file.
+ * go-valprint.c: New file.
+ * symtab.c: #include "go-lang.h".
+ (symbol_set_language): Handle language_go.
+ (symbol_find_demangled_name, symbol_set_names): Ditto.
+ (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
+
+2012-04-24 Jim Meyering <meyering@redhat.com>
+
+ avoid a few strncpy-induced buffer overruns
+ * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
+ fname and psargs before trying to concatenate.
+ * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
+ "name" before applying strchr.
+
+2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
+
+ * CONTRIBUTE: Use unified diff instead of context diff when
+ generating patches.
+
+2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
+ code. Handle JR.HB correctly.
+
+2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c
+ (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
+ with the other MIPS16 helpers.
+
+2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * observer.sh: Conditionally declare `args', thus cleaning up
+ unused instances of this variable.
+
+2012-04-24 Yao Qi <yao@codesourcery.com>
+
+ Revert this patch to allow breakpoint always-inserted
+ in record target.
+ 2011-12-05 Pedro Alves <pedro@codesourcery.com>
+ * breakpoint.c: Include record.h.
+ (breakpoints_always_inserted_mode): Return false when the record
+ target is in use.
+
+ * breakpoint.c (iterate_over_bp_locations): New.
+ * breakpoint.h: Declare.
+ New typedef walk_bp_location_callback.
+ * record.c (record_open): Call record_init_record_breakpoints.
+ (record_sync_record_breakpoints): New.
+ (record_init_record_breakpoints): New.
+ * NEWS: Mention supporting breakpoint always-inserted mode in
+ record target.
- Code cleanup.
- * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
- values.
+2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
-2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
+ any thread.
- Code cleanup.
- * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
- (amd64_skip_xmm_prologue): ... this new function. Describe its
- parameters. No longer use amd64_prologue_line_bug.
- * defs.h (producer_is_gcc_ge_4): New declaration.
- * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
- (process_full_comp_unit): Update its caller. Remove
- amd64_prologue_line_bug initialization.
- * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
- * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
-
-2011-09-09 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.h (enum resume_kind): New.
- (struct lwp_info) <last_resume_kind>: New field.
- * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
- resume_stop on the new lwp.
- (add_lwp): Set last_resume_kind as resume_continue by default.
- (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
- (resume_lwp): New, factored out from resume_callback. Also check
- for pending status in lp->waitstatus.
- (resume_callback): Reimplement.
- (resume_clear_callback): Set last_resume_kind as resume_stop.
- (resume_set_callback): Set last_resume_kind as resume_continue.
- (linux_nat_resume, linux_handle_extended_wait): Set
- last_resume_kind.
- (running_callback): Also check lp->waitstatus for pending events.
- (select_singlestep_lwp_callback): Check that lp->last_resume_kind
- is resume_step.
- (stop_and_resume_callback): Don't re-resume if the core wanted the
- lwp stopped. Use resume_lwp instead of resume_callback. Avoid
- using an invalidated pointer.
- (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
- SIGSTOPs if the core wanted the LWP to stop.
- (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
- wanted the lwp to stop. If the core wanted the lwp to stop, and
- the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
- of TARGET_SIGNAL_STOP.
- (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
- here. Instead, signal the lwp, and set the last_resume_kind to
- resume_stop.
-
-2011-09-09 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
- -1 (error), if the lwp exits right after attaching.
-
-2011-09-08 Doug Evans <dje@google.com>
-
- * py-cmd.c: Some minor formatting fixes.
- (gdbpy_parse_command_name): Rename text arg to name, make const.
- All callers updated.
- * python-internal.h (gdbpy_parse_command_name): Update.
+2012-04-24 Yao Qi <yao@codesourcery.com>
- * cli/cli-decode.c (add_cmd): Add comment.
+ * breakpoint.c (ep_is_catchpoint): Renamed to ...
+ (is_catchpoint): ... it.
+ (print_one_breakpoint_location): Caller update.
+ * breakpoint.h: Update declaration.
-2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-04-23 David S. Miller <davem@davemloft.net>
- PR breakpoints/12435
- * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
- next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
- * dwarf2read.c (process_full_comp_unit): Initialize
- amd64_prologue_line_bug.
- * symtab.h (struct symtab): New field amd64_prologue_line_bug.
+ * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
-2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-04-23 Tom Tromey <tromey@redhat.com>
- Fix TUI screen corruption.
- * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
- batch_flag.
+ * buildsym.c (add_free_pendings): Remove.
+ * buildsym.h (add_free_pendings): Remove.
-2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-04-23 Doug Evans <dje@google.com>
- * findvar.c (read_var_value): Never return NULL, throw an error
- instead. Update the function comment. State symbol name in the error
- messages.
- * python/py-frame.c (frapy_read_var): Remove handling of NULL from
- read_var_value.
- * stack.c (print_frame_args): Likewise.
- * valops.c (value_of_variable): Likewise.
+ * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
+ attr.u.unsnd instead of attr.u.addr.
+ (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
+ DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
+ DW_FORM_ref_udata.
+ (dump_die_shallow): Update cases DW_FORM_ref_addr,
+ DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
+ DW_FORM_ref_udata.
+ (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
-2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
- * stack.c (print_frame_args): New variable except. Wrap
- read_var_value and common_val_print into TRY_CATCH.
+ * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
+ (mips_o32_return_value): Likewise.
+ (mips_o64_return_value): Likewise.
-2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
- * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
- caller to value_of_this.
- * p-exp.y: Update the value_of_this caller to value_of_this_silent.
- Twice.
- * valops.c (value_of_this): Remove parameter complain and variable ret.
- Update function comment. Never return NULL by this code.
- (value_of_this_silent): New function.
- * value.h (value_of_this): Remove parameter complain.
- (value_of_this_silent): New declaration.
+ * ada-lang.c (ada_evaluate_subexp): Add cases for
+ TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
+ their treatment in eval.c.
-2011-09-07 Yao Qi <yao@codesourcery.com>
+2012-04-21 David S. Miller <davem@davemloft.net>
- * gdbthread.h (struct thread_info): Remove fields
- `stepping_through_solib_after_catch' and
- `stepping_through_solib_catchpoints'.
- * infrun.c (init_thread_stepping_state): Update.
- (process_event_stop_test, currently_stepping): Update.
- (currently_stepping_or_nexting_callback): Update.
+ * sparc-tdep.c (X_DISP10): Define.
+ (sparc_analyze_control_transfer): Handle compare-and-branch.
-2011-09-07 Yao Qi <yao@codesourcery.com>
+2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
- * gdbthread.h (struct thread_info): Comment on field
- `step_after_step_resume_breakpoint'.
+ * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
+ * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
-2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
+2012-04-20 Nigel Stephens <nigel@mips.com>
+ Maciej W. Rozycki <macro@codesourcery.com>
- * remote.c (remote_console_output): Reindent.
+ * mips-tdep.c (mips_float_register_p): New function.
+ (mips_convert_register_float_case_p): Use mips_float_register_p.
+ (mips_register_type): Likewise.
+ (mips_print_register): Likewise.
+ (print_gp_register_row): Likewise.
+ (mips_print_registers_info): Likewise.
-2011-09-06 Luis Machado <lgustavo@codesourcery.com>
+2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
- * frame.c (has_stack_frames): Check for currently selected
- traceframe.
+ * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
+ of mips16 symbols.
-2011-09-06 Pedro Alves <pedro@codesourcery.com>
+2012-04-20 Andrew Pinski <apinski@cavium.com>
- * event-top.h (MAXPROMPTS, struct prompts): Delete.
- (set_async_annotation_level, set_async_prompt, pop_prompt)
- (push_prompt, new_async_prompt): Delete declarations.
- * top.h (get_prompt, set_prompt): Change prototype.
- (get_prefix, set_prefix, get_suffix, set_suffix): Delete
- declarations.
- * top.c (command_loop):
- (top_prompt): New global.
- (get_prefix, set_prefix, get_suffix, ): Delete.
- (get_prompt, set_prompt): Rewrite.
- (show_new_async_prompt): Rename to ...
- (show_prompt): ... this.
- (init_main): Adjust. Don't handle --annotate=2 here.
- * event-top.c (new_async_prompt): Delete.
- (the_prompts): Delete.
- (more_to_come): Make static.
- (display_gdb_prompt): Use top_level_prompt() to compute the top
- level prompt, and don't notify the before_prompt observers
- directly here. Always trick readline into not trying to display
- the prompt if sync_execution and displaying the primary prompt.
- If displaying a local/secondary prompt, always show it, even if
- sync_execution is set.
- (change_annotation_level): Delete.
- (top_level_prompt): New, based on change_annotation_level.
- (push_prompt, pop_prompt): Delete.
- (async_disable_stdin): No longer pushes prompt.
- (command_line_handler): No longer pushes or pops prompt. If more
- input is expected, call display_gdb_prompt with an explicit empty
- prompt.
- (async_stop_sig): Adjust.
- (set_async_annotation_level, set_async_prompt): Delete.
- * python/python.c (before_prompt_hook): Adjust.
-
-2011-09-05 Pedro Alves <pedro@codesourcery.com>
-
- PR cli/13110
-
- * infrun.c (fetch_inferior_event): Check if there's a selected
- thread before checking if the selected thread is executing.
-
-2011-09-05 Pedro Alves <pedro@codesourcery.com>
-
- * inf-loop.c (execute_command): Don't check if the current thread
- if running before synchronously waiting for command completion.
- * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
- here.
- (normal_stop): Call async_enable_stdin here.
- * inf-loop.c (inferior_event_handler): Don't call
- async_enable_stdin, nor handle "set exec-done-display" here.
+ * MAINTAINERS (Write After Approval): Add myself to the list.
-2011-09-04 Joel Brobecker <brobecker@adacore.com>
+2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
- GDB 7.3.1 released.
+ * MAINTAINERS: Update my e-mail address.
-2011-09-04 Joel Brobecker <brobecker@adacore.com>
+2012-04-20 Pedro Alves <palves@redhat.com>
- * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
+ * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
+ $srcdir.
+ * configure: Regenerate.
-2011-09-04 Joel Brobecker <brobecker@adacore.com>
+2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
- * NEWS: Add entry for OpenBSD/NetBSD build failure.
+ * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
+ declaration.
+ * gdb_vecs.h: Declare `const_char_ptr' VEC.
+
+2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix compilation compatibility with python-2.4
+ * python/py-type.c (convert_field): Cast ADDRSTRING for
+ PyObject_SetAttrString as non-const. New comment.
+
+2012-04-19 Tom Tromey <tromey@redhat.com>
+
+ * top.c (quit_target): Use all_cleanups.
+ * main.c (captured_command_loop): Use all_cleanups.
+ * exceptions.c (throw_exception): Use all_cleanups.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (GNULIB_BUILDDIR): New.
+ (LIBGNU, INCGNU, GNULIB_H): Adjust.
+ (SUBDIRS): Add $(GNULIB_BUILDDIR).
+ (CLEANDIRS). Remove gnulib/import.
+ (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
+ (all-lib): Ditto.
+ (distclean): Remove the $(GNULIB_BUILDDIR) directory.
+ (gnulib/import/Makefile): Replace gnulib/import with
+ $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
+ (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
+ (aclocal_m4_deps): Remove the gnulib dependencies. Add
+ acx_configure_dir.m4.
+ * acinclude.m4: Include acx_configure_dir.m4.
+ * acx_configure_dir.m4: New file.
+ * aclocal.m4: Regenerate.
+ * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
+ calls. Configure gnulib using ACX_CONFIGURE_DIR.
+ (GNULIB): New variable.
+ (GNULIB_STDINT_H): Adjust.
+ (AC_OUTPUT): Don't output gnulib/Makefile.
+ * gdb/defs.h: Include build-gnulib/config.h.
+ * aclocal.m4: Regenerate.
+ * config.in: Regenerate.
+ * configure: Regenerate.
-2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * gnulib/Makefile.in: New file.
+ * gnulib/configure.ac: New file.
+ * gnulib/aclocal.m4: New file.
+ * gnulib/config.in: New file.
+ * gnulib/configure: New file.
+ * gnulib/: Re-run gnulib-tool to adjust.
+
+2012-04-19 Doug Evans <dje@google.com>
+
+ * cleanups.h (struct cleanup): Move to cleanups.c.
+ (make_cleanup_dtor_ftype): New typedef.
+ (make_cleanup_dtor): Use it.
+ (ALL_CLEANUPS): Replace with ...
+ (all_cleanups): ... this. Declare. All uses updated.
+ * cleanups.c: #include "gdb_assert.h".
+ (sentinel_cleanup): New static global.
+ (SENTINEL_CLEANUP): Define.
+ (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
+ (make_my_cleanup2): Assert result is non-NULL.
+ (all_cleanups): New function.
+ (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
+ of NULL.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
+ Adjust paths to gnulib imported files.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * gnulib/: Move whole directory ...
+ * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
+ * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
+ (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
+ (aclocal_m4_deps): Adjust.
+ * aclocal.m4: Regenerate.
+ * configure: Regenerate.
+ * configure.ac: Adjust AC_OUTPUT output.
+
+2012-04-19 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
+ (vec.o): New rule.
+ * vec.c: Move it ...
+ * common/vec.c: ... here.
+ * vec.h: Move it ...
+ * common/vec.h: ... here.
+
+2012-04-19 Yao Qi <yao@codesourcery.com>
+
+ * gdb-code-style.el: New.
+
+2012-04-18 Pedro Alves <palves@redhat.com>
+
+ Update gnulib from latest git.
+ (639ea5ae15e39fe48d43e04864b2997301e4b969)
+
+ * gnulib/Makefile.am: Update.
+ * gnulib/dummy.c: Update.
+ * gnulib/extra/arg-nonnull.h: Update.
+ * gnulib/extra/c++defs.h: Update.
+ * gnulib/extra/update-copyright: Update.
+ * gnulib/extra/warn-on-use.h: Update.
+ * gnulib/inttypes.in.h: Update.
+ * gnulib/m4/00gnulib.m4: Update.
+ * gnulib/m4/extensions.m4: Update.
+ * gnulib/m4/gnulib-cache.m4: Update.
+ * gnulib/m4/gnulib-common.m4: Update.
+ * gnulib/m4/gnulib-comp.m4: Update.
+ * gnulib/m4/gnulib-tool.m4: Update.
+ * gnulib/m4/include_next.m4: Update.
+ * gnulib/m4/inttypes-pri.m4: Update.
+ * gnulib/m4/inttypes.m4: Update.
+ * gnulib/m4/longlong.m4: Update.
+ * gnulib/m4/memchr.m4: Update.
+ * gnulib/m4/memmem.m4: Update.
+ * gnulib/m4/mmap-anon.m4: Update.
+ * gnulib/m4/multiarch.m4: Update.
+ * gnulib/m4/onceonly.m4: Update.
+ * gnulib/m4/stddef_h.m4: Update.
+ * gnulib/m4/stdint.m4: Update.
+ * gnulib/m4/string_h.m4: Update.
+ * gnulib/m4/warn-on-use.m4: Update.
+ * gnulib/m4/wchar_h.m4: Update.
+ * gnulib/m4/wchar_t.m4: Update.
+ * gnulib/m4/wint_t.m4: Update.
+ * gnulib/memchr.c: Update.
+ * gnulib/memmem.c: Update.
+ * gnulib/stddef.in.h: Update.
+ * gnulib/stdint.in.h: Update.
+ * gnulib/str-two-way.h: Update.
+ * gnulib/string.in.h: Update.
+ * gnulib/wchar.in.h: Update.
+
+ * gnulib/extra/arg-nonnull.h: Delete.
+ * gnulib/extra/c++defs.h: Delete.
+ * gnulib/extra/warn-on-use.h: Delete.
+ * gnulib/m4/wchar_h.m4: Delete.
+ * gnulib/m4/wint_t.m4: Delete.
+ * gnulib/wchar.in.h: Delete.
+
+ * gnulib/extra/snippets/arg-nonnull.h: New.
+ * gnulib/extra/snippets/c++defs.h: New.
+ * gnulib/extra/snippets/warn-on-use.h: New.
+
+ * aclocal.m4: Regenerate.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * gnulib/Makefile.in: Regenerate.
- * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
+2012-04-18 Pedro Alves <palves@redhat.com>
-2011-09-02 Matt Rice <ratmice@gmail.com>
+ Reimport the update-copyright module from gnulib
+ (250b80067c1e1d8faa0c42fb572f721975b929c5).
- PR gdb/10720
- * event-top.c (cli_command_loop): Replace readline setup with
- direct call to display_gdb_prompt.
- (display_gdb_prompt): Do not call observer mechanism during
- synchronous execution.
+ * configure: Regenerate.
+ * gnulib/Makefile.am: Update.
+ * gnulib/Makefile.in: Regenerate.
+ * gnulib/extra/update-copyright: Update.
+ * gnulib/m4/gnulib-cache.m4: Update.
+ * gnulib/m4/gnulib-comp.m4: Update.
-2011-09-02 Pedro Alves <pedro@codesourcery.com>
+2012-04-18 Tristan Gingold <gingold@adacore.com>
- * linux-nat.c (in_pid_list_p): New.
- (linux_record_stopped_pid): Delete.
- (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
- already attached to the LWP. Return an indication if so.
- (linux_nat_filter_event): Adjust.
- * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
- returning an indication to ignore this thread.
+ * configure.ac (aix): Put -lpthread into libs.
+ * configure: Regenerate.
-2011-09-02 Pedro Alves <pedro@codesourcery.com>
+2012-04-18 Tom Tromey <tromey@redhat.com>
- * top.c: Include interps.h.
- (execute_command): If the target can async, but the interpreter is
- in sync mode, synchronously wait for the command to finish before
- returning.
- (execute_command_to_string): Force the interpreter to sync mode.
- * infrun.c: Include interps.h.
- (fetch_inferior_event): Don't restore the prompt yet if the
- interpreter is in sync mode.
- * interps.c (interpreter_async): New global.
- * interps.h (interpreter_async): Declare.
- * inf-loop.c: Include interps.h.
- (inferior_event_handler): Don't print the language change or run
- breakpoint commands yet if the interpreter in is sync mode.
- * main.c (captured_command_loop): Flip the interpreter to async
- mode.
- * cli/cli-script.c: Include interps.h.
- (execute_user_command, while_command, if_command): Force the
- interpreter to sync mode.
- * python/python.c: Include interps.h.
- (python_command, execute_gdb_command): Force the interpreter to
- sync mode.
+ * linespec.c (convert_linespec_to_sals): Don't use
+ SYMBOL_OBJ_SECTION.
+ (compare_msymbols): Arguments are minsym_and_objfile, not
+ minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
-2011-09-02 Pedro Alves <pedro@codesourcery.com>
+2012-04-18 Pedro Alves <palves@redhat.com>
- * value.c (show_convenience): Catch errors thrown while printing
- each internal variable.
- * infrun.c (validate_siginfo_access): New function.
- (siginfo_value_read, siginfo_value_write): Call it.
+ Revert gnulib/ part of:
+ 2011-01-01 Joel Brobecker <brobecker@adacore.com>
+ Copyright year update in most files (performed by copyright.sh).
-2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix 64-bit constants on 32-bit hosts.
+ * dwarf2read.c (read_unsigned_leb128): Change declaration return type
+ from unsigned long to ULONGEST.
+ (read_signed_leb128): Change declaration return type from long to
+ LONGEST.
+ (dwarf2_const_value_attr): Change declaration parameter value from long
+ to LONGEST.
+ (dwarf2_compute_name): Change variable value from long to LONGEST.
+ (read_unsigned_leb128): Change return type, variable result and some
+ casts from unsigned long to ULONGEST.
+ (read_signed_leb128): Change return type, variable result and some
+ casts from long to LONGEST.
+ (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
+ value from long to LONGEST.
+ (dwarf2_const_value): Change variable value from long to LONGEST.
+ * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
+ plongest and hex_string.
+ * symtab.h (struct general_symbol_info): Change ivalue from long to
+ LONGEST, remove the comment.
+ * tracepoint.c (validate_actionline, collect_symbol, scope_info):
+ Change SYMBOL_VALUE format strings to use plongest and hex_string.
+
+2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ PR symtab/7259:
+ * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
+ * ada-lang.c (ada_discrete_type_high_bound)
+ (ada_discrete_type_low_bound): Fix function comment. Use
+ TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+ (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
+ (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+ * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
+ Use TYPE_FIELD_ENUMVAL.
+ * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
+ (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+ * c-typeprint.c (c_type_print_base): Move variable lastval to inner
+ block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
+ TYPE_CODE_ENUM.
+ * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
+ * dwarf2read.c (process_enumeration_scope): Likewise.
+ * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
+ field.bitpos.
+ (class StructMainTypePrettyPrinter): Support also
+ FIELD_LOC_KIND_ENUMVAL.
+ * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
+ TYPE_CODE_ENUM.
+ (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+ (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
+ * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
+ (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
+ field enumval.
+ (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
+ accommodate enumval.
+ (struct call_site): Adjust loc_kind to accommodate enumval.
+ (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
+ (TYPE_FIELD_ENUMVAL): New macros.
+ * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
+ * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
+ TYPE_CODE_ENUM.
+ * p-typeprint.c (pascal_type_print_base): Likewise.
+ * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
+ enumval.
+ * python/lib/gdb/types.py (make_enum_dict): Likewise.
+ * python/py-type.c (convert_field): New variable addrstring. Use
+ TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+ (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
+ * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
+ * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
+ TYPE_CODE_ENUM.
+ * valprint.c (generic_val_print): Likewise.
+
+2012-04-17 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
+
+ * dwarf2read.c: Whitespace fixes.
+ (lookup_signatured_type): Tweak comment.
+ (get_die_type_at_offset): Fix comment.
+
+2012-04-17 Joel Brobecker <brobecker@adacore.com>
+
+ * xcoffread.c (xcoff_secnum_to_sections): New function.
+ (secnum_to_section, secnum_to_bfd_section): Reimplement
+ using xcoff_secnum_to_sections. Rename "secnum" parameter
+ into "n_scnum".
+ (RECORD_MINIMAL_SYMBOL): Delete.
+ (record_minimal_symbol): New function.
+ (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
+ by call to record_minimal_symbol and set misc_func_recorded
+ to 1. Set last_csect_sec to the XCOFF section index instead
+ of GDB's section_offset index. Update calls to
+ prim_record_minimal_symbol_and_info to pass the BFD section
+ as well.
+
+2012-04-17 Joel Brobecker <brobecker@adacore.com>
+
+ * xcoffread.c (read_xcoff_symtab): Delete variables
+ last_csect_val and last_csect_sec and associated code.
+
+2012-04-17 Doug Evans <dje@google.com>
+
+ * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
+ (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
+ * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
+ (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
+
+ * cleanups.h: New file.
+ * cleanups.c: New file.
+ * Makefile.in (SFILES): Add cleanups.c.
+ (HFILES_NO_SRCDIR): Add cleanups.h.
+ (COMMON_OBS): Add cleanups.o.
+ * defs.h (struct cleanup): Moved to cleanups.h.
+ (do_cleanups,do_final_cleanups): Ditto.
+ (discard_cleanups,discard_final_cleanups): Ditto
+ (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
+ (save_cleanups,save_final_cleanups): Ditto.
+ (restore_cleanups,restore_final_cleanups): Ditto.
+ (null_cleanup): Ditto.
+ (make_my_cleanup,make_my_cleanup2): Ditto.
+ (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
+ * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
+ (do_cleanups,do_final_cleanups): Ditto.
+ (discard_cleanups,discard_final_cleanups): Ditto
+ (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
+ (save_cleanups,save_final_cleanups): Ditto.
+ (restore_cleanups,restore_final_cleanups): Ditto.
+ (null_cleanup): Ditto.
+ (make_my_cleanup,make_my_cleanup2): Ditto.
+ (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
+
+ * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
+ make_my_cleanup.
+ (make_cleanup_dyn_string_delete): Ditto.
+ (make_cleanup_ui_file_delete): Ditto.
+ (make_cleanup_ui_out_redirect_pop): Ditto.
+ (make_cleanup_free_section_addr_info): Ditto.
+ (make_cleanup_restore_integer): Ditto.
+ (make_cleanup_unpush_target): Ditto.
+ (make_cleanup_value_free_to_mark): Ditto.
+ (make_cleanup_value_free): Ditto.
+ (make_cleanup_free_so): Ditto.
+
+2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ New option "set debug auto-load".
+ * NEWS: New commands "set debug auto-load" and "show debug auto-load".
+ * auto-load.c (debug_auto_load, show_debug_auto_load: New.
+ (auto_load_safe_path_vec_update)
+ (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
+ if DEBUG_AUTO_LOAD.
+ (file_is_auto_load_safe): New parameters debug_fmt and ....
+ Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
+ (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
+ caller by explanatory string.
+ (_initialize_auto_load): Register "set debug auto-load".
+ * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
+ and ....
+ * linux-thread-db.c (try_thread_db_load_from_pdir_1)
+ (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
+ by explanatory string.
+ * main.c (captured_main): Likewise.
+ * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
+ (source_section_scripts): Likewise.
+
+2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ New option "set auto-load safe-path".
+ * NEWS: New commands "set auto-load safe-path"
+ and "show auto-load safe-path".
+ * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
+ (auto_load_safe_path, auto_load_safe_path_vec)
+ (auto_load_safe_path_vec_update, set_auto_load_safe_path)
+ (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
+ (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
+ (source_gdb_script_for_objfile): New variable is_safe. Call
+ file_is_auto_load_safe. Return if it is not.
+ (struct loaded_script): New field loaded.
+ (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
+ (print_script): Use LOADED indicator instead of FULL_PATH. Change
+ output "Missing" to "No".
+ (_initialize_auto_load): New variable cmd. Initialize
+ auto_load_safe_path. Register "set auto-load safe-path",
+ "show auto-load safe-path" and "add-auto-load-safe-path".
+ * auto-load.h (maybe_add_script): Add parameter loaded.
+ (file_is_auto_load_safe): New declaration.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * configure.ac: New parameters --with-auto-load-safe-path
+ and --without-auto-load-safe-path.
+ * linux-thread-db.c (try_thread_db_load_from_pdir_1)
+ (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
+ * main.c (captured_main): Check file_is_auto_load_safe for
+ LOCAL_GDBINIT.
+ * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
+ variable is_safe. Call file_is_auto_load_safe. Return if it is not.
+ (source_section_scripts): Call file_is_auto_load_safe. Return if it is
+ not.
+
+2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ auto-load: Implementation.
+ * NEWS: New descriptions for "info auto-load",
+ "info auto-load gdb-scripts", "info auto-load python-scripts",
+ "info auto-load local-gdbinit" and "info auto-load libthread-db".
+ Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
+ and "show auto-load-scripts". New description for "set auto-load",
+ "show auto-load", "set auto-load gdb-scripts",
+ "show auto-load gdb-scripts", "set auto-load python-scripts",
+ "show auto-load python-scripts", "set auto-load local-gdbinit",
+ "show auto-load local-gdbinit", "set auto-load libthread-db" and
+ "show auto-load libthread-db".
+ * auto-load.c: Remove include python/python-internal.h. Add includes
+ exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
+ cli/cli-setshow.h.
+ (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
+ (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
+ (gdbpy_global_auto_load): Rename to ...
+ (global_auto_load): ... here.
+ (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
+ (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
+ (script_language_gdb, source_gdb_script_for_objfile): New.
+ (struct loaded_script): New field language.
+ (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
+ LANGUAGE.
+ (maybe_add_script): Add parameter language. Drop redundant
+ entry.full_path initialization. Initialize entry.language and
+ (*slot)->language.
+ (auto_load_objfile_script): Change parameter suffix to language.
+ Remove the call of maybe_add_script.
+ Call language->source_script_for_objfile.
+ (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
+ New.
+ (collect_matching_scripts): Adjust it for
+ struct collect_matching_scripts_data.
+ (auto_load_info_scripts_pattern_nl): New variable.
+ (info_auto_load_scripts): Rename to ...
+ (auto_load_info_scripts): ... here, add parameter language. Adjust it
+ for struct collect_matching_scripts_data.
+ (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
+ (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
+ (auto_load_show_cmdlist_get, info_auto_load_cmd)
+ (auto_load_info_cmdlist_get): New.
+ (_initialize_auto_load): Move add_info of "auto-load-scripts" to
+ python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
+ "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
+ "info auto-load local-gdbinit".
+ * auto-load.h (struct script_language): New.
+ (gdbpy_global_auto_load): Rename to ...
+ (global_auto_load): ... here.
+ (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
+ (auto_load_local_gdbinit_loaded): New declarations.
+ (maybe_add_script): New parameter language.
+ (auto_load_objfile_script): Change parameter suffix to language.
+ (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
+ (auto_load_info_scripts, auto_load_set_cmdlist_get)
+ (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
+ declarations.
+ * linux-thread-db.c: Include auto-load.h and ctype.h.
+ (auto_load_thread_db, show_auto_load_thread_db): New.
+ (struct thread_db_info): New field filename.
+ (delete_thread_db_info): Call xfree for FILENAME.
+ (try_thread_db_load): Initialize FILENAME.
+ (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
+ if !AUTO_LOAD_THREAD_DB.
+ (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
+ (_initialize_thread_db): Install auto_load_thread_db
+ as "set auto-load libthread-db" and install info_auto_load_libthread_db
+ as "info auto-load libthread-db".
+ * main.c (captured_main): Rename gdbpy_global_auto_load to
+ global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
+ AUTO_LOAD_LOCAL_GDBINIT_LOADED.
+ (print_gdb_help): Extend the help for 'local init file'.
+ * python/py-auto-load.c: Remove a comment about gdb scripts extension.
+ (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
+ (auto_load_scripts): Rename to ...
+ (auto_load_python_scripts): ... here, update the comment.
+ (gdbpy_load_auto_script_for_objfile): New declaration.
+ (show_auto_load_python_scripts, script_language_python)
+ (gdbpy_load_auto_script_for_objfile): New.
+ (source_section_scripts): Refactor the code.
+ (load_auto_scripts_for_objfile): Rename to ...
+ (gdbpy_load_auto_scripts_for_objfile): ... here, update the
+ auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
+ (info_auto_load_python_scripts): New.
+ (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
+ Rename "set auto-load-scripts" to "set auto-load python-scripts".
+ Register "set auto-load-scripts" as its deprecated alias. Register
+ "info auto-load python-scripts". Register "info auto-load-scripts" as
+ its deprecated alias.
+ (load_auto_scripts_for_objfile): Rename to ...
+ (gdbpy_load_auto_scripts_for_objfile): ... here.
+ * python/python.h (load_auto_scripts_for_objfile): Rename to ...
+ (gdbpy_load_auto_scripts_for_objfile): ... here.
+
+2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ auto-load: Move files.
+ * Makefile.in (SFILES): Add auto-load.c.
+ (HFILES_NO_SRCDIR): Add auto-load.h.
+ (COMMON_OBS): Add auto-load.o.
+ (distclean): Change .gdbinit for gdb-gdb.gdb.
+ * auto-load.c: New file, with parts from python/py-auto-load.c.
+ * auto-load.h: New file, with parts from python/python.h.
+ * configure: Regenerate.
+ * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
+ * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
+ * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
+ * main.c: Include auto-load.h.
+ * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
+ command.h, observer.h and progspace.h to auto-load.c. Add include
+ auto-load.h.
+ (gdbpy_global_auto_load, struct auto_load_pspace_info)
+ (struct loaded_script, auto_load_pspace_data)
+ (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
+ (hash_loaded_script_entry, eq_loaded_script_entry)
+ (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
+ (maybe_add_script): Move to auto-load.c.
+ (source_section_scripts): Change maybe_add_script parameters passing,
+ use script_not_found_warning_print.
+ (clear_section_scripts, auto_load_objfile_script)
+ (auto_load_new_objfile, loaded_script_ptr)
+ (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
+ (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
+ (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
+ auto_load_new_objfile and info_auto_load_scripts initizations to
+ auto-load.c.
+ * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
+
+2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
- Revert:
- 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
- * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
- attribute.
+ Code cleanup.
+ * charset.c (find_charset_names): Remove variables ix and elt.
+ Use free_char_ptr_vec.
+ * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
+ back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
+ debugdir_end. New variable debugdir_len.
+ * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
+ (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
+ declarations.
+ * progspace.c (clear_program_space_solib_cache): Remove variables ix
+ and elt. Use free_char_ptr_vec.
+ * source.c (add_path): Remove variables argv, arg and argv_index.
+ New variables dir_vec, back_to, ix and name.
+ Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
+ make_cleanup_freeargv. Remove variable separator. Simplify the code
+ no longer expecting DIRNAME_SEPARATOR.
+ (openp): Remove variable p, p1 and len. New variables dir_vec,
+ back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
+ no longer expecting DIRNAME_SEPARATOR.
+ * symfile.c (find_separate_debug_file): New variables debugdir_vec,
+ back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
+ debugdir_end.
+ * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
+ (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
+ (dirnames_to_char_ptr_vec): New functions.
+
+2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-08-29 Yao Qi <yao@codesourcery.com>
+ Code cleanup.
+ * source.c (add_path): Remove always true conditional 'p == 0' and
+ unindent its code block.
+
+2012-04-17 Pedro Alves <palves@redhat.com>
+
+ * gdbtypes.h (FIELD_BITPOS): Rename to ...
+ (FIELD_BITPOS_LVAL): ... this.
+ (FIELD_BITPOS): New.
+ (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
+ * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
+ * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
+ SET_FIELD_BITPOS.
+ * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
+ SET_FIELD_BITPOS.
+ * stabsread.c (read_cpp_abbrev, read_one_struct_field)
+ (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
+ * target-descriptions.c (tdesc_gdb_type): Adjust to use
+ SET_FIELD_BITPOS.
+
+2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Do not rely on FIELD_LOC_KIND_BITPOS being zero.
+ * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
+ TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
+ * gdbtypes.c (append_flags_type_flag): Likewise, twice.
+ * jv-lang.c (java_link_class_type): Likewise, once.
+ * stabsread.c (read_enum_type): Likewise.
+
+2012-04-16 Yao Qi <yao@codesourcery.com>
+
+ * common/agent.c (agent_run_command): Add one more parameter `len'.
+ Update callers.
+ * common/agent.h: Update declaration.
+ * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
+ Update.
+ (linux_child_static_tracepoint_markers_by_strid): Ditto.
- * solib-dsbt.c (bfd_lookup_symbol): Removed.
- (cmp_name): New.
- (enable_break2): Update caller.
- * solib-frv.c (bfd_lookup_symbol): Removed.
- (cmp_name): New.
- (enable_break2): Update caller.
- * solib-pa64.c (bfd_lookup_symbol): Removed.
- (cmp_name): New.
- * solib-svr4.c (bfd_lookup_symbol): Removed.
- (cmp_name_and_sec_flags): New.
- (enable_break): Update caller.
- * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
- (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
- (gdb_bfd_lookup_symbol): New.
- * solib.h: Functions declarations.
+2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
-2011-08-29 Yao Qi <yao@codesourcery.com>
+ PR mi/13393
+ * value.c (value_actual_type): New function.
+ * value.h (value_actual_type): New declaration.
+ * varobj.c (update_type_if_necessary): New function.
+ (varobj_create): Call value_actual_type instead of
+ value_type.
+ (install_dynamic_child): distinct changed and type changed MI variable
+ objects.
+ (update_dynamic_varobj_children): Updated for install_dynamic_child
+ change. All callers updated.
+ (varobj_update): Support for MI variable object type change if
+ the value changed and RTTI is used to determine the type.
+ (create_child_with_value): Call value_actual_type instead of
+ value_type.
+ (adjust_value_for_child_access): Extended with a new parameter which
+ specify whether the given value should be casted to enclosing type.
+ All callers updated.
- * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
- and solib-dsbt.o.
+2012-04-14 Yao Qi <yao@codesourcery.com>
-2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Import gnulib module inttypes from git
+ (250b80067c1e1d8faa0c42fb572f721975b929c5)
+ * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
+ (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
+ gnulib/m4/inttypes-pri.m4
+ * aclocal.m4, config.in, configure: Regenerated.
+ * gnulib/Makefile.am: Update.
+ * gnulib/Makefile.in: Update.
+ * gnulib/m4/gnulib-cache.m4: Update.
+ * gnulib/m4/gnulib-comp.m4: Update.
+ * gnulib/inttypes.in.h: New.
+ * gnulib/m4/inttypes-pri.m4: New.
+ * gnulib/m4/inttypes.m4: New.
- Fix TUI stepi on code without symbols.
- * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
- current PC instead.
+2012-04-13 Luis Machado <lgustavo@codesourcery.com>
-2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * infrun.c (resume): Update PC address to the real PC after
+ preparing to do displaced stepping.
- Code cleanup.
- * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
- and the static keyword.
- * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
- Make prefix an array.
- * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
- * mi/mi-main.c (get_register): Remove stb initialization and the static
- keyword.
-
-2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Code cleanup - make mi_opt const.
- * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
- opts const.
- * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
- * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
- (mi_cmd_env_dir): Likewise.
- * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
- (mi_cmd_target_file_put): Likewise.
- * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
- * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
- * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
- (mi_valid_noargs): Make opts const.
- * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
- * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
- (mi_cmd_data_read_memory): Likewise.
- (mi_cmd_data_read_memory_bytes): Likewise.
- (mi_cmd_data_write_memory): Likewise.
-
-2011-08-26 Matt Rice <ratmice@gmail.com>
-
- * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
- bcache_xmalloc, replace bcache_xmalloc with call to
- psymbol_bcache_init for psymbol_cache.
- * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
-
-2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * inf-loop.c (inferior_event_handler): Add exception_print in
- INF_EXEC_COMPLETE.
-
-2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
- make_bpstat_clear_actions_cleanup and discard_cleanups for it.
- * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
- * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
- * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
- call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
- Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
- * infrun.c (fetch_inferior_event): Call
- make_bpstat_clear_actions_cleanup.
- * top.c (execute_command): New variable cleanup_if_error, call
- make_bpstat_clear_actions_cleanup and discard_cleanups for it.
- * utils.c (do_bpstat_clear_actions_cleanup)
- (make_bpstat_clear_actions_cleanup): New functions.
-
-2011-08-26 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
- either the parent or the child forks. Rename a couple locals.
-
-2011-08-26 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
- library call. Avoid reading the `status' local if all waitpid
- calls failed.
-
-2011-08-26 Pedro Alves <pedro@codesourcery.com>
-
- * common/linux-osdata.c (get_cores_used_by_process): Don't assume
- opening /proc/PID/task always succeeds.
-
-2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
-
- * linespec.c (symtab_from_filename): Check for the end of string.
-
-2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
-
- PR mi/11912
- * varobj.c (cplus_describe_child): Add the keyword
- 'class' to the output of the method when dealing
- with a cast to a base class.
-
-2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- No functionality change.
- * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
- function comment a reference, new variables tp and bs, move here code
- from throw_exception.
- * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
- describe it in the comment.
- * exceptions.c (throw_exception): Remove variable tp, move the code for
- bpstat_clear_actions to bpstat_clear_actions.
-
-2011-08-24 Luis Machado <lgustavo@codesourcery.com>
-
- * linux-nat.h (linux_proc_get_tgid): Remove declaration.
- * linux-nat.c: Include linux-procfs.h.
- (linux_proc_get_tgid): Move to ...
- * common/linux-procfs.c: ... here. New file.
- * common/linux-procfs.h: New file.
- * linux-thread-db.c: Include linux-procfs.h.
- * Makefile.in: Update dependencies.
- * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
- * config/arm/linux.mh: Likewise.
- * config/i386/linux.mh: Likewise.
- * config/i386/linux64.mh: Likewise.
- * config/ia64/linux.mh: Likewise.
- * config/m32r/linux.mh: Likewise.
- * config/m68k/linux.mh: Likewise.
- * config/mips/linux.mh: Likewise.
- * config/pa/linux.mh: Likewise.
- * config/pa/linux.mh: Likewise.
- * config/powerpc/linux.mh: Likewise.
- * config/powerpc/ppc64-linux.mh: Likewise.
- * config/powerpc/spu-linux.mh: Likewise.
- * config/sparc/linux.mh: Likewise.
- * config/sparc/linux64.mh: Likewise.
- * config/xtensa/linux.mh: Likewise.
+2012-04-12 Doug Evans <dje@google.com>
-2011-08-24 Hui Zhu <teawater@gmail.com>
+ * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
+ All callers updated.
- * tracepoint.c (cond_string_is_same): New function.
- (find_matching_tracepoint): Add condition check
- by cond_string_is_same.
+2012-04-12 Mark Kettenis <kettenis@gnu.org>
-2011-08-23 Josh Matthews <josh@joshmatthews.net>
+ * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
- Fix build error in Darwin port.
- * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
+2012-04-12 Doug Evans <dje@google.com>
-2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * dwarf2read.c (create_all_type_units): Renamed from
+ create_debug_types_hash_table. All callers updated.
- Code cleanup.
- * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
- (command_line_is_silent): New function.
- (bpstat_do_actions_1): No longer use commands_left, use
- command_line_is_silent for commands.
- (bpstat_alloc): Remove clearing of commands_left.
- (bpstat_stop_status): Remove initialization of commands_left, use
- command_line_is_silent.
- * breakpoint.h (struct bpstats): Remove commands_left.
-
-2011-08-18 Keith Seitz <keiths@redhat.com>
-
- PR c++/12266
- * cp-name-parser.y (struct demangle_info): Remove unused
- member PREV.
- (d_grab): Likewise.
- (allocate_info): Change return type to struct demangle_info *.
- Always allocate a new demangle_info.
- Remove unused PREV pointer.
- (cp_new_demangle_parse_info): New function.
- (cp_demangled_name_parse_free): New function.
- (do_demangled_name_parse_free_cleanup): New function.
- (make_cleanup_cp_demangled_name_parse_free): New function.
- (cp_demangled_name_to_comp): Change return type to
- struct demangle_parse_info *.
- Allocate a new storage for each call.
- (main): Update usage for cp_demangled_name_to_comp
- API change.
- * cp-support.h (struct demangle_parse_info): New structure.
- (cp_demangled_name_to_comp): Update API change for
- return type.
- (cp_new_demangle_parse_info): Declare.
- (make_cleanup_cp_demangled_name_parse_free): New declaration.
- (cp_demangled_name_parse_free): Declare.
- * cp-support.c (cp_canonicalize_string): Update API
- change for cp_demangled_name_to_comp.
- (mangled_name_to_comp): Likewise.
- Return struct demangle_parse_info, too.
- (cp_class_name_from_physname): Update mangled_name_to_comp
- API change.
- (method_name_from_physname): Likewise.
- (cp_func_name): Update API change for cp_demangled_name_to_comp.
- (cp_remove_params): Likewise.
- * python/py-type.c (typy_legacy_template_argument): Likewise.
-
- * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
- (cp_merge_demangle_parse_infos): Declare.
- * cp-support.c (ignore_typedefs): New file global.
- (copy_string_to_obstack): New function.
- (inspect_type): New function.
- (replace_typedefs): New function.
- (replace_typedefs_qualified_name): New function.
- (cp_canonicalize_string_no_typedefs): New function.
- * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
- (cp_new_demangle__parse_info): Allocate and initialize the obstack.
- * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
- instead of cp_canonicalize_string.
- (find_method): Likewise.
- (decode_compound): Before looking up the name, call
- cp_canonicalize_string_no_typedefs.
- (decode_variable): Likewise.
-
-2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
- Tom Tromey <tromey@redhat.com>
- Matt Rice <ratmice@gmail.com>
-
- * python/lib/gdb/prompt.py: New file.
- * python/lib/gdb/command/prompt.py: New file.
- * NEWS: Document set extended-prompt and gdb.prompt library
-
-2011-08-16 Yao Qi <yao@codesourcery.com>
-
- * tic6x-linux-tdep.c: Move const arrays definition from here...
- * tic6x-tdep.c: to here ...
-
-2011-08-14 Yao Qi <yao@codesourcery.com>
-
- * NEWS: New port to Texas Instruments TMS320C6x.
-
-2011-08-14 Andrew Jenner <andrew@codesourcery.com>
- Bernd Schmidt <bernds@codesourcery.com>
- Yao Qi <yao@codesourcery.com>
+ * dwarf2read.c (create_signatured_type_table_from_index): Rename
+ local type_sig to sig_type, type_offset to type_offset_in_tu.
+ (hash_signatured_type): Renamed from hash_type_signature,
+ all callers updated.
+ (eq_signatured_type): Renamed from eq_type_signature,
+ all callers updated.
+ (create_debug_types_hash_table): Rename local type_sig to sig_type.
+ (process_enumeration_scope): Ditto.
+ (lookup_signatured_type_at_offset): Ditto.
+ (load_full_type_unit, read_signatured_type): Ditto.
- * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
- * solib-dsbt.c: New file. Support DSBT shared object.
- * tic6x-linux-tdep.c: New file.
- * tic6x-tdep.c: New file.
- * tic6x-tdep.h: New file.
+2012-04-12 Yao Qi <yao@codesourcery.com>
-2011-08-14 Andrew Stubbs <ams@codesourcery.com>
- Yao Qi <yao@codesourcery.com>
+ * remote.c (async_remote_interrupt): Correct function name in
+ debug message.
+ (async_remote_interrupt_twice): Ditto.
- * remote.c (PACKET_qXfer_fdpic): New enum value.
- (remote_protocol_features): Add qXfer:fdpic:read packet.
- (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
- (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
- * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
-
-2011-08-14 Yao Qi <yao@codesourcery.com>
-
- Target description for tic6x.
- * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
- tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
- * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
- * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
- * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
- * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
- * features/tic6x-c64xp-linux.xml: New.
- * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
- * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
- * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
- * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
- * regformats/tic6x-c64xp.dat,
- regformats/tic6x-c62x-linux.dat: Generated.
- * regformats/tic6x-c64x-linux.dat,
- regformats/tic6x-c64xp-linux.dat: Generated.
- * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
- features/tic6x-*.c files.
- Add regformats/tic6x-*.dat files.
-
-2011-08-12 Doug Evans <dje@google.com>
-
- * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
- * python/py-symbol.c (sympy_get_type): New function.
- (symbol_object_getset): Add "type".
-
-2011-08-12 Pedro Alves <pedro@codesourcery.com>
-
- PR tui/13073
-
- * tui/tui-regs.c (tui_show_register_group): Skip registers with an
- empty name.
- (tui_show_register_group): Don't store a byte buffer in the data
- element's value.
- (tui_register_format): Skip registers with an empty name.
- (tui_get_register): Store a struct value in the data element's
- value field instead of a byte buffer holding the raw register
- contents. Account for optimized-out and unavailable registers
- when comparing register contents.
-
-2011-08-09 Pedro Alves <pedro@codesourcery.com>
-
- * printcmd.c (current_display_number): Update comment.
- (disable_current_display_cleanup): Delete.
- (do_one_display): Use make_cleanup_restore_integer. Gracefully
- catch errors thrown while evaluating and printing the display.
-
-2011-08-09 Tom Tromey <tromey@redhat.com>
-
- * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
-
-2011-08-09 Pedro Alves <pedro@codesourcery.com>
-
- * elfread.c (elf_symtab_read): Rework comments.
- * maint.c (maintenance_command): Ditto.
- * somread.c (som_symtab_read): Ditto.
- * solib.c (solib_find, solib_map_sections, update_solib_list)
- (solib_add, info_sharedlibrary_command, solib_name_from_address)
- (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
- (sharedlibrary_command, no_shared_libraries): Ditto.
- * solib-irix.c (locate_base, disable_break, enable_break)
- (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
- (irix_current_sos, irix_open_symbol_file_object)
- (irix_special_symbol_handling): Ditto.
- * solib-sunos.c (locate_base, first_link_map_member)
- (sunos_current_sos, disable_break, enable_break)
- (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
- Ditto.
- * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
- (open_symbol_file_object, svr4_current_sos, enable_break)
- (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
- Ditto.
- * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
- (frv_current_sos, enable_break, frv_special_symbol_handling)
- (frv_solib_create_inferior_hook): Ditto.
- * solist.h (struct target_so_ops): Extend the comments of the
- special_symbol_handling, current_sos and open_symbol_file_object
- methods.
-
-2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
-
- * python/lib/gdb/__init__.py: Auto-load files in command and
- function directories.
- * python/python.c (finish_python_initialization): Use
- os.path.join.
- * python/lib/gdb/command/pretty_printers.py: Self register
- command.
- * NEWS: Document auto-loading.
-
-2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
- (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
- objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
-
-2011-08-08 Tom Tromey <tromey@redhat.com>
-
- * breakpoint.c (clean_up_filters): Remove.
- (catch_syscall_split_args): Use VEC_cleanup.
-
-2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
- (main): Uncomment "Demangling error\n".
-
-2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
-
- * solib-target.c (segment_attributes): Make them static.
- (section_attributes, library_children, library_attributes): Likewise.
- (library_list_children, library_list_attributes): Likesise.
- (library_list_elements): Likewise.
-
-2011-08-05 Pedro Alves <pedro@codesourcery.com>
-
- * exceptions.c (throw_exception): Don't disable the current
- display.
- * printcmd.c (disable_current_display_cleanup): New function.
- (do_one_display): Install a cleanup to disable the current display
- if doing the display throws.
-
-2011-08-05 Eli Zaretskii <eliz@gnu.org>
-
- * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
- initialization of the tp_new member to the corresponding
- gdbpy_initialize_* function.
- * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
- * python/py-frame.c (gdbpy_initialize_frames): Likewise.
- * python/py-function.c (gdbpy_initialize_functions): Likewise.
- * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
- * python/py-param.c (gdbpy_initialize_parameters): Likewise.
-
-2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
- (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
- (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
- references to current_uiout.
-
-2011-08-04 Pedro Alves <pedro@codesourcery.com>
-
- * event-loop.c (gdb_do_one_event): Remove `data' parameter.
- (start_event_loop): Use TRY_CATCH instead of catch_errors.
- * event-loop.h (gdb_do_one_event): Remove `data' parameter.
- * top.c (gdb_readline_wrapper): Adjust.
- * tui/tui-interp.c (tui_command_loop):
- (_initialize_tui_interp): Don't install it.
-
-2011-08-04 Pedro Alves <pedro@codesourcery.com>
-
- * ui-out.h (uiout): Rename to ...
- (current_uiout): ... this.
- * ui-out.c (uiout): Rename to ...
- (current_uiout): ... this.
- * ada-lang.c (print_it_exception, print_one_exception)
- (print_mention_exception): Adjust.
- * breakpoint.c (watchpoint_check): Adjust.
- (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
- (default_collect_info, watchpoints_info, print_one_catch_fork)
- (print_one_catch_vfork, print_one_catch_syscall)
- (print_one_catch_exec, mention, print_it_ranged_breakpoint)
- (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
- (print_it_watchpoint, print_mention_watchpoint)
- (print_it_masked_watchpoint, print_mention_masked_watchpoint)
- (print_it_exception_catchpoint, print_one_exception_catchpoint)
- (print_mention_exception_catchpoint, say_where, bkpt_print_it)
- (bkpt_print_mention, momentary_bkpt_print_it)
- (tracepoint_print_mention, update_static_tracepoint)
- (tracepoints_info, save_breakpoints): Adjust.
- * cli-out.c (field_separator): Adjust.
- * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
- * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
- * frame.c (get_current_frame): Adjust.
- * infcmd.c (run_command_1, print_return_value): Adjust.
- * inferior.c (inferior_command, info_inferiors_command): Adjust.
- * infrun.c (print_end_stepping_range_reason): Adjust.
- (print_signal_exited_reason, print_exited_reason): Adjust.
- (print_signal_received_reason, print_no_history_reason): Adjust.
- * interps.c (interp_set): Adjust.
- * osdata.c (info_osdata_command): Adjust.
- * progspace.c (maintenance_info_program_spaces_command): Adjust.
- * remote-fileio.c (remote_fileio_request): Adjust.
- * remote.c (show_remote_cmd): Adjust.
- * solib.c (info_sharedlibrary_command): Adjust.
- * source.c (print_source_lines_base): Adjust.
- * stack.c (print_stack_frame): Adjust.
- (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
- * symfile-mem.c (add_vsyscall_page): Adjust.
- * symfile.c (load_progress, generic_load)
- (print_transfer_performance): Adjust.
- * thread.c (info_threads_command, restore_selected_frame)
- (thread_command): Adjust.
- * top.c (make_cleanup_restore_ui_file): Adjust.
- * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
- (print_one_static_tracepoint_marker): Adjust.
- * cli/cli-cmds.c (print_disassembly): Adjust.
- * cli/cli-decode.c (print_doc_line): Adjust.
- * cli/cli-interp.c (safe_execute_command): Adjust.
- * cli/cli-logging.c (set_logging_redirect, pop_output_files)
- (handle_redirections): Adjust.
- * cli/cli-script.c (show_user_1): Adjust.
- * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
- * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
- * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
- * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
- (mi_cmd_env_dir): Adjust.
- * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
- (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
- * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
- (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
- (list_args_or_locals): Adjust.
- * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
- (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
- (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
- (mi_cmd_var_list_children, mi_cmd_var_info_type)
- (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
- (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
- (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
- * mi/mi-interp.c (mi_on_normal_stop): Adjust.
- * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
- (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
- (list_available_thread_groups, mi_cmd_list_thread_groups)
- (mi_cmd_data_list_register_names)
- (mi_cmd_data_list_changed_registers)
- (mi_cmd_data_list_register_values, get_register)
- (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
- (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
- (mi_cmd_list_target_features, mi_cmd_add_inferior)
- (mi_execute_command, mi_load_progress): Adjust.
- * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
- * python/py-auto-load.c (print_script, info_auto_load_scripts):
- Adjust.
- * python/py-breakpoint.c (bppy_get_commands): Adjust.
- * tui/tui-interp.c (tui_command_loop): Adjust.
- * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
-
-2011-08-04 Pedro Alves <pedro@codesourcery.com>
-
- * exceptions.c (struct catcher): Remove saved_uiout field.
- (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
- no longer save/resvore the global ui_out builder.
- (catch_exceptions_with_msg): Save/override/restore the global
- ui_out builder manually instead of relying on TRY_CATCH to do it.
- (catch_errors): Save/restore the global ui_out builder manually
- instead of relying on TRY_CATCH to do it.
- * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
- parameter.
- (TRY_CATCH): Adjust.
- * cli/cli-interp.c (safe_execute_command): Save/override/restore
- the global ui_out builder manually instead of relying on TRY_CATCH
- to do it.
+2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
-2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+ * source.c (find_and_open_source): Consistently pass resulting
+ full path through xfullpath.
- * breakpoint.c (update_global_location_list): Ensure
- invariant 'first loc marked not duplicated and inserted,
- following locs marked duplicated/not inserted' is respected
- for multiple locations at the same address.
- (unduplicated_should_be_inserted) New function.
- (swap_insertion) New function.
+2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Provide more specific displaced-stepping memory error message.
+ * infrun.c (displaced_step_prepare): New variable status. Call
+ target_read_memory instead of read_memory, provide more specific
+ error message.
- * stack.c (print_frame_arguments_choices): Comment typo fix.
+2012-04-11 Tristan Gingold <gingold@adacore.com>
-2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
+ PR gdb/13901
+ * darwin-nat.c (darwin_execvp): Revert previous patch.
- Revert:
- 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
- * breakpoint.c (insert_bp_location): Remove disabled_breaks
- argument. Update callers.
+2012-04-11 Tristan Gingold <gingold@adacore.com>
-2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
+ PR gdb/13901
+ * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
+ in case of change.
- PR gdb/13045
- * doublest.c (convert_doublest_to_floatformat): Pass correct
- mantissa length to put_field.
+2012-04-11 Tristan Gingold <gingold@adacore.com>
-2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
+ warning.
- * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
- exception_print code path.
- (backtrace_command): Remove variable e. Protect arg by make_cleanup in
- advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
- (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
+2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
-2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+ New command 'explore' which helps explore values and types in
+ scope.
+ * NEWS: Add an entry about the new 'explore' command.
+ * data-directory/Makefile.in: Add gdb/command/explore.py
+ * python/lib/gdb/command/explore.py: Implemention of the 'explore'
+ command using the GDB Python API.
- Code cleanup.
- * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
- Remove, merge them into ...
- (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
- variable args and its initialization.
- (struct print_args_args, print_args_stub): Remove, merge them into
- print_frame.
- (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
- them into ...
- (do_gdb_disassembly): ... here. Remove variable args and its
- initialization.
- (print_frame): Remove variable args and its initialization, new
- variable gdbarch and numargs (from print_args_stub), inline here
- print_args_stub with a TRY_CATCH.
- (struct backtrace_command_args, backtrace_command_stub): Remove, merge
- them into ...
- (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
- New variable e, remove variable btargs and its initialization.
+2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
-2011-08-01 Tristan Gingold <gingold@adacore.com>
+ * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
+ extension in jump target calculation.
- * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
+2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
-2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
+ * mips-tdep.c (mips32_next_pc): Handle JALX.
- * breakpoint.c (insert_bp_location): Document return value.
- (insert_breakpoint_locations): Fix documentation.
- (remove_breakpoints): Add documentation.
+2012-04-10 Yao Qi <yao@codesourcery.com>
-2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
+ * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
- * breakpoint.c (insert_bp_location): Remove disabled_breaks
- argument. Update callers.
+2012-04-10 Yao Qi <yao@codesourcery.com>
-2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
+ and gnulib/m4/gnulib-tool.m4.
- * stack.c (print_frame_info): Comment typo fix.
+2012-04-10 Doug Evans <dje@google.com>
-2011-07-29 Sterling Augustine <saugustine@google.com>
+ * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
+ (load_partial_dies): Clarify comment.
+ (find_partial_die): Support rereading type units.
+ Clarify CU handling, if we know offset is in CU, don't search for the
+ containing CU. Add comment regarding memory waste.
+
+2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
+ i386/x32-avx and i386/x32-avx-linux.
+ (i386/x32-expedite): New.
+ (i386/x32-linux-expedite): Likewise.
+ (i386/x32-avx-expedite): Likewise.
+ (i386/x32-avx-linux-expedite): Likewise.
+ ($(outdir)/i386/x32.dat): Likewise.
+ ($(outdir)/i386/x32-linux.dat): Likewise.
+ ($(outdir)/i386/x32-avx.dat): Likewise.
+ ($(outdir)/i386/x32-avx-linux.dat): Likewise.
+
+ * features/i386/x32-avx-linux.xml: New file.
+ * features/i386/x32-avx.xml: Likewise.
+ * features/i386/x32-core.xml: Likewise.
+ * features/i386/x32-linux.xml: Likewise.
+ * features/i386/x32.xml: Likewise.
+
+ * features/i386/x32-avx-linux.c: New. Generated.
+ * features/i386/x32-avx.c: Likewise.
+ * features/i386/x32-linux.c: Likewise.
+ * features/i386/x32.c: Likewise.
+ * regformats/i386/x32-avx-linux.dat: Likewise.
+ * regformats/i386/x32-avx.dat: Likewise.
+ * regformats/i386/x32-linux.dat: Likewise.
+ * regformats/i386/x32.dat: Likewise.
+
+2012-04-10 Tristan Gingold <gingold@adacore.com>
+
+ * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
+ code to kill the inferior.
+
+2012-04-09 Mark Kettenis <kettenis@gnu.org>
+
+ * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
+ defines.
+ * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
+ defines.
+ * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
+ (yyvsp): New defines.
+ * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
+ defines.
+ * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
+ defines.
+ * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
+ defines.
+ * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
+ defines.
+ * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
+ defines.
+
+2012-04-09 Mark Kettenis <kettenis@gnu.org>
+
+ * sparc64-tdep.c (sparc64_store_arguments)
+ (sparc64_store_arguments): Fix coding style.
+
+2012-04-07 Mark Kettenis <kettenis@gnu.org>
+
+ * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
+ complex floats, adjust some related comments and tighten a related
+ assertion.
+ (sparc64_extract_return_value): Handle complex floats.
+
+2012-04-07 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (load_partial_dies): Change condition to assert.
+
+2012-04-06 Doug Evans <dje@google.com>
+
+ * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
+ "mov %rsp,%rbp".
+
+2012-04-05 Kevin Buettner <kevinb@redhat.com>
+
+ * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
+ fencepost error.
+ (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
+ (v850_gdbarch_init): Set `num_regs' as appropriate for the
+ architecture.
+
+2012-04-05 Keith Seitz <keiths@redhat.com>
+
+ * linespec.c (decode_compound): Remove.
+ (enum offset_relative_sign): New enum.
+ (struct line_offset): New struct.
+ (struct linespec): New struct.
+ (struct linespec_state): Move file_symtabs,
+ user_filename, and user_function into struct linespec.
+ Make result an anonymous struct holding vectors of
+ symbolp and minsym_and_objfile_d.
+ Add language member.
+ (enum ls_token_type): New enum.
+ (linespec_keywords): New array.
+ (struct ls_token): New struct.
+ (struct ls_parser): New struct.
+ (linespec_lexer_lex_number): New function.
+ (linespec_lexer_lex_keyword): New function.
+ (is_ada_operator): New function.
+ (skip_quote_char): New function.
+ (copy_token_string): New function.
+ (is_closing_quote_enclosed): New function.
+ (find_parameter_list_end): New function.
+ (linespec_lexer_lex_string): New function.
+ (linespec_lexer_lex_one): New function.
+ (linespec_lexer_consume_token): New function.
+ (linespec_lexer_peek_token): New function.
+ (cplusplus_error): Remove unused function.
+ (find_methods): Update comment.
+ (find_toplevel_char): Return const.
+ (is_objc_method_format): Remove unused function.
+ (find_toplevel_string): New function.
+ (is_linespec_boundary): Remove.
+ (symbol_not_found_error): New function.
+ (find_method_overload_end): Remove function.
+ (unexpected_linespec_error): New function.
+ (keep_name_info): Remove.
+ (linespec_parse_line_offset): New function.
+ (linespec_parse_basic): New function.
+ (canonicalize_linespec): New function.
+ (decode_line_internal): Remove.
+ (create_sals_line_offset): New function adapted from
+ decode_all_digits.
+ (convert_linespec_to_sals): New function.
+ (parse_linespec): New function.
+ (linespec_parser_new): New function.
+ (linespec_state_destructor): Change parameter type to
+ struct linespec_state *.
+ Add language parameter.
+ Remove freeing of moved members.
+ (linespec_parser_delete): New function.
+ (decode_line_full): Use parse_linespec and linespec_parser_new.
+ (decode_line_1): Likewise.
+ (decode_indirect): Rename to ...
+ (linespec_expression_to_pc): ... this and rewrite
+ to simply find CORE_ADDR, storing this result for later
+ conversion to SALs.
+ (locate_first_half): Remove.
+ (deocde_objc): Add parameter LS.
+ Initialize new struct collect_info members.
+ Handle minimal symbols, too.
+ (decode_compound): Delete.
+ (lookup_prefix_sym): Rewrite.
+ (compare_msymbols): New function.
+ (find_method): Rewrite.
+ Do not call cplusplus_error.
+ (symtabs_from_filename): Rewrite.
+ (collect_function_symbols): Delete.
+ (find_function_symbols): Rewrite without ARGPTR-style
+ processing.
+ (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
+ (decode_dollar): Adapted and renamed to ...
+ (linespec_parse_variable): ... this.
+ (find_linespec_symbols): New function.
+ (decode_label): Adapted and renamed to ...
+ (find_label_symbols): ... this.
+ (decode_digits_list_mode): Add and use LS argument.
+ (decode_digits_ordinary): Likewise.
+ (collect_symbols): Do not collect SALs, just symbols and msymbols.
+ If in list mode, allow any symbol class. Otherwise, only
+ permit LOC_BLOCK symbols.
+ (minsym_found): Update comments.
+ (search_minsyms_for_name): Do not convert the matching symbol
+ into a SAL. Simply push the symbol and objfile into the
+ result vector.
+ (decode_variable): Delete. Contents adapted into
+ find_linespec_symbols.
- * MAINTAINERS (Write After Approval): Add myself to the list.
+ * cp-support.c (SKIP_SPACE): Remove.
+ (operator_tokens): Remove unused global.
+ (cp_validate_operator): Remove.
+ * cp-support.h (cp_validate_operator): Remove declaration.
+
+2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-07-29 Tom Tromey <tromey@redhat.com>
+ * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
+ for TYPE_VPTR_FIELDNO.
+ * valprint.c (valprint_check_validity): Make it global, move the
+ function comment ...
+ * value.h (valprint_check_validity): ... to this new declaration.
- * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
- (library_list_start_segment): Update.
- (library_list_start_section): Update.
+2012-04-02 Tristan Gingold <gingold@adacore.com>
-2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
+ * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
+ the STATE32 api for i386 state.
+ (i386_darwin_store_inferior_registers): Likewise.
- * varobj.c (value_get_print_value): Move hint check later into the
- function. Comment function. Free thevalue before reusing it.
+2012-04-02 Tristan Gingold <gingold@adacore.com>
-2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
- Pedro Alves <pedro@codesourcery.com>
+ * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
+ SS offset.
+ * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
+ format_string.
- * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
- value_one.
- * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
- Assert the result kind.
- * value.h (value_one): Remove parameter lv.
+2012-04-02 Tristan Gingold <gingold@adacore.com>
-2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+ PR gdb/13901
+ * darwin-nat.c (darwin_execvp): Set binary preference.
- Fix crash on lval_computed values.
- * valops.c (value_zero): Use not_lval for lval_computed.
+2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-07-27 Tom Tromey <tromey@redhat.com>
+ * NEWS (set breakpoint condition-evaluation): Use imperative mood.
- * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
- gdb_assert.h, gdb_locale.h, gdb_dirent.h.
+2012-03-30 Tom Tromey <tromey@redhat.com>
-2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * python/python.c (gdbpy_decode_line): Move cleanup creation out
+ of TRY_CATCH. Fix error handling.
+ * python/py-value.c (convert_value_from_python): Move 'old'
+ declaration to innermost scope.
- * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
- "ptype" by their typedefs difference.
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
+
+ -Wshadow warning fix.
+ * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
+ "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
+ Adjust code accordingly.
-2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
- * dwarf2expr.c (ctx_no_read_reg): New function.
- * dwarf2expr.h (ctx_no_read_reg): New declaration.
- * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
- (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
- (decode_locdesc): Replace by a caller of dwarf_expr_eval.
+ * ada-lang.c (symbol_completion_add): Rename parameter
+ "encoded" into "encoded_p". Ajust code and documentation
+ accordingly.
-2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
- * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
- (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
- file.
- (dwarf2_frame_ctx_funcs): Reference the renamed functions.
- * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
- (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
- (ctx_no_get_base_type): Move the functions here.
- * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
- (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
- (ctx_no_get_base_type): New declarations.
+ -Wshadow warning fix.
+ * ada-lang.c (symbol_completion_add): Rename parameter
+ "wild_match" into wild_match_p. Update code and documentation
+ accordingly.
-2011-07-27 Tom Tromey <tromey@redhat.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
- * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
- entries.
- * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
- * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
+ * ada-lang.c (symbol_completion_match): Rename parameter
+ "encoded" into "encoded_p". Ajust code and documentation
+ accordingly.
-2011-07-26 Sterling Augustine <saugustine@google.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
- * cli/cli-dump.c (dump_binary_file): Change parameter type to
- ULONGEST.
- (dump_bfd_file): Likewise.
+ -Wshadow warning fix.
+ * ada-lang.c (symbol_completion_match): Rename parameter
+ "wild_match" into "wild_match_p". Adjust code and function
+ documentation accordingly.
-2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
- * remote.c (remote_region_ok_for_hw_watchpoint): New function.
- (remote_hw_watchpoint_length_limit): New variable.
- (_initialize_remote) add set,show cmds for this new variable.
- * gdb.texinfo: document these new commands.
- * NEWS: Mention these new commands.
+ -Wshadow warning fix.
+ * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
+ "symbol_info" into "info". Adjust code accordingly.
+ (ada_lookup_symbol): Likewise.
-2011-07-26 Pedro Alves <pedro@codesourcery.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
- * breakpoint.c (works_in_software_mode_watchpoint): Also return
- true for software watchpoints.
+ * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
+ of this function's documentation.
-2011-07-26 Joel Brobecker <brobecker@adacore.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
- GDB 7.3 released.
+ -Wshadow warning fix.
+ * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
+ variable into "wild_match_p". Adjust code accordingly.
-2011-07-26 Tom Tromey <tromey@redhat.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
- * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
- * dwarf2read.c (read_indirect_string_at_offset): New function.
- (read_indirect_string): Use it.
- (dwarf_decode_macro_bytes): New function, taken from
- dwarf_decode_macros. Handle DW_MACRO_GNU_*.
- (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
- (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
- New functions.
- (struct dwarf2_per_objfile) <macro>: New field.
- (dwarf2_elf_names): Add .debug_macro.
- (dwarf2_macros_too_long_complaint): Add 'section' argument.
- (dwarf2_locate_sections): Handle new section.
- (read_file_scope): Handle DW_AT_GNU_macros.
- (dwarf2_per_objfile_free): Unmap the .debug_macro section.
-
-2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
-
- * NEWS: Mention dcache configuration.
- * dcache.c (dcache_set_list, dcache_show_list): New variables.
- (dcache_size, dcache_line_size): New variables.
- (LINE_SIZE_MASK, XFORM, MASK): Adjust.
- (struct dcache_block): Make it expandable.
- (struct dcache_struct): New field.
- (dcache_invalidate): Discard freelist upon dcache_line_size changes.
- (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
- (dcache_poke_byte, dcache_print_line): Adjust.
- (set_dcache_size, set_dcache_line_size): New functions.
- (set_dcache_command, show_dcache_command): New functions.
- (_initialize_dcache): Add new commands.
-
-2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
-
- * progspace.h (struct program_space): Add solib_add_generation.
- * infcmd.c (post_create_inferior): Only call solib_add if not
- already done.
- * solib.c (solib_add): Increment solib_add_generation.
-
-2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix implicit pointer offsets.
- * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
- ptr.OFFSET.
-
-2011-07-25 Tom Tromey <tromey@redhat.com>
-
- * ada-lang.c (ada_exception_breakpoint_ops): Make return type
- const.
- (ada_exception_sal): Make 'ops' const.
- (ada_decode_exception_location): Likewise.
- (ada_decode_assert_location): Likewise.
- (catch_assert_command): Update.
- (catch_ada_exception_command): Update.
- (create_ada_exception_catchpoint): Make 'ops' const.
- * breakpoint.c (set_raw_breakpoint_without_location)
- (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
- const.
- (create_internal_breakpoint): Update.
- (init_raw_breakpoint_without_location): Make 'ops' const.
- (init_raw_breakpoint, init_catchpoint)
- (create_fork_vfork_event_catchpoint)
- (create_syscall_event_catchpoint, init_breakpoint_sal)
- (create_breakpoint_sal, create_breakpoints_sal)
- (create_breakpoint, init_ada_exception_breakpoint): Likewise.
- * breakpoint.h (struct breakpoint) <ops>: Now const.
- (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
- const.
-
-2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
-
- * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
-
-2011-07-25 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.h (print_recreate_thread): Declare.
- (struct breakpoint): Move step_count, pass_count,
- number_on_target, static_trace_marker_id,
- static_trace_marker_id_idx ...
- (struct tracepoint): ... to this new struct.
- (get_tracepoint, get_tracepoint_by_number_on_target)
- (get_tracepoint_by_number): Change return type to struct
- tracepoint pointer.
- * breakpoint.c (is_tracepoint_type): New, factored out from
- is_tracepoint.
- (is_tracepoint): Adjust.
- (print_one_breakpoint_location): Cast to struct tracepoint as
- necessary, and adjust.
- (print_recreate_catch_fork, print_recreate_catch_vfork)
- (print_recreate_catch_syscall, print_recreate_catch_exec): Call
- print_recreate_thread.
- (init_breakpoint_sal): New, factored out from
- create_breakpoint_sal.
- (create_breakpoint_sal): Reimplement.
- (create_breakpoint): Allocate a struct tracecepoint if the caller
- wanted a tracepoint. Use init_breakpoint_sal and
- install_breakpoint.
- (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
- (print_recreate_masked_watchpoint)
- (print_recreate_exception_catchpoint): Call print_recreate_thread.
- (tracepoint_print_one_detail): Adjust.
- (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
- Dump the pass count here.
- (update_static_tracepoint): Adjust.
- (addr_string_to_sals): Adjust.
- (create_tracepoint_from_upload): Adjust. Change return type to
- struct tracepoint pointer.
- (trace_pass_set_count): Change parameter type to struct tracepoint
- pointer, and adjust.
- (trace_pass_command): Adjust.
- (get_tracepoint, get_tracepoint_by_number_on_target)
- (get_tracepoint_by_number): Change return type to struct
- tracepoint pointer, and adjust.
- (print_recreate_thread): New, factored out from save_breakpoints.
- (save_breakpoints): Don't print thread and task and passcount
- recreation here.
- * remote.c (remote_download_tracepoint): Adjust.
- * tracepoint.c (trace_actions_command, validate_actionline)
- (start_tracing, tfind_1, trace_find_tracepoint_command)
- (trace_dump_command): Adjust.
- (find_matching_tracepoint): Change return type to struct
- tracepoint pointer, and adjust.
- (merge_uploaded_tracepoints, tfile_get_traceframe_address)
- (tfile_trace_find, tfile_fetch_registers): Adjust.
- * tracepoint.h (create_tracepoint_from_upload): Change return type
- to struct tracepoint pointer.
- * ada-lang.c (print_recreate_exception): Call
- print_recreate_thread.
- * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
-
-2011-07-25 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.h (struct breakpoint): Move ops as first field. Move
- exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
- cond_exp_valid_block, val, val_valid, watchpoint_frame,
- watchpoint_thread, watchpoint_triggered ...
- (struct watchpoint): ... to this new struct.
- (is_watchpoint): Declare.
- (install_breakpoint): Add new `internal' parameter.
- * breakpoint.c (is_watchpoint): Delete declaration.
- (set_breakpoint_condition): Handle watchpoints.
- (is_watchpoint): Make public.
- (watchpoint_in_thread_scope): Change parameter type to struct
- watchpoint.
- (watchpoint_del_at_next_stop): Change parameter type to struct
- watchpoint. Remove assertion. Adjust.
- (update_watchpoint): Ditto.
- (insert_breakpoints, breakpoint_init_inferior)
- (watchpoints_triggered, watchpoint_check)
- (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
- (bpstat_stop_status, print_one_breakpoint_location)
- (print_one_breakpoint_location, watchpoint_locations_match): Cast
- to struct watchpoint as necessary, and adjust.
- (install_breakpoint): Add `internal' argument. If true, don't
- mention the new breakpoint. Use set_breakpoint_number.
- (create_fork_vfork_event_catchpoint)
- (create_syscall_event_catchpoint): Adjust.
- (dtor_watchpoint): New.
- (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
- (breakpoint_hit_watchpoint, resources_needed_watchpoint)
- (print_it_watchpoint, print_mention_watchpoint)
- (print_recreate_watchpoint, insert_masked_watchpoint)
- (remove_masked_watchpoint, resources_needed_masked_watchpoint)
- (print_one_detail_masked_watchpoint)
- (print_mention_masked_watchpoint)
- (print_recreate_masked_watchpoint): Cast to struct watchpoint as
- necessary, and adjust.
- (watch_command_1): Allocate and initialize a struct watchpoint
- instead of a struct breakpoint. Use install_breakpoint.
- (catch_exec_command_1): Adjust.
- (base_breakpoint_dtor): Delete accesses to watchpoint specific
- fields.
- (delete_breakpoint, enable_breakpoint_disp)
- (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
- as necessary, and adjust.
- (initialize_breakpoint_ops): Install dtor_watchpoint as
- watchpoints' dtor method.
- * ada-lang.c (create_ada_exception_catchpoint): Adjust.
- * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
- to struct watchpoint as necessary, and adjust.
-
-2011-07-25 Pedro Alves <pedro@codesourcery.com>
-
- * ada-lang.c (dtor_exception, re_set_exception): Indirect through
- the the base class ops table.
- (catch_exception_breakpoint_ops)
- (catch_exception_unhandled_breakpoint_ops)
- (catch_assert_breakpoint_ops): Don't statically initialize.
- (initialize_ada_catchpoint_ops): New.
- (_initialize_ada_language): Call it.
- * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
- (bkpt_breakpoint_ops): Forward declare.
- (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
- (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
- (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
- (masked_watchpoint_breakpoint_ops)
- (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
- (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
- base class ops table.
- (null_re_set, null_check_status, null_works_in_software_mode)
- (null_resources_needed, null_print_one_detail): Delete.
- (bkpt_dtor): Rename to ...
- (base_breakpoint_dtor): ... this. Make static.
- (bkpt_allocate_location): Rename to ...
- (base_breakpoint_allocate_location): ... this. Make static.
- (base_breakpoint_re_set): New.
- (internal_error_pure_virtual_called): New.
- (base_breakpoint_insert_location, base_breakpoint_remove_location)
- (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
- (base_breakpoint_works_in_software_mode)
- (base_breakpoint_resources_needed, base_breakpoint_print_it)
- (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
- (base_breakpoint_print_recreate): New functions.
- (base_breakpoint_ops): New global.
- (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
- (bkpt_breakpoint_hit): Make static.
- (bkpt_check_status): Delete.
- (bkpt_resources_needed): Make static.
- (bkpt_works_in_software_mode): Delete.
- (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
- static.
- (bkpt_breakpoint_ops, internal_breakpoint_ops)
- (momentary_breakpoint_ops): Don't statically initialize.
- (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
- Delete.
- (tracepoint_insert_location, tracepoint_remove_location)
- (tracepoint_check_status, tracepoint_works_in_software_mode)
- (tracepoint_print_it): Delete.
- (tracepoint_breakpoint_ops): Don't statically initialize.
- (initialize_breakpoint_ops): New.
- (_initialize_breakpoint): Call it.
- * breakpoint.h (null_re_set, null_works_in_software_mode)
- (null_resources_needed, null_check_status, null_print_one_detail):
- (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
- (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
- (bkpt_check_status, bkpt_resources_needed)
- (bkpt_works_in_software_mode, bkpt_print_it)
- (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
- Delete declarations.
- (initialize_breakpoint_ops): Declare.
-
-2011-07-25 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
- (momentary_bkpt_print_it): Simplify.
-
-2011-07-25 Pedro Alves <pedro@codesourcery.com>
-
- Split internal, momentary and user breakpoints breakpoint_ops
- tables.
-
- * breakpoint.c (internal_breakpoint_ops)
- (momentary_breakpoint_ops): Forward declare.
- (create_internal_breakpoint): Add new breakpoint_ops parameter.
- Pass it down, rather than hardcoding bkpt_breakpoint_ops.
- (create_overlay_event_breakpoint)
- (create_std_terminate_master_breakpoint)
- (create_exception_master_breakpoint): Create breakpoints with
- internal_breakpoint_ops vtable.
- (set_longjmp_breakpoint): Create momentary breakpoints with
- momentary_breakpoint_ops vtable, using
- momentary_breakpoint_from_master.
- (create_thread_event_breakpoint, create_jit_event_breakpoint)
- (create_solib_event_breakpoint): Create breakpoints with
- internal_breakpoint_ops vtable.
- (set_momentary_breakpoint): Create breakpoints with
- momentary_breakpoint_ops vtable.
- (momentary_breakpoint_from_master): New, factored out from
- clone_momentary_breakpoint.
- (clone_momentary_breakpoint): Adjust.
- (watch_command_1): Create scope breakpoints with
- momentary_breakpoint_ops vtable.
- (bkpt_re_set): Remove handling of internal and momentary
- breakpoints.
- (bkpt_print_mention, bkpt_print_recreate): New.
- (bkpt_breakpoint_ops): Adjust.
- (internal_bkpt_re_set, internal_bkpt_check_status)
- (internal_bkpt_print_it, internal_bkpt_print_mention)
- (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
- (momentary_bkpt_re_set, momentary_bkpt_check_status)
- (momentary_bkpt_print_it, momentary_bkpt_print_mention)
- (momentary_bkpt_print_recreate): New.
- (momentary_breakpoint_ops): New.
-
-2011-07-25 Pedro Alves <pedro@codesourcery.com>
-
- Implement most breakpoint_ops methods for all breakpoint types,
- and move the default handlings to the proper callbacks.
-
- * breakpoint.c (update_watchpoint): Always call the breakpoint's
- works_in_software_mode method.
- (insert_bp_location): Go through breakpoint_ops->insert_location
- for software and hardware watchpoints.
- (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
- breakpoint_ops.
- (remove_breakpoint_1): Go through breakpoint_ops->remove_location
- for software and hardware watchpoints.
- (print_it_typical): Delete.
- (print_bp_stop_message): Always call the breakpoint_ops->print_it
- method.
- (watchpoint_check): Adjust comment.
- (bpstat_check_location): Simply always call the breakpoint's
- breakpoint_hit method.
- (bpstat_stop_status): Always call the breakpoint's check_status
- method. Remove special cases for watchpoints and internal event
- breakpoints from here (moved to the check_status implementations).
- (print_one_breakpoint_location): Assume b->ops is never NULL.
- Remove static tracepoint marker id printing from here (moved to
- the print_one_detail callback implementation of tracepoints).
- (init_bp_location): Assert OPS is never NULL.
- (allocate_bp_location): Always call the breakpoint's
- allocate_location method, and remove the default code from here.
- (free_bp_location): Always call the location's dtor method, and
- remove the default code from here.
- (init_raw_breakpoint_without_location): Assert OPS is never NULL.
- (set_raw_breakpoint_without_location): Add new breakpoint_ops
- parameter. Pass it down.
- (set_raw_breakpoint): Ditto.
- (print_it_catch_fork): Adjust to take a bpstat as argument.
- (catch_fork_breakpoint_ops): Install methods.
- (print_it_catch_vfork): Adjust to take a bpstat as argument.
- (catch_vfork_breakpoint_ops): Install methods.
- (dtor_catch_syscall): Call the base dtor.
- (print_it_catch_syscall): Adjust to take a bpstat as argument.
- (catch_syscall_breakpoint_ops): Install methods.
- (dtor_catch_exec): Call the base dtor.
- (print_it_catch_exec): Adjust to take a bpstat as argument.
- (catch_exec_breakpoint_ops): Install methods.
- (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
- the breakpoint's resources_needed method, and remove the default
- code from here.
- (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
- breakpoint_ops.
- (clone_momentary_breakpoint): Clone the original's ops.
- (mention): Always call the breakpoint's print_mention method, and
- remove the default code from here.
- (create_breakpoint_sal): Adjust to pass the ops to
- set_raw_breakpoint rather than setting it manually.
- (create_breakpoint): Assert ops is never NULL. Adjust to pass the
- ops to set_raw_breakpoint_without_location rather than setting it
- manually.
- (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
- (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
- (ranged_breakpoint_ops): Install methods.
- (break_range_command): Adjust to pass the ops to
- set_raw_breakpoint rather than setting it manually.
- (re_set_watchpoint, breakpoint_hit_watchpoint)
- (check_status_watchpoint, resources_needed_watchpoint)
- (works_in_software_mode_watchpoint, print_it_watchpoint)
- (print_mention_watchpoint, print_recreate_watchpoint): New
- functions.
- (watchpoint_breakpoint_ops): Install new methods.
- (print_it_masked_watchpoint): New function.
- (masked_watchpoint_breakpoint_ops): Install new methods.
- (watch_command_1): Adjust to pass the right breakpoint_ops to
- set_raw_breakpoint_without_location rather than setting it
- manually later. Record the current pspace.
- (print_it_exception_catchpoint): Adjust to take a bpstat as
- argument.
- (gnu_v3_exception_catchpoint_ops): Install new methods.
- (say_where): New function.
- (null_re_set, null_check_status, null_works_in_software_mode)
- (null_resources_needed, null_print_one_detail, bp_location_dtor):
- New functions.
- (bp_location_ops): New global.
- (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
- (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
- (bkpt_check_status, bkpt_resources_needed)
- (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
- (bkpt_print_recreate): New functions.
- (bkpt_breakpoint_ops): New global.
- (tracepoint_re_set, tracepoint_insert_location)
- (tracepoint_remove_location, tracepoint_breakpoint_hit)
- (tracepoint_check_status, tracepoint_works_in_software_mode)
- (tracepoint_print_it, tracepoint_print_one_detail)
- (tracepoint_print_mention, tracepoint_print_recreate): New
- functions.
- (tracepoint_breakpoint_ops): New global.
- (delete_breakpoint): Always call the breakpoint's dtor method, and
- remove the default handling from here.
- (breakpoint_re_set_default): Make static.
- (breakpoint_re_set_one): Always call the breakpoints re_set
- method, and remove the default handling from here.
- (trace_command, ftrace_command, strace_command)
- (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
- to create_breakpoint.
- (save_breakpoints): Always call the breakpoint's print_recreate
- method, and remove the default handling from here.
-
- * ada-lang.c (dtor_exception): Call the base dtor.
- (re_set_exception): Call the base method.
- (print_it_exception, print_it_catch_exception): Adjust to take a
- bpstat as argument.
- (catch_exception_breakpoint_ops): Install methods.
- (print_it_catch_exception_unhandled): Adjust to take a bpstat as
- argument.
- (catch_exception_unhandled_breakpoint_ops): Install methods.
- (print_it_catch_assert): Adjust to take a bpstat as argument.
- (catch_assert_breakpoint_ops): Install methods.
+ -Wshadow warning fix.
+ * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
+ parameter into "wild_match_p". Adjust code accordingly.
+ Document this parameter in the function description.
- * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
- to take a bpstat as argument.
- (enum print_stop_action): Add describing comments to each enum
- value.
- (breakpoint_re_set_default): Delete declaration.
- (null_re_set, null_works_in_software_mode, null_resources_needed)
- (null_check_status, null_print_one_detail): Declare.
- (bkpt_breakpoint_ops): Declare.
- (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
- (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
- (bkpt_check_status, bkpt_resources_needed)
- (bkpt_works_in_software_mode, bkpt_print_it)
- (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
- Declare.
-
- * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
- bkpt_breakpoint_ops.
- * python/py-breakpoint.c (bppy_init): Ditto.
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
-2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+ -Wshadow warning fix.
+ * ada-lang.c (add_symbols_from_enclosing_procs): Rename
+ "wild_match" parameter to "wild_match_p" (-Wshadow).
- * MAINTAINERS (Write After Approval): Add myself to the list.
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
-2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
-
- * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
-
-2011-07-22 Pedro Alves <pedro@codesourcery.com>
-
- * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
- (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
- (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
- adjust.
- (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
- (struct i386_debug_reg_state): New.
- (i386_init_dregs): New.
- (dr_mirror): New.
- (i386_cleanup_dregs): Use i386_init_dregs.
- (i386_show_dr): Add state parameter and adjust.
- (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
- the inferior here.
- (i386_remove_aligned_watchpoint): Likewise.
- (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
- (i386_update_inferior_debug_regs): New.
- (i386_insert_watchpoint): Work on a local mirror of the debug
- registers, and only update the inferior on success.
- (i386_remove_watchpoint): Ditto.
- (i386_region_ok_for_watchpoint): Adjust.
- (i386_stopped_data_address): Adjust.
- (i386_insert_hw_breakpoint): Adjust.
- (i386_remove_hw_breakpoint): Adjust.
-
-2011-07-22 Tom Tromey <tromey@redhat.com>
-
- * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
- from amd64_pseudo_register_read. Change arguments. Call
- mark_value_bytes_unavailable when needed.
- (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
- set_gdbarch_pseudo_register_read.
- * sentinel-frame.c (sentinel_frame_prev_register): Use
- regcache_cooked_read_value.
- * regcache.h (regcache_cooked_read_value): Declare.
- * regcache.c (regcache_cooked_read_value): New function.
- (regcache_cooked_read): Call
- gdbarch_pseudo_register_read_value if available.
- * i386-tdep.h (i386_pseudo_register_read_value): Declare.
- (i386_pseudo_register_read): Remove.
- * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
- i386_pseudo_register_read. Change arguments. Call
- mark_value_bytes_unavailable when needed.
- (i386_pseudo_register_read_value): New function.
- (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
- not set_gdbarch_pseudo_register_read.
- * gdbarch.sh (pseudo_register_read_value): New method.
- * gdbarch.c, gdbarch.h: Rebuild.
- * findvar.c (value_from_register): Call get_frame_register_value.
-
-2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
-
- * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
- get_prefix.
- (display_gdb_prompt): Likewise.
- (change_annotation_level): Likewise.
- (push_prompt): Likewise.
- (pop_prompt): Likewise.
- (handle_stop_sig): Use get_prompt with a level.
- * top.c (command_loop): Use get_prompt with a level.
- (set_async_annotation_level): Use set_prompt with a level.
- (get_prefix): New function.
- (set_prefix): Ditto.
- (set_suffix): Ditto.
- (get_suffix): Ditto.
- (get_prompt): Accept a level argument.
- (set_prompt): Accept a level argument. Free old prompts. Set
- new_async_prompt if level is 0.
- (init_main): Use set_prompt with a level. Do not set
- new_async_prompt.
- * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
- * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
- Modify set_prompt, get_prompt to account for levels.
- * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
- level.
- * python/python.c (before_prompt_hook): Use set_prompt.
-
-2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
-
- * defs.h: Add guard against inclusion in gdbserver.
- (struct ptid, ptid_t): Move to common/ptid.h.
- (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
- xsnprintf, internal_error): Move to common/common-utils.h.
- (nomem): Delete.
- * gdb_assert.h: Move into common/ sub-directory.
- * gdb_locale.h: Ditto.
- * gdb_dirent.h: Ditto.
- * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
- ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
- Move into common/ptid.h.
- * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
- (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
- Change nomem to malloc_failure.
- * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
- * utils.c (nomem): Rename to malloc_failure.
- (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
- xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
- (gdb_buildargv): Change nomem to malloc_failure.
- * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
- ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
- ptid_is_pid): Move into common/ptid.c.
- (initialize_infrun): Delete initialization of null_ptid and
- minus_one_ptid.
- * linux-nat.c (linux_nat_xfer_osdata): Defer to
- linux_common_xfer_osdata.
- * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
- common/ptid.c and common/buffer.c.
- (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
- common/ptid.h, common/buffer.h and common/linux-osdata.h.
- (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
- (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
- rules.
- * common/gdb_assert.h: New.
- * common/gdb_dirent.h: New.
- * common/gdb_locale.h: New.
- * common/buffer.c: New.
- * common/buffer.h: New.
- * common/ptid.c: New.
- * common/ptid.h: New.
- * common/xml-utils.c: New.
- * common/xml-utils.h: New.
- * common/common-utils.c: New.
- * common/common-utils.h: New.
- * common/linux-osdata.c: New.
- * common/linux-osdata.h: New.
- * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
- * config/arm/linux.mh (NATDEPFILES): Ditto.
- * config/i386/linux.mh (NATDEPFILES): Ditto.
- * config/i386/linux64.mh (NATDEPFILES): Ditto.
- * config/ia64/linux.mh (NATDEPFILES): Ditto.
- * config/m32r/linux.mh (NATDEPFILES): Ditto.
- * config/m68k/linux.mh (NATDEPFILES): Ditto.
- * config/mips/linux.mh (NATDEPFILES): Ditto.
- * config/pa/linux.mh (NATDEPFILES): Ditto.
- * config/powerpc/linux.mh (NATDEPFILES): Ditto.
- * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
- * config/s390/s390.mh (NATDEPFILES): Ditto.
- * config/sparc/linux.mh (NATDEPFILES): Ditto.
- * config/sparc/linux64.mh (NATDEPFILES): Ditto.
- * config/xtensa/linux.mh (NATDEPFILES): Ditto.
-
-2011-07-21 Matt Rice <ratmice@gmail.com>
-
- * NEWS: Add info macros and info definitions commands.
-
-2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
-
- * NEWS: Document Python prompt substitution hook.
-
-2011-07-18 Matt Rice <ratmice@gmail.com>
-
- PR macros/12999
- * macrotab.h (macro_callback_fn): Add new arguments to callback.
- * macrotab.c (foreach_macro): Ditto.
- (foreach_macro_in_scope): Ditto.
- * macrocmd.c (print_macro_callback): New function.
- (info_macro_command): Move some code to print_macro_definition.
- (print_macro_definition): New function.
- (print_one_macro): Add new arguments to callback.
- (info_definitions_command): New function.
- (info_macros_command): Ditto.
- (_initialize_macrocmd): Add info macros and info definitions commands.
- * symtab.c (add_macro_name): Add new arguments to callback.
-
-2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
- Tom Tromey <tromey@redhat.com>
-
- * top.c (set_prompt): Rewrite to free previous prompt, free
- asynch_new_prompt and set both on new prompts.
- * event-top.c (display_gdb_prompt): Add prompt substitution
- logic.
- * python/python.c (before_prompt_hook): New function.
-
-2011-07-20 Matt Rice <ratmice@gmail.com>
-
- * bfin-tdep.c (bfin_extract_return_value): Fix swapped
- arguments to store_unsigned_integer.
-
-2011-07-20 Tom Tromey <tromey@redhat.com>
-
- * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
- in some declaration-only cases.
-
-2011-07-18 Tom Tromey <tromey@redhat.com>
-
- PR symtab/12984:
- * dwarf2read.c (dwarf2_section_info_def): New typedef.
- (struct dwarf2_per_objfile) <types>: Change to a VEC.
- (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
- <debug_type_section>: New field.
- (dwarf2_locate_sections): Push .debug_types sections onto VEC.
- (load_cu): Use appropriate section.
- (create_signatured_type_table_from_index): Add 'section'
- argument.
- (dwarf2_read_index): Only allow a single .debug_types section.
- (dw2_get_file_names): Use appropriate section.
- (read_type_comp_unit_head): Add 'section' argument.
- (create_debug_types_hash_table): Loop over all .debug_types
- sections.
- (init_cu_die_reader): Use appropriate section.
- (process_psymtab_comp_unit, load_partial_comp_unit)
- (load_full_comp_unit, read_die_and_children, find_partial_die)
- (lookup_die_type, determine_prefix, follow_die_offset): Update.
- (lookup_signatured_type_at_offset): Add 'section' argument.
- (read_signatured_type_at_offset): Add 'sect' argument.
- (read_signatured_type): Use appropriate section.
- (set_die_type, get_die_type_at_offset): Update.
- (dwarf2_per_objfile_free): Free all .debug_types sections, and
- VEC.
- (write_psymtabs_to_index): Don't allow index with more than one
- .debug_types section.
-
-2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix crash if referenced CU is aged out.
- * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
- xfree of block.data.
- (indirect_pieced_value): New variable back_to, use to for xfree of
- baton.data.
- (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
- block.data.
- * dwarf2read.c (dwarf2_find_base_address): New prototype.
- (load_cu): New function from ...
- (dw2_do_instantiate_symtab): ... the code here ...
- (process_full_comp_unit): ... and here.
- (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
- retval.data.
-
-2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
- type.
-
-2011-07-19 Gary Benson <gbenson@redhat.com>
-
- * infrun.c (struct execution_control_state): New member
- stop_func_filled_in.
- (clear_stop_func, fill_in_stop_func): New functions.
- (handle_inferior_event): Call clear_stop_func rather than
- manipulating the execution control state directly.
- Call fill_in_stop_func lazily as required rather than
- directly calling find_pc_partial_function in all cases.
-
-2011-07-18 Tom Tromey <tromey@redhat.com>
-
- * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
- checking for variable-sized array.
-
-2011-07-18 Jean-Charles Delay <delay@adacore.com>
-
- * varobj.h (varobj_languages): Add vlang_ada definition to the list
- of supported languages.
- * varobj.c: Add top definitions and basic implementation of the
- following callbacks: ada_number_of_children, ada_name_of_variable,
- ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
- ada_value_of_child, ada_type_of_child, ada_value_of_variable.
- (languages): Register Ada-specific callbacks.
- (variable_language): Add the Ada case in the language setter switch.
-
-2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
-
-2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
+ in function documentation.
- Code cleanup.
- * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
- (execute_stack_op): Use dwarf2_frame_ctx_funcs
- * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
- (execute_stack_op): Access read_reg, get_frame_base, read_mem,
- get_frame_cfa, get_tls_address and dwarf_call via funcs.
- * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
- (struct dwarf_expr_context_funcs): New, move here methods from ...
- (struct dwarf_expr_context): ... here. New fields funcs.
- * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
- (dwarf_expr_ctx_funcs): New.
- (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
- (needs_frame_dwarf_call): Access get_frame_pc via funcs.
- (needs_frame_ctx_funcs): New.
- (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
-
-2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
- * MAINTAINERS (Write After Approval): Add myself to the list.
+ -Wshadow warning fix.
+ * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
+ variable into wild_match_p. Adjust code accordingly.
-2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+ Andrey Smirnov <andrew.smirnov@gmail.com>
- * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
- that CIE pointer of an FDE really points to a CIE .
+ * ada-valprint.c (ada_val_print_1): Move the code handling
+ TYPE_CODE_ENUM inside its own lexical block. Declare
+ variables len and val there, instead of in the function's
+ top level block. Avoid declaring deref_val again in a way
+ that shadows another variable of the same name declared
+ in one of the up-level blocks. Just re-use the up-level
+ variable instead.
-2011-07-15 Hui Zhu <teawater@gmail.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
- * remote.c (remote_get_trace_status): Add comments.
+ * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
+ Replace block_found argument by symbol_info. Adjust
+ implementation accordingly. Add function documentation.
+ (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
+ Fix documentation.
+ * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
+ * ada-exp.y (write_object_renaming): Adjust to new
+ ada_lookup_encoded_symbol API.
-2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
- Code cleanup - constify struct lval_funcs.
- * dwarf2loc.c (pieced_value_funcs): Make it const.
- * infrun.c (siginfo_value_funcs): Likewise.
- * opencl-lang.c (opencl_value_funcs): Likewise.
- * valops.c (value_assign, value_ind): Make the funcs variable const.
- * value.c (struct value): Make location.computed.funcs target const.
- Rearrange the comments.
- (allocate_computed_value): Make the funcs parameter target const.
- (value_computed_funcs): Return the funcs target const.
- (value_free, value_copy, set_value_component_location): Make the funcs
- variable const.
- * value.h (allocate_computed_value): Make the funcs parameter target
- const.
- (value_computed_funcs): Return the funcs target const.
- * windows-tdep.c (tlb_value_funcs): Make it const.
+ * ada-lang.h (struct ada_symbol_info): Reformat. Improve
+ documentation.
-2011-07-14 Hui Zhu <teawater@gmail.com>
+2012-03-28 Rathish C <rathish.c@kpitcummins.com>
- * remote.c (remote_get_trace_status): Initialize p.
+ * v850-tdep.c: Add the enum values for mpu and fpu registers.
+ (v850_register_name): Add the mpu and fpu register names.
+ (v850e_register_name): Add the mpu and fpu register names.
+ (v850e2_register_name): New function.
+ (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
+ bfd_mach_v850e2v3.
-2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-28 Joel Brobecker <brobecker@adacore.com>
- Work around kgdb.
- * remote.c (remote_get_trace_status): New variable ex. Put
- remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
+ * NEWS: Add entry for Ada varobj support.
-2011-07-13 Tom Tromey <tromey@redhat.com>
+2012-03-28 Joel Brobecker <brobecker@adacore.com>
- * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
- value_from_contents for final conversion.
+ * varobj.c (default_value_is_changeable_p): New function,
+ extracted from varobj_value_is_changeable_p. Add declaration.
+ (ada_value_is_changeable_p): New function, extracted from
+ varobj_value_is_changeable_p. Add declaration.
+ (struct language_specific): New field "value_is_changeable_p".
+ (languages): Add entries for new field.
+ (varobj_create): Set language before calling install_new_value.
+ (varobj_value_is_changeable_p): Reimplement to call the varobj's
+ "value_is_changeable_p" language callback.
-2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-28 Joel Brobecker <brobecker@adacore.com>
- Code cleanup.
- * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
- Indent prototypes so they do not get into tags.
+ * ada-varobj.h, ada-varobj.c: New files.
+ * Makefile.in (SFILES): Add ada-varobj.c.
+ (HFILES_NO_SRCDIR): Add ada-varobj.h.
+ (COMMON_OBS): Add ada-varobj.o.
-2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-28 Joel Brobecker <brobecker@adacore.com>
- Code cleanup making also optimized out values lazy.
- * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
- allocate_optimized_out_value. Twice.
- (loclist_read_variable) Use allocate_optimized_out_value. Once.
- * findvar.c (read_var_value): Likewise.
- * value.c (allocate_optimized_out_value): New function.
- * value.h (allocate_optimized_out_value): New declaration.
+ * varobj.c (ada_value_has_mutated): Add declaration. New function.
+ (struct language_specific): New field "value_has_mutated".
+ (languages): Set field "value_has_mutated" in each entry of array.
+ (varobj_value_has_mutated): New function.
+ (varobj_udpdate): Add handling of type mutation.
+ (value_of_root): Add handling of type mutation.
+ (ada_value_has_mutated): New function.
-2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-28 Pedro Alves <palves@redhat.com>
- Fix occasional crash of CTRL-C during DWARF read in.
- * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
+ * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
+ Always supply $fr0 as 0.0 and $fr1 as 1.0.
-2011-07-11 Tom Tromey <tromey@redhat.com>
+2012-03-28 Tom Tromey <tromey@redhat.com>
- * regcache.c (struct regcache_descr): Fix typo.
- * i387-tdep.c (i387_supply_xsave): Fix typo.
+ * python/py-inferior.c (infpy_read_memory): Remove cleanups and
+ explicitly free 'buffer' on exit paths. Decref 'membuf_object'
+ before returning.
-2011-07-11 Tom Tromey <tromey@redhat.com>
+2012-03-28 Tom Tromey <tromey@redhat.com>
- * dwarf2read.c (handle_DW_AT_stmt_list): New function.
- (read_file_scope, read_type_unit_scope): Use it.
+ * .dir-locals.el: New file.
-2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-28 Pedro Alves <palves@redhat.com>
- * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
- `int'.
+ * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
-2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
+2012-03-28 Joel Brobecker <brobecker@adacore.com>
- PR python/12438
- * python/python.c: Set gdbpy_should_print_stack default to off.
- (set_python): Deprecate maint set python print-stack to
- class_deprecate.
- (_initialize_python): Deprecate maint set/show python print-stack.
- Add new prefix command, python. Add new setting, print-backtrace.
- * NEWS: Document set python print-stack. Document default change.
+ * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
+ handling for r0.
-2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
+2012-03-27 Pedro Alves <palves@redhat.com>
- * python/py-inferior.c (infpy_dealloc): New function.
- (inferior_to_inferior_object): Return a new object, or a
- new reference to the existing object.
- (find_thread_object): Cleanup references to inferior.
- (delete_thread_object): Ditto.
- * python/py-infthread.c (create_thread_object): Do not increment
- inferior reference count.
+ Eliminate struct ui_stream.
-2011-07-08 Tom Tromey <tromey@redhat.com>
+ * ui-out.h (struct ui_stream): Delete.
+ (ui_out_field_stream): Adjust prototype.
+ (ui_out_stream_new, ui_out_stream_delete)
+ (make_cleanup_ui_out_stream_delete): Delete declarations.
+ * ui-out.c (ui_out_field_stream): Change prototype to take a
+ ui_file instead of a ui_stream. Adjust.
+ (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
+ (make_cleanup_ui_out_stream_delete): Delete.
+ * breakpoint.c (print_breakpoint_location)
+ (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
+ ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
+ * disasm.c (dump_insns): Ditto.
+ (do_mixed_source_and_assembly, do_assembly_only): Adjust
+ prototype.
+ (gdb_disassembly): Use ui_file/mem_fileopen instead of
+ ui_stream/ui_out_stream_new.
+ * infcmd.c (print_return_value): Ditto.
+ * osdata.c (info_osdata_command): Don't allocate a local
+ ui_stream.
+ * stack.c (print_frame_arg, print_frame_args, print_frame): Use
+ ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
+ * tracepoint.c (print_one_static_tracepoint_marker): Don't
+ allocate a local ui_stream.
+ * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
+ instead of ui_stream/ui_out_stream_new.
+ (list_args_or_locals): Don't allocate a local ui_stream.
+ * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
+ (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
+ ui_stream/ui_out_stream_new.
+ * cli/cli-setshow.c (do_setshow_command): Ditto.
+
+2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
+
+ * arm-linux-tdep.c (arm_linux_init_abi): Call
+ set_gdbarch_process_record. Initialize `arm_swi_record' field.
+ * arm-tdep.c (arm_process_record): New function.
+ (deallocate_reg_mem): New function.
+ (decode_insn): New function.
+ (thumb_record_branch): New function.
+ (thumb_record_ldm_stm_swi(): New function.
+ (thumb_record_misc): New function.
+ (thumb_record_ld_st_stack): New function.
+ (thumb_record_ld_st_imm_offset): New function.
+ (thumb_record_ld_st_reg_offset(): New function.
+ (thumb_record_add_sub_cmp_mov): New function.
+ (thumb_record_shift_add_sub): New function.
+ (arm_record_coproc_data_proc): New function.
+ (arm_record_coproc): New function.
+ (arm_record_b_bl): New function.
+ (arm_record_ld_st_multiple): New function.
+ (arm_record_ld_st_reg_offset): New function.
+ (arm_record_ld_st_imm_offset): New function.
+ (arm_record_data_proc_imm): New function.
+ (arm_record_data_proc_misc_ld_str): New function.
+ (arm_record_extension_space): New function.
+ (arm_record_strx): New function.
+ (sbo_sbz): New function.
+ (struct insn_decode_record): New structure for arm insn record.
+ (REG_ALLOC): New macro for reg allocations.
+ (MEM_ALLOC): New macro for memory allocations.
+ * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
+
+2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
+
+ * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
+ (store_register): Likewise.
+
+2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
- * dwarf2loc.c (locexpr_regname): New function.
- (locexpr_describe_location_piece): Use it.
- (disassemble_dwarf_expression): Add per_cu argument. Use
- locexpr_regname.
- <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
- DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
- New cases.
- (locexpr_describe_location_1): Add per_cu argument.
- (locexpr_describe_location): Update.
- (loclist_describe_location): Update.
+ * MAINTAINERS (Write After Approval): Add myself to the list.
-2011-07-08 Tom Tromey <tromey@redhat.com>
+2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
- * dwarf2expr.c (execute_stack_op): Add QUIT.
+ * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
+ Describe also the option "auto".
-2011-07-07 Hui Zhu <teawater@gmail.com>
+2012-03-22 Richard Henderson <rth@redhat.com>
- Revert:
- 2011-07-06 Hui Zhu <teawater@gmail.com>
- * remote.c (remote_start_remote): Add TRY_CATCH for
- remote_get_trace_status.
- * tracepoint.c (disconnect_tracing): Ditto.
+ * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
+ * sparc-nat.c (sparc_xfer_wcookie): Make static.
-2011-07-07 Andrew Burgess <aburgess@broadcom.com>
+2012-03-22 Richard Henderson <rth@redhat.com>
- * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
- variables as signed, not unsigned.
+ * jit.c (jit_read_code_entry): Compute alignment and offset of
+ int64_t member before computing entry_size.
-2011-07-06 Joel Brobecker <brobecker@adacore.com>
+2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
- * jit.c (jit_inferior_init): Reformat forward declaration.
+ Python scripting: Add new method Value.referenced_value to
+ gdb.Value which can dereference pointer as well as reference
+ values.
+ * NEWS: Add entry under 'Python scripting' about the new method
+ Value.referenced_value on gdb.Value objects.
+ * python/py-value.c (valpy_referenced_value): New function
+ defining a new method on gdb.Value objects which can dereference
+ pointer and reference values.
-2011-07-06 Matt Rice <ratmice@gmail.com>
+2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
* MAINTAINERS (Write After Approval): Add myself to the list.
-2011-07-06 Hui Zhu <teawater@gmail.com>
+2012-03-21 Kevin Buettner <kevinb@redhat.com>
- * remote.c (remote_start_remote): Add TRY_CATCH for
- remote_get_trace_status.
- * tracepoint.c (disconnect_tracing): Ditto.
+ * symtab.c (skip_prologue_sal): Change test to check for "main()"
+ in addition to "main".
-2011-07-05 Tom Tromey <tromey@redhat.com>
+2012-03-21 Joel Brobecker <brobecker@adacore.com>
- * symtab.c (operator_chars): Now static.
- * linespec.c (operator_chars): Don't declare.
+ * expression.h (op_name): Add declaration.
+ * expprint.c (op_name): Remove declaration. Make non-static.
+ * ax-gdb.c (gen_expr): Use op_name instead of op_string.
-2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
- * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
+ * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
+ of struct siginfo.
+ * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
+ * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
+ * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
+ (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
+ (linux_nat_get_siginfo): Likewise.
+ * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
+ (linux_nat_get_siginfo): Likewise.
+ * linux-tdep.c (linux_get_siginfo_type): Likewise.
+ * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
+ * procfs.c (gdb_siginfo_t): Likewise.
-2011-07-05 Tom Tromey <tromey@redhat.com>
+2012-03-21 Mike Frysinger <vapier@gentoo.org>
- * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
- * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
- (TYPE_CPLUS_REALLY_JAVA): New macro.
- * dwarf2read.c (process_structure_scope): Set
- TYPE_CPLUS_REALLY_JAVA.
+ * .gitignore: Ignore more files.
-2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-20 Pedro Alves <palves@redhat.com>
- * ada-lang.c: Fix typos.
- * amd64-tdep.c: Likewise.
- * breakpoint.c: Likewise.
- * cli/cli-decode.c: Likewise.
- * findcmd.c: Likewise.
- * inline-frame.c: Likewise.
- * mi/mi-main.c: Likewise.
- * minsyms.c: Likewise.
- * monitor.c: Likewise.
- * monitor.h: Likewise.
- * prologue-value.c: Likewise.
- * reverse.c: Likewise.
- * s390-tdep.c: Likewise.
+ * remote.c (remote_start_remote): Clear `rs->starting_up' on early
+ returns.
-2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
+2012-03-20 Yao Qi <yao@codesourcery.com>
+
+ * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
+ comment.
- * jit.c (jit_inferior_init): Forward declare.
- (jit_breakpoint_re_set_internal): Call jit_inferior_init.
+2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanupp: Use cu_offset and sect_offset compile time type checking.
+ * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
+ (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
+ sect_offset.
+ * dwarf2expr.h (cu_offset, sect_offset): New types.
+ (struct dwarf_expr_context_funcs) <dwarf_call>
+ (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
+ sect_offset.
+ (struct dwarf_expr_context) <len>: Improve the comment.
+ (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
+ cu_offset and sect_offset.
+ * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
+ (dwarf_expr_get_base_type, needs_frame_dwarf_call)
+ (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
+ * dwarf2loc.h: Include dwarf2expr.h.
+ (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
+ and sect_offset.
+ * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
+ Improve the comment.
+ (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
+ (struct signatured_type, struct line_header, struct partial_die_info)
+ (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
+ (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
+ (get_die_type_at_offset, create_cus_from_index)
+ (create_signatured_type_table_from_index, dw2_get_file_names)
+ (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
+ (read_and_check_comp_unit_head, read_and_check_type_unit_head)
+ (create_debug_types_hash_table, process_psymtab_comp_unit)
+ (load_partial_comp_unit, create_all_comp_units)
+ (partial_die_parent_scope, partial_die_full_name, skip_one_die)
+ (load_full_comp_unit, dwarf2_physname, read_import_statement)
+ (inherit_abstract_dies, read_func_scope, read_call_site_scope)
+ (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
+ (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
+ (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
+ (find_partial_die, read_attribute_value, lookup_die_type)
+ (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
+ (is_ref_attr): New function comment.
+ (dwarf2_get_ref_die_offset): New function comment, new variable retval.
+ Use cu_offset and sect_offset.
+ (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
+ (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
+ (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
+ (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
+ (offset_and_type_hash, offset_and_type_eq, set_die_type)
+ (get_die_type_at_offset, partial_die_hash, partial_die_eq)
+ (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
+ sect_offset.
+
+2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-07-04 Joel Brobecker <brobecker@adacore.com>
+ Code cleanup.
+ * python/py-auto-load.c (source_section_scripts): New variable back_to.
+ Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
+ with xfree.
+ (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
+
+2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * NEWS: Describe new options --init-command=FILE, -ix and
+ --init-eval-command=COMMAND, -iex.
+ * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
+ CMDARG_INIT_COMMAND.
+ (captured_main): New enum items OPT_IX and OPT_IEX. Add
+ "init-command", "init-eval-command", "ix" and "iex" to the variable
+ long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
+ New comment for CMDARG_FILE and CMDARG_COMMAND processing.
+ (print_gdb_help): Describe --init-command=FILE, -ix and
+ --init-eval-command=COMMAND, -iex.
+
+2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
- * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
+ Code cleanup.
+ * main.c (struct cmdarg): Move it here from main. Add more comments.
+ (cmdarg_s, VEC (cmdarg_s)): New.
+ (main): Move struct cmdarg from here. New variables cmdarg_vec and
+ cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
+ Install cleanup for cmdarg_vec. Update filling for options 'x' and
+ 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
+ of CMDARG.
+
+2012-03-19 Tom Tromey <tromey@redhat.com>
+
+ * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
+
+2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR symtab/13777
+ * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
+ GCC >=4.5.
+
+2012-03-16 Chris January <chris.january@allinea.com>
+
+ * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
+ of clear.
+
+2012-03-16 Chris January <chris.january@allinea.com>
+
+ * source.c (add_path): Use memmove instead of strcpy because the
+ strings overlap.
+
+2012-03-16 Joel Brobecker <brobecker@adacore.com>
+
+ * value.h (set_value_parent): Add declaration.
+ * value.c (set_value_parent): New function.
+ (value_address): If VALUE->PARENT is not NULL, then use it as
+ the base address instead of VALUE->LOCATION.address.
+ * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
+ the same as OBJ's address. Adjust V's offset accordingly.
+ Set V's parent.
+
+2012-03-16 Gary Benson <gbenson@redhat.com>
+
+ PR breakpoints/10738
+ * dwarf2read.c (use_deprecated_index_sections): New global.
+ (struct partial_die_info): New member may_be_inlined.
+ (read_partial_die): Set may_be_inlined where appropriate.
+ (add_partial_subprogram): Add partial symbols for partial
+ DIEs that may be inlined.
+ (new_symbol_full): Add inlined subroutines to the current
+ scope.
+ (write_psymtabs_to_index): Bump version number.
+ (dwarf2_read_index): Read only version 6 indices unless
+ use_deprecated_index_sections is set.
+ * linespec.c (symbol_and_data_callback): New structure.
+ (iterate_inline_only): New function.
+ (iterate_over_all_matching_symtabs): New argument
+ "include_inline". If nonzero, also call the callback for
+ symbols representing inlined subroutines.
+ (lookup_prefix_sym): Pass extra argument to the above.
+ (find_function_symbols): Likewise.
+ (add_matching_symbols_to_info): Likewise.
+ * NEWS: Mention that GDB can now set breakpoints on inlined
+ functions.
-2011-07-04 Tristan Gingold <gingold@adacore.com>
+2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
- * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
- (tcb_fieldno): Add activation_link field.
- (get_known_tasks_addr): Moved and rewritten.
- (get_tcb_types_info): Set activation_link field.
- (read_known_tasks_array): Add parameter. Rewritten.
- (read_known_tasks_list): New function.
- (read_known_tasks): New function.
- (ada_build_task_list): Call read_known_tasks instead of
- read_known_tasks_array.
- * ravenscar-thread.c: Add first_task_name constant.
- (has_ravenscar_runtime): Check for task list too.
+ * p-typeprint.c (pascal_type_print_method_args):
+ Fix display of parameter of methods.
-2011-07-04 Tristan Gingold <gingold@adacore.com>
+2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
- * ada-tasks.c: Renames fieldno to actb_fieldno.
- (ada_get_task_number): Indentation.
- (get_tcb_types_info): Remove all parameters. Write directly
- the globals.
- (ptid_from_atcb_common): Adjust.
- (read_atcb): Adjust.
+ * amd64-windows-nat.c (_initialize_amd64_windows_nat):
+ Add missing prototype.
-2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-16 Yao Qi <yao@codesourcery.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
- * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
+ Fix false compilation warning.
+ * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
-2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
+ Pedro Alves <pedro@codesourcery.com>
- * ui-out.c (ui_out_field_core_addr): Mention that the function
- description is in the header file.
- * ui-out.h (ui_out_field_core_addr): Document function.
+ * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
+ (arm_register_g_packet_guesses): New function.
+ (arm_gdbarch_init): Don't force a target description with
+ registers when the executable is detected as M-profile. Instead
+ set gdbarch->tdep->is_m. Register `g' packet guesses.
+ (_initialize_arm_tdep): Initialize the new target description.
+ * features/arm-with-m-fpa-layout.xml: New description.
+ * features/arm-with-m-fpa-layout.c: New, generated.
-2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-15 Joel Brobecker <brobecker@adacore.com>
- * ui-out.c (ui_out_get_field_separator): Remove unused function.
- * ui-out.h (ui_out_get_field_separator): Remove prototype.
+ * breakpoint.c (breakpoint_xfer_memory): Add assertion.
+ Update function description.
+ (insert_bp_location): Do not wipe bl->target_info out.
+ * mem-break.c: #include "gdb_string.h".
+ (default_memory_insert_breakpoint): Do not call target_read_memory
+ with a pointer to the breakpoint's shadow_contents buffer. Use
+ a local buffer instead.
+ * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
-2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-15 Tom Tromey <tromey@redhat.com>
- * symtab.c (expand_line_sal): Remove empty line.
+ * NEWS: Mention "info vtbl", not "info vtable".
+ * cp-support.c (info_vtbl_command): Fix comment.
+ (_initialize_cp_support): Fix text.
-2011-07-04 Thomas Schwinge <thomas@schwinge.name>
+2012-03-15 Tom Tromey <tromey@redhat.com>
- * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
- same way as ELFOSABI_NONE.
- <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
+ * cp-valprint.c (cp_print_value_fields): Use
+ print_function_pointer_address for vtable slot.
-2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-15 Tom Tromey <tromey@redhat.com>
- * breakpoint.c: Fix typos in comments.
- * linespec.c: Likewise.
- * symtab.c: Likewise.
+ * gnu-v3-abi.c (struct value_and_voffset): New.
+ (hash_value_and_voffset, eq_value_and_voffset)
+ (compare_value_and_voffset, compute_vtable_size)
+ (print_one_vtable, gnuv3_print_vtable): New functions.
+ (init_gnuv3_ops): Initialize 'print_vtable' field.
+ * cp-support.c (info_vtbl_command): New function.
+ (_initialize_cp_support): Add "info vtbl".
+ * cp-abi.h (cplus_print_vtable): Declare.
+ (struct cp_abi_ops) <print_vtable>: New field.
+ * cp-abi.c (cplus_print_vtable): New function.
+ * NEWS: Update.
-2011-07-04 Joel Brobecker <brobecker@adacore.com>
+2012-03-15 Tom Tromey <tromey@redhat.com>
- * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
- section in separate object files.
+ * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
+ iterate_over_symbols.
-2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-14 Doug Evans <dje@google.com>
- Fix false GCC warning.
- * linespec.c (decode_line_1): Initialize values.
+ * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
+ DW_OP_GNU_parameter_ref.
-2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
- * linespec.c (find_method): Accept the function type automatically only
- if it was specified with parameter types.
+ Fix double prompt of 'interpreter-exec mi'.
+ * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
+ (mi_interpreter_resume): use it.
+ (mi_execute_command_input_handler): New function.
+ * mi/mi-main.c (mi_execute_command): Move prompt printing to
+ mi_execute_command_input_handler.
-2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
- Stop on first linespec terminator instead of eating what we can.
- * linespec.c (is_linespec_boundary): New function.
- (name_end): Remove function.
- (keep_name_info): New parameter on_boundary, replace the body.
- (decode_line_1): Provide the parameter to keep_name_info.
- (decode_compound): Likewise. Drop the trailing java return type
- handling. Twice.
+ * darwin-nat-info.c (_initialize_darwin_info_commands): Add
+ prototype.
+ (darwin_debug_port_info): Make static.
+ * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
+ * machoread.c (_initialize_machoread): Add prototype.
+ * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
+ (i386_darwin_set_control, i386_darwin_get_control)
+ i386_darwin_dr_set_addr, i386_darwin_get_addr)
+ i386_darwin_get_status, i386_darwin_get_control):
+ Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
-2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-13 Joel Brobecker <brobecker@adacore.com>
- Fall back linespec to minimal symbols.
- * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
- decode_compound by TRY_CATCH, fall back on minsyms if it failed.
- (find_method, symbol_found): Change error to cplusplus_error.
+ * ax-gdb.c (gen_usual_unary): Remove special handling of
+ enum and bool types.
-2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-13 Joel Brobecker <brobecker@adacore.com>
- * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
+ * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
-2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
- Tom Tromey <tromey@redhat.com>
+2012-03-13 Joel Brobecker <brobecker@adacore.com>
- * dwarf2read.c (check_physname): New variable.
- (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
- (show_check_physname): New function.
- (_initialize_dwarf2_read): Add `check-physname' for check_physname.
+ * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+2012-03-13 Chris January <chris.january@allinea.com>
- * machoread.c (macho_symfile_read): Delete OBE comment.
+ * aix-thread.c (fill_sprs): Store the floating point registers
+ at the correct offsets into vals.
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+2012-03-13 Doug Evans <dje@google.com>
- * machoread.c (struct macho_oso_data): Delete.
- (current_oso): Delete.
- (macho_relocate_common_syms): New function, mostly extracted
- out of
- (macho_add_oso_symfile): Call macho_relocate_common_syms.
- Remove code that sets and unset current_oso.
- (macho_symfile_relocate): Delete handling of common symbols,
- now moved to macho_relocate_common_syms.
+ * NEWS: Mention symbol-reloading has been deleted.
+ * symfile.c (symbol_reloading): Delete.
+ (show_symbol_reloading): Delete.
+ (_initialize_symfile): Delete set/show symbol-reloading.
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+ * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
+ read_in_chain until we have successfully read it in.
+ (load_full_comp_unit): Ditto.
+ (read_signatured_type): Add comment.
- * darwin-nat.c (darwin_ptrace): Add documentation.
- Set errno to zero before calling ptrace. If ptrace returns
- -1 and errno is zero, then change then return zero.
- (darwin_kill_inferior): Issue a warning instead of triggering
- a failed assertion when the PT_KILL ptrace operations returned
- nonzero.
+2012-03-13 Chris January <chris.january@allinea.com>
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+ * stabsread.c (fix_common_block): Change type of valu argument
+ to CORE_ADDR.
- * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
- only when inf->private->no_ptrace.
+2012-03-13 Chris January <chris.january@allinea.com>
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+ * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
+ instruction.
- * ada-lang.c (print_it_exception): Print temporary catchpoints
- as "Temporary catchpoint".
- (print_mention_exception): Likewise.
+2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-07-01 Tom Tromey <tromey@redhat.com>
+ * common/linux-procfs.c (linux_proc_get_int): New, from
+ linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
+ field.
+ (linux_proc_get_tgid): Only call linux_proc_get_int.
+ (linux_proc_get_tracerpid): New.
+ (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
+ (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
+ linux_proc_pid_has_state.
+ * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
+ * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
+ (linux_ptrace_attach_warnings): New.
+ * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
+ New declaration.
+ * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
+ (linux_nat_attach): New variables ex, buffer, message and message_s.
+ Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
+
+2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * Makefile.in (linux-ptrace.o): New.
+ * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
+ from linux-nat.c.
+ * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
+ * common/linux-ptrace.c: New file.
+ * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
+ * config/arm/linux.mh: Likewise.
+ * config/i386/linux.mh: Likewise.
+ * config/i386/linux64.mh: Likewise.
+ * config/ia64/linux.mh: Likewise.
+ * config/m32r/linux.mh: Likewise.
+ * config/m68k/linux.mh: Likewise.
+ * config/mips/linux.mh: Likewise.
+ * config/pa/linux.mh: Likewise.
+ * config/powerpc/linux.mh: Likewise.
+ * config/powerpc/ppc64-linux.mh: Likewise.
+ * config/powerpc/spu-linux.mh: Likewise.
+ * config/s390/s390.mh: Likewise.
+ * config/sparc/linux.mh: Likewise.
+ * config/sparc/linux64.mh: Likewise.
+ * config/xtensa/linux.mh: Likewise.
+ * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
+ common/linux-procfs.c.
+ (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
- * jv-lang.c (java_language_defn): Use java_printchar,
- java_printstr.
- (java_get_encoding): New function.
- (java_emit_char): Use generic_emit_char.
- (java_printchar): New function.
- (java_printstr): Likewise.
+2012-03-13 Hui Zhu <teawater@gmail.com>
+ Pedro Alves <palves@redhat.com>
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+ * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
+ CREATE_BREAKPOINT_FLAGS_INSERTED.
+ (create_breakpoint_sal, create_breakpoints_sal)
+ (base_breakpoint_create_breakpoints_sal)
+ (tracepoint_create_breakpoints_sal)
+ (strace_marker_create_breakpoints_sal): New flags parameter. Pass
+ down.
+ (break_command_1, handle_gnu_v3_exceptions, trace_command)
+ (ftrace_command, strace_command): Adjust.
+ (create_tracepoint_from_upload): Pass
+ CREATE_BREAKPOINT_FLAGS_INSERTED.
+ * breakpoint.h (enum breakpoint_create_flags): New.
+ (create_breakpoint): New flags parameter.
+ * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
+ * python/py-breakpoint.c (bppy_init): Adjust.
+ * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
+ * spu-tdep.c (spu_catch_start): Adjust.
- * ada-typeprint.c (print_record_type): If unable to decode
- the name of the parent type, use the encoded name.
+2012-03-13 Pedro Alves <palves@redhat.com>
+ Hui Zhu <teawater@gmail.com>
+ Yao Qi <yao@codesourcery.com>
-2011-07-01 Jean-Charles Delay <delay@adacore.com>
+ * remote.c (struct remote_state): New field `starting_up'.
+ (remote_start_remote): Set and clear it.
+ (remote_can_download_tracepoint): If starting up, return false.
- * ada-typeprint.c (ada_print_type): Fix both PAD type and
- pointer to constrained packed array type output.
- * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
- packed array output.
+2012-03-13 Yao Qi <yao@codesourcery.com>
+
+ * inferior.h (struct inferior): Remove fields any_syscall_count,
+ syscalls_counts and total_syscalls_count. Move them to new
+ struct catch_syscall_inferior_data in breakpoint.c.
+ * breakpoint.c: Call DEF_VEC_I(int).
+ (struct catch_syscall_inferior_data): New.
+ (get_catch_syscall_inferior_data): New.
+ (catch_syscall_inferior_data_cleanup): New.
+ (insert_catch_syscall): Update to access data in
+ struct catch_syscall_inferior_data.
+ (insert_catch_syscall): Likewise.
+ (remove_catch_syscall): Likewise.
+ (remove_catch_syscall): Likewise.
+ (is_syscall_catchpoint_enabled): Likewise.
+ (add_catch_command): Likewise.
+ (_initialize_breakpoint): Register cleanup.
+ * breakpoint.h: Removed DEF_VEC_I(int).
+ * dwarf2loc.c: Call DEF_VEC_I(int).
+ * mi/mi-main.c: Likewise.
-2011-07-01 Jean-Charles Delay <delay@adacore.com>
+2012-03-12 Mark Kettenis <kettenis@gnu.org>
- * ada-typeprint.c (print_array_type): removed if condition on show
- being negative for bounds printing.
+ * inf-ptrace.c (inf_ptrace_post_attach): Make static.
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+2012-03-12 Chris January <chris.january@allinea.com>
- * ada-lang.c (ada_identical_enum_types_p): New function.
- (symbols_are_identical_enums): New function.
- (remove_extra_symbols): Do nothing if NSYMS < 2.
- Use symbols_are_identical_enums.
+ * aix-thread.c (_initialize_aix_thread): Add prototype.
+ * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
+ * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+2012-03-12 Joel Brobecker <brobecker@adacore.com>
- * ada-valprint.c (ada_value_print): Handle typedefs.
+ * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
+ include of "amd64-nat.h".
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+2012-03-12 Tom Tromey <tromey@redhat.com>
- * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
+ * buildsym.c (record_pending_block): Now static.
+ * buildsym.h: (record_pending_block): Remove.
-2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
+2012-03-12 Andreas Tobler <andreast@fgznet.ch>
- * ada-lang.c (thin_descriptor_type): Deal with typedefs.
- (decode_constrained_packed_array): Likewise.
- (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
+ * amd64bsd-nat.c: Include amd64bsd-nat.h.
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+2012-03-09 Tom Tromey <tromey@redhat.com>
- * ada-exp.y (convert_char_literal): Handle typedef types.
+ * dwarf2read.c (struct dwarf2_cu) <checked_producer,
+ producer_is_gxx_lt_4_6>: New fields.
+ (producer_is_gxx_lt_4_6): Use and update producer cache fields.
-2011-07-01 Joel Brobecker <brobecker@adacore.com>
+2012-03-09 Tom Tromey <tromey@redhat.com>
- * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
+ * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
-2011-06-30 Tom Tromey <tromey@redhat.com>
+2012-03-08 Joel Brobecker <brobecker@adacore.com>
- * varobj.c (varobj_create): Call do_cleanups on early exit path.
- * valops.c (find_overload_match): Call do_cleanups on early exit
- path.
- * solib.c (solib_find): Call do_cleanups on early exit path.
+ * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
+ prototype.
-2011-06-30 Tom Tromey <tromey@redhat.com>
+2012-03-08 Joel Brobecker <brobecker@adacore.com>
- * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
- * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
- return paths. Defer final do_cleanups until last return.
- * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
- early return.
+ * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
-2011-06-30 Tom Tromey <tromey@redhat.com>
+2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
- * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
+ Fix -Wmissing-prototypes build.
+ * arm-linux-nat.c (get_thread_id): Make it static.
+ * xtensa-linux-nat.c (get_thread_id): Likewise.
-2011-06-30 Andrew Burgess <aburgess@broadcom.com>
+2012-03-08 Joel Brobecker <brobecker@adacore.com>
- * MAINTAINERS (Write After Approval): Add myself to the list.
+ * server.c (process_point_options): If a conditional expression
+ is found, only print a message if remote_debug is nonzero.
-2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Disable epilogue unwinders on recent GCCs.
- * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
- initialize it, return 0 on EPILOGUE_UNWIND_VALID.
- * dwarf2read.c (process_full_comp_unit): Initialize
- EPILOGUE_UNWIND_VALID.
- * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
- initialize it, return 0 on EPILOGUE_UNWIND_VALID.
- * symtab.h (struct symtab): New field epilogue_unwind_valid.
-
-2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Code cleanup - reformatting.
- * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
- (producer_is_gcc_ge_4): ... here, change the return value.
- (process_full_comp_unit): New variable gcc_4_minor, adjust the value
- interpretation.
-
-2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix non-only rename list for Fortran modules import.
- * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
- cp_add_using_directive caller.
- (cp_add_using_directive): New parameter excludes, describe it. New
- variables ix and param. Compare if also excludes match. Allocate NEW
- with variable size, initialize EXCLUDES there.
- (cp_lookup_symbol_imports): New variable excludep, test
- current->EXCLUDES with it.
- * cp-support.h: Include vec.h.
- (struct using_direct): New field excludes, describe it.
- (DEF_VEC_P (const_char_ptr)): New.
- (cp_add_using_directive): New parameter excludes.
- * defs.h (const_char_ptr): New typedef.
- * dwarf2read.c (read_import_statement): New variables child_die,
- excludes and cleanups, read in excludes.
- (read_namespace): Adjust the cp_add_using_directive caller.
-
-2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-08 Luis Machado <lgustavo@codesourcery.com>
- Code cleanup.
- * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
- negative comparisons.
-
-2011-06-29 André Pönitz <andre.poenitz@nokia.com>
-
- * mi/mi-main.c (mi_cmd_list_features): Emit
- breakpoint-notifications.
-
-2011-06-29 Tom Tromey <tromey@redhat.com>
-
- PR fortran/10036:
- * valprint.h (generic_emit_char, generic_printstr): Declare.
- * valprint.c (wchar_printable, append_string_as_wide)
- (print_wchar): Move from c-lang.c.
- (generic_emit_char): New function; mostly taken from c_emit_char.
- (generic_printstr): New function; mostly taken from c_printstr.
- * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
- represented as arrays.
- <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
- type.
- * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
- identically to TYPE_CODE_INT.
- * f-lang.c (f_get_encoding): New function.
- (f_emit_char): Use generic_emit_char.
- (f_printchar): Replace comment.
- (f_printstr): Use generic_printstr.
- * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
- "character" types specially.
- <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
- for Fortran.
- * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
- Move to valprint.c
- (c_emit_char): Call generic_emit_char.
- (c_printstr): Call generic_printstr.
-
-2011-06-29 Gary Benson <gbenson@redhat.com>
-
- * breakpoint.c (bpstat_what): Removed duplicated case.
-
-2011-06-28 Tom Tromey <tromey@redhat.com>
-
- * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
-
-2011-06-27 Tom Tromey <tromey@redhat.com>
-
- * valops.c (find_overload_match): Call do_cleanups before early
- return.
- * top.c (execute_command): Call do_cleanups before early return.
- (command_loop): Likewise.
- * stack.c (backtrace_command): Make a null cleanup early. Don't
- conditionally call do_cleanups.
- * python/py-value.c (TRY_CATCH): Move cleanup handling into
- TRY_CATCH.
- * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
- so cleanups are always run.
- * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
- * findcmd.c (parse_find_args): Call do_cleanups on early return
- path.
- * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
- Don't conditionally call do_cleanups.
- * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
- later.
-
-2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
-
- * MAINTAINERS (Write After Approval): Use default email address.
-
-2011-06-27 Joel Brobecker <brobecker@adacore.com>
-
- * MAINTAINERS (Write After Approval): Add Eric Botcazou.
-
-2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
-
- * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
- saved_regs_mask and copied_regs_mask fields.
- (sparc_record_save_insn): New prototype.
- * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
- (sparc_record_save_insn): New function.
- (sparc_analyze_prologue): Add head comment. Recognize store insns
- of call-saved registers. Use OFFSET consistently. Recognize flat
- frames and cache their settings.
- (sparc32_skip_prologue): Handle flat frames.
- (sparc_frame_cache): Add frame_offset to the base address.
- (sparc32_frame_cache): Adjust to new frame description.
- (sparc32_frame_prev_register): Likewise.
- * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
- * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
- * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
- * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
- frame by calling sparc_record_save_insn.
- * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
- * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
- * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
-
-2011-06-27 Tristan Gingold <gingold@adacore.com>
-
- * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
- field by map_addr and map_len.
- (dwarf2_read_section): Adjust for the new bfd_mmap api.
- (munmap_section_buffer): Likewise.
-
-2011-06-24 Tom Tromey <tromey@redhat.com>
-
- * varobj.c (update_dynamic_varobj_children): Make 'name' const.
- * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
- * python/python.c (gdbpy_parameter): Make 'arg' const.
- (execute_gdb_command): Likewise.
- (gdbpy_decode_line): Likewise. Copy it.
- (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
- (gdbpy_write): Make 'arg' const.
- * python/py-type.c (typy_lookup_typename): Make 'type_name'
- const.
- (gdbpy_lookup_type): Likewise.
- * python/py-prettyprint.c (print_children): Make 'name' const.
- * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
- * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
- Py_ssize_t.
- * python/py-function.c (fnpy_init): Make 'name' const.
- * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
- (gdbpy_string_to_argv): Make 'input' const.
- * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
- it.
- * gdbtypes.h (lookup_typename): Update.
- * gdbtypes.c (lookup_typename): Make 'name' const.
- (lookup_struct): Likewise.
- (lookup_union): Likewise.
- (lookup_enum): Likewise.
-
-2011-06-24 Tom Tromey <tromey@redhat.com>
-
- * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
- gdb_thread_db.h. Move all common/ entries to be together.
- (TAGS): Don't depend on DEPFILES.
-
-2011-06-23 Yao Qi <yao@codesourcery.com>
-
- * infrun.c (start_remote): Move call init_wait_for_inferior to ...
- * remote.c (remote_start_remote): ... here.
- * monitor.c (monitor_open): ... here.
-
-2011-06-23 Andrew Burgess <aburgess@broadcom.com>
-
- * gdbtypes.c (append_composite_type_field_aligned): Fix
- calculation of bit position based on alignment.
-
-2011-06-22 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.c (bpstat_stop_status): Call the check_status
- breakpoint_ops method.
- (print_one_breakpoint_location): Also print the condition for Ada
- exception catchpoints.
- (allocate_bp_location): New, factored out from
- allocate_bp_location.
- (allocate_bp_location): Adjust. Call the owner breakpoint's
- allocate_location method, if there is one.
- (free_bp_location): Call the locations's dtor method, if there is
- one.
- (init_raw_breakpoint_without_location): New breakpoint_ops
- parameter. Use it.
- (set_raw_breakpoint_without_location): Adjust.
- (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
- (set_raw_breakpoint): Adjust.
- (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
- (catch_syscall_breakpoint_ops): Install NULL allocate_location,
- re_set and check_status methods.
- (init_catchpoint): Don't memset, initialize thread, addr_string
- and enable_state. Pass the ops down to init_raw_breakpoint.
- (install_catchpoint): Rename to ...
- (install_breakpoint): ... this, and make extern.
- (create_fork_vfork_event_catchpoint): Adjust.
- (catch_exec_breakpoint_ops): Install NULL allocate_location,
- re_set and check_status methods.
- (create_syscall_event_catchpoint): Adjust.
- (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
- (masked_watchpoint_breakpoint_ops): Install NULL
- allocate_location, re_set and check_status methods.
- (catch_exec_command_1): Adjust.
- (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
- re_set and check_status methods.
- (create_ada_exception_breakpoint): Rename to ...
- (init_ada_exception_breakpoint): ... this. Add a struct
- breakpoint parameter, and delete the exp_string, cond_string and
- cond parameters. Use init_raw_breakpoint, and don't install or
- mention the breakpoint yet. Don't clear breakpoint fields that
- init_raw_breakpoint already clears.
- (re_set_breakpoint): Delete, split into ...
- (breakpoint_re_set_default, prepare_re_set_context): ... these new
- functions.
- (breakpoint_re_set_one): Call the breakpoint's
- breakpoint_ops->re_set implementation, if there's one. Adjust.
- * breakpoint.h: Forward declare struct bpstats and struct bp_location.
- (struct bp_location_ops): New type.
- (struct bp_location): New field `ops'.
- (struct breakpoint_ops): New `allocate_location', `re_set' and
- `check_status' fields. Make `breakpoint_hit''s description match
- reality.
- (init_bp_location): Declare.
- (breakpoint_re_set_default): Declare.
- (create_ada_exception_breakpoint): Rename to ...
- (init_ada_exception_breakpoint): ... this. Add a struct
- breakpoint parameter, and delete the exp_string, cond_string and
- cond parameters.
- (install_breakpoint): Declare.
- * ada-lang.c: Include exceptions.h.
- <Ada exceptions description>: Update.
- (struct ada_catchpoint_location): New type.
- (ada_catchpoint_location_dtor): New function.
- (ada_catchpoint_location_ops): New global.
- (ada_catchpoint): New type.
- (create_excep_cond_exprs): New function.
- (dtor_exception, allocate_location_exception, re_set_exception)
- (should_stop_exception, check_status_exception): New functions.
- (print_one_exception, print_mention_exception)
- (print_recreate_exception): Adjust.
- (dtor_catch_exception, allocate_location_catch_exception)
- (re_set_catch_exception, check_status_catch_exception): New
- functions.
- (catch_exception_breakpoint_ops): Install them.
- (dtor_catch_exception_unhandled)
- (allocate_location_catch_exception_unhandled)
- (re_set_catch_exception_unhandled)
- (check_status_catch_exception_unhandled): New functions.
- (catch_exception_unhandled_breakpoint_ops): Install them.
- (dtor_catch_assert, allocate_location_catch_assert)
- (re_set_catch_assert, check_status_catch_assert): New functions.
- (catch_assert_breakpoint_ops): Install them.
- (ada_exception_catchpoint_p): Delete.
- (catch_ada_exception_command_split)
- (ada_exception_catchpoint_cond_string): Rename exp_string
- parameter to excep_string. Adjust.
- (ada_parse_catchpoint_condition): Delete.
- (ada_exception_sal): Rename the exp_string parameter to
- excep_string. Delete the cond_string and cond parameters.
- Adjust.
- (ada_decode_exception_location): Rename the exp_string parameter
- to excep_string. Delete the cond_string and cond parameters.
- Adjust.
- (create_ada_exception_catchpoint): New function.
- (catch_ada_exception_command, ada_decode_assert_location)
- (catch_assert_command): Adjust.
- * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
-
-2011-06-22 Pedro Alves <pedro@codesourcery.com>
-
- * ada-lang.c: Include arch-utils.h.
- (ada_decode_exception_location): Make static.
- (catch_ada_exception_command): Moved here from breakpoint.c.
- (ada_decode_assert_location): Make static.
- (catch_assert_command): Moved here from breakpoint.c.
- (_initialize_ada_lang): Install the exception and assert
- catchpoint commands here.
- * ada-lang.h (ada_decode_exception_location)
- (ada_decode_assert_location): Delete declarations.
- * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
- breakpoint.h.
- (create_ada_exception_breakpoint): Make extern.
- (catch_ada_exception_command, catch_assert_command): Moved to
- ada-lang.c.
- (add_catch_command): Make extern.
- (_initilize_breakpoint): Don't install the exception and assert
- catchpoint commands here.
- * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
- breakpoint.c
- (add_catch_command, create_ada_exception_breakpoint): Declare.
-
-2011-06-22 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.c (init_raw_breakpoint_without_location): Don't add
- the breakpoint to the breakpoint chain here.
- (set_raw_breakpoint_without_location): Add the breakpoint to the
- breakpoint chain here.
- (init_raw_breakpoint): Adjust comments.
- (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
- here.
- (init_catchpoint): Don't set the catchpoint's breakpoint number
- here.
- (install_catchpoint): New function.
- (create_fork_vfork_event_catchpoint)
- (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
- use install_catchpoint.
-
-2011-06-22 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.c (create_catchpoint_without_mention)
- (create_catchpoint): Delete.
-
-2011-06-22 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
- * breakpoint.c (init_raw_breakpoint_without_location): Remove
- reference to exec_pathname.
- (struct exec_catchpoint): New type.
- (dtor_catch_exec): New function.
- (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
- (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
- (catch_exec_command_1): Adjust to use init_catchpoint.
- (delete_breakpoint): Remove reference to exec_pathname.
-
-2011-06-22 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.h (struct breakpoint_ops): New field `dtor'.
- (struct breakpoint): Delete field `syscalls_to_be_caught'.
- * breakpoint.c (init_raw_breakpoint_without_location): Remove
- reference to syscalls_to_be_caught.
- (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
- NULL `dtor'.
- (struct syscall_catchpoint): New type.
- (dtor_catch_syscall): New function.
- (insert_catch_syscall, remove_catch_syscall)
- (breakpoint_hit_catch_syscall, print_one_catch_syscall)
- (print_recreate_catch_syscall): Adjust.
- (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
- (catch_exec_breakpoint_ops): Install a NULL `dtor'.
- (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
- (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
- (masked_watchpoint_breakpoint_ops)
- (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
- (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
- there is one. Remove references to syscalls_to_be_caught.
- (catching_syscall_number): Adjust.
- * ada-lang.c (catch_exception_breakpoint_ops)
- (catch_exception_unhandled_breakpoint_ops)
- (catch_assert_breakpoint_ops): Install a NULL `dtor'.
-
-2011-06-22 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
- field.
- * breakpoint.c (init_raw_breakpoint_without_location): Remove
- reference to forked_inferior_pid.
- (struct fork_catchpoint): New type.
- (breakpoint_hit_catch_fork, print_it_catch_fork)
- (print_one_catch_fork, breakpoint_hit_catch_vfork)
- (print_it_catch_vfork, print_one_catch_vfork): Adjust.
- (create_fork_vfork_event_catchpoint): Adjust to use
- init_catchpoint.
+ * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
+ of internal error for unknown/unsupported types.
-2011-06-22 Pedro Alves <pedro@codesourcery.com>
+2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
- * breakpoint.c (add_to_breakpoint_chain)
- (init_raw_breakpoint_without_location): New functions, factored
- out from ...
- (set_raw_breakpoint_without_location): ... this one.
- (init_raw_breakpoint): New function, factored out from
- set_raw_breakpoint and adjusted to use
- init_raw_breakpoint_without_location.
- (set_raw_breakpoint): Adjust.
- (init_catchpoint): New function, factored out from
- create_catchpoint_without_mention and adjusted to use
- init_raw_breakpoint.
- (create_catchpoint_without_mention): Adjust.
+ Fix CU relative vs. absolute DIE offsets.
+ * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
+ offset to offset_in_cu.
+ * dwarf2read.c (process_enumeration_scope): Add CU offset to
+ TYPE_OFFSET.
+ (dwarf2_fetch_die_location_block): Rename parameter offset to
+ offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
-2011-06-22 Tom Tromey <tromey@redhat.com>
+2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
- * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
- argument of 0 specially.
+ * libunwind-frame.c: Rename to ...
+ * ia64-libunwind-tdep.c: ... here.
+ * libunwind-frame.h: Rename to ...
+ * ia64-libunwind-tdep.h: ... here.
+ * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
+ ia64-libunwind-tdep.h.
+ (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
+ * README (--with-libunwind): Rename to ...
+ (--with-libunwind-ia64): ... here, note it is ia64 specific now.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * configure.ac: New option --with-libunwind-ia64, make the
+ AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
+ Remove AC_DEFINE for HAVE_LIBUNWIND.
+ * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
+ Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
+ Rename libunwind-frame in the general comment.
+ * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
+ Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
+ Move forward declarations inside #ifndef. Rename libunwind-frame in
+ the general comment.
+ * ia64-tdep.c: Rename libunwind-frame.h #include to
+ ia64-libunwind-tdep.h.
+ (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
+ (ia64_libunwind_descr): Rename libunwind-frame to
+ ia64-libunwind-tdep in these function comments.
+ * ia64-tdep.h: Rename libunwind-frame.h #include to
+ ia64-libunwind-tdep.h.
+ * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
+ ia64-libunwind-tdep in that data comment.
+
+2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * libunwind-frame.h (struct frame_unwind): New declaration.
+
+2012-03-08 Joel Brobecker <brobecker@adacore.com>
+
+ * breakpoint.c (_initialize_breakpoint): Fix error in help of
+ "set breakpoint condition-evaluation" command.
+
+2012-03-08 Tristan Gingold <gingold@adacore.com>
+
+ * sparc-stub.c: Move to stubs/
+ * sh-stub.c: Likewise.
+ * m68k-stub.c: Likewise.
+ * m32r-stub.c: Likewise.
+ * i386-stub.c: Likewise.
+
+2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
+
+ * m68klinux-tdep.c (m68k_linux_init_abi): Register
+ linux_get_siginfo_type.
+
+ * m68klinux-nat.c: Include "gdb_proc_service.h".
+ (PTRACE_GET_THREAD_AREA): Define.
+ (ps_get_thread_area): New function.
+
+2012-03-08 Yao Qi <yao@codesourcery.com>
+
+ * remote.c (remote_get_noisy_reply): Replace `sprintf' with
+ `xsnprintf'.
+ (remote_query_attached): Likewise.
+ (remote_static_tracepoint_marker_at): Likewise.
+ (remote_set_permissions): Likewise.
+ (remote_detach_1, extended_remote_attach_1): Likewise.
+ (send_g_packet, remote_vkill): Likewise.
+ (extended_remote_disable_randomization): Likewise.
+ (remote_add_target_side_condition): Likewise.
+ (remote_insert_breakpoint): Likewise.
+ (remote_remove_breakpoint): Likewise.
+ (remote_insert_watchpoint): Likewise.
+ (remote_remove_watchpoint): Likewise.
+ (remote_insert_hw_breakpoint): Likewise.
+ (remote_insert_hw_breakpoint): Likewise.
+ (remote_remove_hw_breakpoint): Likewise.
+ (remote_download_command_source): Likewise.
+ (remote_download_tracepoint): Likewise.
+ (remote_download_trace_state_variable): Likewise.
+ (remote_disable_tracepoint): Likewise.
+ (remote_trace_set_readonly_regions): Likewise.
+ (remote_get_tracepoint_status): Likewise.
+ (remote_trace_find): Likewise.
+ (remote_get_trace_state_variable_value): Likewise.
+ (remote_set_disconnected_tracing): Likewise.
+ (remote_set_circular_trace_buffer): Likewise.
+ (remote_get_min_fast_tracepoint_insn_len): Likewise.
+ (remote_use_agent): Likewise.
+ (remote_add_target_side_condition): Add one parameter BUF_SIZE.
+ Update callers.
+
+2012-03-07 Pedro Alves <palves@redhat.com>
+
+ * NEWS: Mention QProgramSignals.
+ * inferior.h (update_signals_program_target): Declare.
+ * infrun.c: (update_signals_program_target): New.
+ (handle_command): Update the target of the new program signals
+ array changes.
+ * remote.c (PACKET_QProgramSignals): New enum.
+ (last_program_signals_packet): New global.
+ (remote_program_signals): New.
+ (remote_start_remote): Update the target with the program signals
+ list.
+ (remote_protocol_features): Add entry for QPassSignals.
+ (remote_open_1): Free anc clear last_program_signals_packet.
+ (init_remote_ops): Install remote_program_signals.
+ * target.c (update_current_target): Adjust.
+ (target_program_signals): New.
+ * target.h (struct target_ops) <to_program_signals>: New field.
+ (target_program_signals): Declare.
+
+2012-03-07 Pedro Alves <palves@redhat.com>
+
+ * NEWS: Add subtitle for new z0/z1 conditional breakpoint
+ extensions.
+
+2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
+
+ * m68klinux-nat.c (getregs_supplies): Make static.
+ (getfpregs_supplies): Likewise.
+ (have_ptrace_getregs): Likewise.
+
+2012-03-06 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
+ in call to get_die_type_at_offset.
+
+2012-03-06 Stan Shebs <stan@codesourcery.com>
+
+ * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
+ * mi/mi-cmd-disas.c: Ditto.
+ * mi/mi-cmd-env.c: Ditto.
+ * mi/mi-cmd-file.c: Ditto.
+ * mi/mi-cmd-stack.c: Ditto.
+ * mi/mi-cmd-target.c: Ditto.
+ * mi/mi-cmd-var.c: Ditto.
+ * mi/mi-cmds.c: Ditto.
+ * mi/mi-cmds.h: Ditto.
+ * mi/mi-console.c: Ditto.
+ * mi/mi-getopt.c: Ditto.
+ * mi/mi-getopt.h: Ditto.
+ * mi/mi-interp.c: Ditto.
+ * mi/mi-main.c: Ditto.
+ * mi/mi-out.c: Ditto.
+ * mi/mi-parse.c: Ditto.
+ * mi/mi-parse.h: Ditto.
+ * mi/mi-symbol-cmds.c: Ditto.
-2011-06-22 Yao Qi <yao@codesourcery.com>
+ * mi/mi-getopt.h: Move mi_opt struct up.
+ * mi/mi-main.c (captured_mi_execute_command): Remove redundant
+ return.
+ * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
- * infrun.c (handle_inferior_event): Remove write-only local variable
- `sw_single_step_trap_p'.
+2012-03-06 Tom Tromey <tromey@redhat.com>
-2011-06-20 Tom Tromey <tromey@redhat.com>
+ * proc-service.c (ps_pglobal_lookup): Set the current program
+ space.
- * symtab.c (lookup_language_this): End loop if block is NULL.
+2012-03-06 Pedro Alves <palves@redhat.com>
-2011-06-17 Tom Tromey <tromey@redhat.com>
+ * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
- * valops.c (value_of_this): Use lookup_language_this.
- * symtab.h (lookup_language_this): Declare.
- * symtab.c (lookup_language_this): New function.
- (lookup_symbol_aux): Use lookup_language_this.
- * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
+2012-03-05 Joel Brobecker <brobecker@adacore.com>
-2011-06-17 Tom Tromey <tromey@redhat.com>
+ * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
- * value.h (value_of_this): Update.
- (value_of_local): Remove.
- * valops.c (value_of_this): Rename from value_of_local. Change
- parameters.
- * p-exp.y (exp): Update.
- (variable): Likewise.
- * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
-
-2011-06-17 Tom Tromey <tromey@redhat.com>
-
- * valops.c (value_of_local): Complain if NAME is NULL.
- * std-operator.def (OP_OBJC_SELF): Remove.
- * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
- * objc-exp.y (name_not_typename): Use OP_THIS.
- * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
- name for "this".
- <OP_OBJC_SELF>: Remove.
- * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
-
-2011-06-16 Tristan Gingold <gingold@adacore.com>
-
- * python/py-events.h (gdb_py_events): Make it extern.
- * python/py-evtregistry.c (gdb_py_events): Declare.
-
-2011-06-16 Hui Zhu <teawater@gmail.com>
-
- * remote.c (remote_trace_set_readonly_regions): Add check for
- remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
- output warning.
-
-2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * arm-linux-tdep.c: Include "auxv.h".
- (AT_HWCAP): Define.
- (ARM_LINUX_SIZEOF_VFP): Define.
- (arm_linux_supply_vfp): New function.
- (arm_linux_collect_vfp): Likewise.
- (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
- (arm_linux_fpa_regset_sections): New variable.
- (arm_linux_vfp_regset_sections): Likewise.
- (arm_linux_core_read_description): New function.
- (arm_linux_init_abi): Install arm_linux_core_read_description and
- arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
- appropriate for the architecture.
- * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
- (tdesc_arm_with_m): Declare.
- (tdesc_arm_with_iwmmxt): Likewise.
- (tdesc_arm_with_vfpv2): Likewise.
- (tdesc_arm_with_vfpv3): Likewise.
- (tdesc_arm_with_neon): Likewise.
- * arm-linux-nat.c: Move features/*.c includes ...
- * arm-tdep.c: ... here.
- * arm-linux-nat.c (arm_linux_read_description): Move initializing
- target description data structures ...
- * arm-tdep.c (_initialize_arm_tdep): ... here.
- * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
- HWCAP_VFPv3D16): Move definitions ...
- * arm-linux-tdep.h: ... here.
-
-2011-06-15 Hui Zhu <teawater@gmail.com>
-
- * remote.c (remote_trace_set_readonly_regions): Add a check for
- target_buf_size.
-
-2011-06-14 Tom Tromey <tromey@redhat.com>
-
- * coffread.c (coffread_objfile): Rename from current_objfile.
- * dbxread.c (dbxread_objfile): Rename from current_objfile.
- * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
-
-2011-06-14 Tom Tromey <tromey@redhat.com>
-
- * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
- (class_symtab): Remove.
- (jv_dynamics_progspace_key): New global.
- (jv_per_objfile_free): Reset program space data. Update assert.
- Don't clear globals.
- (get_dynamics_objfile): Use and set program space data.
- (get_java_class_symtab): Use get_dynamics_objfile.
- (add_class_symbol): Likewise.
- (java_link_class_type): Likewise.
- (java_object_type, jv_clear_object_type, set_java_object_type):
- Remove.
- (get_java_object_type): Update. Don't cache result.
- (is_object_type): Don't call set_java_object_type.
- (_initialize_java_language): Don't set jv_type_objfile_data_key;
- initialize jv_dynamics_progspace_key.
-
-2011-06-14 Tom Tromey <tromey@redhat.com>
-
- * symtab.h (current_objfile): Don't declare.
- * objfiles.h (current_objfile): Don't declare.
- * objfiles.c (current_objfile): Remove.
- * mdebugread.c (current_objfile): New file-scope global.
- * dbxread.c (current_objfile): New file-scope global.
- * coffread.c (current_objfile): New file-scope global.
-
-2011-06-13 Pedro Alves <pedro@codesourcery.com>
-
- * top.h (line): Rename to ...
- (saved_command_line): ... this.
- (linesize): Rename to ...
- (saved_command_line_size): ... this.
- * top.c (line): Rename to ...
- (saved_command_line): ... this.
- (linesize): Rename to ...
- (saved_command_line_size): ... this.
- (dont_repeat, command_line_input, dont_repeat_command): Adjust.
- * event-top.c (command_line_handler): Adjust.
- * main.c (captured_main): Adjust.
-
-2011-06-12 Mark Kettenis <kettenis@gnu.org>
-
- * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
- get_frame_func instead of get_frame_pc to determine the code
- address used to construct the frame ID.
- (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
- (i386_epilogue_frame_this_id): Likewise.
- (i386_epilogue_frame_prev_register): New function.
- (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
- (i386_stack_tramp_frame_sniffer): Fix coding style.
- (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
- (i386_gdbarch_init): Fix comments.
-
-2011-06-12 Mark Kettenis <kettenis@gnu.org>
-
- * i386-tdep.c (i386_match_insn_block): Use length of the proper
- instruction when walking back through the instruction stream.
-
-2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * symtab.c (output_partial_symbol_filename): Exchange the filename and
- fullname parameters order.
-
-2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
- * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
- for fun.
- * psymtab.c (map_symbol_filenames_psymtab)
- (map_partial_symbol_filenames): Likewise.
- * psymtab.h: Include symfile.h.
- (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
- * symfile.h (symbol_filename_ftype): New.
- (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
- map_symbol_filenames, clarify more the naming in comment.
-
-2011-06-07 Doug Evans <dje@google.com>
-
- * cc-with-index.sh: Fix typos in comment.
- Look for ../../gdb, for fullname.exp.
-
-2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
- Pedro Alves <pedro@codesourcery.com>
+ * common/linux-osdata.c (linux_common_core_of_thread): New function
+ comment.
+ * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
+ call by linux_common_core_of_thread.
+ (linux_nat_core_of_thread_1): Remove.
+ * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
+ * linux-thread-db.c: Include linux-osdata.h.
+ (update_thread_core): Replace linux_nat_core_of_thread_1 call by
+ linux_common_core_of_thread.
- * cli/cli-cmds.c (shell_escape): Use waitpid.
- * rs6000-nat.c (exec_one_dummy_insn): Likewise.
-
-2011-06-07 Tristan Gingold <gingold@adacore.com>
-
- * xcoffread.c (dwarf2_xcoff_names): New variable.
- (aix_process_linenos): Add a guard.
- (xcoff_symfile_finish): Free dwarf2.
- (xcoff_initial_scan): Add dwarf2 support.
-
-2011-06-06 Pedro Alves <pedro@codesourcery.com>
-
- * infcall.c (run_inferior_call): Don't mask async. Instead force
- a synchronous wait, if the target can async.
-
- * target.h (struct target_ops): Delete to_async_mask.
- (target_async_mask): Delete.
- * target.c (update_current_target): Delete references to to_async_mask.
- * linux-nat.c (linux_nat_async_mask_value): Delete.
- (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
- to linux_nat_async_mask_value.
- (linux_nat_async_mask): Delete.
- (linux_nat_async, linux_nat_close): Remove references to
- linux_nat_async_mask_value.
- * record.c (record_async_mask_value): Delete.
- (record_async): Remove references to record_async_mask_value.
- (record_async_mask): Delete.
- (record_can_async_p, record_is_async_p): Remove references to
- record_async_mask_value.
- (init_record_ops, init_record_core_ops): Remove references to
- record_async_mask.
- * remote.c (remote_async_mask_value): Delete.
- (init_remote_ops): Remove reference to remote_async_mask.
- (remote_can_async_p, remote_is_async_p): Remove references to
- remote_async_mask_value.
- (remote_async): Remove references to remote_async_mask_value.
- (remote_async_mask): Delete.
-
- * infrun.c (fetch_inferior_event): Don't claim registers changed
- if the current thread is already not executing.
-
-2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
-
- From Stephen Kitt <steve@sk2.org>
- * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
- gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
-
-2011-06-03 Joel Brobecker <brobecker@adacore.com>
-
- * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
- the case where ADDR_SIZE is different from TYPE_LENGTH (type).
-
-2011-06-03 Tom Tromey <tromey@redhat.com>
-
- * python/py-inferior.c (python_inferior_exit): Use inferior's exit
- code fields.
- * python/py-exitedevent.c (create_exited_event_object): Change
- type of 'exit_code'. Optionally add exit_code attribute.
- (emit_exited_event): Change type of 'exit_code'.
- * python/py-event.h (emit_exited_event): Update.
- * mi/mi-interp.c (mi_inferior_exit): Print exit code.
- * infrun.c (handle_inferior_event): Set exit code fields on
- inferior.
- * inferior.h (struct inferior) <has_exit_code, exit_code>: New
- fields.
- * inferior.c (exit_inferior_1): Initialize new fields.
+2012-03-05 Tom Tromey <tromey@redhat.com>
-2011-06-03 Tom Tromey <tromey@redhat.com>
+ * value.c (value_primitive_field): Don't fetch contents for
+ non-virtual bases.
- * dwarf2expr.c (get_signed_type): New function.
- (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
+2012-03-05 Tom Tromey <tromey@redhat.com>
-2011-06-02 Keith Seitz <keiths@redhat.com>
-
- * objc-lang.c (find_methods): Increment objfile_csym earlier.
-
-2011-06-02 Pedro Alves <pedro@codesourcery.com>
-
- * top.h (simplified_command_loop): Delete declaration.
-
-2011-06-01 Mike Frysinger <vapier@gentoo.org>
-
- * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
- gdb_sysroot to the "len" variable. Append both to "arg_buf".
-
-2011-06-01 Yao Qi <yao@codesourcery.com>
-
- * objfiles.h (obj_section_addr): Update reference to objfile from
- `abfd' to `obfd'.
- (obj_section_endaddr): Likewise.
-
-2011-06-01 Daniel Jacobowitz <drow@false.org>
-
- * MAINTAINERS: Update my email address and affiliation. Also
- update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
-
-2010-05-31 Keith Seitz <keiths@redhat.com>
-
- PR c++/12750
- * linespec.c (get_search_block): New function.
- (find_methods): Add FILE_SYMTATB parameter and use it and
- get_search_block to pass an appropriate block to
- lookup_symbol_in_namespace.
- (decode_line_1): Record if *ARGPTR is single-quote enclosed.
- Check if *ARGPTR starts with a filename first.
- If it does, call locate_first_half again to locate the next
- "first half" of the linespec.
- Pass FILE_SYMTATB to decode_objc and decode_compound.
- Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
- (locate_first_half): Stop on the first colon seen.
- (decode_compound): Add FILE_SYMTAB parameter.
- Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
- (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
- get_search_block with lookup_symbol.
- (find_method): Add FILE_SYMTAB parameter and pass it to
- find_methods.
- (decode_objc): Use get_search_block.
-
-2010-05-31 Keith Seitz <keiths@redhat.com>
-
- PR symtab/12704
- * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
- (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
- and CP_ANONYMOUS_NAMESPACE_LEN.
- (cp_is_anonymous): Likewise.
- * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
- (CP_ANONYMOUS_NAMESPACE_LEN): Define.
- * dwarf2read.c (namespace_name): Likewise.
- (fixup_partial_die): Likewise.
- * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
- seen in the input, keep it.
-
-2011-05-30 Pedro Alves <pedro@codesourcery.com>
-
- * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
- * inf-loop.h (inferior_event_handler_wrapper): Delete.
- * inf-loop.c (inferior_event_handler_wrapper): Delete.
- (inferior_event_handler): Don't handle INF_QUIT_REQ.
- * remote.c (_initialize_remote): Register
- async_remote_interrupt_twice directly as
- sigint_remote_twice_token event.
-
-2011-05-30 Pedro Alves <pedro@codesourcery.com>
-
- * target.h (enum inferior_event_type): Delete INF_ERROR.
- * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
-
-2011-05-30 Pedro Alves <pedro@codesourcery.com>
-
- * interps.c (interp_set): Don't cancel continuations.
-
-2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
-
-2011-05-30 Pedro Alves <pedro@codesourcery.com>
-
- * continuations.h (continuation_ftype): Add `err' parameter.
- Document parameters.
- (do_all_continuations, do_all_continuations_thread)
- (do_all_intermediate_continuations)
- (do_all_intermediate_continuations_thread)
- (do_all_inferior_continuations): Add `err' parameter.
- * continuations.c (do_my_continuations_1, do_my_continuations)
- (do_all_inferior_continuations, do_all_continuations_ptid)
- (do_all_continuations_thread_callback)
- (do_all_continuations_thread, do_all_continuations)
- (do_all_intermediate_continuations_thread_callback)
- (do_all_intermediate_continuations_thread)
- (do_all_intermediate_continuations): Add `err' parameter, and pass
- it down all the way to the continuations proper.
- * inf-loop.c (inferior_event_handler): If fetching an inferior
- event throws an error, don't pop the target, and still call the
- continuations, but with `err' set. Adjust all other continuation
- calls.
- * breakpoint.c (until_break_command_continuation): Add `err'
- parameter.
- * infcmd.c (step_1_continuation): Add `err' parameter. Don't
- issue another step if `err' is set.
- (struct until_next_continuation_args): New.
- (until_next_continuation): Add `err' parameter. Adjust.
- (until_next_command): Adjust.
- (struct finish_command_continuation_args): Add `thread' field.
- (finish_command_continuation): Add `err' parameter. Handle it.
- (finish_forward): Adjust.
- (attach_command_continuation): Add `err' parameter. Handle it.
- * infrun.c (infrun_thread_stop_requested_callback): Adjust to
- cancel the continuations.
- * interps.c (interp_set): Adjust to cancel the continuations.
- * thread.c (clear_thread_inferior_resources): Adjust to cancel the
- continuations rather than discarding.
- (free_thread): Don't clear thread inferior resources here.
- (delete_thread_1): Do it here instead. And do it before removing
- the thread from the threads list. Tag the thread as exited before
- clearing thread inferior resources.
-
-2011-05-30 Joel Brobecker <brobecker@adacore.com>
-
- * infcall.c (call_function_by_hand): Rephrase error message.
-
-2011-05-27 Pedro Alves <pedro@codesourcery.com>
-
- * defs.h (struct thread_info, struct inferior): Delete forward
- declarations.
- * breakpoint.h (struct thread_info): New forward declaration.
- * observer.sh (struct inferior): New forward declaration.
- * python/python-internal.h (struct inferior): New forward
- declaration.
+ * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
-2011-05-27 Pedro Alves <pedro@codesourcery.com>
-
- * defs.h (struct continuation, continuation_ftype)
- (continuation_free_arg_ftype, add_continuation)
- (do_all_continuations, do_all_continuations_thread)
- (discard_all_continuations, discard_all_continuations_thread)
- (add_intermediate_continuation, do_all_intermediate_continuations)
- (do_all_intermediate_continuations_thread)
- (discard_all_intermediate_continuations)
- (discard_all_intermediate_continuations_thread)
- (add_inferior_continuation, do_all_inferior_continuations)
- (discard_all_inferior_continuations): Move to ...
- * continuations.h: ... this new file.
- * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
- infcmd.c, inferior.c, infrun.c, interps.c: Include
- continuations.h.
-
-2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
- Doug Evans <dje@google.com>
+2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
- Fix PR 10970, PR 12702.
- * linux-nat.c (linux_lwp_is_zombie): New function.
- (wait_lwp): Initialize status. New variable prev_mask. Block signals.
- Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
-
-2011-05-27 Pedro Alves <pedro@codesourcery.com>
-
- * defs.h (continuation_ftype, continuation_free_arg_ftype): New
- typedefs.
- (add_continuation, add_intermediate_continuation)
- (add_inferior_continuation): Use them.
- * continuations.c (struct continuation): Use them.
- (make_continuation_ftype): Delete.
- (make_continuation, add_inferior_continuation, add_continuation)
- (add_intermediate_continuation): Use continuation_ftype and
- continuation_free_arg_ftype. Rename parameters to shorter names.
-
-2011-05-27 Pedro Alves <pedro@codesourcery.com>
-
- * continuations.c (make_continuation): Make it return void.
- (do_my_continuations): Rename to ...
- (do_my_continuations_1): ... this. Remove old_chain parameter and
- adjust.
- (do_my_continuations): New.
- (discard_my_continuations): Rename to ...
- (discard_my_continuations_1): ... this. Remove old_chain
- parameter and adjust.
- (discard_my_continuations): New.
- (add_inferior_continuation): Simplify.
- (do_all_inferior_continuations): Reimplement on top
- do_my_continuations.
- (discard_all_inferior_continuations): Simplify.
- (add_continuation): Simplify.
- (do_all_continuations_ptid): Simplify.
- (discard_all_continuations_thread_callback): Simplify.
- (add_intermediate_continuation): Simplify.
- (discard_all_intermediate_continuations_thread_callback):
- Simplify.
-
-2011-05-27 Pedro Alves <pedro@codesourcery.com>
-
- * utils.c (struct continuation, add_continuation)
- (add_inferior_continuation)
- (do_all_inferior_continuations, discard_all_inferior_continuations)
- (restore_thread_cleanup, do_all_continuations_ptid)
- (do_all_continuations_thread_callback)
- (do_all_continuations_thread, do_all_continuations)
- (discard_all_continuations_thread_callback)
- (discard_all_continuations_thread, discard_all_continuations)
- (add_intermediate_continuation)
- (do_all_intermediate_continuations_thread_callback)
- (do_all_intermediate_continuations_thread)
- (do_all_intermediate_continuations)
- (discard_all_intermediate_continuations_thread_callback)
- (discard_all_intermediate_continuations_thread)
- (discard_all_intermediate_continuations): Move to ...
- * continuations.c: ... this new file, and adjust to no longer
- implement continuations on top of cleanups.
- * Makefile.in (SFILES): Add continuations.c.
- (COMMON_OBS): Add continuations.o.
-
-2011-05-26 Pedro Alves <pedro@codesourcery.com>
-
- * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
- * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
- Internal error on invalid values.
- * reverse.c: Don't handle EXEC_ERROR.
- * mi/mi-main.c: Don't handle EXEC_ERROR.
-
-2011-05-26 Pedro Alves <pedro@codesourcery.com>
-
- * record.c: Include event-loop.h, inf-loop.h.
- (record_beneath_to_async): New global.
- (tmp_to_async): New global.
- (record_async_inferior_event_token): New global.
- (record_open_1): Don't error out if async is enabled.
- (record_open): Handle to_async. Create an async event source in
- the event loop.
- (record_close): Delete the async event source.
- (record_resumed): New global.
- (record_execution_dir): New global.
- (record_resume, record_core_resume): Set them. Register the
- target on the event loop.
- (record_wait): Rename to ...
- (record_wait_1): ... this. Add more debug output. Handle
- TARGET_WNOHANG, and the target beneath returning
- TARGET_WAITKIND_IGNORE.
- (record_wait): Reimplement on top of record_wait_1.
- (record_async_mask_value): New global.
- (record_async, record_async_mask, record_can_async_p)
- (record_is_async_p, record_execution_direction): New functions.
- (init_record_ops, init_record_core_ops): Install new methods.
- * infrun.c (fetch_inferior_event): Temporarily switch the global
- execution direction to the direction the target was going.
- (execution_direction): Change type to int.
- * target.c (default_execution_direction): New function.
- (update_current_target): Inherit and de_fault
- to_execution_direction.
- * target.h (struct target_ops) <to_execution_direction>: New
- field.
- (target_execution_direction): New macro.
- * inferior.h (execution_direction): Change type to int.
+ * s390-nat.c: Include "gregset.h".
-2011-05-26 Pedro Alves <pedro@codesourcery.com>
+2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
- * infcall.c (call_function_by_hand): Don't allow calling functions
- in reverse execution mode.
+ * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
+ [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
+ (libunwind_load): New variable so_error, use it for dlerror. Try to
+ load also LIBUNWIND_SO_7.
-2011-05-26 Pedro Alves <pedro@codesourcery.com>
+2012-03-05 Pedro Alves <palves@redhat.com>
- * infcmd.c (finish_command): Allow async finish in reverse.
+ * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
+ is not NULL, and remove resulting dead code.
-2011-05-26 Yao Qi <yao@codesourcery.com>
+2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
- * gdb_thread_db.h: Delete. Move to ...
- * common/gdb_thread_db.h: ... here.
+ * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
+ prologue to sh_analyze_prologue.
+ (sh_analyze_prologue): Make better use of such an upper limit, and
+ generally be more cautious about accessing memory.
-2011-05-26 Pedro Alves <pedro@codesourcery.com>
+2012-03-05 Tom Tromey <tromey@redhat.com>
- * infcmd.c (finish_backward): Set a step-resume breakpoint at the
- function's entry point instead of a manually managed momentary
- breakpoint, and only ever issue one proceed call.
- * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
- doing a reverse-finish, switch to stepi mode, to do another step.
- (insert_step_resume_breakpoint_at_sal): Make public.
- (normal_stop): No need to save function value return registers if
- going reverse.
- * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
+ * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
+ _initialize_ia64_hpux_tdep.
-2011-05-26 Pedro Alves <pedro@codesourcery.com>
+2012-03-05 Pedro Alves <palves@redhat.com>
- * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
- (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
- before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
- at the end.
- * breakpoint.c (update_breakpoints_after_exec): Also delete hp
- step-resume breakpoints.
- (print_it_typical): Handle bp_hp_step_resume.
- (bpstat_what): Ditto.
- (bptype_string): Ditto.
- (print_one_breakpoint_location): Ditto.
- (allocate_bp_location): Ditto.
- (mention): Ditto.
- (breakpoint_re_set_one): Ditto.
- * infrun.c (handle_inferior_event): Adjust. Split
- BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
- BPSTAT_WHAT_HP_STEP_RESUME.
- (insert_step_resume_breakpoint_at_sal): Rename to ...
- (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
- parameter. Handle it.
- (insert_step_resume_breakpoint_at_sal): Reimplement on top of
- insert_step_resume_breakpoint_at_sal_1.
- (insert_step_resume_breakpoint_at_frame): Rename to ...
- (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
- set a high-priority step-resume breakpoint.
- (insert_step_resume_breakpoint_at_frame): Adjust comment.
- (insert_step_resume_breakpoint_at_caller): Ditto.
-
-2011-05-26 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.c (iterate_over_related_breakpoints): New.
- (do_map_delete_breakpoint): New.
- (delete_command): Pass do_map_delete_breakpoint to
- map_breakpoint_numbers.
- (do_disable_breakpoint): New.
- (do_map_disable_breakpoint): Iterate over the breakpoint's related
- breakpoints.
- (do_enable_breakpoint): Rename to ...
- (enable_breakpoint_disp): ... this.
- (enable_breakpoint): Adjust.
- (do_enable_breakpoint): New.
- (enable_once_breakpoint): Delete.
- (do_map_enable_breakpoint): New.
- (do_map_enable_once_breakpoint): New.
- (enable_once_command, enable_delete_command)
- (delete_trace_command): Iterate over the breakpoint's related
- breakpoints.
+ PR gdb/13766
-2011-05-26 Pedro Alves <pedro@codesourcery.com>
+ * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
+ the register state is clear, supply explicit zero, instead of
+ marking the register unavailable.
- * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
- for ALPHA_ZERO_REGNUM.
- (alpha_supply_int_regs): Explicitly supply zero as the value for
- ALPHA_ZERO_REGNUM in the register cache.
- * alpha-nat.c (fetch_osf_core_registers): Ditto.
+2012-03-05 Tristan Gingold <gingold@adacore.com>
-2011-05-26 Yao Qi <yao@codesourcery.com>
+ * NEWS: Mention OpenVMS ia64 new target.
- * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
+2012-03-05 Tristan Gingold <gingold@adacore.com>
-2011-05-26 Tristan Gingold <gingold@adacore.com>
+ * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
+ (ia64_unw_accessors, ia64_unw_rse_accessors)
+ (ia64_libunwind_descr): Declare.
+ * ia64-vms-tdep.c: New file.
+ * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
+ (ia64_libunwind_descr): Make them public.
+ * configure.tgt: Add ia64-*-*vms*.
+ * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
+ (ALLDEPFILES): Add ia64-vms-tdep.c
- * symfile.h (struct dwarf2_section_names): New type.
- (struct dwarf2_debug_sections): New type.
- (dwarf2_has_info): Add parameter.
- * dwarf2read.c (dwarf2_elf_names): New variable.
- (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
- (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
- (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
- (dwarf2_has_info): Add names parameter. Pass names
- to dwarf2_locate_sections.
- (section_is_p): Rewrite using the names parameter.
- (dwarf2_locate_sections): Use section names from the names parameter.
- * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
- * elfread.c (read_psyms): Ditto.
- * machoread.c (macho_symfile_read): Ditto.
+2012-03-05 Tristan Gingold <gingold@adacore.com>
-2011-05-25 Andreas Schwab <schwab@redhat.com>
+ * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
+ * remote.c (PACKET_qXfer_uib): New enum value.
+ (remote_protocol_features): Add entry for PACKET_qXfer_uib.
+ (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
+ (_initialize_remote): Call add_packet_config_cmd for
+ xfer:uib packet.
- PR gdb/8677
- * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
+2012-03-05 Tristan Gingold <gingold@adacore.com>
-2011-05-24 Keith Seitz <keiths@redhat.com>
+ * osabi.c (gdb_osabi_names): Add OpenVMS.
+ (generic_elf_osabi_sniffer): Likewise.
+ * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
- PR breakpoint/12803
- * linespec.c (keep_name_info): Add handling for "volatile" keyword.
- (decode_compound): Unconditionally call keep_name_info.
+2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-05-24 Pedro Alves <pedro@codesourcery.com>
+ Removed unused code.
+ * libunwind-frame.c (libunwind_frame_unwind)
+ (libunwind_frame_base_address): Remove.
+ * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
- * breakpoint.c (watchpoint_check): If the watchpoint went out of
- scope, clear its command list.
- (map_breakpoint_numbers): Don't walk the related breakpoints list
- of each breakpoint.
+2012-03-04 Yao Qi <yao@codesourcery.com>
-2011-05-24 Tom Tromey <tromey@redhat.com>
+ * common/agent.c (gdb_connect_sync_socket): Add _ markup and
+ remove trailing new line.
+ (agent_run_command, agent_run_command): Add _ markup.
+ (agent_capability_check): Likewise.
- * MAINTAINERS: Move Jim Blandy to past maintainers.
+2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-05-24 Tristan Gingold <gingold@adacore.com>
+ * breakpoint.c (set_condition_evaluation_mode): Set
+ CONDITION_EVALUATION_MODE unconditionally.
- * symfile.h (enum dwarf2_section_enum): New type.
- (dwarf2_get_section_info): New prototype.
- * dwarf2read.c (dwarf2_get_section_info): Replace parameter
- section_name by sect. Use a switch to select the info.
- * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
- (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
+2012-03-03 Yao Qi <yao@codesourcery.com>
-2011-05-24 Pedro Alves <pedro@codesourcery.com>
+ * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
+ * common/agent.h: Update declaration.
+ * inf-child.c (inf_child_use_agent): New.
+ (inf_child_can_use_agent): New.
+ (inf_child_target): Initialize fields `to_use_agent'
+ and `to_can_use_agent'.
+ * agent.c (agent_new_objfile): New.
+ (_initialize_agent): Add agent_new_objfile to new_objfile
+ observer.
- * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
- shared library event breakpoint if there's no execution.
+ * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
+ New.
+ (linux_target_install_ops): Initialize field
+ `to_static_tracepoint_markers_by_strid'.
+ * remote.c (free_current_marker): Move it to ...
+ * tracepoint.c (free_current_marker): ... here. New.
+ (cleanup_target_stop): New.
+ * tracepoint.h: Declare free_current_marker.
+ * NEWS: Add one entry about `info static-tracepoint-marker'.
-2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-03 Yao Qi <yao@codesourcery.com>
- * breakpont.c (remove_hw_watchpoints): Remove unused function.
- * breakpoint.h remove_hw_watchpoints(): Remove prototype.
+ * common/agent.c (agent_loaded_p): New.
+ (agent_look_up_symbols): New global.
+ * common/agent.h: Declare agent_loaded_p.
-2011-05-23 Tom Tromey <tromey@redhat.com>
+2012-03-03 Yao Qi <yao@codesourcery.com>
- * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
- NULL.
+ * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
+ (agent_capability_check, agent_capability_invalidate): New.
+ (symbol_list): New array element.
+ * common/agent.h (enum agent_capa): New.
+ * target.c (target_pre_inferior): Call agent_capability_invalidate.
-2011-05-23 Doug Evans <dje@google.com>
+2012-03-03 Yao Qi <yao@codesourcery.com>
- * python/lib/gdb/printing.py (register_pretty_printer): Add missing
- entry for RuntimeError to doc string.
+ * target.h (struct target_ops) <to_use_agent>: New field.
+ (struct target_ops) <to_can_use_agent>: New field.
+ (target_use_agent, target_can_use_agent): New macro.
+ * target.c (update_current_target): Update.
+ * remote.c: New enum `PACKET_QAgent'.
+ (remote_protocol_features): Add a new element.
+ (remote_use_agent, remote_can_use_agent): New.
+ (init_remote_ops): Initialize field `can_use_agent' with
+ remote_can_use_agent. Intiailize field `use_agent' with
+ remote_use_agent.
+ * common/agent.c (use_agent): New global.
+ * common/agent.h: Declare it.
+ * tracepoint.c (info_static_tracepoint_markers_command): Add
+ comment.
+ * Makefile.in (SFILES): Add common/agent.c and agent.c.
+ (COMMON_OBS): Add common/agent.o and agent.o
+ (common-agent.o): New rule.
+ * agent.c: New.
-2011-05-23 Jerome Guitton <guitton@adacore.com>
+2012-03-03 Yao Qi <yao@codesourcery.com>
- * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
- sequence for probing loops.
+ * common/agent.c: New.
+ * common/agent.h: New.
+ * configure.ac: Add `sys/socket.h' and `sys/un.h' to
+ AC_CHECK_HEADERS.
+ * configure, configh.in: Regenerated.
-2011-05-23 Pedro Alves <pedro@codesourcery.com>
+2012-03-02 Kevin Buettner <kevinb@redhat.com>
- * infrun.c (user_visible_resume_ptid): Fix typos in describing
- comment.
+ * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
+ unless it exists for this architecture.
-2011-05-21 Mark Kettenis <kettenis@gnu.org>
+2012-03-02 Joel Brobecker <brobecker@adacore.com>
- * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
- zero as the value for %g0 in the register cache.
- * sparc-tdep.c (sparc32_supply_gregset): Likewise.
- * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
+ * language.h (struct language_defn): New "method" la_read_var_value.
+ * findvar.c: #include "language.h".
+ (default_read_var_value): Renames read_var_value. Rewrite
+ function description.
+ (read_var_value): New function.
+ * value.h (default_read_var_value): Add prototype.
+ * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
+ New functions.
+ (ada_language_defn): Add entry for la_read_var_value.
+ * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
+ * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
+ language_defn structures to add entry for new la_read_var_value
+ field.
-2011-05-20 Pedro Alves <pedro@codesourcery.com>
+2012-03-02 Tom Tromey <tromey@redhat.com>
+ Pedro Alves <palves@redhat.com>
- * infrun.c (proceed): Set previous_inferior_ptid here.
- (init_wait_for_inferior): Initialize previous_inferior_ptid from
- inferior_ptid, not null_ptid.
- (wait_for_inferior): Don't initialize previous_inferior_ptid here.
- (fetch_inferior_event): Nor here.
+ PR breakpoints/13776:
+ * breakpoint.c (breakpoint_init_inferior): Delete step-resume
+ breakpoints.
+ (delete_longjmp_breakpoint_at_next_stop): New.
+ * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
+ * target.c (generic_mourn_inferior): Call mark_breakpoints_out
+ before deleting the inferior. Add comments.
+ * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
+ breakpoints immediately, but only on next stop. Move that code
+ next to where we mark other breakpoints for deletion.
-2011-05-20 Pedro Alves <pedro@codesourcery.com>
+2012-03-02 Joel Brobecker <brobecker@adacore.com>
- * inf-loop.c (inferior_event_handler): Only output a message if
- verbose.
+ * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
+ marker.
+ * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
+ violation.
-2011-05-20 Luis Machado <lgustavo@codesourcery.com>
+2012-03-02 Pedro Alves <palves@redhat.com>
- * MAINTAINERS: Update my e-mail address.
+ * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
-2011-05-20 Pedro Alves <pedro@codesourcery.com>
+2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
- * infrun.c (proceed): Switch the inferior event loop to
- INF_EXEC_COMPLETE if the target refused to resume from a
- vfork/fork.
+ Fix -Wmissing-prototypes build.
+ * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
+ * remote-sim.c (gdbsim_has_all_memory): Likewise.
+ (gdbsim_has_memory): Likewise.
-2011-05-20 Pedro Alves <pedro@codesourcery.com>
+2012-03-02 Yao Qi <yao@codesourcery.com>
- * infcmd.c: Include "inf-loop.h".
- (step_once): When stepping into an inline subroutine, pretend the
- target has run. If the target can async, switch the inferior
- event loop to INF_EXEC_COMPLETE.
- * inferior.h (user_visible_resume_ptid): Declare.
- * infrun.c (user_visible_resume_ptid): New function, factored out
- from `resume'.
- (resume): Use it.
- * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
- that the current thread is running. Merge async and sync
- branches.
+ Fix -Wmissing-prototypes build.
+ * charset.c (phony_iconv_open): Make static.
+ (phony_iconv_close, phony_iconv): Likewise.
+ * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
+ * i386-windows-nat.c (_initialize_i386_windows_nat): New
+ prototype.
+ * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
+ * ser-mingw.c (create_select_thread): Make static.
+ * windows-termcap.c (tgetent): New prototype.
+ (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
+
+2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
+
+ Fix -Wmissing-prototypes build.
+ * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
+ (_initialize_windows_nat, _initialize_check_for_gdb_ini)
+ (_initialize_loadable): New prototypes.
+
+2012-03-02 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
+ abbrev table, read_comp_unit will do it.
+
+2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
+ * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
+ * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
+ * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
+ (_initialize_arm_symbian_tdep): New prototype.
+ * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
+ * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
+ * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
+ static.
+ * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
+ * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
+ prototype.
+ * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
+ (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
+ * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
+ static.
+ * moxie-tdep.c (moxie_process_record): Likewise.
+ * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
+ (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
+ * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
+ (_initialize_rl78_tdep): New prototype.
+ * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
+ (_initialize_rx_tdep): New prototype.
+ * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
+ (_initialize_darwin_solib): New prototype.
+ * solib-spu.c: Include solib-spu.h.
+ (_initialize_spu_solib): New prototype.
+ * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
+ * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
+ (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
+ (tic6x_software_single_step): Make it static.
+ (_initialize_tic6x_tdep): New prototype.
+
+2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * cris-tdep.c (cris_can_use_hardware_watchpoint)
+ (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
+
+2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
+ (frv_have_stopped_data_address): Remove.
+
+2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
+ * sh-tdep.c: Include sh64-tdep.h.
+ * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
+ * sh64-tdep.c: Include sh64-tdep.h.
+ * sh64-tdep.h: New file.
+
+2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c (mips32_scan_prologue): Correct indentation.
+
+2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
+ sp_regnum once the gdbarch_init_osabi hook has been called.
+
+2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c (mips32_bc1_pc): New function.
+ (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
+ BPOSGE32 and BPOSGE64 instructions.
+ (deal_with_atomic_sequence): Likewise.
+ (mips32_instruction_has_delay_slot): Likewise.
+
+2012-03-01 Maciej W. Rozycki <macro@mips.com>
+ Chris Dearman <chris@mips.com>
+ Maciej W. Rozycki <macro@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+
+ * features/mips-dsp.xml: New file.
+ * features/mips64-dsp.xml: New file.
+ * features/mips-dsp-linux.xml: New file.
+ * features/mips64-dsp-linux.xml: New file.
+ * features/Makefile (WHICH): Add mips-dsp-linux and
+ mips64-dsp-linux.
+ (mips-dsp-expedite, mips64-dsp-expedite): New variables.
+ * features/mips-dsp-linux.c: New file.
+ * features/mips64-dsp-linux.c: New file.
+ * regformats/mips-dsp-linux.dat: New file.
+ * regformats/mips64-dsp-linux.dat: New file.
+ * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
+ registers.
+ (mips64_linux_register_addr): Likewise.
+ (mips64_linux_regsets_fetch_registers): Likewise.
+ (mips64_linux_regsets_store_registers): Likewise.
+ (mips64_linux_fetch_registers): Update call to
+ mips64_linux_regsets_fetch_registers.
+ (mips64_linux_store_registers): Update call to
+ mips64_linux_regsets_store_registers.
+ (mips_linux_read_description): Probe for DSP registers.
+ (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
+ and initialize_tdesc_mips64_dsp_linux.
+ * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
+ Remove padding of no longer used embedded register slots.
+ * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
+ (MIPS_RESTART_REGNUM): Redefine enum value.
+ * mips-tdep.c (mips_generic_reg_names): Remove trailing null
+ strings.
+ (mips_tx39_reg_names): Likewise.
+ (mips_linux_reg_names): New array of register names for Linux
+ targets.
+ (mips_register_name): Check for a null pointer in
+ mips_processor_reg_names and return an empty string.
+ (mips_register_type): Exclude embedded registers for the IRIX
+ and Linux ABIs.
+ (mips_pseudo_register_type): Likewise. Use dynamic numbers to
+ refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
+ DSP registers.
+ (mips_stab_reg_to_regnum): Handle DSP accumulators.
+ (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
+ (mips_gdbarch_init): Likewise. Initialize internal register
+ indices for the Linux ABI. Use dynamic numbers to refer to
+ registers, as applicable, while parsing the target description.
+ * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
+
+2012-03-01 Joel Brobecker <brobecker@adacore.com>
+
+ * frame.h (read_frame_register_unsigned): Fix typo in function
+ description.
-2011-05-20 Pedro Alves <pedro@codesourcery.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- * infcmd.c (step_1): Simplify synchronous case.
+ * jit-reader.in [!__cplusplus]
+ (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
-2011-05-20 Pedro Alves <pedro@codesourcery.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- * tracepoint.c: Include exceptions.h.
- (TFILE_PID): Move higher in file.
- (tfile_open): Delay pushing the tfile target until we're assured
- the tfile header is present in the file. Wrap reading the initial
- newline-terminated lines in TRY_CATCH. Pop the target if the
- initial setup failed. Add the tfile's thread immediately
- aftwards, before any non-essential setup. Don't skip
- post_create_inferior if there are no traceframes present in the
- file.
- (tfile_close): Remove redundant check for null before xfree call.
- (tfile_thread_alive): New function.
- (init_tfile_ops): Register it as to_thread_alive callback.
+ * configure.ac (build_warnings): Add -Wmissing-prototypes.
+ * configure: Regenerate.
-2011-05-20 Pedro Alves <pedro@codesourcery.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
+
+ * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
+ * breakpoint.c (create_exception_master_breakpoint, trace_command)
+ (ftrace_command, strace_command): Make static.
+ * d-lang.c (_initialize_d_language): Declare.
+ * dwarf2expr.c (_initialize_dwarf2expr): Declare.
+ * dwarf2loc.c (_initialize_dwarf2loc):
+ * dwarf2read.c (process_psymtab_comp_unit): Make static.
+ * exec.c (exec_get_section_table): Make static.
+ * i386-linux-tdep.c (i386_linux_record_signal): Make static.
+ * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
+ * inferior.c (remove_inferior_command, add_inferior_command)
+ (clone_inferior_command): Make static.
+ * linux-nat.c (linux_nat_thread_address_space)
+ (linux_nat_core_of_thread): Make static.
+ * linux-tdep.c (_initialize_linux_tdep): Declare.
+ * objc-lang.c (_initialize_objc_lang): Declare.
+ * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
+ Make static.
+ (_initialize_opencl_language): Declare.
+ * record.c (_initialize_record): Declare.
+ * remote.c (demand_private_info, remote_get_tib_address)
+ (remote_supports_cond_tracepoints)
+ (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
+ Make static.
+ * skip.c (_initialize_step_skip): Declare.
+ * symtab.c (skip_prologue_using_lineinfo): Make static.
+ * tracepoint.c (delete_trace_state_variable)
+ (trace_variable_command, delete_trace_variable_command)
+ (get_uploaded_tsv, find_matching_tracepoint_location)
+ (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
+ Make static.
+ * value.c (pack_unsigned_long): Make static.
+ * varobj.c (varobj_ensure_python_env): Make static.
+ * windows-tdep.c (_initialize_windows_tdep): Declare.
+ * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
+
+2012-03-01 Pedro Alves <palves@redhat.com>
+
+ * linux-tdep.c (linux_has_shared_address_space): Make static. Add
+ gdbarch parameter.
+ (linux_init_abi): Install it as has_shared_address_space gdbarch
+ callback.
+
+2012-03-01 Pedro Alves <palves@redhat.com>
+
+ * observer.c (observer_test_first_notification_function)
+ (observer_test_second_notification_function)
+ (observer_test_third_notification_function): Add declarations.
+
+2012-03-01 Pedro Alves <palves@redhat.com>
+
+ * common/signals.c (default_target_signal_to_host)
+ (default_target_signal_from_host): Move ...
+ * arch-utils.c: ... here.
+ * arch-utils.h (default_target_signal_to_host)
+ (default_target_signal_from_host): Declare.
+
+ * common/signals.c (target_signal_from_command): Move ...
+ * infrun.c: ... here.
+ * inferior.h (target_signal_from_command): Declare.
+ * target.h (target_signal_from_command)
+ (default_target_signal_from_host, default_target_signal_to_host):
+ Delete declarations.
- * tracepoint.c (tfile_open): Delete #if 0'd code.
+ * common/signals.c (_initialize_signals): Delete.
-2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- Fix -readnow for -gdwarf-4 unused type units.
- * dwarf2read.c (struct signatured_type): Remove the field offset.
- (create_signatured_type_table_from_index): Remove its initialization.
- (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
- instead. Add a complaint call.
- (process_psymtab_comp_unit): Change assignment to gdb_assert.
- (process_type_comp_unit, lookup_die_type, dump_die_shallow)
- (lookup_signatured_type_at_offset, read_signatured_type)
- (write_one_signatured_type): Update the field for per_cu.
+ * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
+ both __cplusplus and !__cplusplus.
-2011-05-19 Tom Tromey <tromey@redhat.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- * python/py-inferior.c (python_inferior_exit): Use
- target_gdbarch.
- (python_on_resume): Likewise.
+ * psymtab.c (find_and_open_source): Delete declaration.
+ * source.c (find_and_open_source): Move comment ...
+ * source.h (find_and_open_source): ... to this new declaration.
-2011-05-19 Matt Rice <ratmice@gmail.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
+ * inline-frame.c: Include inline-frame.h.
-2011-05-19 Hui Zhu <teawater@gmail.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- * tracepoint.c (tfile_trace_find): Return directly when num is -1.
+ * tui/tui-data.c (set_gen_win_origin): Delete.
+ * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
+ * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
-2011-05-19 Hui Zhu <teawater@gmail.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
+ * remote.c (encode_actions): Delete declaration.
+ * tracepoint.c (encode_actions): Make extern.
+ * tracepoint.h (encode_actions): Declare.
-2011-05-18 Tom Tromey <tromey@redhat.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- * dwarf2read.c (dwarf2_add_field): Constify.
- * value.c (value_static_field): Constify.
- * gdbtypes.h (struct main_type) <field.field_location.physname>:
- Now const.
- * ax-gdb.c (gen_static_field): Constify
+ * python/py-breakpoint.c: Include python.h.
+ * python/py-continueevent.c (create_continue_event_object): Make
+ static.
+ * python/py-lazy-string.c (stpy_get_type): Make static.
+ * python/py-newobjfileevent.c (create_new_objfile_event_object):
+ Make static.
+ * python/py-utils.c (unicode_to_target_python_string): Make
+ static.
+ * python/py-value.c: Include python.h.
-2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- * linux-nat.c (kill_callback): Use SIGKILL first.
+ * inferior.c (delete_threads_of_inferior): Delete.
-2011-05-18 Joel Brobecker <brobecker@adacore.com>
+2012-03-01 Pedro Alves <palves@redhat.com>
- * ada-lang.c (print_it_exception): Avoid use of sprintf.
+ Import fallback definitions from glibc.
-2011-05-18 Tom Tromey <tromey@redhat.com>
+ * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
+ ps_prochandle): Forward declare.
+ (ps_err_e): Use glibc's comments.
+ [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
+ (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
+ (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
+ (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
+ (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
+ (struct ps_prochandle): Adjust comment.
- * value.c (value_fn_field): Constify.
- * symtab.c (gdb_mangle_name): Constify.
- * stabsread.c (update_method_name_from_physname): Make 'physname'
- argument const.
- * p-typeprint.c (pascal_type_print_method_args): Make arguments
- const. Use explicit fputc_filtered loop.
- (pascal_type_print_base): Constify.
- * p-lang.h (pascal_type_print_method_args): Update.
- * linespec.c (add_matching_methods): Constify.
- (add_constructors): Likewise.
- * jv-typeprint.c (java_type_print_base): Constify.
- * gdbtypes.h (struct cplus_struct_type)
- <fn_fieldlist.fn_field.physname>: Now const.
- * dwarf2read.c (compute_delayed_physnames): Constify.
- (dwarf2_add_member_fn): Likewise.
- * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
+2012-03-01 Pedro Alves <palves@redhat.com>
-2011-05-18 Pedro Alves <pedro@codesourcery.com>
+ * ada-lang.c (ada_modulus_from_name): Delete.
+ * ada-lex.l (lexer_init): Make static.
- * infrun.c (resume): Mention which is the current thread, and its
- current PC in debug output.
- (prepare_to_proceed): Mention the thread switching in debug
- output.
+2012-03-01 Pedro Alves <palves@redhat.com>
-2011-05-18 Tom Tromey <tromey@redhat.com>
+ PR gdb/13767
- * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
- path check. Use xmalloc and cleanups.
- (try_thread_db_load_from_dir): Use xmalloc and cleanups.
+ * frame.c (read_frame_register_unsigned): New.
+ * frame.h (read_frame_register_unsigned): Declare.
+ * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
+ Handle it.
+ (print_i387_control_word): New parameter `control_p'. Handle it.
+ (i387_print_float_info): Handle unavailable float registers.
-2011-05-17 Tom Tromey <tromey@redhat.com>
+2012-03-01 Keith Seitz <keiths@redhat.com>
- * cp-valprint.c (cp_print_value_fields): Catch errors from
- value_static_field.
-
-2011-05-17 Tom Tromey <tromey@redhat.com>
-
- * dwarf2read.c (dwarf2_get_die_type): Call
- get_die_type_at_offset.
- * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
- get_base_type function.
+ * linespec.c (decode_line_2): Sort the list of methods
+ alphabetically before presenting the user with a selection
+ menu.
-2011-05-17 Tomas Martinec <fyzmat@gmail.com>
+2012-03-01 Doug Evans <dje@google.com>
- * infrun.c (handle_inferior_event) <handling deferred step>: Clear
- trap_expected.
+ * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
+ has_namespace_info.
+ (dwarf2_read_abbrevs): Remove corresponding initialization.
-2011-05-16 Doug Evans <dje@google.com>
-
- * python/py-auto-load.c (source_section_scripts): Mention objfile
- name in warning.
-
-2011-05-15 Doug Evans <dje@google.com>
-
- * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
- (try_thread_db_load_from_pdir): Call it. If unable to find
- libthread_db in directory of libpthread, see if we're looking at
- the separate-debug-info copy.
-
- * python/py-autoload.c (print_script): Print "Missing" instead of
- "No" for missing scripts.
- (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
-
-2011-05-13 Doug Evans <dje@google.com>
-
- * ui-file.c (stdio_file_write_async_safe): Add comment.
-
-2011-05-14 Hui Zhu <teawater@gmail.com>
-
- * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
-
-2011-05-13 Doug Evans <dje@google.com>
-
- Support $pdir and $sdir in libthread-db-search-path.
- * NEWS: Mention $sdir,$pdir.
- * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
- * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
- (try_thread_db_load_from_sdir): New function.
- (try_thread_db_load_from_dir): New function.
- (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
- system directories if search of libthread-db-search-path fails,
- that is now done via $sdir.
- (has_libpthread): New function.
- (thread_db_load): Remove search for libthread_db in directory of
- libpthread, that is now done via $pdir.
-
- * NEWS: Mention "info auto-load-scripts".
- * python/py-auto-load.c (struct auto_load_pspace_info): New member
- script_not_found_warning_printed.
- (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
- all callers updated. Initialize script_not_found_warning_printed.
- (get_auto_load_pspace_data_for_loading): New function.
- (maybe_add_script): New function.
- (source_section_scripts): Simplify. Only print one warning regardless
- of the number of auto-load scripts not found.
- (clear_section_scripts): Clear script_not_found_warning_printed.
- (auto_load_objfile_script): Record script in hash table.
- (count_matching_scripts): New function.
- (maybe_print_script): Renamed from maybe_print_section_script, all
- callers updated. Rewrite to use ui_out_*.
- (info_auto_load_scripts): Renamed from
- maintenance_print_section_scripts, all callers updated.
- (gdbpy_initialize_auto_load): "maintenance print section-scripts"
- renamed as "info auto-load-scripts".
-
-2011-05-13 Tom Tromey <tromey@redhat.com>
-
- * dwarf2expr.c (read_uleb128): Cast intermediate result.
- (read_sleb128): Likewise.
-
-2011-05-13 Tom Tromey <tromey@redhat.com>
-
- * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
- offset display.
-
-2011-05-13 Doug Evans <dje@google.com>
-
- * linux-nat.c (debug_linux_nat_async): Delete.
- Replace all references to use debug_linux_nat instead.
- (show_debug_linux_nat_async): Delete.
- (sigchld_handler): Call ui_file_write_async_safe instead of
- fprintf_unfiltered.
- (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
- * ui-file.c (struct ui_file): New member to_write_async_safe.
- (null_file_write_async_safe): New function.
- (ui_file_write_async_safe): New function.
- (set_ui_file_write_async_safe): New function.
- (ui_file_new): Initialize to_write_async_safe.
- (stdio_file_write_async_safe): New function.
- (struct stdio_file): New member fd.
- (stdio_file_new): Initialize to_write_async_safe, fd.
- (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
- fileno.
- * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
- (set_ui_file_write_async_safe): Declare.
- (ui_file_write_async_safe): Declare.
-
-2011-05-13 Tom Tromey <tromey@redhat.com>
-
- * utils.c (do_value_free): New function.
- (make_cleanup_value_free): Likewise.
- * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
- freeing correctly.
- (dwarf2_loc_desc_needs_frame): Call
- make_cleanup_value_free_to_mark.
- * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
- * dwarf2expr.c (free_dwarf_expr_context): Don't call
- value_free_to_mark.
- (new_dwarf_expr_context): Don't call value_mark.
- * dwarf2-frame.c (execute_stack_op): Call
- make_cleanup_value_free_to_mark.
- * defs.h (make_cleanup_value_free): Declare.
-
-2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * mi/mi-main.c (mi_cmd_execute): Use cleanup from
- prepare_execute_command.
- * top.c (prepare_execute_command): Return cleanup.
- (execute_command): Use cleanup from prepare_execute_command.
- * top.h (prepare_execute_command): Change prototype to return
- cleanup.
- * defs.h (struct value): Add opaque declaration.
- (make_cleanup_value_free_to_mark): Add prototype.
- * utils.c (do_value_free_to_mark): New function.
- (make_cleanup_value_free_to_mark): Likewise.
-
-2011-05-12 Tom Tromey <tromey@redhat.com>
-
- * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
- cast left-hand-side to unsigned.
-
-2011-05-12 Tom Tromey <tromey@redhat.com>
-
- PR gdb/12617:
- * value.h (value_from_contents): Declare.
- * value.c (value_from_contents): New function.
- * dwarf2read.c (dwarf_stack_op_name): Add new values.
- (dwarf2_get_die_type): New function.
- * dwarf2loc.c (dwarf_expr_get_base_type): New function.
- (allocate_piece_closure): Acquire reference to values.
- (read_pieced_value): Update for value-based expressions.
- (write_pieced_value): Likewise.
- (free_pieced_value_closure): Call value_free as needed.
- (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
- Update for value-based expressions.
- * dwarf2loc.h (dwarf2_get_die_type): Declare.
- * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
- <get_base_type>: New field.
- (struct dwarf_expr_piece) <v.value>: Change type.
- <v.regno>: New field.
- (struct dwarf_expr_context) <mark>: New field.
- (dwarf_expr_piece, dwarf_expr_fetch): Update.
- (dwarf_expr_pop, dwarf_expr_push): Remove.
- (dwarf_expr_push_address): Declare.
- * dwarf2expr.c (dwarf_arch_cookie): New global.
- (struct dwarf_gdbarch_types): New.
- (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
- functions.
- (dwarf_expr_push): Change type of 'value' argument. Update. Now
- static.
- (dwarf_expr_push_address): New function.
- (dwarf_expr_pop): Now static.
- (dwarf_expr_fetch): Change return type.
- (dwarf_require_integral): New function.
- (dwarf_expr_fetch): Simplify.
- (add_piece): Update.
- (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
- functions.
- (execute_stack_op) <sign_ext>: Remove.
- Use values for DWARF stack.
- <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
- DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
- New cases.
- (_initialize_dwarf2expr): New function.
- (add_piece): Update.
- (new_dwarf_expr_context): Set new field.
- (free_dwarf_expr_context): Call value_free_to_mark.
- * dwarf2-frame.c (no_base_type): New function.
- (execute_stack_op): Set get_base_type field. Update.
-
-2011-05-12 Tom Tromey <tromey@redhat.com>
-
- * dwarf2read.c (read_common_block): Fix formatting.
-
-2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
-
- * breakpoint.c (disable_breakpoint): Disable all locations
- associated with a tracepoint on target if a trace experiment is
- running.
- (disable_command): Disable a specific tracepoint location on target if
- a trace experiment is running.
- (do_enable_breakpoint): Enable all locations associated with a
- tracepoint on target if a trace experiment is running.
- (enable_command) Enable a specific tracepoint location on target if a
- trace experiment is running.
- * target.c (update_current_target): Add INHERIT and de_fault clauses for
- to_supports_enable_disable_tracepoint, to_enable_tracepoint and
- to_disable_tracepoint.
- * target.h: Add declaration of struct bp_location.
- (struct target_ops): Add new functions
- to_supports_enable_disable_tracepoint, to_enable_tracepoint and
- to_disable_tracepoint to target operations.
- (target_supports_enable_disable_tracepoint): New macro.
- (target_enable_tracepoint): New macro.
- (target_disable_tracepoint): New macro.
- * remote.c (struct remote_state): Add new field.
- (remote_enable_disable_tracepoint_feature): New.
- (remote_protocol_features): Add new entry.
- (remote_supports_enable_disable_tracepoint): New.
- (remote_enable_tracepoint): New.
- (remote_disable_tracepoint): New.
- (init_remote_ops): Add remote_enable_tracepoint,
- remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
- to remote operations.
- * tracepoint.c (start_tracing): Allow tracing to start without any
- tracepoints enabled with just a warning if they can be re-enabled
- later.
- * NEWS: Add news item for the new behaviour of the enable and disable
- GDB commands when applied to tracepoints.
- Add news items for the new remote packets QTEnable and QTDisable.
-
-2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-01 Scott J. Goldman <scottjg@vmware.com>
- * config.in: Regenerate.
- * configure: Regenerate.
- * configure.ac <--with-system-readline> (for readline_echoing_p):
- Remove the test.
- * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
- (tui_old_rl_echoing_p): ... here.
- (tui_setup_io): Rename extern declaration readline_echoing_p to
- _rl_echoing_p. Adjust assignments for the both renames.
+ * 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.
-2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-01 Tom Tromey <tromey@redhat.com>
- * symtab.c (lookup_symtab): Run cleanup before returning.
+ * 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.
-2011-05-11 Tom Tromey <tromey@redhat.com>
+2012-03-01 Tom Tromey <tromey@redhat.com>
- * dwarf2read.c (handle_data_member_location): New function.
- (dwarf2_add_field): Use it.
- (read_common_block): Likewise.
+ * value.h (val_print): Return void.
+ * valprint.c (val_print): Return void.
-2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-03-01 Tom Tromey <tromey@redhat.com>
- Make addrs->SECTINDEX always defined.
- * symfile.c (relative_addr_info_to_section_offsets): Check for
- SECTINDEX -1, not for zero ADDR.
- (addrs_section_compar): Remove checking for invalid SECTINDEX.
- (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
- * symfile.h (struct section_addr_info) <sectindex>: Update the comment
- on its validity.
+ * value.h (common_val_print): Return void.
+ * valprint.c (common_val_print): Return void.
-2011-05-10 Doug Evans <dje@google.com>
+2012-03-01 Tom Tromey <tromey@redhat.com>
- * linux-thread-db.c: Whitespace cleanup.
- (try_thread_db_load_1): Fix comment.
+ * 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.
- * linux-thread-db.c (set_libthread_db_search_path): New function.
- (_initialize_thread_db): Add setter for libthread-db-search-path.
+2012-03-01 Tom Tromey <tromey@redhat.com>
-2011-05-09 Doug Evans <dje@google.com>
+ * value.c (value_primitive_field): Handle virtual base classes.
- * NEWS: Mention --with-iconv-bin.
- * configure.ac: New option --with-iconv-bin.
- * configure: Regenerate.
- * config.in: Regenerate.
- * defs.h (relocate_gdb_directory): Declare.
- * main.c (relocate_gdb_directory): Renamed from relocate_directory,
- removed progname parameter, and exported. All callers updated.
- * charset.c (find_charset_names): Use --with-iconv-bin if specified.
+2012-03-01 Tom Tromey <tromey@redhat.com>
- * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
- adding missing call to restore_child_signals_mask.
+ * gdbtypes.h (struct vbase): Remove.
-2011-05-09 Pedro Alves <pedro@codesourcery.com>
+2012-03-01 Tom Tromey <tromey@redhat.com>
- * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
- parameter.
- * infrun.c (proceed, start_remote): Adjust.
- (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
- and adjust to not handle it.
- * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
- * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
- * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
- * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
- * windows-nat.c (do_initial_windows_stuff): Adjust.
- * infcmd.c (attach_command): Adjust.
- (notice_new_inferior): Adjust.
+ * 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.
-2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
+2012-03-01 Joel Brobecker <brobecker@adacore.com>
- * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
- (ppu2spu_unwind_register): Mark pseudo registers unavailable.
- * spu-tdep.c (op_selb): Use correct value.
+ * NEWS: Document the fact that one can provide a condition when
+ creating an Ada exception catchpoint.
-2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
+2012-03-01 Tom Tromey <tromey@redhat.com>
- * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
- "parent" parameter to symbol_file_add_from_bfd call.
+ * valprint.c (val_print_type_code_flags): Fix placement of
+ trailing brace.
-2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
- Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-03-01 Joel Brobecker <brobecker@adacore.com>
- Implement support for PowerPC BookE masked watchpoints.
- * NEWS: Mention masked watchpoint support. Create "Changed commands"
- section.
- * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
- method. Initialize to NULL in all existing breakpoint_ops instances.
- (struct breakpoint) <hw_wp_mask>: New field.
- * breakpoint.c (is_masked_watchpoint): Add prototype.
- (update_watchpoint): Don't set b->val for masked watchpoints. Call
- breakpoint's breakpoint_ops.works_in_software_mode if available.
- (watchpoints_triggered): Handle the case of a hardware masked
- watchpoint trigger.
- (watchpoint_check): Likewise.
- (works_in_software_mode_watchpoint): New function.
- (insert_masked_watchpoint, remove_masked_watchpoint)
- (resources_needed_masked_watchpoint)
- (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
- (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
- (print_recreate_masked_watchpoint, is_masked_watchpoint): New
- functions.
- (masked_watchpoint_breakpoint_ops): New structure.
- (watch_command_1): Check for the existence of the `mask' parameter.
- Set b->ops according to the type of hardware watchpoint being created.
- * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
- (ppc_linux_remove_mask_watchpoint)
- (ppc_linux_masked_watch_num_registers): New functions.
- (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
- to_remove_mask_watchpoint and to_masked_watch_num_registers.
- * target.c (update_current_target): Mention to_insert_mask_watchpoint,
- to_remove_mask_watchpoint, and to_masked_watch_num_registers.
- (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
- (target_masked_watch_num_registers): New functions.
- * target.h (struct target_ops) <to_insert_mask_watchpoint>,
- <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
- methods.
- (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
- (target_masked_watch_num_registers): Add prototypes.
-
-2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- PR 12573
- * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
- (producer_is_gcc_ge_4_0): New function.
- (process_full_comp_unit): Set also symtab->locations_valid. Move the
- symtab->language code.
- (var_decode_location): Set cu->has_loclist.
- * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
- skip. Intialize force_skip from locations_valid. Move the prologue
- skipping code into two passes.
- * symtab.h (struct symtab): Make the primary field a bitfield. New
- field locations_valid.
-
-2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
- (classify_inner_name): Call cp_lookup_nested_type with
- yylval.tsym.type.
- * cp-namespace.c (cp_lookup_nested_type): New variable
- saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
- type_name_no_tag_or_error with saved_parent_type.
- * dwarf2read.c (load_partial_dies): Read in any children of
- DW_TAG_typedef with complaint in such case.
- * gdbtypes.c (type_name_no_tag_or_error): New function.
- * gdbtypes.h (type_name_no_tag_or_error): New prototype.
- * valops.c (destructor_name_p): New comment for parameter type. Remove
- type const. Make dname and cp const. Call type_name_no_tag_or_error.
- * value.h (destructor_name_p): Remove type const.
-
-2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * symtab.c (compare_symbol_name): New function.
- (completion_list_add_name, expand_partial_symbol_name): Call it,
- remove the variable ncmp.
- (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
- gdb_assert it.
-
-2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- Demote to sw watchpoint only in update_watchpoint.
- * breakpoint.c (update_watchpoint): Change between software and
- hardware watchpoint for all kinds of watchpoints, not just
- read/write ones. Determine b->exact value here instead of
- in watch_command_1. Error out if there are not enough resources
- for a read or access hardware watchpoint.
- (watch_command_1): Remove logic of checking whether there are
- enough resources available, since update_watchpoint will do that
- work now. Don't set b->exact here. Catch exceptions thrown by
- update_watchpoint and delete the watchpoint.
- (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
- Use target_exact_watchpoints instead.
- (delete_breakpoint): Notify observers only if deleted watchpoint
- has a breakpoint number assigned to it.
-
-2011-05-05 Janis Johnson <janisjo@codesourcery.com>
-
- * MAINTAINERS: Add myself as a write-after-approval maintainer.
-
-2011-05-05 Jerome Guitton <guitton@adacore.com>
-
- * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
- New functions.
- (i386_stack_tramp_frame_unwind): New static global.
- (i386_match_pattern): New function, extracted from i386_match_insn.
- (i386_match_insn): Use i386_match_pattern.
- (i386_match_insn_block): New function.
- (i386_tramp_chain_in_reg_insns)
- (i386_tramp_chain_on_stack_insns): New static variables.
- (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
- of unwinders.
+ * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
+ (update_files): Do not set MULTILINE_COMMENT_PREFIXES
+ environment variable before calling update-copyright.
-2011-05-04 Joseph Myers <joseph@codesourcery.com>
+2012-03-01 Joel Brobecker <brobecker@adacore.com>
- * configure.host (xscale*): Don't handle target.
- * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
- handle targets.
-
-2011-05-04 Yao Qi <yao@codesourcery.com>
-
- * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
-
-2011-05-03 Joel Brobecker <brobecker@adacore.com>
-
- Revert:
- | 2011-03-07 Michael Snyder <msnyder@vmware.com>
- | * elfread.c (elf_symtab_read): Stop memory leak.
-
-2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
-
- * nto-tdep.c (nto_target): Replace deprecated call to
- cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
-
-2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix false GCC warning.
- * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
-
-2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * breakpoint.c (update_watchpoint): Move code to change
- the enable state of breakpoint from here ...
- (do_enable_breakpoint): ... to here.
-
-2011-04-26 Andrew Gontarek <andrewg@cray.com>
-
- * valprint.c (val_print_array_elements): Fixed poor performance
- of printing very large arrays with repeat_count_threshold set
- to unlimited. New comment.
-
-2011-04-29 Tom Tromey <tromey@redhat.com>
-
- * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
- (mi_parse): Likewise.
- * breakpoint.c (break_range_command): Use sizeof char*, not
- char**.
- (create_breakpoint): Likewise.
- (parse_breakpoint_sals): Likewise.
-
-2011-04-29 Pedro Alves <pedro@codesourcery.com>
-
- * linux-nat.c (linux_child_remove_fork_catchpoint)
- (linux_child_remove_vfork_catchpoint)
- (linux_child_remove_exec_catchpoint): New functions.
- (linux_target_install_ops): Install them.
-
-2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
-
- PR mi/12531
-
- * varobj.c (install_default_visualizer): Do not install a
- visualizer if the varobj is CPLUS_FAKE_CHILD.
- (construct_visualizer): Likewise.
-
-2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
- case insensitive comparison.
-
-2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * infrun.c (proceed): Revert previous change.
- (resume): Instead, handle the case of signal delivery while stepping
- off a breakpoint location here, and only if software single-stepping
- is used. Handle nested signals.
-
-2011-04-28 Yao Qi <yao@codesourcery.com>
-
- * arm-tdep.c (copy_unmodified): Rename to ...
- (arm_copy_unmodified): .. this. New.
- (copy_preload): Move common part to ...
- (install_preload): .. this. New.
- (arm_copy_preload): New.
- (copy_preload_reg): Move common part to ...
- (install_preload_reg): ... this. New.
- (arm_copy_preload_reg): New.
- (copy_b_bl_blx): Move common part to ...
- (install_b_bl_blx): .. this. New.
- (arm_copy_b_bl_blx): New.
- (copy_bx_blx_reg): Move common part to ...
- (install_bx_blx_reg): ... this. New.
- (arm_copy_bx_blx_reg): New.
- (copy_alu_reg): Move common part to ...
- (install_alu_reg): ... this. New.
- (arm_copy_alu_reg): New.
- (copy_alu_shifted_reg): Move common part to ...
- (install_alu_shifted_reg): ... this. New.
- (copy_ldr_str_ldrb_strb): Move common part to ...
- (install_ldr_str_ldrb_strb): ... this. New.
- (arm_copy_ldr_str_ldrb_strb): New.
- (copy_copro_load_store): Move some common part to ...
- (install_copy_copro_load_store): ... this. New.
- (arm_copy_copro_load_store): New.
- (copy_svc): Delete.
- (arm_copy_svc): Renamed from copy_svc.
- (copy_undef): Delete.
- (arm_copy_undef): Renamed from copy_undef.
- (decode_ext_reg_ld_st): Delete.
- (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
- (decode_svc_copro): Delete.
- (arm_decode_svc_copro): Renamed from decode_svc_copro.
- (copy_copro_load_store, copy_alu_imm): update callers.
- (copy_extra_ld_st, copy_block_xfer): Likewise.
- (decode_misc_memhint_neon, decode_unconditional): Likewise.
- (decode_miscellaneous, decode_dp_misc): Likewise.
- (decode_ld_st_word_ubyte, decode_media): Likewise.
- (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
- (decode_svc_copro, decode_misc_memhint_neon): Likewise.
- (decode_unconditional, decode_miscellaneous): Likewise.
- (decode_media, decode_b_bl_ldmstm): Likewise.
- (arm_process_displaced_insn): Likewise..
- (decode_misc_memhint_neon): Delete.
- (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
- (decode_miscellaneous): Delete.
- (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
- (decode_dp_misc): Delete.
- (arm_decode_dp_misc): Renamed from decode_dp_misc.
- (decode_ld_st_word_ubyte): Delete.
- (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
- (decode_media): Delete.
- (arm_decode_media): Renamed from decode_media.
- (decode_b_bl_ldmstm): Delete.
- (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
- (decode_ext_reg_ld_st): Delete.
- (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
- (decode_unconditional): Delete.
- (arm_decode_unconditional): Renamed from decode_unconditional.
-
-2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Case insensitive lookups implementation.
- * dwarf2read.c: Include ctype.h.
- (struct mapped_index): New field version.
- (mapped_index_string_hash): New parameter index_version. New comment
- for it. Call tolower appropriately.
- (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
- Choose the right index version for mapped_index_string_hash.
- (dwarf2_read_index): Support also the index version 5. Initialize the
- new struct mapped_index field version.
- (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
- (find_slot): Explain the version needs. Pass INT_MAX for the new
- parameter.
- (write_psymtabs_to_index): Produce version 5.
- * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
- use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
- * psymtab.c (lookup_partial_symbol): Find the
- SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
- entries.
- * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
- NAME lowercasing.
- (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
- (completion_list_add_name): New variable ncmp, initialize it, use it.
- * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
- * utils.c (strcmp_iw): Support case_sensitive_off.
- (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
- New function comment part. New variables saved_string1,
- saved_string2 and case_pass. Add a proper second pass.
-
-2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Replace re_comp/re_exec by regcomp/regexec.
- * symtab.c (struct search_symbols_data): New fields preg, preg_p.
- (search_symbols_name_matches): Use them, use regexec.
- (search_symbols): New variable retval_chain, adjust the use of
- old_chain against it. Replace re_comp by regcomp. Use the new struct
- search_symbols_data fields, use regexec instead of re_exec.
-
-2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Format the code for the next patch.
- * dwarf2read.c (struct mapped_index): Include delimiting newlines.
- * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
- New variables c1 and c2.
-
-2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * infrun.c (proceed): Do not single-step into signal delivery
- when stepping off a breakpoint location.
- (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
- (insert_step_resume_breakpoint_at_caller): Likewise.
- (insert_step_resume_breakpoint_at_sal): Likewise.
- (insert_longjmp_resume_breakpoint): Likewise.
-
-2011-04-27 Yao Qi <yao@codesourcery.com>
-
- * common/linux-ptrace.h: Remove include <sys/wait.h>.
-
-2011-04-27 Joel Brobecker <brobecker@adacore.com>
-
- * procfs.c (procfs_pass_signals): Fix advance declaration.
-
-2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * target.h (struct target_ops): Remove to_notice_signals;
- add to_pass_signals.
- (target_notice_signals): Remove.
- (target_pass_signals): Add prototype.
- * target.c (update_current_target): Remove to_notice_signals;
- mention to_pass_signals.
- (target_pass_signals): New function.
- (debug_to_notice_signals): Remove.
- (setup_target_debug): Do not install debug_to_notice_signals.
-
- * infrun.c (signal_pass): New global.
- (resume): Call target_pass_signals.
- (handle_inferior_event): Report all signals while stepping over
- non-steppable watchpoint. Reset trap_expected to ensure breakpoints
- are re-inserted when stepping over a signal handler.
- (signal_cache_update): New function.
- (signal_stop_update): Call it.
- (signal_print_update): Likewise.
- (signal_pass_update): Likewise.
- (handle_command): Call signal_cache_update and target_pass_signals
- instead of target_notice_signals.
- (_initialize_infrun): Initialize signal_pass.
-
- * linux-nat.c (pass_mask): New global.
- (linux_nat_pass_signals): New function.
- (linux_nat_create_inferior): Report all signals initially.
- (linux_nat_attach): Likewise.
- (linux_nat_resume): Use pass_mask to decide whether to directly
- handle an inferior signal.
- (linux_nat_wait_1): Likewise.
- (linux_nat_add_target): Install to_pass_signals callback.
-
- * nto-procfs.c (notice_signals): Remove.
- (procfs_resume): Do not call notice_signals.
- (procfs_notice_signals): Remove.
- (procfs_pass_signals): New function.
- (init_procfs_ops): Install to_pass_signals callback instead of
- to_notice_signals callback.
- (_initialize_procfs): Report all signals initially.
-
- * procfs.c (procfs_notice_signals): Remove.
- (procfs_pass_signals): New function.
- (procfs_target): Install to_pass_signals callback instead of
- to_notice_signals callback.
- (register_gdb_signals): Remove.
- (procfs_debug_inferior): Report all signals initially.
- (procfs_init_inferior): Remove redundant register_gdb_signals call.
-
- * remote.c (remote_pass_signals): Add numsigs and pass_signals
- parameters; use them instead of calling signal_..._state routines.
- (remote_notice_signals): Remove.
- (remote_start_remote): Report all signals initially.
- (remote_resume): Do not call remote_pass_signals.
- (_initialize_remote): Install to_pass_signals callback instead of
- to_notice_signals callback.
-
-2011-04-27 Pedro Alves <pedro@codesourcery.com>
-
- * breakpoint.c (user_settable_breakpoint): Delete.
- (user_breakpoint_p): Remove check on user_settable_breakpoint.
- (delete_command): Check user_breakpoint_p instead of looking at
- the breakpoint's type.
- (disable_command): Ditto.
- (enable_command): Ditto.
- (delete_trace_command): Use user_breakpoint_p instead of looking
- at the breakpoint number directly. When checking if there are
- user visible tracepoints, in order to know whether to ask the user
- for confirmation, check whether the breakpoint is actually a
- tracepoint.
-
-2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
-
- * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
- compilation.
-
-2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
-
- MI breakpoint notifications.
-
- * annotate.c (breakpoint_changed): Adjust parameter type.
- * breakpoint.c (set_breakpoint_condition): Adjust to change
- in breakpoint_modified type.
- (breakpoint_set_commands): Likewise.
- (do_map_commands_command): Likewise.
- (bpstat_check_breakpoint_conditions): Notify that breakpoint has
- changed after bumping hit count.
- (bpstat_stop_status): Likewise.
- (print_one_breakpoint_location): Don't wrap in tuple here.
- (print_one_breakpoint): Always print individual locations.
- For locations, use unnamed tuple.
- (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
- has changed.
- (create_catchpoint, create_syscall_event_catchpoint): Call
- breakpoint_created obsever.
- (mention): Don't call breakpoint_created observer.
- (create_breakpoint_sal): Call breakpoint_created observer.
- (create_breakpoint, watch_command_1): Likewise.
- (create_ada_exception_breakpoint): Likewise.
- (delete_breakpoint): Call breakpoint_deleted breakpoint.
- (locations_are_equal): New.
- (update_breakpoint_locations): If locations were changed, notify.
- (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
- Call breakpoint_modified observer.
-
- * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
- (mi_cmd_break_insert): Don't set observers for modify and delete.
- * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
- (mi_breakpoint_created, mi_breakpoint_deleted)
- (mi_breakpoint_modified): New.
- (mi_interpreter_init): Hook the above.
- * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
- while -break-* commands are executing.
- * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
- * mi/mi-out.c (struct ui_out_data): New field original_buffer.
- (mi_redirect): New.
- (mi_ui_out_impl): Hook in mi_redirect.
- (mi_field_skip): True to the name, skip the field, don't output
- a field with an empty value.
-
- * python/py-breakpoint.c (gdbpy_breakpoint_created)
- (gdbpy_breakpoint_deleted): Adjust.
- * tui/tui-hooks.c (tui_event_create_breakpoint)
- (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
-
-2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
-
- * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
- (procfs_remove_hw_watchpoint): Likewise.
-
-2011-04-26 Michael Walle <michael@walle.cc>
-
- * remote.c (remote_start_remote): Ack packet after sending the
- interrupt sequence.
-
-2011-04-26 Yao Qi <yao@codesourcery.com>
-
- * linux-nat.c: Move common macros to ...
- Include linux-ptrace.h.
- * common/linux-ptrace.h: ... here. New.
-
-2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
- !objfile_has_partial_symbols. New comment.
- * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
- SYM_READ_PSYMBOLS is not present. Extend the comment.
- * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
-
-2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * defs.h (ENUM_BITFIELD): Remove.
-
-2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
- Eli Zaretskii <eliz@gnu.org>
-
- * NEWS: Document the new gdbserver --once option.
-
-2011-04-21 Jie Zhang <jzhang918@gmail.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.
- * MAINTAINERS: Update my email address.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
-
- * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
- (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
- function call if __STDC_ISO_10646__ macro is defined.
- (intermediate_encoding): New prototype.
- * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
- to generate compile time error for unsupported gdb_wchar_t size.
- (ENDIAN_SUFFIX): New macro.
- (intermediate_encoding): New function.
-
-2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * ada-lang.c (struct add_partial_datum): Update the comment for
- expand_partial_symbol_name.
- (ada_add_partial_symbol_completions): Rename to ...
- (ada_expand_partial_symbol_name): ... here, change return type, update
- function comment, call symbol_completion_match instead of
- symbol_completion_add.
- (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
- and ada_expand_partial_symbol_name.
- * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
- FILE_MATCHER.
- (dw2_map_symbol_names): Remove.
- (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
- * psymtab.c (map_symbol_names_psymtab): Remove.
- (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
- Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
- order.
- (psym_functions): Unlist map_symbol_names_psymtab.
- (map_partial_symbol_names): Rename to ...
- (expand_partial_symbol_names): ... here, change the FUN type, call
- expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
- * psymtab.h (map_partial_symbol_names): Rename to ...
- (expand_partial_symbol_names): ... here, change the FUN type.
- * symfile.h (struct quick_symbol_functions): Update the description of
- expand_symtabs_matching. Remove map_symbol_names.
- * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
- (struct add_name_data): Update the comment for
- expand_partial_symbol_name.
- (add_partial_symbol_name): Rename to ...
- (expand_partial_symbol_name): ... here. Replace
- completion_list_add_name call by strncmp.
- (default_make_symbol_completion_list_break_on): Use now
- expand_partial_symbol_names and expand_partial_symbol_name.
- * symtab.h (enum search_domain): New element ALL_DOMAIN.
-
-2011-04-20 Tom Tromey <tromey@redhat.com>
-
- * dwarf2read.c (save_gdb_index_command): Replace format
- documentation with a pointer to the manual.
-
-2011-04-20 Pedro Alves <pedro@codesourcery.com>
-
- * regcache.c: Include remote.h.
- (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
- (regcache_dump): Handle regcache_dump_remote.
- (maintenance_print_remote_registers): New function.
- (_initialize_regcache): Install "maint print remote-registers"
- command.
- * remote.c (map_regcache_remote_table): New function, factored out
- from ...
- (init_remote_state): ... here.
- (remote_register_number_and_offset): New.
- * remote.h (remote_register_number_and_offset): Declare.
-
-2011-04-20 Pedro Alves <pedro@codesourcery.com>
-
- * regcache.c (get_thread_arch_regcache): If creating a regcache for
- null_ptid, assume and allow a NULL address space, instead of
- asking the target for the ptid's address space.
- * infrun.c (ptid_is_pid): Remove assertion.
-
-2011-04-19 Tom Tromey <tromey@redhat.com>
-
- * windows-tdep.c (windows_xfer_shared_library):
- * windows-nat.c (get_module_name, windows_make_so):
- * v850-tdep.c (v850_handle_pushm):
- * utils.c (null_cleanup, gdb_realpath):
- * ui-out.c (get_next_header):
- * tracepoint.c (clear_traceframe_info):
- * symtab.c (lookup_symtab):
- * serial.h (struct serial_ops):
- * mipsread.c (read_alphacoff_dynamic_symtab):
- * infcmd.c (print_return_value):
- * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
- * f-exp.y (parse_number):
- * exceptions.c (catch_exceptions):
- * dummy-frame.c (dummy_frame_this_id):
- * defs.h (struct cleanup):
- * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
- * arm-tdep.c (arm_push_dummy_call):
- * amd64-tdep.h (amd64_collect_xsave):
- * amd64-tdep.c (amd64_collect_xsave):
- * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
- * README (typing): Remove duplicate words.
- * cli/cli-decode.c (lookup_cmd_composition): Add comma.
- * infrun.c (siginfo_value_read): Fix typo.
- * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
- * top.c (source_line_number): Add comma.
-
-2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
-
- * thread.c (any_live_thread_of_process): Prioritize threads
- that are not executing.
- * gdbthread.h (any_live_thread_of_process): Update comment
- as per above change.
-
-2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
-
- * xcoffread.c (process_xcoff_symbol): Remove useless cast.
- (scan_xcoff_symtab): Likewise.
-
-2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
-
- * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
- inside if clause.
-
-2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
- Pedro Alves <pedro@codesourcery.com>
+ * varobj.c (c_value_of_variable): Remove dead code.
- * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
- variables to simplify code and avoid == operator at end of
- line as this is against GNU coding standards.
-
-2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
-
- * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
- lm_name to name_lm to avoid conflict with lm_name function.
-
-2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
-
- ARI fixes: Use only lowercase function name for static functions.
- * nto-tdep.c (LM_ADDR): Rename to...
- (lm_addr): New function name.
- (nto_relocate_section_addresses): Adapt to change above.
- * solib-sunos.c (LM_ADDR): Rename to...
- (lm_addr): New function name.
- (LM_NEXT): Rename to...
- (lm_next): New function name.
- (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
- function name changes above.
- * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
- (lm_addr_from_link_map): New function name.
- (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
- (has_lm_dynamic_from_link_map): New function name.
- (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
- (lm_dynamic_from_link_map): New function name.
- (LM_ADDR_CHECK): Rename to...
- (lm_addr_check): New function name.
- (LM_NEXT): Rename to...
- (lm_next): New function name.
- (LM_PREV): Rename to...
- (lm_prev): New function name.
- (LM_NAME): Rename to...
- (lm_name): New function name.
- (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
- (ignore_first_link_map_entry): New function name.
- (svr4_keep_data_in_core): Adapt to function name changes above.
- (svr4_current_sos): Likewise.
- (enable_break): Likewise.
- (svr4_relocate_section_addresses): Likewise.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
+ * ada-lex.p (processId): Do not modify already encoded IDs.
+ Update function documentation.
- ARI cleanup.
- * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
- sprintf. Simplify code and avoid loosing memory.
- (xtensa_register_reggroup_p): Extract assignment out of IF clause.
- (call0_frame_cache): Remove && operator from end of line.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.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.
- Fix libraries displacement if they change whether they were prelinked.
- * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
- does not match. Comment why.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.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.
- * corelow.c: Include wrapper.h.
- (core_open): Call now gdb_target_find_new_threads.
- * wrapper.c: Include target.h.
- (gdb_target_find_new_threads): New.
- * wrapper.h (gdb_target_find_new_threads): New declaration.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.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.
- * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
- even if !TARGET_HAS_EXECUTION.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.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.
- Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
- * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
- bfd_get_synthetic_symtab.
- * jit.c (jit_register_code): Pass NULL to the new parameter parent.
- * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
- parameter parent, remove the call to add_separate_debug_objfile.
- * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
- * symfile-mem.c (symbol_file_add_from_memory): Likewise.
- * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
- parent, new comment for it, call add_separate_debug_objfile for it.
- (symbol_file_add_separate): Pass objfile as the parameter parent,
- remove the call to add_separate_debug_objfile.
- (symbol_file_add_from_bfd): New parameter parent, pass it.
- (symbol_file_add): Pass NULL to the new parameter parent.
- * symfile.h (symbol_file_add_from_bfd): New parameter parent.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
- * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
- BSF_SYNTHETIC.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
+ full searches.
- Fix Python access to inlined frames.
- * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
- * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-15 Tom Tromey <tromey@redhat.com>
+ * ada-lang.c (constrained_packed_array_type): If there is a
+ parallel XA type, use it to determine the array index type.
- * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-15 Gary Benson <gbenson@redhat.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.
- * MAINTAINERS: Add myself to write-after-approval section.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-14 Mike Frysinger <vapier@gentoo.org>
+ * 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.
- * remote-sim.c (sim_command_completer): New function.
- (_initialize_remote_sim): Set completer to sim_command_completer.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
+ * ada-lang.c (to_fixed_array_type): Set result's type name.
- * breakpoint.c (print_exception_catchpoint): Rename to ...
- (print_it_exception_catchpoint): ... this.
- (gnu_v3_exception_catchpoint_ops): Update with new name
- for print_it_exception_catchpoint.
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
-2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.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.
- * MAINTAINERS: Add myself for write after approval privileges.
+2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-04-13 Marek Polacek <mpolacek@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.
- * MAINTAINERS: Add myself as a write-after-approval maintainer.
+2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.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.
- * breakpoint.c (watch_command_1): Remove colon from exp_string.
+2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.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.
- * breakpoint.c (save_breakpoints): Verify whether
- breakpoint_ops.print_recreate is defined before calling it.
+2012-02-28 Tristan Gingold <gingold@adacore.com>
-2011-04-11 Gary Benson <gbenson@redhat.com>
+ * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
+ avoid variable assignments inside condition.
- Fix failure with --enable-maintainer-mode.
- * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
+2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-04-09 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.
- Code cleanup.
- * symtab.c (search_symbols): Reorder the KIND description in the
- function comment. Remove the unused 4th element of types, types2,
- types3 and types4. New gdb_assert on KIND.
- (symtab_symbol_info): Remove the unused 4th element of classnames.
- New gdb_assert on KIND.
- * symtab.h (enum search_domain): New warning in the enum comment.
- Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
- TYPES_DOMAIN.
-
-2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix crash of gdb save-index on a STABS file.
- * dwarf2read.c (write_psymtabs_to_index): Return also on no
- PSYMTABS_ADDRMAP.
-
-2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix DW_AT_accessibility compatibility with gcc-4.6+.
- * dwarf2read.c: Include ctype.h.
- (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
- functions.
- (dwarf2_add_field): Fix new_field->accessibility by calling
- dwarf2_default_access_attribute. Restructure setting accessibility
- vs. virtuality.
- (dwarf2_add_member_fn): New variable accessibility. Fix fnp
- is_private and is_protected by calling
- dwarf2_default_access_attribute.
-
-2011-04-08 Kevin Buettner <kevinb@redhat.com>
-
- * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
- to the initialization.
-
-2011-04-08 Steve Ellcey <sje@cup.hp.com>
-
- * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
- initalization.
-
-2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
-
- Remove support for old Cygwin 1.5 versions.
- * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
- function on old Cygwin version.
- * windows-nat.c: Remove cygwin version check and always define
- __USEWIDE for Cygwin compilation.
-
-2011-04-07 Yao Qi <yao@codesourcery.com>
-
- * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
- and TO.
- * arm-tdep.c (cleanup_svc): Handle variable instruction size.
- (arm_copy_svc): Remove parameters INSN and TO.
- (decode_svc_copro): Update caller.
- * arm-tdep.h (struct displaced_step_closure): Remove parameters
- from function pointer `copy_svc_os'.
-
-2011-04-07 Yao Qi <yao@codesourcery.com>
-
- * arm-tdep.c (cleanup_branch): Set a correct return address in
- LR for ARM and Thumb.
-
-2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-02-27 Chris Dearman <chris@mips.com>
+ Nathan Froyd <froydnj@codesourcery.com>
+ Maciej W. Rozycki <macro@codesourcery.com>
- Code cleanup.
- * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
- * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
- in the function comment, a new note on values compatibility.
- * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
- * symtab.h (SYMBOL_HASH_NEXT): New.
-
-2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.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.
- * ppc-linux-nat.c (check_condition): Add len output parameter.
- Set it based on the memory region referenced in the condition
- expression. Update all callers.
+2012-02-27 Maciej W. Rozycki <macro@mips.com>
+ Maciej W. Rozycki <macro@codesourcery.com>
-2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * infrun.c (handle_inferior_event): Don't proceed through
+ shared library trampolines if stepping at the machine
+ instruction level.
- Fix crash regression on systems featuring .gdb_index.
- * objfiles.c (free_objfile): Move the
- forget_cached_source_info_for_objfile call earlier. Comment it.
- Extend the comment for objfile_free_data.
+2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
-2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
+ too.
- Fix regression of displaying the debug format.
- * buildsym.c (end_symtab): Set symtab's debugformat and producer from
- subfile.
+2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
-2011-04-04 Tom Tromey <tromey@redhat.com>
+ * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
+ (sh_stub_unwind_sniffer): New functions.
+ (sh_stub_unwind): New variable.
+ (sh_gdbarch_init): Wire everything.
- * cli/cli-interp.c (struct captured_execute_command_args):
- Remove.
- (do_captured_execute_command): Remove.
- (safe_execute_command): Use TRY_CATCH.
- * cli/cli-script.c (struct wrapped_read_command_file_args):
- Remove.
- (wrapped_read_command_file): Remove.
- (script_from_file): Use TRY_CATCH.
- * exceptions.c (catch_exception): Remove.
- * exceptions.h (catch_exception): Remove.
- (deprecated_throw_reason): Update comment.
- * mi/mi-main.c (captured_mi_execute_command): Change 'data'
- argument to 'context'.
- (mi_execute_command): Use TRY_CATCH.
- * remote.c (struct start_remote_args): Remove.
- (remote_start_remote): Update; change arguments.
- (remote_open_1): Use TRY_CATCH.
-
-2011-04-04 Tom Tromey <tromey@redhat.com>
+2012-02-27 Pedro Alves <palves@redhat.com>
- * tracepoint.c (scope_info): Update.
- * symtab.c (decode_line_spec): Update.
- * python/python.c (gdbpy_decode_line): Update.
- * linespec.h (decode_line_1): Update.
- * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
- (decode_compound, find_method, symtab_from_filename)
- (decode_variable): Likewise.
- * cli/cli-cmds.c (edit_command): Update.
- (list_command): Update.
- * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
- argument.
- (create_breakpoint): Update.
- (until_break_command): Update.
- (addr_string_to_sals): Update.
- (decode_line_spec_1): Update.
-
-2011-04-04 Tom Tromey <tromey@redhat.com>
-
- * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
- (do_captured_parse_breakpoint): Remove.
- (create_breakpoint): `e' is now volatile. Remove `parse_args'.
- Use TRY_CATCH directly.
-
-2011-04-04 Tom Tromey <tromey@redhat.com>
-
- * symtab.h (free_symtab): Remove.
- (forget_cached_source_info_for_objfile): Declare.
- * symmisc.c (free_symtab): Remove.
- * source.c (forget_cached_source_info_for_objfile): New function.
- (forget_cached_source_info): Use it.
- * objfiles.c (free_objfile): Simplify check before calling
- clear_current_source_symtab_and_line. Call
- forget_cached_source_info_for_objfile.
-
-2011-04-04 Tom Tromey <tromey@redhat.com>
-
- * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
- (new_symtab): Don't set `free_code' on symtab.
- (new_linetable): Properly handle size==0.
- * symtab.h (struct symtab) <free_code, free_func>: Remove.
- * symmisc.c (free_symtab): Don't free the linetable. Don't call
- free_func.
- * jv-lang.c (struct jv_per_objfile_data): New.
- (jv_per_objfile_free): Free the data.
- (get_dynamics_objfile): Allocate a jv_per_objfile_data.
- (get_java_class_symtab): Set the `dict' field on the
- jv_per_objfile_data.
- (free_class_block): Remove.
- * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
- the symtab.
-
-2011-04-04 Tom Tromey <tromey@redhat.com>
-
- * symfile.c (reread_symbols): Update.
- * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
- field.
- * objfiles.c (allocate_objfile): Update.
- * cp-support.h (cp_check_possible_namespace_symbols): Don't
- declare.
- * cp-namespace.c (lookup_symbol_file): Don't call
- lookup_possible_namespace_symbol.
- (initialize_namespace_symtab, get_possible_namespace_block)
- (free_namespace_block, cp_check_possible_namespace_symbols)
- (check_possible_namespace_symbols_loop)
- (check_one_possible_namespace_symbol)
- (lookup_possible_namespace_symbol): Remove.
- (maintenance_cplus_namespace): Replace with notice.
- (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
-
-2011-04-04 Tom Tromey <tromey@redhat.com>
-
- * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
- * symtab.h (struct symtab) <producer, debugformat>: Now const.
- * symmisc.c (free_symtab): Don't free debugformat.
- * buildsym.h (struct subfile) <producer, debugformat>: Now const.
- (record_debugformat, record_producer): Document.
- * buildsym.c (end_symtab): Don't save debugformat and producer
- names on obstack.
- (end_symtab): Don't free debugformat and producer fields.
- (record_debugformat): Don't call xstrdup.
- (record_producer): Likewise.
-
-2011-04-04 Tom Tromey <tromey@redhat.com>
-
- * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
- (source_line_charpos, source_charpos_line): Remove.
-
-2011-04-04 Tom Tromey <tromey@redhat.com>
-
- * symtab.h (domain_enum): Split in two...
- (enum search_domain): New.
- (search_symbols): Update.
- * symtab.c (print_symbol_info, symtab_symbol_info): Remove
- redundant declarations.
- (search_symbols): Change 'kind' argument to search_domain.
- Update.
- (print_symbol_info): Likewise.
- (symtab_symbol_info): Likewise.
- * symfile.h (struct quick_symbol_functions)
- <pre_expand_symtabs_matching>: Change type of 'kind' argument.
- <expand_symtabs_matching>: Likewise.
- * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
- (expand_symtabs_matching_via_partial): Update.
- * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
- (dw2_expand_symtabs_for_function): Update.
- * block.h: Moved anonymous enum...
- * defs.h (enum block_enum): ... here. Now named.
+ * linux-nat.c (pid_is_stopped): Delete, moved to common/.
+ (linux_nat_post_attach_wait): Adjust to use
+ linux_proc_pid_is_stopped.
+ * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
+ * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
+ based on pid_is_stopped from both linux-nat.c and
+ gdbserver/linux-low.c, and renamed.
-2011-04-03 Joel Brobecker <brobecker@adacore.com>
+2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
- GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
- * version.in: Bump version to 7.3.50.20110403-cvs.
+ * remote.c (remote_watchpoint_addr_within_range): New function.
+ (init_remote_ops): Use it.
-2011-04-03 Joel Brobecker <brobecker@adacore.com>
+2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
- * NEWS: Create a new section for the next release branch.
- Rename the section of the current branch, now that it has
- been cut.
+ * target.h (target_watchpoint_addr_within_range): Document macro.
-2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
+2012-02-24 Pedro Alves <palves@redhat.com>
- * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
- for "fpscr" in target description.
+ * stack.c (set_last_displayed_sal): Issue internal_error instead
+ of warning, and issue it after clearing the last displayed sal.
-2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Pedro Alves <palves@redhat.com>
- * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
- initialize it. Delay HASH initialization. Strip the part after open
- parenthesis for languages with qualifiers. Call do_cleanups.
+ * breakpoint.c (until_break_command): Install breakpoints after
+ all frame manipulations.
-2011-04-01 Tom Tromey <tromey@redhat.com>
+2012-02-24 Luis Machado <lgustavo@codesourcery.com>
- * utils.c (report_command_stats): Don't print `-' for negative
+ * remote.c (remote_supports_cond_breakpoints): New forward
+ declaration.
+ (remote_add_target_side_condition): New function.
+ (remote_insert_breakpoint): Add target-side breakpoint
+ conditional if supported.
+ (remote_insert_hw_breakpoint): Likewise.
+ (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
+ hook.
+
+ * target.c (update_current_target): Inherit
+ to_supports_evaluation_of_breakpoint_conditions.
+ Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
+
+ * target.h (struct target_ops)
+ <to_supports_evaluation_of_breakpoint_conditions>: New field.
+ (target_supports_evaluation_of_breakpoint_conditions): New #define.
+
+ * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
+ (condition_evaluation_both, condition_evaluation_auto,
+ condition_evaluation_host, condition_evaluation_target,
+ condition_evaluation_enums, condition_evaluation_mode_1,
+ condition_evaluation_mode): New static globals.
+ (translate_condition_evaluation_mode): New function.
+ (breakpoint_condition_evaluation_mode): New function.
+ (gdb_evaluates_breakpoint_condition_p): New function.
+ (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
+ (mark_breakpoint_modified): New function.
+ (mark_breakpoint_location_modified): New function.
+ (set_condition_evaluation_mode): New function.
+ (show_condition_evaluation_mode): New function.
+ (bp_location_compare_addrs): New function.
+ (get_first_location_gte_addr): New helper function.
+ (set_breakpoint_condition): Free condition bytecode if locations
+ has become unconditional. Call mark_breakpoint_modified (...).
+ (condition_command): Call update_global_location_list (1) for
+ breakpoints.
+ (breakpoint_xfer_memory): Use is_breakpoint (...).
+ (is_breakpoint): New function.
+ (parse_cond_to_aexpr): New function.
+ (build_target_condition_list): New function.
+ (insert_bp_location): Handle target-side conditional
+ breakpoints and call build_target_condition_list (...).
+ (update_inserted_breakpoint_locations): New function.
+ (insert_breakpoint_locations): Handle target-side conditional
+ breakpoints.
+ (bpstat_check_breakpoint_conditions): Add comment.
+ (bp_condition_evaluator): New function.
+ (bp_location_condition_evaluator): New function.
+ (print_breakpoint_location): Print information on where the condition
+ will be evaluated.
+ (print_one_breakpoint_location): Likewise.
+ (init_bp_location): Call mark_breakpoint_location_modified (...) for
+ breakpoint location.
+ (force_breakpoint_reinsertion): New functions.
+ (update_global_location_list): Handle target-side breakpoint
+ conditions.
+ Reinsert locations that are already inserted if conditions have
+ changed.
+ (bp_location_dtor): Free agent expression bytecode.
+ (disable_breakpoint): Call mark_breakpoint_modified (...).
+ Call update_global_location_list (...) with parameter 1 for breakpoints.
+ (disable_command): Call mark_breakpoint_location_modified (...).
+ Call update_global_location_list (...) with parameter 1 for breakpoints.
+ (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
+ (enable_command): mark_breakpoint_location_modified (...).
+ (_initialize_breakpoint): Update documentation and add
+ condition-evaluation breakpoint subcommand.
+
+ * breakpoint.h: Include ax.h.
+ (condition_list): New data structure.
+ (condition_status): New enum.
+ (bp_target_info) <cond_list>: New field.
+ (bp_location) <condition_changed, cond_bytecode>: New fields.
+ (is_breakpoint): New prototype.
+
+2012-02-24 Luis Machado <lgustavo@codesourcery.com>
+
+ * remote.c (remote_state) <cond_breakpoints>: New field.
+ (PACKET_ConditionalBreakpoints): New enum.
+ (remote_cond_breakpoint_feature): New function.
+ (remote_protocol_features): Add new ConditionalBreakpoints entry.
+ (remote_supports_cond_breakpoints): New function.
+ (_initialize_remote): Add new packet configuration for
+ target-side conditional breakpoints.
+
+2012-02-24 Luis Machado <lgustavo@codesourcery.com>
+
+ * NEWS: Mention target-side conditional breakpoint support,
+ new condition-evaluation breakpoint subcommand and remote
+ packet extensions.
+
+2012-02-24 Luis Machado <lgustavo@codesourcery.com>
+
+ * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
number.
-2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
-
- * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
- (ada_value_slice, empty_array, to_fixed_array_type): Deal with
- typedefs.
-
-2011-04-01 Joel Brobecker <brobecker@adacore.com>
-
- * breakpoint.h (bpdisp_text): Add declaration.
- * breakpoint.c (bpdisp_text): Make non-static.
- * ada-lang.c: #include "mi/mi-common.h".
- (print_it_exception): Rewrite to improve GDB/MI output.
-
-2011-04-01 Pedro Alves <pedro@codesourcery.com>
-
- * arm-tdep.h (struct address_space): Add forward declaration.
-
-2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
- * arm-tdep.c (arm_override_mode): New global.
- (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
- execution mode heuristics.
- (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
- second single-step breakpoint if needed, using
- arm_insert_single_step_breakpoint.
- (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
- ARM execution mode, do not call thumb_get_next_pc_raw.
- (arm_get_next_pc): Encode execution mode in return value. Call
- either arm_get_next_pc_raw or thumb_get_next_pc_raw.
- (arm_insert_single_step_breakpoint): New function.
- (arm_software_single_step): Call it.
- * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
- argument to return execution mode of sigreturn target.
- (arm_linux_syscall_next_pc): Use it.
- (arm_linux_copy_svc): Update call.
- (arm_linux_software_single_step): Call
- arm_insert_single_step_breakpoint.
-
-2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
- the comment.
-
-2011-03-31 Tom Tromey <tromey@redhat.com>
-
- * varobj.c (update_dynamic_varobj_children): Properly handle
- errors from iterator.
+2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
-2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
+ (after_prologue): Remove.
- * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
- struct linkage name twice.
+2012-02-23 Tom Tromey <tromey@redhat.com>
-2011-03-31 Tom Tromey <tromey@redhat.com>
+ * jv-valprint.c (java_val_print): Remove dead code.
- * python/py-prettyprint.c (print_stack_unless_memory_error): Add
- missing ">" to message.
+2012-02-23 Tristan Gingold <gingold@adacore.com>
-2011-03-31 Tom Tromey <tromey@redhat.com>
-
- * varobj.c (instantiate_pretty_printer): Remove duplicate
- 'return'.
-
-2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
- if neither saved value nor register available (e.g. signal frame).
-
-2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * macroexp.c (expand): Avoid uninitialized variable
- compiler warning.
-
-2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * breakpoint.c (break_range_command): Fix typo in comment.
-
-2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
- Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
-
- Implement support for PowerPC BookE ranged breakpoints.
- * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
- * breakpoint.h (struct bp_target_info) <length>: New member
- variable.
- (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
- instead of struct breakpoint as argument, and also add ASPACE
- and BP_ADDR arguments. Update all callers.
- (struct breakpoint_ops) <print_one_detail>: New method.
- (struct breakpoint) <addr_string_range_end>: New member variable.
- * breakpoint.c (breakpoint_location_address_match): Add function
- prototype.
- (insert_bp_location): Set bl->target_info.length.
- (breakpoint_here_p): Call breakpoint_location_address_match.
- (moribund_breakpoint_here_p): Likewise.
- (regular_breakpoint_inserted_here_p): Likewise.
- (breakpoint_thread_match): Likewise.
- (bpstat_stop_status): Likewise.
- (bpstat_check_location): Move call to
- breakpoint_ops.breakpoint_hit to the top.
- (print_one_breakpoint_location): Call
- breakpoint_ops.print_one_detail if available.
- (breakpoint_address_match_range): New function.
- (breakpoint_location_address_match): Likewise.
- (breakpoint_locations_match): Compare the length field of the
- locations too.
- (hw_breakpoint_used_count): Count resources used by all locations
- in a breakpoint, and use breakpoint_ops.resources_needed if
- available.
- (breakpoint_hit_ranged_breakpoint): New function.
- (resources_needed_ranged_breakpoint): Likewise.
- (print_it_ranged_breakpoint): Likewise.
- (print_one_ranged_breakpoint): Likewise.
- (print_one_detail_ranged_breakpoint): Likewise.
- (print_mention_ranged_breakpoint): Likewise.
- (print_recreate_ranged_breakpoint): Likewise.
- (ranged_breakpoint_ops): New structure.
- (find_breakpoint_range_end): New function.
- (break_range_command): Likewise.
- (delete_breakpoint): Free addr_string_range_end.
- (update_breakpoint_locations): Add SALS_END argument. Update
- all callers. Calculate breakpoint length if a non-zero SALS_END
- is given. Call breakpoint_locations_match instead of
- breakpoint_address_match.
- (reset_breakpoint): Find SaL of the end of the range if B is a
- ranged breakpoint.
- (_initialize_breakpoint): Register break-range command.
- * defs.h (print_core_address): Add function prototype.
- * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
- function.
- (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
- (ppc_linux_remove_hw_breakpoint): Likewise.
- (_initialize_ppc_linux_nat): Initialize
- to_ranged_break_num_registers.
- * target.c (update_current_target): Add comment about
- to_ranged_break_num_registers.
- (target_ranged_break_num_registers): New function.
- * target.h (struct target_ops) <to_ranged_break_num_registers>:
- New method.
- (target_ranged_break_num_registers): Add function prototype.
- * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
- * utils.c (print_core_address): ... here.
+ * ada-tasks.c (struct ada_tasks_inferior_data): Add
+ known_tasks_element and known_tasks_length fields.
+ (read_known_tasks_array): Change argument type. Use pointer type
+ and number of elements from DATA. Adjust.
+ (read_known_tasks_list): Likewise.
+ (get_known_tasks_addr): Remove.
+ (ada_set_current_inferior_known_tasks_addr): Renamed to ...
+ (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
+ type and array length. Merge former get_known_tasks_addr code.
-2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
+2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
- * breakpoint.c (addr_string_to_sals): Avoid uninitialized
- variable compiler warning.
+ PR backtrace/13716
+ * infcmd.c (finish_forward): New variable frame_id, initialize it, use
+ it after set_momentary_breakpoint.
-2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-02-22 Sterling Augustine <saugustine@google.com>
- * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
- code from here ...
- (re_set_breakpoint): ... to here ...
- (addr_string_to_sals): ... and here.
+ PR 13689:
+ * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
-2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
+2012-02-22 Gary Benson <gbenson@redhat.com>
- * Makefile.in (SFILES): Add missing C sources.
- (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
- Add missing headers.
+ * dwarf2read.c (dwarf2_read_index): Correct misspelling.
+ (find_slot_in_mapped_hash): Likewise.
-2011-03-29 Mike Frysinger <vapier@gentoo.org>
+2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
- * .gitignore: New file.
+ PR build/13638
+ * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
+ (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
+ * configure: Regenerate.
-2011-03-29 Mike Frysinger <vapier@gentoo.org>
+2012-02-21 Tristan Gingold <gingold@adacore.com>
+ Pedro Alves <palves@redhat.com>
- * NEWS: Mention new cfi device simulation.
+ * ia64-tdep.c: Do not include libunwind-ia64.h.
+ * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
+ Include libunwind-ia64.h instead of libunwind.h.
+ * configure.ac (--with-libunwind, $enable_libunwind): Don't check
+ for libunwind.h existence.
+ * configure, config.in: Regenerate.
-2011-03-29 Tom Tromey <tromey@redhat.com>
+2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
+
+ * c-valprint.c (c_value_print): Use value_rtti_indirect_type
+ instead of value_rtti_target_type.
+ * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
+ instead of value_rtti_target_type.
+ * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
+ value_rtti_target_type.
+ * valops.c (value_ind): Extract function readjust_indirect_value_type.
+ (value_rtti_target_type): Rename to ...
+ (value_rtti_indirect_type): ... here and make it indirect. Update
+ function comment.
+ * value.c (readjust_indirect_value_type): New function.
+ (coerce_ref): Support for enclosing type setting for references
+ with readjust_indirect_value_type.
+ * value.h (readjust_value_type): New declaration.
+ (value_rtti_target_type): Rename to ...
+ (value_rtti_indirect_type): ... here.
+
+2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
- * dwarf2read.c (fixup_partial_die): Handle linkage name on
- otherwise anonymous types.
- (dwarf2_name): Likewise.
- * valops.c (value_struct_elt_for_reference): Refine artificial
- type logic. Call error if j==-1.
+ * MAINTAINERS (Write After Approval): Add myself to the list.
-2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
+2012-02-20 Doug Evans <dje@google.com>
- Fix false GCC warning.
- * infcall.c (find_function_addr): Initialize funaddr.
+ * objfiles.c (add_to_objfile_sections): Remove outdated comments.
+ Rename objfile_p_char parameter to objfilep.
+ (build_objfile_section_table): Result is now void. All callers
+ updated.
+ * objfiles.h (struct objfile): Tweak comments, whitespace.
+ (build_objfile_section_table): Update.
-2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
+ * elfread.c (elf_symfile_segments): Fix warning text.
- Fix mingw compilation with --enable-targets=all.
- * remote-mips.c (gdb_usleep.h): Include header.
- (mips_enter_debug): Use gdb_usleep instead of sleep.
+2012-02-20 Tom Tromey <tromey@redhat.com>
-2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+ PR gdb/13498:
+ * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
+ particular set of file names once.
+ (dw2_map_symbol_filenames): Likewise.
- Support resolution of STT_GNU_IFUNC via breakpoints.
- * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
- bp_gnu_ifunc_resolver_return.
- (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
- the loop. Support bp_gnu_ifunc_resolver and
- bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
- for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
- breakpoints.
- (bptype_string, print_one_breakpoint_location): Support
- bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
- (user_settable_breakpoint): Return true also for
- bp_gnu_ifunc_resolver.
- (allocate_bp_location): Support bp_gnu_ifunc_resolver and
- bp_gnu_ifunc_resolver_return.
- (set_breakpoint_location_function): New parameter explicit_loc,
- describe it. Call find_pc_partial_function_gnu_ifunc with new
- variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
- EXPLICIT_LOC is not set.
- (set_raw_breakpoint): Set EXPLICIT_LOC for
- set_breakpoint_location_function.
- (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
- set_breakpoint_location_function.
- (mention): Support bp_gnu_ifunc_resolver and
- bp_gnu_ifunc_resolver_return.
- (add_location_to_breakpoint): Set EXPLICIT_LOC for
- set_breakpoint_location_function.
- (update_breakpoint_locations): Remove static.
- (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
- bp_gnu_ifunc_resolver_return.
- * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
- bp_gnu_ifunc_resolver_return.
- (update_breakpoint_locations): New declaration.
- * elfread.c: Include gdbthread.h and regcache.h.
- (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
- functions.
- (elf_gnu_ifunc_fns): Install them.
- * minsyms.c (stub_gnu_ifunc_resolver_stop)
- (stub_gnu_ifunc_resolver_return_stop): New functions.
- (stub_gnu_ifunc_fns): Install them.
- * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
- and gnu_ifunc_resolver_return_stop.
- (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
-
-2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- STT_GNU_IFUNC reader implementation.
- * elfread.c: Include gdbtypes.h, value.h and infcall.h.
- (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
- (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
- (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
- (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
- (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
- (elf_gnu_ifunc_resolve_addr): New.
- (elf_symfile_read): Call elf_rel_plt_read.
- (elf_gnu_ifunc_fns): New.
- (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
- Install elf_gnu_ifunc_fns.
- * infcall.c (find_function_return_type): New function.
- (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
- * minsyms.c (stub_gnu_ifunc_resolve_addr)
- (stub_gnu_ifunc_resolve_name): New functions.
- (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
- * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
- (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
-
-2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Code cleanup for later STT_GNU_IFUNC support.
- * infcall.c (find_function_addr): Remove variable code, use explicit
- dereferences for it. Move VALUE_TYPE initialization later.
-
-2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- GDB find_pc_partial_function support for STT_GNU_IFUNC.
- * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
- (clear_pc_function_cache): Clear it.
- (find_pc_partial_function): Rename to ...
- (find_pc_partial_function_gnu_ifunc): ... this function. New
- parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
- (find_pc_partial_function): New wrapper for this function.
- * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
-
-2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- GDB internal type support for STT_GNU_IFUNC.
- * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
- (elf_symtab_read): Set mst_text_gnu_ifunc for
- BSF_GNU_INDIRECT_FUNCTION.
- * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
- * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
- builtin_func_func, nodebug_text_gnu_ifunc_symbol and
- nodebug_got_plt_symbol.
- * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
- (TYPE_GNU_IFUNC): New.
- (struct main_type): New field flag_gnu_ifunc.
- (struct builtin_type): New field builtin_func_func.
- (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
- nodebug_got_plt_symbol.
- * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
- (in_gnu_ifunc_stub): New.
- (prim_record_minimal_symbol, find_solib_trampoline_target): Support
- mst_text_gnu_ifunc.
- * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
- support mst_text_gnu_ifunc. Support mst_slot_got_plt.
- * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
- in_gnu_ifunc_stub.
- * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
- * symtab.c (search_symbols): Likewise.
- * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
- and mst_slot_got_plt.
- (in_gnu_ifunc_stub): New declaration.
-
-2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Support a ring of related breakpoints.
- * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
- other functions, add gdb_assert.
- (update_watchpoint, watchpoint_check): Add gdb_assert. Use
- watchpoint_del_at_next_stop.
- (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
- (bpstat_stop_status): Handle ring in related_breakpoint.
- (set_raw_breakpoint_without_location): Initialize ring in
- related_breakpoint.
- (delete_breakpoint): Handle ring in related_breakpoint, use
- watchpoint_del_at_next_stop.
- (map_breakpoint_numbers): Handle ring in related_breakpoint.
-
-2011-03-28 Tom Tromey <tromey@redhat.com>
-
- PR symtab/12441:
- * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
- with `language_minimal'.
-
-2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
- instead of checking for STT_ARM_TFUNC symbol type.
-
-2011-03-25 Tom Tromey <tromey@redhat.com>
-
- * linespec.c (symbol_found): Restore line-based result for
- non-LOC_LABEL symbols.
-
-2011-03-25 Kai Tietz <ktietz@redhat.com>
-
- * tui/tui-source.c (tui_set_source_content): Use filename_cmp
- instead of strcmp for comparison.
- (tui_source_is_displayed): Likewise.
- * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
-
-2011-03-24 Mark Wielaard <mjw@redhat.com>
-
- * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
- complaint.
- (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
- (find_partial_die_in_comp_unit): Likewise in comment.
- (read_attribute_value): Likewise.
- (lookup_die_type): Likewise.
- (dwarf_form_name): Likewise.
- (dump_die_shallow): Likewise.
- (follow_die_ref_or_sig): Likewise.
-
-2011-03-24 Tom Tromey <tromey@redhat.com>
-
- PR breakpoints/11816:
- * linespec.c (decode_line_1): Parse `function:label' linespecs.
- (decode_compound): Update.
- (find_function_symbol): New function.
- (decode_dollar): Update.
- (decode_label): Add 'function_symbol' parameter. Handle
- function-relative labels.
- (decode_variable): Update.
- (symbol_found): Add 'function_symbol' parameter. Use label's PC,
- not its line. Set `special_display' and canonical name for
- labels.
-
-2011-03-24 Tom Tromey <tromey@redhat.com>
-
- * linespec.h (struct linespec_result) <special_display>: New
- field.
- * breakpoint.h (struct breakpoint) <display_canonical>: New
- field.
- * breakpoint.c (print_breakpoint_location): Respect
- display_canonical.
- (create_breakpoint_sal): Add 'display_canonical' parameter.
- (create_breakpoints_sal): Update.
- (create_breakpoint): Update.
-
-2011-03-24 Tom Tromey <tromey@redhat.com>
-
- * symtab.c (decode_line_spec): Update.
- * linespec.c (build_canonical_line_spec): Change type of
- 'canonical'.
- (decode_line_2, decode_line_1, decode_objc, decode_compound)
- (find_method, decode_all_digits, decode_dollar, decode_label)
- (symbol_found): Likewise.
- (init_linespec_result): New function.
- * breakpoint.c (struct captured_parse_breakpoint_args)
- <canonical_p>: New field, replaces addr_string_p.
- (create_breakpoints_sal): Add 'canonical' parameter, replacing
- 'addr_string'.
- (parse_breakpoint_sals): Likewise.
- (do_captured_parse_breakpoint): Update.
- (create_breakpoint): Use struct linespec_result.
- (until_break_command): Update.
- (breakpoint_re_set_one): Update.
- (decode_line_spec_1): Update.
- * linespec.h (struct linespec_result): New.
- (init_linespec_result): Declare.
-
-2011-03-23 Pedro Alves <pedro@codesourcery.com>
-
- * regcache.c (regcache_raw_read): If the target didn't supply a
- given raw register, mark it as unavailable.
-
-2011-03-23 Kai Tietz <ktietz@redhat.com>
-
- * breakpoint.c (clear_command): Use filename_cmp
- instead of strcmp for comparison.
- * buildsym.c (watch_main_source_file_lossage): Likewise.
- (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
- checking just for slash.
- * dbxread.c (read_dbx_symtab): Use lbasename instead of
- strrchr and filename_cmp instead of strcmp for filenames.
- (add_old_header_file): Use filename_cmp
- instead of strcmp for comparison.
- * exec.c (exec_set_section_address): Likewise.
- * macrotab.c (macro_lookup_inclusion): Likewise.
- (macro_lookup_inclusion): Likewise.
- * elfread.c (_initialize_elfread): Likewise.
- (elfstab_offset_sections): Likewise.
- (elfstab_offset_sections): Use lbasename instead of
- strrchr.
- * mdebugread.c (parse_partial_symbols): Likewise.
- (arse_partial_symbols): Use filename_(n)cmp instead of
- str(n)cmp for comparison.
- * minsyms.c (lookup_minimal_symbol): Likewise.
- * psymtab.c (read_psymtabs_with_filename): Likewise.
- * solib.c (solib_read_symbols): Likewise.
- (reload_shared_libraries_1): Likewise.
- * symmisc.c (maintenance_print_symbols): Likewise.
- * symfile.c (separate_debug_file_exists): Likewise.
- (reread_symbols): Likewise.
- (find_separate_debug_file_by_debuglink): Likewise.
- * remote-fileio.c (remote_fileio_func_rename): Likewise.
- * source.c (add_path): Likewise.
- * symtab.c (filename_seen): Likewise.
- (file_matches): Likewise.
- (print_symbol_info): Likewise.
- (maybe_add_partial_symtab_filename): Likewise.
- (make_source_files_completion_list): Likewise.
- * xml-syscall.c (init_sysinfo): Likewise.
- * windows-nat.c (_initialize_check_for_gdb_ini): Use
- IS_DIR_SEPARATOR for checking for trailing path separator.
-
-2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
- label abort_expression.
- * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
- DWARF_VALUE_OPTIMIZED_OUT.
-
-2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
- * c-typeprint.c (c_type_print_args): Change parameter show_artificial
- to linkage_name. Invert its value. Update the function comment.
- (c_type_print_varspec_suffix): Invert it at the caller.
- * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
-
-2011-03-22 Pedro Alves <pedro@codesourcery.com>
-
- * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
- errors when reading the `stop_pc'.
- * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
- get_frame_pc.
-
-2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
-
- * NEWS: Document gdb.Write stream keyword.
-
-2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Revert:
- 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
- * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
- (dwarf2_add_field): Fix new_field->accessibility for
- cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
-
-2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
-
- PR python/12183
-
- * python/py-function.c (fnpy_call): Treat GdbErrors differently to
- other error classes. Do not print stack trace.
-
-2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
- (dwarf2_add_field): Fix new_field->accessibility for
- cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
-
-2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
- encountering a load via a non-SP register.
-
-2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
-
- * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
- field in returned unwinder.
-
-2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
-
-2012-03-21 Joel Brobecker <brobecker@adacore.com>
-
- * ada-lang.c (replace_operator_with_call): Use xzalloc instead
- of xmalloc.
-
-2012-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * frame.c (frame_unwind_register): Throw an error if unwinding the
- register failed.
- * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
- an unwind stop reason.
- (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
- * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
- UNWIND_UNAVAILABLE>: New.
- * inline-frame.c (inline_frame_unwind): Install
- default_frame_unwind_stop_reason.
- * frame-unwind.c: Include "exceptions.h".
- (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
- (default_frame_unwind_stop_reason): New.
- * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
- (default_frame_unwind_stop_reason): Declare.
- (struct frame_unwind) <stop_reason>: New function pointer.
-
- * dummy-frame.c: Install default_frame_unwind_stop_reason.
- * dwarf2-frame.c: Include exceptions.h.
- (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
- (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
- computing the CFA. If such an error was thrown, set
- unavailable_retaddr.
- (dwarf2_frame_unwind_stop_reason): New.
- (dwarf2_frame_this_id): Don't build a frame id if the CFA was
- unavailable.
- (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
- (dwarf2_signal_frame_unwind): Ditto.
-
- * amd64-tdep.c: Include "exceptions.h".
- (struct amd64_frame_cache): New field "base_p".
- (amd64_init_frame_cache): Clear it.
- (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
- Avoid reading registers with functions that throw if the register
- is not necessary to compute the frame base.
- (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
- swallowing NOT_AVAILABLE_ERROR.
- (amd64_frame_unwind_stop_reason): New.
- (amd64_frame_this_id): Don't build a frame id if the frame base
- was unavailable.
- (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
- (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
- base_p if the frame base was computable.
- (amd64_sigtramp_frame_unwind_stop_reason): New.
- (amd64_sigtramp_frame_this_id): Don't build a frame id if the
- frame base was unavailable.
- (amd64_sigtramp_frame_unwind): Install
- amd64_sigtramp_frame_unwind_stop_reason.
- (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
- base_p if the frame base was computable.
- (amd64_epilogue_frame_unwind_stop_reason): New.
- (amd64_epilogue_frame_this_id): Don't build a frame id if the
- frame base was unavailable.
- (amd64_epilogue_frame_unwind): Install
- amd64_epilogue_frame_unwind_stop_reason.
- * i386-tdep.c: Include "exceptions.h".
- (struct i386_frame_cache): New field "base_p".
- (i386_init_frame_cache): Clear it.
- (i386_frame_cache_1): New, factored out from amd64_frame_cache.
- Avoid reading registers with functions that throw if the register
- is not necessary to compute the frame base.
- (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
- swallowing NOT_AVAILABLE_ERROR.
- (i386_frame_unwind_stop_reason): New.
- (i386_frame_this_id): Don't build a frame id if the frame base was
- unavailable.
- (i386_frame_prev_register): Handle unavailable SP.
- (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
- (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
- base_p if the frame base was computable.
- (i386_epilogue_frame_unwind_stop_reason): New.
- (i386_epilogue_frame_this_id): Don't build a frame id if the frame
- base was unavailable.
- (i386_epilogue_frame_unwind): Install
- i386_epilogue_frame_unwind_stop_reason.
- (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
- base_p if the frame base was computable.
- (i386_sigtramp_frame_unwind_stop_reason): New.
- (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
- base was unavailable.
- (i386_sigtramp_frame_unwind): Install
- i386_sigtramp_frame_unwind_stop_reason.
- * sentinel-frame.c (sentinel_frame_prev_register): Use the value
- type's size, not the register's.
- (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
-
- * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
- default_frame_unwind_stop_reason.
- * alpha-tdep.c (alpha_sigtramp_frame_unwind)
- (alpha_heuristic_frame_unwind): Ditto.
- * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
- * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
- * avr-tdep.c (avr_frame_unwind): Ditto.
- * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
- Ditto.
- * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
- * frv-tdep.c (frv_frame_unwind): Ditto.
- * h8300-tdep.c (h8300_frame_unwind): Ditto.
- * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
- * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
- * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
- (hppa_stub_frame_unwind): Ditto.
- * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
- * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
- (ia64_libunwind_frame_unwind)
- (ia64_libunwind_sigtramp_frame_unwind): Ditto.
- * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
- * lm32-tdep.c (lm32_frame_unwind): Ditto.
- * m32c-tdep.c (m32c_unwind): Ditto.
- * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
- * m32r-tdep.c (m32r_frame_unwind): Ditto.
- * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
- * m68k-tdep.c (m68k_frame_unwind): Ditto.
- * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
- * m88k-tdep.c (m88k_frame_unwind): Ditto.
- * mep-tdep.c (mep_frame_unwind): Ditto.
- * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
- * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
- (mips_stub_frame_unwind): Ditto.
- * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
- * moxie-tdep.c (moxie_frame_unwind): Ditto.
- * mt-tdep.c (mt_frame_unwind): Ditto.
- * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
- * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
- * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
- * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
- (s390_sigtramp_frame_unwind): Ditto.
- * score-tdep.c (score_prologue_unwind): Ditto.
- * sh-tdep.c (sh_frame_unwind): Ditto.
- * sh64-tdep.c (sh64_frame_unwind): Ditto.
- * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
- * sparc-tdep.c (sparc32_frame_unwind): Ditto.
- * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
- * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
- * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
- * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
- * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
- (sparc64obsd_trapframe_unwind): Ditto.
- * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
- * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
- * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
- * v850-tdep.c (v850_frame_unwind): Ditto.
- * vax-tdep.c (vax_frame_unwind): Ditto.
- * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
- * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
- * xtensa-tdep.c (xtensa_unwind): Ditto.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
- there's always a frame. Use get_frame_pc_if_available instead of
- get_frame_pc, and if there's no PC available, don't look up a
- symtab.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
- unavailable PC.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * tracepoint.c (set_traceframe_context): Handle unavailable PC
- gracefully.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * frame.h (frame_unwind_caller_pc_if_available): Declare.
- * frame.c (frame_unwind_caller_pc_if_available): New.
- * stack.c (frame_info): Handle unavailable PC.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * frame.c (frame_unwind_pc): Rename to ...
- (frame_unwind_pc_if_available): ... this. New `pc' output
- parameter. Change return type to int. Gracefully handle
- gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
- happened, or 1 otherwise.
- (frame_unwind_pc): Reimplement on top of
- frame_unwind_pc_if_available.
- (get_frame_func): Rename to ...
- (get_frame_func_if_available): New `pc' output parameter. Change
- return type to int. Gracefully handle the PC not being available.
- (get_frame_func): Reimplement on top of
- get_frame_func_if_available.
- (select_frame): Handle the PC being unavailable.
- (get_prev_frame): Handle the PC being unavailable.
- (get_frame_pc_if_available): New.
- (get_frame_address_in_block_if_available): New.
- (find_frame_sal): Handle the frame PC not being available.
- * frame.h (get_frame_pc_if_available): Declare.
- (get_frame_address_in_block_if_available): Declare.
- (get_frame_func_if_available): Declare.
- * stack.c (print_frame_info): Handle the PC being unavailable.
- (find_frame_funname): Ditto.
- (print_frame): Handle the PC being unavailable.
- (get_frame_language): Ditto.
- * blockframe.c (get_frame_block): Ditto.
- * macroscope.c (default_macro_scope): Ditto.
- * tui/tui-stack.c (tui_show_frame_info): Ditto.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
- NOT_AVAILABLE_ERROR when evaluating the location expression.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
- returning that the register piece is unavailable/optimized out.
- (write_pieced_value): Handle get_frame_register_bytes returning
- that the register piece is unavailable/optimized out when doing a
- read-modify write of a bitfield.
- * findvar.c (value_from_register): Handle get_frame_register_bytes
- returning that the register piece is unavailable/optimized out.
- * frame.c (get_frame_register_bytes): New parameters `optimizedp'
- and `unavailablep'. Throw error on bad debug info. Use
- frame_register instead of frame_register_read, to fill in the new
- arguments.
- * frame.h (get_frame_register_bytes): New parameters `optimizedp'
- and `unavailablep'.
- * valops.c: (value_assign): Adjust, and handle
- get_frame_register_bytes failing.
- * spu-tdep.c: Include exceptions.h.
- (spu_software_single_step): Adjust, and handle
- get_frame_register_bytes failing.
- (spu_get_longjmp_target): Ditto.
- * gdbarch.sh (register_to_value): Change to return int. New
- parameters `optimizedp' and `unavailablep'.
- * gdbarch.h, gdbarch.c: Regenerate.
- * i386-tdep.c (i386_register_to_value): Adjust to new
- gdbarch_register_to_value interface.
- * i387-tdep.c (i387_register_to_value): Ditto.
- * i387-tdep.h (i387_register_to_value): Ditto.
- * alpha-tdep.c (alpha_register_to_value): Ditto.
- * ia64-tdep.c (ia64_register_to_value): Ditto.
- * m68k-tdep.c (m68k_register_to_value): Ditto.
- * mips-tdep.c (mips_register_to_value): Ditto.
- * rs6000-tdep.c (rs6000_register_to_value): Ditto.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * findvar.c (value_of_register): Mark the value as unavailable, if
- the register is unavailable.
- * frame.h (frame_register_unwind): New `unavailablep' parameter.
- (frame_register): New `unavailablep' parameter.
- (frame_register_read): Update comment.
- * frame.c (frame_register_unwind): New `unavailablep' parameter.
- Set it if the register is unavailable. If the register is
- unavailable, clear the output buffer.
- (frame_register): New `unavailablep' parameter. Pass it down.
- (frame_unwind_register): Adjust.
- (put_frame_register): Adjust.
- (frame_register_read): Adjust. Also return false if the register
- is not available.
- (frame_register_unwind_location): Adjust.
- * sentinel-frame.c (sentinel_frame_prev_register): If the register
- is unavailable, mark the value accordingly.
- * stack.c (frame_info): Handle unavailable registers.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
- simplify, using regcache_cooked_read.
-
-2011-03-18 Pedro Alves <pedro@codesourcery.com>
-
- * regcache.h (regcache_raw_read, regcache_raw_read_signed)
- (regcache_raw_read_unsigned, regcache_raw_read_signed)
- (regcache_raw_read_unsigned, regcache_raw_read_part)
- (regcache_cooked_read, regcache_cooked_read_signed)
- (regcache_cooked_read_unsigned, regcache_cooked_read_part)
- (regcache_cooked_read_ftype): Change return to enum
- register_status.
- * regcache.c: Include exceptions.h
- (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
- (do_cooked_read): Change return to enum register_status. Always
- forward to regcache_cooked_read.
- (regcache_raw_read): Change return to enum register_status. If
- the register is not REG_VALID, memset the buffer. Return the
- register's status.
- (regcache_raw_read_signed): Handle non-REG_VALID registers and
- return the register's status.
- (regcache_raw_read_unsigned): Ditto.
- (regcache_cooked_read): Change return to enum register_status.
- Assert that with read-only regcaches, the register's status must
- be known. If the regcache is read-only, and the register is not
- REG_VALID, memset the buffer. Return the register's status.
- (regcache_cooked_read_signed): Change return to enum
- register_status. Handle non-REG_VALID registers and return the
- register's status.
- (regcache_cooked_read_unsigned): Change return to enum
- register_status. Handle non-REG_VALID registers and return the
- register's status.
- (regcache_xfer_part, regcache_raw_read_part)
- (regcache_cooked_read_part): Change return to enum
- register_status. Return the register's status.
- (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
- unavailable.
- (regcache_dump): Handle unavailable cooked registers.
- * frame.c (do_frame_register_read): Adjust interface to match
- regcache_cooked_read_ftype.
- * gdbarch.sh (pseudo_register_read): Change return to enum
- register_status.
- * gdbarch.h, gdbarch.c: Regenerate.
-
- * i386-tdep.h (i386_pseudo_register_read): Change return to enum
- register_status.
- * i386-tdep.c (i386_pseudo_register_read): Change return to enum
- register_status. If reading a raw register indicates the raw
- register is not valid, return the raw register's status,
- otherwise, return REG_VALID.
- * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
- register_status. Handle non-REG_VALID raw registers and return
- the register's status.
- * arm-tdep.c (arm_neon_quad_read)
- (arm_pseudo_read): Change return to enum register_status. Handle
- non-REG_VALID raw registers and return the register's status.
- * avr-tdep.c (avr_pseudo_register_read): Ditto.
- * frv-tdep.c (frv_pseudo_register_read): Ditto.
- * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
- * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
- * m32c-tdep.c (m32c_move_reg_t): Change return to enum
- register_status.
- (m32c_raw_read, m32c_raw_write, m32c_banked_read)
- (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
- (m32c_part_write, m32c_cat_read, m32c_cat_write)
- (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
- (m32c_pseudo_register_read): Change return to enum
- register_status. Adjust.
- * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
- enum register_status. Return the register's status.
- * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
- register_status. Return the register's status.
- (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
- * mips-tdep.c (mips_pseudo_register_read): Ditto.
- * mt-tdep.c (mt_pseudo_register_read): Ditto.
- * rs6000-tdep.c (move_ev_register_func): New typedef.
- (e500_move_ev_register): Use it. Change return to enum
- register_status. Return the register's status.
- (do_regcache_raw_read): New function.
- (do_regcache_raw_write): New function.
- (e500_pseudo_register_read): Change return to enum
- register_status. Return the register's status. Use
- do_regcache_raw_read.
- (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
- (dfp_pseudo_register_read): Change return to enum register_status.
- Return the register's status.
- (vsx_pseudo_register_read): Ditto.
- (efpr_pseudo_register_read): Ditto.
- (rs6000_pseudo_register_read): Ditto.
- * s390-tdep.c (s390_pseudo_register_read): Change return to enum
- register_status. Return the register's status.
- * sh64-tdep.c (pseudo_register_read_portions): New function.
- (sh64_pseudo_register_read): Change return to enum
- register_status. Use pseudo_register_read_portions. Return the
- register's status.
- * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
- register_status. Return the register's status.
- * sh-tdep.c (pseudo_register_read_portions): New function.
- (sh_pseudo_register_read): Change return to enum register_status.
- Use pseudo_register_read_portions. Return the register's status.
- * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
- enum register_status. Return the register's status.
- * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
- * spu-tdep.c (spu_pseudo_register_read_spu)
- (spu_pseudo_register_read): Ditto.
- * xtensa-tdep.c (xtensa_register_read_masked)
- (xtensa_pseudo_register_read): Ditto.
- * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
-
-2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
-
- * python/py-value.c (valpy_getitem): Fix formatting of error function
- call.
-
-2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
-
- ARI fixes: Add missing internationalization markups throughout
- C source files.
- * darwin-nat-info.c: Ditto.
- * record.c: Ditto.
- * remote.c: Ditto.
- * mi/mi-main.c: Ditto.
-
-2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
-
- ARI fixes: Add missing internationalization markups throughout
- yacc files.
- * c-exp.y: Ditto.
- * cp-name-parser.y: Ditto.
- * f-exp.y: Ditto.
- * m2-exp.y: Ditto.
- * objc-exp.y: Ditto.
- * p-exp.y: Ditto.
-
-2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
-
- ARI fixes: Messages should have no trailing new lines.
- * darwin-nat.c (mach_check_error): Remove trailing new line from
- warning function call message.
- * record.c (bfdcore_read): Idem for error call.
+ * main.c (write_files): Remove the declaration.
+ (external_editor_command): Move the declaration ...
+ [GDBTK] (external_editor_command): ... here. Fix the comment.
-2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
+2012-02-20 Tom Tromey <tromey@redhat.com>
- * common/signals.c (target_signal_from_host): Add _ markup to error
- function call message.
- (target_signal_to_host): Add _ markup and remove trailing new line
- from warning call message.
- (target_signal_from_command): Add _ markup to error function call
- message.
+ * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
+ extraneous block.
-2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
+2012-02-20 Tristan Gingold <gingold@adacore.com>
- PR python/12149
+ * darwin-nat.h (enum darwin_msg_state): Add comments.
- * 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.
+2012-02-20 Tristan Gingold <gingold@adacore.com>
-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)'.
+ * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
+ value.
-2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
+2012-20-18 Joel Brobecker <brobecker@adacore.com>
- * NEWS: Add Parameter sub-classing description.
+ * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
+ between function description and implementation.
-2011-03-16 Kai Tietz <ktietz@redhat.com>
+2012-02-17 Tom Tromey <tromey@redhat.com>
- * MAINTAINERS: Update my e-mail address.
+ PR python/12070:
+ * python/py-event.c (event_object_getset): New global.
+ (event_object_type): Reference it.
+ * python/py-type.c (field_object_getset): New global.
+ (field_object_type): Reference it.
+ * python/python-internal.h (gdb_py_generic_dict): Declare.
+ * python/py-utils.c (gdb_py_generic_dict): New function.
-2011-03-15 Andreas Tobler <andreast@fgznet.ch>
+2012-02-17 Tristan Gingold <gingold@adacore.com>
- * MAINTAINERS: Add myself for write after approval privileges.
+ * solib-darwin.c (darwin_current_sos): Check magic and filetype
-2011-03-15 Michael Snyder <msnyder@vmware.com>
+2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
- * frame.c (find_frame_sal): Assert sym is not null.
+ * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
+ TYPE_CALLING_CONVENTION annotation.
- * dbxread.c (process_one_symbol): Assert 'name' is not null.
+2012-02-16 Kevin Buettner <kevinb@redhat.com>
- * objc-lang.c (selectors_info): Check strchr for null result.
+ * MAINTAINERS: Add rx to target ISA section.
+ * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
+ (ALLDEPFILES): Add rx-tdep.c.
- * stabsread.c (define_symbol): Guard against bad stabstring input.
+2012-02-16 Tom Tromey <tromey@redhat.com>
-2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
+ * symfile.c (symbol_file_add_main_1): Use inferior's
+ symfile_flags.
+ * solib.c (solib_read_symbols): Use inferior's symfile_flags.
+ * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
+ inferior.
+ * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
+ inferior.
+ (follow_exec): Use inferior's symfile_flags.
+ * inferior.h (struct inferior) <symfile_flags>: New field.
- 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.
+2012-02-16 Mike Frysinger <vapier@gentoo.org>
-2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+ PR gdb/9734:
+ * remote-sim.c (gdbsim_create_inferior): Call error() when
+ sim_create_inferior() fails.
- * 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.
+2012-02-16 Josh Matthews <josh@joshmatthews.net>
-2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
+ * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
- 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.
+2012-02-16 Tom Tromey <tromey@redhat.com>
-2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
+ PR c++/13653:
+ * thread.c (struct current_thread_cleanup) <was_removable>: New
+ field.
+ (restore_current_thread_cleanup_dtor): Restore 'removable' field.
+ (make_cleanup_restore_current_thread): Initialize new field.
+
+2012-02-15 Kevin Buettner <kevinb@redhat.com>
+
+ * MAINTAINERS: Add rl78 to target ISA section.
+ * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
+ (ALLDEPFILES): Add rl78-tdep.c.
+ * NEWS: Mention rl78 as a new target.
+
+2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * frame.c (find_frame_sal): Initialize sal->pspace field from frame
+ data.
+ * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
+
+2012-02-15 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/12659:
+ * infcmd.c (registers_info): Print just the current register's
+ name.
+
+2012-02-15 Tom Tromey <tromey@redhat.com>
+
+ * python/py-symbol.c (sympy_value): Use _().
+
+2012-02-15 Pedro Alves <palves@redhat.com>
+
+ * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
+ output to be like native targets'.
+ (remote_pid_to_str): Special case the null ptid.
+
+2012-02-14 Stan Shebs <stan@codesourcery.com>
+
+ * NEWS: Mention enable count command.
+ * breakpoint.h (struct breakpoint): New field enable_count.
+ * breakpoint.c (enable_breakpoint_disp): Add count argument.
+ (enable_breakpoint): Add arg to call.
+ (struct disp_data): New struct.
+ (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
+ (do_map_enable_once_breakpoint): Create a struct and pass it.
+ (do_map_enable_delete_breakpoint): Ditto.
+ (do_map_enable_count_breakpoint): New function.
+ (enable_count_command): New function.
+ (bpstat_stop_status): Decrement enable_count.
+ (print_one_breakpoint_location): Report enable count.
+ (_initialize_breakpoint): Add enable count command.
+
+2012-02-14 Kevin Buettner <kevinb@redhat.com>
+
+ * rl78-tdep.c (reggroups.h): Include.
+ (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
+ (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
+ (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
+ (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
+ (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
+ (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
+ (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
+ (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
+ (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
+ (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
+ (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
+ (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
+ (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
+ (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
+ (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
+ (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
+ beginning of register list.
+ (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
+ (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
+ (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
+ (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
+ (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
+ (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
+ (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
+ (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
+ (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
+ (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
+ (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
+ the pseudo registers. Rearrange other pseudo registers too so
+ that the bank registers appear at the end.
+ (rl78_register_type): Account for the fact that the byte sized
+ bank registers are now pseudo-registers.
+ (rl78_register_name): Rearrange the register name array. Make
+ initial set of raw banked registers inaccessible.
+ (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
+ (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
+ case for copying bytes back and forth between raw and pseudo
+ versions of the banked registers. Update other cases to reflect
+ the changed names.
+ (rl78_return_value): Update to account for changed names of
+ raw registers.
+ (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
+ rl78_register_sim_regno().
+
+2012-02-14 Kevin Buettner <kevinb@redhat.com>
+
+ * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
+ the name parameter being passed to find_pc_partial_function().
+
+2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * MAINTAINERS: Step down from being ia64 target maintainer.
+
+2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
+ compilation warning.
+
+2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix crash on loaded shlibs without loaded exec_bfd.
+ * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
+ (set_section_command): Replace exec_bfd by p->bfd.
+
+2012-02-10 Tom Tromey <tromey@redhat.com>
+
+ * linespec.c (decode_line_internal): Skip symtabs_from_filename
+ when we have a C++ qualified name.
+
+2012-02-10 Pedro Alves <palves@redhat.com>
+
+ * inferior.c (inferior_pid_to_str): New.
+ (print_inferior, inferior_command): Use it.
+
+2012-02-10 Pedro Alves <palves@redhat.com>
+
+ * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
+ the test CFLAGS.
+ * configure: Regenerate.
- * 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.
+2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linespec.c (decode_line_internal): Fix comment correctness.
+
+2012-02-09 Valery Khromov <valery.khromov@gmail.com>
+
+ PR gdb/12953
+ * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
+ * amd64bsd-nat.c: Add support for debug registers (adapted from
+ i386bsd-nat.c).
+ [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
+ (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
+ (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
+ (amd64bsd_dr_get_control): New functions.
+ * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
+ * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
+ [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
+ watchpoints initialization.
+ * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
+
+2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
+ flds_bnds.fields.
+ (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
+
+2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
+
+2012-02-08 Joel Brobecker <brobecker@adacore.com>
+
+ * language.h (symbol_name_cmp_ftype): Renames
+ symbol_name_match_p_ftype.
+ (struct language_defn)[la_get_symbol_name_cmp]: Renames
+ la_get_symbol_name_match_p.
+ * ada-lang.c (ada_get_symbol_name_cmp): Renames
+ ada_get_symbol_name_match_p. Update comment.
+ (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
+ * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
+ Renames symbol_name_match_p. Update field type.
+ (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
+ * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
+ opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
+ "la_get_symbol_name_cmp" in comments.
+ * language.c: Likewise.
+
+2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
+ %eflags offset.
+ * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
+ (amd64_sol2_gregset32_reg_offs): Likewise.
+
+2012-02-08 Joel Brobecker <brobecker@adacore.com>
+
+ * solib-darwin.c (darwin_bfd_open): Make sure that the filename
+ of the returned BFD is allocated by GDB.
+
+2012-02-07 Tom Tromey <tromey@redhat.com>
+
+ PR python/12027:
+ * python/python-internal.h (frame_object_type): Declare.
+ * python/py-symbol.c (sympy_needs_frame): New function.
+ (sympy_value): New function.
+ (symbol_object_getset): Add "needs_frame".
+ (symbol_object_methods): Add "value".
+ * python/py-frame.c (frame_object_type): No longer static.
+
+2012-02-07 Tom Tromey <tromey@redhat.com>
+
+ PR python/13599:
+ * python/py-symbol.c (sympy_line): New function.
+ (symbol_object_getset): Add "line".
+
+2012-02-07 Tom Tromey <tromey@redhat.com>
+
+ * charset.c (find_charset_names): Check 'in' against NULL.
+
+2012-02-06 Doug Evans <dje@google.com>
+
+ * gdbtypes.h (struct main_type): Change type of name,tag_name,
+ and fields.name members from char * to const char *. All uses updated.
+ (struct cplus_struct_type): Change type of fn_fieldlists.name member
+ from char * to const char *. All uses updated.
+ (type_name_no_tag): Update.
+ (lookup_unsigned_typename, lookup_signed_typename): Update.
+ * gdbtypes.c (type_name_no_tag): Change result type
+ from char * to const char *. All callers updated.
+ (lookup_unsigned_typename, lookup_signed_typename): Change type of
+ name parameter from char * to const char *.
+ * symtab.h (struct cplus_specific): Change type of demangled_name
+ member from char * to const char *. All uses updated.
+ (struct general_symbol_info): Change type of name and
+ mangled_lang.demangled_name members from char * to const char *.
+ All uses updated.
+ (symbol_get_demangled_name, symbol_natural_name): Update.
+ (symbol_demangled_name, symbol_search_name): Update.
+ * symtab.c (symbol_get_demangled_name): Change result type
+ from char * to const char *. All callers updated.
+ (symbol_natural_name, symbol_demangled_name): Ditto.
+ (symbol_search_name): Ditto.
+ (completion_list_add_name): Change type of symname,sym_text,
+ text,word parameters from char * to const char *.
+ (completion_list_objc_symbol): Change type of sym_text,
+ text,word parameters from char * to const char *.
+ * ada-lang.c (find_struct_field): Change type of name parameter
+ from char * to const char *.
+ (encoded_ordered_before): Similarly for N0,N1 parameters.
+ (old_renaming_is_invisible): Similarly for function_name parameter.
+ (ada_type_name): Change result type from char * to const char *.
+ All callers updated.
+ * ada-lang.h (ada_type_name): Update.
+ * buildsym.c (hashname): Change type of name parameter
+ from char * to const char *.
+ * buildsym.h (hashname): Update.
+ * dbxread.c (end_psymtab): Change type of include_list parameter
+ from char ** to const char **.
+ * dwarf2read.c (determine_prefix): Change result type
+ from char * to const char *. All callers updated.
+ * f-lang.c (find_common_for_function): Change type of name, funcname
+ parameters from char * to const char *.
+ * f-lang.c (find_common_for_function): Update.
+ * f-valprint.c (list_all_visible_commons): Change type of funcname
+ parameters from char * to const char *.
+ * gdbarch.sh (static_transform_name): Change type of name parameter
+ and result from char * to const char *.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Regenerate.
+ * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
+ of name parameter from char * to const char *.
+ * jv-lang.c (java_primitive_type_from_name): Ditto.
+ (java_demangled_signature_length): Similarly for signature parameter.
+ (java_demangled_signature_copy): Ditto.
+ (java_demangle_type_signature): Ditto.
+ * jv-lang.h (java_primitive_type_from_name): Update.
+ (java_demangle_type_signature): Update.
+ * objc-lang.c (specialcmp): Change type of a,b parameters
+ from char * to const char *.
+ * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
+ from char * to const char *. All callers updated.
+ * p-lang.h (is_pascal_string_type): Update.
+ * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
+ of name parameter from char * to const char *.
+ * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
+ * utils.c (fprintf_symbol_filtered): Ditto.
+ * defs.h (fprintf_symbol_filtered): Update.
+ * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
+ * stabsread.h (end_psymtab): Update.
+ * stack.c (find_frame_funname): Change type of funname parameter
+ from char ** to const char **.
+ * stack.h (find_frame_funname): Update.
+ * typeprint.c (type_print): Change type of varstring parameter
+ from char * to const char *.
+ * value.h (type_print): Update.
+ * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
+ from char * to const char *. All callers updated.
+ (xcoff_end_psymtab): Change type of include_list parameter
+ from char ** to const char **. All callers updated.
+ (swap_sym): Similarly for name parameter. All callers updated.
+ * coffread.c (patch_type): Add (char*) cast to xfree parameter.
+ Use xstrdup.
+ (process_coff_symbol): Use xstrdup.
+ * stabsread.c (stabs_method_name_from_physname): Renamed from
+ update_method_name_from_physname. Change result type from void
+ to char *. All callers updated.
+ (read_member_functions): In has_destructor case, store name in objfile
+ obstack instead of malloc space. In !has_stub case, fix mem leak.
+
+2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
+
+ * configure: Rebuild.
+ * configure.ac: Put -L../bfd and -L../libiberty at the front of
+ LDFLAGS.
+
+2012-02-03 Kevin Buettner <kevinb@redhat.com>
+
+ * configure.tgt (rl78-*-elf): New target.
+ * rl78-tdep.c: New file.
+
+2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
+ and continue the loop. Add QUIT statement.
+
+2012-02-03 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/13596:
+ * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
+ bfd_lookup_symbol_from_symtab.
+ * solib-pa64.c (pa64_solib_create_inferior_hook): Use
+ gdb_bfd_lookup_symbol_from_symtab.
+
+2012-02-03 Joel Brobecker <brobecker@adacore.com>
+
+ * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
+ use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
+ symbol. Add assertion that sym2 is never NULL.
+
+2012-02-02 Doug Evans <dje@google.com>
+
+ * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
+ "name" parameter to const char ** from char **. All callers updated.
+ (find_pc_partial_function): Ditto.
+ (cache_pc_function_name): Change type to const char * from char *.
+ * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
+ (find_pc_partial_function): Update.
+ * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
+ type of "name" parameter to const char * from char *.
+ All uses updated.
+ * arch-utils.c (generic_in_solib_return_trampoline): Change
+ type of "name" parameter to const char * from char *.
+ * arch-utils.h (generic_in_solib_return_trampoline): Update.
+ * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
+ type of "name" parameter to const char * from char *.
+ * gdbarch.sh (in_solib_return_trampoline): Ditto.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Regenerate.
+ * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
+ * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
+ * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
+ type of "name" parameter to const char * from char *.
+ * skip.c (skip_function_pc): Ditto.
+ * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
+ * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
+ * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
+ * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
+ * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
+ * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
+ * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
+ * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
+ * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
+
+2012-02-02 Pedro Alves <palves@redhat.com>
+
+ * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
+ the current inferior has no execution. Make sure the current
+ remote process matches gdb's current inferior.
+
+2012-02-02 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/13405:
+ * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
+ read-only memory.
+
+2012-02-02 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/9307:
+ * symtab.c (lookup_language_this): Set block_found.
+
+2012-02-01 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/13431:
+ * jit.c (struct jit_inferior_data): Rewrite.
+ (struct jit_objfile_data): New.
+ (get_jit_objfile_data): New function.
+ (add_objfile_entry): Update.
+ (jit_read_descriptor): Return int. Replace descriptor_addr
+ argument with inf_data. Update. Don't call error.
+ (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
+ descriptor here.
+ (jit_inferior_init): Don't look up descriptor. Don't call error.
+ (jit_reset_inferior_data_and_breakpoints)
+ (jit_inferior_created_observer): Remove.
+ (jit_inferior_exit_hook): Update.
+ (jit_executable_changed_observer): Remove.
+ (jit_event_handler): Update.
+ (free_objfile_data): Reset inferior data if needed.
+ (_initialize_jit): Update.
+
+2012-02-01 Tom Tromey <tromey@redhat.com>
+
+ * jit.c (bfd_open_from_target_memory): Move higher in file.
+
+2012-02-01 Tristan Gingold <gingold@adacore.com>
+
+ * libunwind-frame.c (libunwind_load): Display message if dlopen
+ failed.
+
+2012-02-01 Gary Benson <gbenson@redhat.com>
+
+ * symtab.h (symbol_found_callback_ftype): New typedef.
+ (iterate_over_symbols): Use the above.
+ * symtab.c (iterate_over_symbols): Likewise.
+ * language.h (language_defn->la_iterate_over_symbols): Likewise.
+ * ada-lang.c (ada_iterate_over_symbols): Likewise.
+ * linespec.c (iterate_over_all_matching_symtabs): Likewise.
+ (iterate_name_matcher): Document return values.
+ (collect_one_symbol): Likewise.
+ (collect_function_symbols): Likewise.
+ (collect_symbols): Likewise.
+
+2012-02-01 Tom Tromey <tromey@redhat.com>
+
+ * ada-lang.c (resolve_subexp): Update.
+ (ada_lookup_symbol_list): Add 'full_search' argument.
+ (ada_iterate_over_symbols): Pass 0 as full_search argument to
+ ada_lookup_symbol_list.
+ (ada_lookup_encoded_symbol): Update.
+ (get_var_value): Update.
+ * ada-exp.y (block_lookup): Update.
+ (write_var_or_type): Update.
+ (write_name_assoc): Update.
+ * ada-lang.h (ada_lookup_symbol_list): Update.
+
+2012-01-31 Tom Tromey <tromey@redhat.com>
+
+ * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
+ comment.
-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.
+2012-01-31 Doug Evans <dje@google.com>
-2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
+ * symtab.h: Remove outdated comment.
+ (SYMBOL_MATCHES_NATURAL_NAME): Delete.
- * NEWS: Add Python breakpoint 'stop' operation.
-
-2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
+2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
- * NEWS: Delete duplicate entry. Fix typo.
+ Fix build error in Darwin port.
+ * i386-darwin-nat.c: Include i386-nat.h.
-2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
+2012-01-30 Tom Tromey <tromey@redhat.com>
- 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>
+ PR breakpoints/13568:
+ * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
+ argument. Check for recursive includes.
+ (dwarf_decode_macros): Create an include hash.
- 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.
+2012-01-30 Michael Eager <eager@eagercon.com>
-2011-03-09 Yao Qi <yao@codesourcery.com>
+ * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
+ * ppc-linux-tdep.c: Include glibc-tdep.h.
+ (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
+ (powerpc_linux_in_plt_stub): New function.
+ (powerpc_linux_in_dynsym_resolve_code): New function.
+ (ppc_skip_trampoline_code): New function.
+ (ppc_linux_init_abi): Use PPC specific functions rather than generic.
+ Use glibc_skip_solib_resolver.
- * common/Makefile.in: Remove.
- * common/configure: Remove.
- * common/configure.ac: Remove.
+2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-03-09 Yao Qi <yao@codesourcery.com>
+ Code cleanup: Make 1440 bytes of data segment read-only.
+ * arch-utils.c (endian_enum): Make it const char *const [].
+ * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
+ Likewise.
+ * breakpoint.c (always_inserted_enums): Likewise.
+ * cli/cli-cmds.c (script_ext_enums): Likewise.
+ * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
+ enumlist parameter const char *const *.
+ * cli/cli-decode.h (struct cmd_list_element): Make the enums field
+ const char *const *.
+ * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
+ parameter const char *const *.
+ * cris-tdep.c (cris_modes): Make it const char *const [].
+ * filesystem.c (target_file_system_kinds): Likewise.
+ * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
+ * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
+ (can_use_displaced_stepping_enum, scheduler_enums)
+ (exec_direction_names): Likewise.
+ * language.c (_initialize_language): Make the type_or_range_names and
+ case_sensitive_names variables const char *const [].
+ * mips-tdep.c (mips_abi_strings): Make it const char *const [].
+ * python/python.c (python_excp_enums): Likewise.
+ * remote.c (interrupt_sequence_modes): Likewise.
+ * rs6000-tdep.c (powerpc_vector_strings): Likewise.
+ * serial.c (logbase_enums): Likewise.
+ * sh-tdep.c (sh_cc_enum): Likewise.
+ * stack.c (print_frame_arguments_choices, print_entry_values_choices):
+ Likewise.
+ * symtab.c (multiple_symbols_modes): Likewise.
+ * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
+ Likewise.
+ * utils.c (internal_problem_modes): Likewise.
- Revert:
- 2011-02-11 Yao Qi <yao@codesourcery.com>
+2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
- * common/Makefile.in: Add copyright header.
+ Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
+ * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
+ result.
- 2011-02-11 Yao Qi <yao@codesourcery.com>
+2012-01-27 Doug Evans <dje@google.com>
- * Makefile.in: Remove signals.o from COMMON_OBS. Link
- libcommon.a.
- * configure.ac: Add common to sub dir.
+ * configure.ac (with_python): Fix absolute path handling for win32.
* configure: Regenerate.
-2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
-
- * xtensa-tdep.c (call0_ret): New function.
- (xtensa_skip_prologue): Speed up analysis.
-
-2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
-
- * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
- while executing MI command -data-list-changed-registers.
-
-2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
-
- * xtensa-tdep.c (xtensa_read_register): New function.
- (xtensa_write_register): New function.
- (xtensa_find_register_by_name): New function.
- (xtensa_windowed_frame_cache): Update comments in type description.
- (xtensa_frame_cache): Likewise.
- (xtensa_window_interrupt_insn): New function.
- (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
- (xtensa_insn_kind): Add new instructions.
- (rwx_special_register): New function.
- (call0_classify_opcode): Add new instructions to the analysis.
- (a0_saved, a7_saved, a11_saved): New variables.
- (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
- (execute_l32e): New function.
- (execute_s32e): New function.
- (xtensa_exception_handler_t): New type.
- (execute_code): New function.
- (xtensa_window_interrupt_frame_cache): New function to conduct frame
- analysis for Xtensa Window Exception handlers.
-
-2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
-
- * xtensa-tdep.c (TX_PS): New.
- (windowing_enabled): Update to count for Call0 ABI.
- (xtensa_hextochar): New.
- (xtensa_init_reggroups): Make algorithm generic.
- (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
-
-2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
-
- * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
-
-2011-03-08 Michael Snyder <msnyder@vmware.com>
-
- * i386-tdep.c (i386_follow_jump): Check return value of
- target_read_memory.
- (i386_analyze_struct_return): Ditto.
- (i386_skip_probe): Ditto.
- (i386_match_insn): Ditto.
- (i386_skip_noop): Ditto.
- (i386_analyze_frame_setup): Ditto.
- (i386_analyze_register_saves): Ditto.
- (i386_skip_prologue): Ditto.
- (i386_skip_main_prologue): Ditto.
-
- * target.c (read_whatever_is_readable): Fix memory leak.
-
- * i386-tdep.c (i386_process_record): Document fall through.
-
-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-08 Pedro Alves <pedro@codesourcery.com>
-
- * remote.c (remote_check_symbols): Skip if the target has no
- execution.
-
-2011-03-08 Joel Brobecker <brobecker@adacore.com>
-
- * target.c (read_whatever_is_readable): Reformat comment,
- with a minor typo fix. Minor reformatting of the code.
-
-2011-03-08 Yao Qi <yao@codesourcery.com>
-
- * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
- (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
- Use cached result instead of calling displaced_in_arm_mode again.
- (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
- (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
- (cleanup_copro_load_store, copy_copro_load_store): Likewise.
- (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
- (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
- (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
- (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
- (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
- (cleanup_block_load_pc, copy_block_xfer): Likewise.
- * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
- (arm_catch_kernel_helper_return): Likewise.
- * gdb/arm-tdep.h : Update function declarations.
-
-2011-03-07 Michael Snyder <msnyder@vmware.com>
-
- * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
-
- * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
-
- * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
-
- * elfread.c (elf_symtab_read): Stop memory leak.
-
- * main.c (captured_main): Fix memory leak.
-
-2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
-
- * ada-lang.c (compare_names): Call is_name_suffix with string1
- instead of string2.
-
-2011-03-07 Tom Tromey <tromey@redhat.com>
-
- * xcoffread.c (xcoff_sym_fns): Update.
- * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
- (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
- * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
- (symbol_file_add_with_addrs_or_offsets): Likewise.
- (reread_symbols): Handle OBJF_PSYMTABS_READ.
- * somread.c (som_sym_fns): Update.
- * psymtab.h (require_partial_symbols): Declare.
- * psymtab.c (require_partial_symbols): New function.
- (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
- (ALL_OBJFILE_PSYMTABS): Undef.
- (ALL_PSYMTABS): Move from psympriv.h.
- (lookup_partial_symtab, find_pc_sect_psymtab)
- (lookup_symbol_aux_psymtabs, relocate_psymtabs)
- (find_last_source_symtab_from_partial)
- (forget_cached_source_info_partial)
- (print_psymtab_stats_for_objfile, read_symtabs_for_function)
- (expand_partial_symbol_tables, read_psymtabs_with_filename)
- (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
- (find_symbol_file_from_partial, map_matching_symbols_psymtab)
- (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
- Use ALL_OBJFILE_PSYMTABS_REQUIRED.
- * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
- * objfiles.h (OBJF_PSYMTABS_READ): New macro.
- * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
- psymtabs.
- * mipsread.c (ecoff_sym_fns): Update.
- * machoread.c (macho_sym_fns): Update.
- * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
- (read_psyms): New function.
- (elf_sym_fns, elf_sym_fns_gdb_index): Update.
- (elf_sym_fns_lazy_psyms): New global.
- * dwarf2read.c (dwarf2_initialize_objfile): Don't call
- dwarf2_build_psymtabs.
- * dbxread.c (aout_sym_fns): Update.
- * coffread.c (coff_sym_fns): Update.
-
-2011-03-07 Tom Tromey <tromey@redhat.com>
-
- * infrun.c (print_exited_reason): Include inferior id and pid in
- message.
-
-2011-03-07 Tom Tromey <tromey@redhat.com>
-
- * target.h (struct target_ops) <to_has_execution>: Add ptid_t
- parameter.
- (target_has_execution_1): Update.
- (target_has_execution_current): Declare.
- (target_has_execution): Call target_has_execution_current.
- (default_child_has_execution): Update.
- * target.c (default_child_has_execution): Add 'the_ptid'
+2012-01-26 Doug Evans <dje@google.com>
+
+ * symtab.c: Whitespace cleanup, no code changes.
+
+ * symtab.c (lookup_symbol_in_language): Improve comment.
+ (lookup_symbol_aux): Fix comment.
+
+ * psymtab.c (add_psymbol_to_list): Result is now "void".
+ * psympriv.h (add_psymbol_to_list): Update.
+
+ * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
+
+2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Do not open script filenames twice.
+ * cli/cli-cmds.c (source_script_from_stream): Pass to
+ source_python_script also STREAM.
+ * python/py-auto-load.c (source_section_scripts): Pass to
+ source_python_script_for_objfile also STREAM.
+ (auto_load_objfile_script): Pass to source_python_script_for_objfile
+ also INPUT.
+ * python/python-internal.h (source_python_script_for_objfile): New
+ parameter file, rename parameter file to filename.
+ * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
+ instead if !_WIN32. Update the function comment.
+ (source_python_script, source_python_script_for_objfile)
+ (source_python_script): New parameter file, rename parameter file to
+ filename. Pass FILENAME to python_run_simple_file.
+ * python/python.h (source_python_script): New parameter file, rename
+ parameter file to filename.
+
+2012-01-26 Pedro Alves <palves@redhat.com>
+
+ * corelow.c (core_has_fake_pid): Delete.
+ (core_close): Delete references to `core_has_fake_pid'.
+ (add_to_thread_list): Adjust to mark the inferior's pid as fake.
+ (core_open): Delete references to `core_has_fake_pid'.
+ (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
+ the removed global.
+
+2012-01-26 Joel Brobecker <brobecker@adacore.com>
+
+ * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
+ Remove language parameter from name_matcher. Adjust the comment.
+ * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
+ Remove language parameter.
+ * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
+ * linespec.c (iterate_name_matcher): Likewise.
+ * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
+ name_matcher. Adjust call accordingly.
+ * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
+ (maintenance_check_symtabs): Adjust type of parameter "fun".
+ * psymtab.h (maintenance_check_symtabs): Likewise.
+
+2012-01-26 Joel Brobecker <brobecker@adacore.com>
+
+ * language.h (symbol_name_match_p_ftype): New typedef.
+ (struct language_defn): Replace field la_symbol_name_compare
+ by la_get_symbol_name_match_p.
+ * ada-lang.c (ada_get_symbol_name_match_p): New function.
+ (ada_language_defn): Use it.
+ * linespec.c (struct symbol_matcher_data): New type.
+ (iterate_name_matcher): Rewrite.
+ (iterate_over_all_matching_symtabs): Pass a pointer to
+ a symbol_matcher_data struct to expand_symtabs_matching
+ instead of just the lookup name.
+ * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
+ opencl-lang.c, p-lang.c, language.c: Delete field
+ la_symbol_name_compare, and replace by NULL for new field
+ la_get_symbol_name_match_p.
+ * symfile.h (struct quick_symbol_functions): Update comment.
+
+2012-01-25 Tom Tromey <tromey@redhat.com>
+
+ * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
+ dereferencing.
+
+2012-01-24 Tom Tromey <tromey@redhat.com>
+
+ PR symtab/12406:
+ * solib.c (update_solib_list): Update the program space's
+ added_solibs and deleted_solibs fields.
+ * progspace.h (struct program_space) <added_solibs,
+ deleted_solibs>: New fields.
+ (clear_program_space_solib_cache): Declare.
+ * progspace.c (release_program_space): Call
+ clear_program_space_solib_cache.
+ (clear_program_space_solib_cache): New function.
+ * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
+ bpstat_stop_status. Use handle_solib_event.
+ * breakpoint.c: Include gdb_regex.h.
+ (print_solib_event): New function.
+ (bpstat_print): Use print_solib_event.
+ (bpstat_stop_status): Add special case for bp_shlib_event.
+ (handle_solib_event): New function.
+ (bpstat_what): Use handle_solib_event.
+ (struct solib_catchpoint): New.
+ (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
+ (breakpoint_hit_catch_solib, check_status_catch_solib)
+ (print_it_catch_solib, print_one_catch_solib)
+ (print_mention_catch_solib, print_recreate_catch_solib): New
+ functions.
+ (catch_solib_breakpoint_ops): New global.
+ (catch_load_or_unload, catch_load_command_1)
+ (catch_unload_command_1): New functions.
+ (internal_bkpt_check_status): Add special case for
+ bp_shlib_event.
+ (internal_bkpt_print_it): Use print_solib_event.
+ (initialize_breakpoint_ops): Initialize
+ catch_solib_breakpoint_ops.
+ (_initialize_breakpoint): Register "catch load" and "catch
+ unload".
+ * breakpoint.h (handle_solib_event): Declare.
+ * NEWS: Add entry for "catch load" and "catch unload".
+
+2012-01-24 Tom Tromey <tromey@redhat.com>
+
+ * ada-lang.c: Include gdb_vecs.h.
+ * charset.c: Include gdb_vecs.h.
+ * tracepoint.h: Include gdb_vecs.h.
+ * gdb_vecs.h: New file.
+
+2012-01-24 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (breakpoint_hit_catch_fork)
+ (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
+ (breakpoint_hit_catch_exec): Make use of the `ws' argument.
+ * infrun.c (inferior_has_forked, inferior_has_vforked)
+ (inferior_has_execd, inferior_has_called_syscall): Delete.
+ (handle_syscall_event): Get syscall_number from the execution
+ control state's wait status.
+ (wait_for_inferior): Don't clear syscall_number.
+
+2012-01-24 Pedro Alves <palves@redhat.com>
+
+ * breakpoint.c (bpstat_check_location, bpstat_stop_status,
+ pc_at_non_inline_function): Add `ws' parameter, and pass it down.
+ (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
+ (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
+ `ws' parameter.
+ (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
+ false for events other than TARGET_SIGNAL_TRAP.
+ (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
+ Add `ws' parameter.
+ (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
+ events other than TARGET_SIGNAL_TRAP.
+ (tracepoint_breakpoint_hit): Add `ws' parameter.
+ * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
parameter.
- (target_has_execution_1): Likewise.
- (target_has_execution_current): New function.
- (add_target): Update.
- (init_dummy_target): Update.
- * remote-m32r-sdi.c (m32r_has_execution): New function.
- (init_m32r_ops): Use it.
- * record.c (record_core_has_execution): Now static. Add
- 'the_ptid' parameter.
- * inferior.c (have_live_inferiors): Don't save current thread.
- Use target_has_execution_1.
-
-2011-03-07 Yao Qi <yao@codesourcery.com>
-
- * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
-
-2011-03-07 Joel Brobecker <brobecker@adacore.com>
-
- * elfread.c (elf_symtab_read): Minor reformatting.
-
-2011-03-07 Joel Brobecker <brobecker@adacore.com>
-
- * objc-lang.c (selectors_info): Minor reformatting.
-
-2011-03-07 Joel Brobecker <brobecker@adacore.com>
-
- * ada-lang.c (compare_names): Add FALLTHROUGH comment.
-
-2011-03-07 Joel Brobecker <brobecker@adacore.com>
- Michael Snyder <msnyder@vmware.com>
-
- * ada-valprint.c (ada_val_print_array): Move the declaration of
- "byte_order" and "elttype" inside the block where these variables
- are actually used. Remove some special handling for the case
- where "elttype" and "eltlen" are null. Replace by a comment
- and a couple of assertion checks.
-
-2011-03-05 Michael Snyder <msnyder@vmware.com>
-
- * source.c (add_path): Replace semicolon at end of block.
- * dwarf2expr.c (execute_stack_op): Ditto.
-
-2011-03-05 Mike Frysinger <vapier@gentoo.org>
-
- * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
- * configure.tgt (bfin-*-*linux*): Define gdb_sim.
- (bfin-*-*): Likewise.
-
-2011-03-05 Michael Snyder <msnyder@vmware.com>
-
- * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
- * mdebugread.c (parse_symbol): Ditto.
- * parse.c (parse_exp_in_context): Ditto.
- * source.c (add_path): Ditto.
- * utils.c (gnu_debuglink_crc32): Ditto.
- * varobj.c (variable_language): Ditto.
-
- * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
-
-2011-03-04 Michael Snyder <msnyder@vmware.com>
-
- * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
-
- * symfile.c (simple_overlay_update): Check for null return value
- from lookup_minimal_symbol.
-
- * xml-syscall.c (syscall_start_syscall): Assert name is non null.
-
-2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * eval.c (parse_and_eval_address_1): Remove function.
- * linespec.c (decode_indirect): Call parse_to_comma_and_eval
- instead of parse_and_eval_address_1.
- * value.h (parse_and_eval_address_1): Remove prototype.
-
-2011-03-04 Michael Snyder <msnyder@vmware.com>
-
- * remote.c (putpkt_binary): Document that case stmt falls through.
-
-2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * breakpointc (print_it_typical): Move NULL check from here...
- (print_bp_stop_message): ... to here.
-
-2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
-
- * breakpoint.c (enable_command): Use break instead of continue,
- and fill in a missing break.
- (disable_command): Ditto.
-
-2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
- (terminal_save_ours): Remove misleading comment.
- (inflow_inferior_data_cleanup): Free ttystate.
- (inflow_inferior_exit): Likewise.
- (copy_terminal_info): Copy ttystate.
-
- * serial.c (serial_copy_tty_state): New function.
- * serial.h (serial_copy_tty_state): Add prototype.
- (struct serial_ops): Add copy_tty_state callback.
- * ser-base.c (ser_base_copy_tty_state): New function.
- * ser-base.h (ser_base_copy_tty_state): Add prototype.
- * ser-go32.c (dos_copy_tty_state): New function.
- (dos_ops): Install copy_tty_state callback.
- * ser-mingw.c (_initialize_ser_windows): Likewise.
- * ser-pipe.c (_initialize_ser_pipe): Likewise.
- * ser-unix.c (hardwire_copy_tty_state): New function.
- (_initialize_ser_hardwire): Install it.
-
-2011-03-04 Michael Snyder <msnyder@vmware.com>
-
- * breakpoint.c (create_breakpoint): Add missing break statement.
-
- Reverting this patch:
- * infcall.c (call_function_by_hand): Add break statements for lint.
-
- Reverting this patch:
- * cli/cli-script.c (script_from_file): Add break for lint.
-
-2011-03-04 Michael Snyder <msnyder@vmware.com>
-
- * solib.c (reload_shared_libraries_1): Close memory leak.
-
-2011-03-03 Tom Tromey <tromey@redhat.com>
-
- PR gdb/12538:
- * dwarf2read.c (process_psymtab_comp_unit): Handle case where
- DW_STRING is NULL.
-
-2011-03-03 Michael Snyder <msnyder@vmware.com>
-
- * remote-fileio.c (remote_fileio_func_fstat): Initialize all
- fields of struct 'st' to zero.
-
- * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
- sal.pspace before calling set_current_source_symtab_and_line.
-
-2011-03-03 Yao Qi <yao@codesourcery.com>
-
- * Makefile.in (configure-common): Remove. Let Makefile
- in dir common to rebuild itself.
- (common/Makefile): Likewise.
-
-2011-03-03 Joel Brobecker <brobecker@adacore.com>
-
- * utils.c (parse_escape): Add i18n markup in error message.
-
-2011-03-03 Yao Qi <yao@codesourcery.com>
-
- * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
- ARM_PC_REGNUM.
- (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
- (displaced_write_reg, displaced_read_reg): Likewise.
- (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
- (cleanup_block_load_pc, copy_block_xfer): Likewise.
- (cleanup_branch): Replace magic number 14 and 15 with
- ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
-
-2011-03-02 Michael Snyder <msnyder@vmware.com>
-
- * maint.c (maintenance_do_deprecate): No need to check for NULL.
-
- * cli/cli-script.c (script_from_file): Add break for lint.
-
- * mdebugread.c (parse_partial_symbols): Fix indent.
-
- * target-descriptions.c (tdesc_gdb_type): No need to call
- xstrdup, callee saves a copy.
+ (bpstat_stop_status): Same.
+ (pc_at_non_inline_function): Same.
+ * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
+ to pass the current event's waitstatus to bpstat_stop_status
+ and pc_at_non_inline_function.
- * printcmd.c (print_scalar_formatted): Use strncpy for safety.
+2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
- * infcall.c (call_function_by_hand): Add break statements for lint.
-
- * utils.c (parse_escape): Escape the escape char.
-
- * python/py-inferior.c (build_inferior_list): Error out if
- PyList_Append fails.
- (gdbpy_inferiors): Error out if build_inferior_list fails.
-
- * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
- a function call.
-
- * record.c (record_restore): Move printf to before error return.
-
-2011-03-02 Yao Qi <yao@codesourcery.com>
-
- * arm-tdep.h (struct displaced_step_closure): Add two new fields
- is_thumb and insn_size.
- * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
- on both ARM and Thumb mode.
- (arm_process_displaced_insn): Set is_thumb and insn_size.
- (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
- (arm_displaced_step_fixup): Likewise.
-
-2011-03-01 Michael Snyder <msnyder@vmware.com>
-
- * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
-
- * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
-
- * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
-
- * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
-
- * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
- with xmalloc.
-
- * ada-lang.c (aggregate_assign_others): Rename inner scope variable
- which shadows function parameter.
-
- * tracepoint.c (create_tsv_from_upload): Superfluous call
- to xstrdup. Callee already calls xstrdup.
-
- * linespec.c (decode_line_1): Remove unnecessary null check.
-
- * tracepoint.c (scope_info): Fix mem leak, remove underused
- variable.
-
- * python/py-prettyprint.c (apply_val_pretty_printer): Remove
- superfluous null check.
-
- * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
- (value_of_builtin_frame_fp_reg): Ditto.
-
- * event-top.c (display_gdb_prompt): Remove superfluous null check.
-
- * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
- be null.
-
- * linespec.c (decode_line_1): Check for null before dereference.
-
- * reverse.c (record_restore): Move null-check to before pointer
- dereference.
-
- * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
-
- * objc-lang.c (selectors_info): Add explanitory comment.
- (classes_info): Ditto.
-
-2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
- (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
- versions of the trampoline. Handle Thumb vs. ARM addresses.
- (arm_kernel_linux_restart_syscall_tramp_frame): New global.
- (arm_linux_init_abi): Install it.
- * arm-tdep.c (arm_psr_thumb_bit): Make global.
- * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
-
-2011-02-28 Michael Snyder <msnyder@vmware.com>
-
- * ui-out.c (ui_out_field_core_addr): Make local char buffer
- a little bigger, to avoid possibility of an overflow.
-
- * breakpoint.c (breakpoint_adjustment_warning): Make local char
- buffers a little bigger, to avoid possibility of an overflow.
-
- * coffread.c (coff_getfilename): Add check to avoid overflow.
-
- * objc-lang.c (selectors_info): Add a small safety margin to
- avoid overflow.
- (classes_info): Error out on too long REGEXP.
-
- * infrun.c (handle_inferior_event): Remove unused function call.
-
- * fork-child.c (fork_inferior): Remove ifdef'd code and
- unused variable.
-
- * linux-thread-db.c (attach_thread): Discard unused value.
-
- * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
-
- * remote.c (remote_get_noisy_reply): Discard unused value.
- (remote_vcont_resume): Ditto.
- (remote_stop_ns): Ditto.
-
- * linespec.c (decode_objc): Delete unused variable.
-
- * tui/tui-regs.c (tui_register_format): Delete unused variable.
-
- * dwarf2read.c (add_partial_symbol): Discard unused values.
- (read_base_type): Delete unused variable.
-
- * dbxread.c (read_dbx_symtab): Discard unused value.
-
- * eval.c (evaluate_subexp_standard): Delete unused variable,
- and discard unused values.
-
- * infcmd.c (_initialize_infcmd): Discard unused values.
+ Code cleanup.
+ * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
+ Update the function comment for it.
+ (source_script_with_search): Call make_cleanup_fclose for STREAM.
+ * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
+ for STREAM.
- * stabsread.c (rs6000_builtin_type): Missing break statement.
+2012-01-24 Pedro Alves <palves@redhat.com>
- * dbxread.c (process_one_symbol): Discard unused value.
+ * breakpoint.c (bpstat_stop_status): Moving clearing print_it
+ outside `bs->stop' block.
+ (bpstat_what): Rework bp_shlib_event handling.
+ (internal_bkpt_check_status): If the breakpoint is a
+ bp_shlib_event, then set bs->stop and bs->print if
+ stop_on_solib_events is set.
- * coffread.c (coff_end_symtab): Delete unused variable.
+2012-01-24 Gary Benson <gbenson@redhat.com>
- * dwarf2read.c (dw2_get_file_names): Discard unused value.
- (dwarf2_add_typedef): Delete unused variable.
- (read_namespace): Ditto.
- (dwarf_decode_macros): Ditto.
+ Delete #if 0'd out code.
+ * stack.c (print_frame_label_vars): Remove.
+ (catch_info): Likewise.
+ (_initialize_stack): Remove "info catch" command.
+ * NEWS: Mention the above.
- * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
+2012-01-24 Pedro Alves <palves@redhat.com>
- * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
+ * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
+ it.
+ (remote_notice_new_inferior): If the remote end doesn't support
+ the multiprocess extensions, then the PID is fake.
+ (add_current_inferior_and_thread): New.
+ (remote_start_remote): Use it.
+ (extended_remote_attach_1): Adjust.
+ (extended_remote_create_inferior_1): Use
+ add_current_inferior_and_thread.
+
+2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix watchpoints to be specific for each inferior.
+ * breakpoint.c (watchpoint_in_thread_scope): Verify also
+ current_program_space.
+ * i386-nat.c (i386_inferior_data_cleanup): New.
+ (i386_inferior_data_get): Replace variable inf_data_local by an
+ inferior_data call.
+ (i386_use_watchpoints): Initialize i386_inferior_data.
+ * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
+ specific iterate_over_lwps.
+
+2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix watchpoints across inferior fork.
+ * amd64-linux-nat.c (update_debug_registers_callback): Update the
+ comment for linux_nat_iterate_watchpoint_lwps.
+ (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
+ linux_nat_iterate_watchpoint_lwps.
+ (amd64_linux_prepare_to_resume): New comment on Linux kernel.
+ * i386-linux-nat.c (update_debug_registers_callback): Update the
+ comment for linux_nat_iterate_watchpoint_lwps.
+ (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
+ linux_nat_iterate_watchpoint_lwps.
+ (i386_linux_prepare_to_resume): New comment on Linux kernel.
+ * i386-nat.c: Include inferior.h.
+ (dr_mirror): Remove.
+ (i386_inferior_data, struct i386_inferior_data)
+ (i386_inferior_data_get): New.
+ (i386_debug_reg_state): Use i386_inferior_data_get.
+ (i386_cleanup_dregs, i386_update_inferior_debug_regs)
+ (i386_insert_watchpoint, i386_remove_watchpoint)
+ (i386_stopped_data_address, i386_insert_hw_breakpoint)
+ (i386_remove_hw_breakpoint): New variable state, use
+ i386_debug_reg_state instead of DR_MIRROR.
+ * linux-nat.c (delete_lwp): New declaration.
+ (num_lwps): Move here from downwards.
+ (delete_lwp_cleanup): New.
+ (linux_child_follow_fork): Create new child_lp, call
+ linux_nat_new_thread and linux_nat_prepare_to_resume before calling
+ PTRACE_DETACH.
+ (num_lwps): Move upwards.
+ (linux_nat_iterate_watchpoint_lwps): New.
+ * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
+ (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
- * p-valprint.c (pascal_val_print): Discard unused value.
+2012-01-24 Joel Brobecker <brobecker@adacore.com>
- * utils.c (nquery): Call va_end before return;
- (yquery): Ditto.
- (query): Ditto.
+ GDB 7.4 released.
- * proc-service.c (ps_plog): Call va_end before return.
+2012-01-23 Pedro Alves <palves@redhat.com>
-2011-02-28 Tom Tromey <tromey@redhat.com>
+ * top.c (caution): Rename to ...
+ (confirm): ... this.
+ (show_caution): Rename to ...
+ (show_confirm): ... this.
+ (quit_cover): Adjust.
+ (init_main): Adjust.
+ * top.h (caution): Rename to ...
+ (confirm): ... this.
+ * utils.c (internal_vproblem, defaulted_query): Adjust.
- * python/python.c (gdbpy_value_cst): New global.
- (_initialize_python): Initialize it.
- * python/python-internal.h (gdbpy_value_cst): Declare.
- * python/py-value.c (convert_value_from_python): Use
- gdbpy_value_cst.
+2012-01-23 Pedro Alves <palves@redhat.com>
-2011-02-28 Michael Snyder <msnyder@vmware.com>
+ * top.c (caution): Update comment.
+ (execute_command): Don't consider the current value of `caution'.
- * python/py-cmd.c (cmdpy_init): Fix memory leak.
+2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
- * breakpoint.c (catch_syscall_completer): Free malloced list.
+ * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
- * jv-lang.c (java_primitive_type_from_name): Add missing break.
+2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
- * opencl-lang.c (lval_func_check_validity): Rename inner variables.
- (lval_func_check_synthetic_pointer): Ditto.
- (lval_func_free_closure): Fix use-after-free.
+ * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
+ * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
+ * target.c (target_fileio_pwrite): Remove buffer address from
+ debug output.
+ (target_fileio_pread): Likewise.
-2011-02-28 Tom Tromey <tromey@redhat.com>
+2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
- * psymtab.c (expand_partial_symbol_tables): Use
- ALL_OBJFILE_PSYMTABS.
+ * NEWS: Document remote "info proc" and "generate-core-file".
-2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
- * objc-lang.c (selectors_info): Error on too long REGEXP.
+ * gdbarch.sh (find_memory_regions): New callback.
+ * gdbarch.c, gdbarch.h: Regenerate.
-2011-02-28 Michael Snyder <msnyder@vmware.com>
+ * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
+ callback before falling back to target method.
- * python/py-param.c (set_parameter_value): Add missing
- break statement.
+ * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
+ (linux_target_install_ops): No longer install it.
- * linux-record.c (record_linux_system_call): Add missing
- break statement.
+ * linux-tdep.c (linux_find_memory_regions): New function.
+ (linux_init_abi): Install it.
-2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
+2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
- * breakpoint.c (print_one_breakpoint_location): Remove unused
- argument PRINT_ADDRESS_BITS. Update callers.
- (print_one_breakpoint): Likewise.
+ * gdbarch.sh (make_corefile_notes): New architecture callback.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Likewise.
+
+ * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
+ before target_make_corefile_notes. If NULL is returned, the
+ target does not support core file generation.
+
+ * linux-nat.c: Include "linux-tdep.h".
+ (find_signalled_thread, find_stop_signal): Remove.
+ (linux_nat_do_thread_registers): Likewise.
+ (struct linux_nat_corefile_thread_data): Likewise.
+ (linux_nat_corefile_thread_callback): Likewise.
+ (iterate_over_spus): Likewise.
+ (struct linux_spu_corefile_data): Likewise.
+ (linux_spu_corefile_callback): Likewise.
+ (linux_spu_make_corefile_notes): Likewise.
+ (linux_nat_collect_thread_registers): New function.
+ (linux_nat_make_corefile_notes): Replace contents by call to
+ linux_make_corefile_notes passing linux_nat_collect_thread_registers
+ as native-only callback.
+
+ * linux-tdep.h: Include "bfd.h".
+ (struct regcache): Add forward declaration.
+ (linux_collect_thread_registers_ftype): New typedef.
+ (linux_make_corefile_notes): Add prototype.
+ * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
+ "regset.h", and "elf-bfd.h".
+ (find_signalled_thread, find_stop_signal): New functions.
+ (linux_spu_make_corefile_notes): Likewise.
+ (linux_collect_thread_registers): Likewise.
+ (struct linux_corefile_thread_data): New data structure.
+ (linux_corefile_thread_callback): New funcion.
+ (linux_make_corefile_notes): Likewise.
+ (linux_make_corefile_notes_1): Likewise.
+ (linux_init_abi): Install it.
+
+2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * gdbarch.sh (info_proc): New callback.
+ * gdbarch.c, gdbarch.h: Regenerate.
-2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
+ * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
+ before falling back to the target info_proc callback.
+
+ * linux-nat.c: Do not include "cli/cli-utils.h".
+ (linux_nat_info_proc): Remove.
+ (linux_target_install_ops): No longer install it.
+
+ * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
+ (read_mapping): New function.
+ (linux_info_proc): Likewise.
+ (linux_init_abi): Install it.
+
+2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * defs.h (enum info_proc_what): Moved here from linux-nat.c
+ * infcmd.c: (info_proc_cmd_1): New function.
+ (info_proc_cmd): New function, moved here from equivalent routine
+ orignally in linux-nat.c.
+ (info_proc_cmd_mappings): Likewise.
+ (info_proc_cmd_stat): Likewise.
+ (info_proc_cmd_status): Likewise.
+ (info_proc_cmd_cwd): Likewise.
+ (info_proc_cmd_cmdline): Likewise.
+ (info_proc_cmd_exe): Likewise.
+ (info_proc_cmd_all): Likewise.
+ (_initialize_infcmd): Install "info proc" command and subcommands.
+
+ * target.h (struct target_ops): Add to_info_proc.
+ (target_info_proc): Add prototype.
+ * target.c (target_info_proc): New function.
+
+ * procfs.c (procfs_info_proc): Add prototype.
+ (info_proc_cmd): Rename into ...
+ (procfs_info_proc): ... this. Update argument types as appropriate
+ for a to_info_proc implementation. Handle "what" argument.
+ (procfs_target): Install procfs_info_proc.
+ (_initialize_procfs): No longer install "info proc" command.
+
+ * linux-nat.c: (enum info_proc_what): Remove.
+ (linux_nat_info_proc_cmd_1): Rename into ...
+ (linux_nat_info_proc): ... this. Update argument types as appropriate
+ for a to_info_proc implementation.
+ (linux_nat_info_proc_cmd): Remove.
+ (linux_nat_info_proc_cmd_mappings): Likewise.
+ (linux_nat_info_proc_cmd_stat): Likewise.
+ (linux_nat_info_proc_cmd_status): Likewise.
+ (linux_nat_info_proc_cmd_cwd): Likewise.
+ (linux_nat_info_proc_cmd_cmdline): Likewise.
+ (linux_nat_info_proc_cmd_exe): Likewise.
+ (linux_nat_info_proc_cmd_all): Likewise.
+ (linux_target_install_ops): Install linux_nat_info_proc.
+ (_initialize_linux_nat): No longer install "info proc" command
+ and subcommands.
+
+2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
+ * config.in, configure: Regenerate.
+
+ * target.h (struct target_ops): Add to_fileio_readlink.
+ (target_fileio_readlink): Add prototype.
+ * target.c (target_fileio_readlink): New function.
+
+ * inf-child.c: Conditionally include <sys/param.h>.
+ (inf_child_fileio_readlink): New function.
+ (inf_child_target): Install it.
+
+ * remote.c (PACKET_vFile_readlink): New enum value.
+ (remote_hostio_readlink): New function.
+ (init_remote_ops): Install it.
+ (_initialize_remote): Handle vFile:readlink packet type.
- * breakpoint.c (wrap_indent_at_field): New function.
- (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
- Allocate ui_stream locally instead of using STB argument.
- (print_one_breakpoint_location): Update call.
- * ui-out.c (ui_out_query_field): New function.
- * ui-out.h (ui_out_query_field): Add prototype.
+2012-01-20 Pedro Alves <palves@redhat.com>
+ Ulrich Weigand <ulrich.weigand@linaro.org>
-2011-02-28 Joel Brobecker <brobecker@adacore.com>
+ * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
+ * config.in, configure: Regenerate.
+
+ * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
+ to_fileio_pread, to_fileio_close, to_fileio_unlink.
+ (target_fileio_open): Add prototype.
+ (target_fileio_pwrite): Likewise.
+ (target_fileio_pread): Likewise.
+ (target_fileio_close): Likewise.
+ (target_fileio_unlink): Likewise.
+ (target_fileio_read_alloc): Likewise.
+ (target_fileio_read_stralloc): Likewise.
+
+ * target.c: Include "gdb/fileio.h".
+ (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
+ (default_fileio_target): New function.
+ (target_fileio_open): Likewise.
+ (target_fileio_pwrite): Likewise.
+ (target_fileio_pread): Likewise.
+ (target_fileio_close): Likewise.
+ (target_fileio_unlink): Likewise.
+ (target_fileio_close_cleanup): Likewise.
+ (target_fileio_read_alloc_1): Likewise.
+ (target_fileio_read_alloc): Likewise.
+ (target_fileio_read_stralloc): Likewise.
+
+ * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
+ <fcntl.h>, and <unistd.h>.
+ (inf_child_fileio_open_flags_to_host): New function.
+ (inf_child_errno_to_fileio_error): Likewise.
+ (inf_child_fileio_open): Likewise.
+ (inf_child_fileio_pwrite): Likewise.
+ (inf_child_fileio_pread): Likewise.
+ (inf_child_fileio_close): Likewise.
+ (inf_child_fileio_unlink): Likewise.
+ (inf_child_target): Install to_fileio routines.
+
+ * remote.c (init_remote_ops): Install to_fileio routines.
+
+2012-01-20 Pedro Alves <palves@redhat.com>
+ Ulrich Weigand <ulrich.weigand@linaro.org>
- From Michael Snyder <msnyder@vmware.com>
- * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
+ * remote.c (remote_multi_process_p): Only check for multi-process
+ protocol feature, do not check for extended protocol.
+ (remote_supports_multi_process): Check for extended protocol here.
+ (set_general_process): Likewise.
+ (extended_remote_kill): Likewise.
+ (remote_pid_to_str): Likewise.
+ (remote_query_supported): Always query multiprocess mode.
-2011-02-27 Michael Snyder <msnyder@vmware.com>
+2012-01-20 Pedro Alves <palves@redhat.com>
+ Ulrich Weigand <ulrich.weigand@linaro.org>
- * objc-lang.c (selectors_info): Prevent string overrun.
+ * inferior.h (struct inferior): Add fake_pid_p.
+ * inferior.c (exit_inferior_1): Clear fake_pid_p.
+ * remote.c (remote_start_remote): Set fake_pid_p if we have to use
+ magic_null_ptid since the remote side doesn't provide a real PID.
- * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
- error in strncpy.
+2012-01-19 Tom Tromey <tromey@redhat.com>
- * symtab.c (rbreak_command): Move variable 'file_name' to
- outer scope.
+ * NEWS: Combine the two Python sections.
- * d-valprint.c (dynamic_array_type): Avoid shadowing a function
- param with a local variable of the same name.
+2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-02-27 Michael Snyder <msnyder@vmware.com>
+ * target.h (target_close): Update comment on the target's unpush state.
- * value.c (value_from_history_ref): New function.
- * value.h (value_from_history_ref): Export.
- * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
- to parse value history references.
- * cli/cli-utils.h (get_number_trailer): Update comment.
+2012-01-19 Pedro Alves <palves@redhat.com>
-2011-02-27 Michael Snyder <msnyder@vmware.com>
+ * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
+ linux_nat_async directly instead of going through the target
+ vector.
+ * target.c (unpush_target): Close target after unpushing it, not
+ before.
- * inferior.c (detach_inferior_command): Use get_number_or_range.
- (kill_inferior_command): Ditto.
- (remove_inferior_command): Ditto.
- (initialize_inferiors): Make command names plural.
- Update help strings.
+2012-01-19 Gary Benson <gbenson@redhat.com>
-2011-02-27 Michael Snyder <msnyder@vmware.com>
+ * mdebugread.c (sort_blocks): Replace integer constants with ones
+ derived from FIRST_LOCAL_BLOCK.
- * darwin-nat-info.c: Fix comment typo.
- * dwarf2expr.h: Ditto.
- * fbsd-nat.c: Ditto.
- * fbsd-nat.h: Ditto.
- * frame-unwind.h: Ditto.
- * frame.h: Ditto.
- * hppa-hpux-tdep.c: Ditto.
- * i386-linux-nat.c: Ditto.
- * linux-nat.c: Ditto.
- * nbsd-nat.c: Ditto.
- * nbsd-nat.h: Ditto.
- * ppc-linux-tdep.c: Ditto.
- * serial.c: Ditto.
- * ui-file.h: Ditto.
- * tui/tui-winsource.c: Ditto.
+2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-02-26 Michael Snyder <msnyder@vmware.com>
+ PR gdb/9538
+ * symfile.c (find_separate_debug_file): New function.
+ (terminate_after_last_dir_separator): Likewise.
+ (find_separate_debug_file_by_debuglink): Also try realpath.
+ * configure.ac (AC_CHECK_FUNCS): Add lstat.
+ * configure: Regenerate.
+ * config.in: Regenerate.
- * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
+2012-01-18 Doug Evans <dje@google.com>
- * maint.c (maintenance_do_deprecate): Plug a memory leak.
-
- * dwarf2loc.c (insert_bits): Avoid shadowing a function param
- with a local variable of the same name.
-
- * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
- param with a local variable of the same name.
- (i387_supply_xsave): Ditto.
-
- * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
- that it does not shadow a function parameter.
-
- * i386-nat.c (i386_length_and_rw_bits): Document that case
- statement is meant to fall through.
-
- * expprint.c (dump_subexp_body_standard): Document that case
- statement is meant to fall through.
-
- * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
- dead if statement. Condition can't be false.
-
-2011-02-25 Michael Snyder <msnyder@vmware.com>
-
- * arm-tdep.c: Fix typos in comments.
- * bsd-uthread.c: Ditto.
- * completer.c: Ditto.
- * corelow.c: Ditto.
- * cp-namespace.c: Ditto.
- * cp-support.c: Ditto.
- * cris-tdep.c: Ditto.
- * dbxread.c: Ditto.
- * dwarf2read.c: Ditto.
- * frame.h: Ditto.
- * gdbtypes.h: Ditto.
- * inferior.h: Ditto.
- * mdebugread.c: Ditto.
- * mips-tdep.c: Ditto.
- * ppc-linux-nat.c: Ditto.
- * ppc-linux-tdep.c: Ditto.
- * printcmd.c: Ditto.
- * sol-thread.c: Ditto.
- * solib-frv.c: Ditto.
- * solist.h: Ditto.
- * sparc64-tdep.c: Ditto.
- * spu-tdep.c: Ditto.
- * stabsread.c: Ditto.
- * symfile.c: Ditto.
- * valops.c: Ditto.
- * varobj.c: Ditto.
- * vax-nat.c: Ditto.
- * python/py-block.c: Ditto.
- * python/py-symbol.c: Ditto.
- * python/py-symtab.c: Ditto.
- * python/py-value.c: Ditto.
- * tui/tui-win.c: Ditto.
-
-2011-02-25 Michael Snyder <msnyder@vmware.com>
-
- * inferior.c (print_inferior): Accept a string instead of an int
- for requested_inferiors, and use get_number_or_range to parse it.
- (info_inferiors_command): Pass args string to print_inferior.
- (initialize_inferiors): Change help string for info inferiors.
- * inferior.h (print_inferior): Export prototype change.
-
-2011-02-25 Tom Tromey <tromey@redhat.com>
-
- * common/ax.def (invalid2): Set to 0x31.
-
-2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
- L and plongest.
- (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
- use L and plongest.
- (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
-
-2011-02-24 Michael Snyder <msnyder@vmware.com>
-
- * Makefile.in (clean): Make clean should remove generated files
- observer.h and observer.inc.
-
-2011-02-24 Joel Brobecker <brobecker@adacore.com>
-
- Revert the following patch (not approved yet):
- 2011-02-21 Hui Zhu <teawater@gmail.com>
- * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
- * ax-gdb.c (gen_printf_expr_callback): New function.
- * ax-gdb.h (gen_printf_expr_callback): Forward declare.
- * ax-general.c (ax_memcpy): New function.
- (ax_print): Handle "printf".
- (ax_reqs): Ditto.
- * ax.h (ax_memcpy): Forward declare.
- * common/ax.def (invalid2): Removed.
- (printf): New entry.
- * printcmd.c (printcmd.h): New include.
- (string_printf): New function.
- (ui_printf): Removed.
- (printf_command): Remove static. Call string_printf.
- (eval_command): Call string_printf.
- * printcmd.h: New file.
- * tracepoint.c (validate_actionline,
- encode_actions_1): handle printf_command.
-
-2011-02-23 Tom Tromey <tromey@redhat.com>
-
- * ax-general.c (ax_pick): Add missing newline.
-
-2011-02-23 Michael Snyder <msnyder@vmware.com>
-
- * 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
- 'number_is_in_list' to implement.
- (breakpoints_info): Pass char * instead of int to breakpoint_1.
- (watchpoints_info): Ditto.
- (tracepoints_info): Ditto.
- (maintenance_info_breakpoints): Ditto.
- (_initialize_breakpoint): Update help strings to reflect the fact
- that these functions can now take more than one argument.
- * cli/cli-utils.c (number_is_in_list): New function.
- * cli/cli-utils.h (number_is_in_list): Export.
-
-2011-02-23 Michael Snyder <msnyder@vmware.com>
-
- * memattr.c (mem_enable_command): Use get_number_or_range.
- (mem_disable_command): Ditto.
- (mem_delete_command): Ditto.
- (_initialize_mem): Tweak usage message to reflect multiple
- arguments.
-
-2011-02-22 Doug Evans <dje@google.com>
-
- Add gdb.lookup_global_symbol python function.
- * NEWS: Add entry.
- * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
- * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
- * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
-
-2011-02-22 Tom Tromey <tromey@redhat.com>
-
- * language.c (language_class_name_from_physname): Rename
- 'curr_language' argument to 'lang'; use in body.
-
-2011-02-22 Michael Snyder <msnyder@vmware.com>
-
- * cli/cli-utils.c (number_is_in_list): Check for zero return.
-
-2011-02-22 Pedro Alves <pedro@codesourcery.com>
-
- * frame-unwind.h: Fix comment to mention the this frame, not the
- next.
-
-2011-02-22 Tom Tromey <tromey@redhat.com>
-
- * symfile.c (auto_solib_limit): Remove.
- * symfile.h (auto_solib_limit): Remove.
-
-2011-02-22 Joel Brobecker <brobecker@adacore.com>
-
- * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
-
-2011-02-21 Michael Snyder <msnyder@vmware.com>
-
- * gdbthread.h (print_thread_info): Change prototype.
- * thread.c (print_thread_info): Accept char* instead of int for
- requested_threads argument. Use new function number_is_in_list
- to determine which threads to list.
- (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
- print_thread_info.
- (print_one_inferior): Ditto.
- (mi_cmd_list_thread_groups): Ditto.
-
-2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * common/Makefile.in (CFLAGS): New.
- (COMPILE): Add $(CFLAGS).
-
-2011-02-21 Tom Tromey <tromey@redhat.com>
-
- * breakpoint.c (catch_syscall_command_1): Fix typo.
-
-2011-02-21 Tom Tromey <tromey@redhat.com>
-
- * reverse.c: Include cli-utils.h.
- * printcmd.c: Include cli-utils.h.
- (string_printf): Use skip_spaces.
- * cli/cli-utils.h: New file.
- * cli/cli-utils.c: New file.
- * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
- * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
- * breakpoint.h (get_number, get_number_or_range): Move to
- cli-utils.h.
- * breakpoint.c: Include cli-utils.h.
- (get_number_trailer, get_number, get_number_or_range)
- (ep_skip_leading_whitespace): Move to cli-utils.c.
- (create_breakpoint_sal, find_condition_and_thread)
- (decode_static_tracepoint_spec, watch_command_1)
- (watch_maybe_just_location, ep_parse_optional_if_clause)
- (catch_fork_command_1, catch_exec_command_1)
- (catch_syscall_command_1): Use skip_spaces, skip_to_space.
- * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
- (SUBDIR_CLI_SRCS): Add cli-utils.c.
- (HFILES_NO_SRCDIR): Add cli-utils.h.
- (cli-utils.o): New target.
-
-2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
-
- * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
- before calling discard_all_inferiors.
-
-2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
-
- * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
- (struct builtin_opencl_type): Remove.
- (builtin_opencl_type): Change return type to "struct type **".
- (lookup_opencl_vector_type): Update caller.
- (opencl_language_arch_info): Copy primitive type vector from gdbarch.
- (build_opencl_types): Install plain array of "struct type *"
- instead of "struct builtin_opencl_type".
-
-2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
- Ulrich Weigand <uweigand@de.ibm.com>
-
- * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
- (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
- (struct arm_linux_hwbp_cap): New type.
- (arm_linux_get_hwbp_cap): New function.
- (arm_linux_get_hw_breakpoint_count): Likewise.
- (arm_linux_get_hw_watchpoint_count): Likewise.
- (arm_linux_can_use_hw_breakpoint): Likewise.
- (arm_hwbp_type): New type.
- (arm_hwbp_control_t): Likewise.
- (struct arm_linux_hw_breakpoint): Likewise.
- (struct arm_linux_thread_points): Likewise.
- (arm_threads): New global variable.
- (arm_linux_find_breakpoints_by_tid): New function.
- (arm_hwbp_control_initialize): Likewise.
- (arm_hwbp_control_is_enabled): Likewise.
- (arm_hwbp_control_disable): Likewise.
- (arm_linux_hw_breakpoint_initialize): Likewise.
- (arm_linux_get_hwbp_type): Likewise.
- (arm_linux_hw_watchpoint_initialize): Likewise.
- (arm_linux_hw_breakpoint_equal): Likewise.
- (arm_linux_insert_hw_breakpoint1): Likewise.
- (arm_linux_remove_hw_breakpoint1): Likewise.
- (arm_linux_insert_hw_breakpoint): Likewise.
- (arm_linux_remove_hw_breakpoint): Likewise.
- (arm_linux_region_ok_for_hw_watchpoint): Likewise.
- (arm_linux_insert_watchpoint): Likewise.
- (arm_linux_remove_watchpoint): Likewise.
- (arm_linux_stopped_data_address): Likewise.
- (arm_linux_stopped_by_watchpoint): Likewise.
- (arm_linux_watchpoint_addr_within_range): Likewise.
- (arm_linux_new_thread): Likewise.
- (arm_linux_thread_exit): Likewise.
- (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
- related target callbacks. Register arm_linux_new_thread and
- arm_linux_thread_exit.
- * arm-tdep.h (arm_pc_is_thumb): Add prototype.
- * arm-tdep.c (arm_pc_is_thumb): Make global.
- (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
-
-2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
-
- * breakpoint.c (update_watchpoint): Do not attempt to recreate
- per-frame locations while within a function epilogue.
-
-2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
-
- * ser-mingw.c (ser_windows_close): Reformat comment to better conform
- to GNU coding standards.
-
-2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
-
- Allow use of mingw native on Windows 95 OS.
- * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
- (ser_windows_close): Only call CancelIo if function exists.
- (_initialize_ser_windows): Use LoadLirary/GetProcAddress
- to check for existence of CancelIo function in kernel32 DLL.
-
-2011-02-21 Hui Zhu <teawater@gmail.com>
-
- * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
- * ax-gdb.c (gen_printf_expr_callback): New function.
- * ax-gdb.h (gen_printf_expr_callback): Forward declare.
- * ax-general.c (ax_memcpy): New function.
- (ax_print): Handle "printf".
- (ax_reqs): Ditto.
- * ax.h (ax_memcpy): Forward declare.
- * common/ax.def (invalid2): Removed.
- (printf): New entry.
- * printcmd.c (printcmd.h): New include.
- (string_printf): New function.
- (ui_printf): Removed.
- (printf_command): Remove static. Call string_printf.
- (eval_command): Call string_printf.
- * printcmd.h: New file.
- * tracepoint.c (validate_actionline,
- encode_actions_1): handle printf_command.
-
-2011-02-19 Michael Snyder <msnyder@vmware.com>
-
- * reverse.c (delete_one_bookmark): Argument is now bookmark
- id rather than pointer to bookmark struct.
- (delete_bookmark_command): Use get_number_or_range.
- (goto_bookmark_command): Parse with get_number instead of strtoul.
- (bookmark_1): New function. Print info for one bookmark.
- (bookmarks_info): Use get_number_or_range and bookmark_1.
-
-2011-02-18 Michael Snyder <msnyder@vmware.com>
-
- * thread.c (info_threads_command): Re-implement using
- get_number_or_range.
- (thread_apply_command): Ditto.
-
-2011-02-18 Tom Tromey <tromey@redhat.com>
-
- * common/ax.def: New file.
- * ax.h (enum agent_op): Use ax.def.
- * ax-general.c (aop_map): Use ax.def.
-
-2011-02-18 Tom Tromey <tromey@redhat.com>
-
- * ax-general.c (aop_map): Add pick and rot.
- * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
- <DW_OP_rot>: Implement.
- * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
- (ax_pick): Declare.
- * ax-general.c (ax_pick): New function.
-
-2011-02-18 Tom Tromey <tromey@redhat.com>
-
- * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
-
-2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
- Tom Tromey <tromey@redhat.com>
+ * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
+ (main.o): Remove rule.
+ * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
+ (--with-sysroot): Rewrite.
+ * configure: Regenerate.
+ * config.in: Regenerate.
- * cp-support.c (make_symbol_overload_list_namespace): Do not call
- make_symbol_overload_list_block with NULL BLOCK.
- * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
+2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
-2011-02-18 Pedro Alves <pedro@codesourcery.com>
+ * parse.c (initialize_expout): New function.
+ (reallocate_expout): Likewise.
+ (parse_exp_in_context): Use `initialize_expout' and
+ `reallocate_expout' when appropriate.
- * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
- * breakpoint.h (get_number_or_range): Declare.
- * printcmd.c (ALL_DISPLAYS): Declare.
- (delete_display): Reimplement taking a display pointer.
- (undisplay_command): Accept a range of displays to delete, using
- get_number_or_range.
+2012-01-18 Pedro Alves <palves@redhat.com>
-2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
+ * record.c (struct record_breakpoint, record_breakpoint_p)
+ (record_breakpoints): New.
+ (record_insert_breakpoint, record_remove_breakpoint): Manage
+ record breakpoints list. Only remove breakpoints from the
+ inferior if they had been inserted there in the first place.
- * c-valprint.c (c_val_print): Add embedded_offset to address
- for arrays of unspecified length.
- * p-valprint.c (pascal_val_print): Likewise.
+2012-01-17 Doug Evans <dje@google.com>
-2011-02-18 Yao Qi <yao@codesourcery.com>
+ * linespec.c (decode_line_internal): Don't call symtabs_from_filename
+ if we know we don't have a file name to look for.
- * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
- (arm_process_displaced_insn): .. here. Remove parameter INSN.
- (thumb_process_displaced_insn): New.
- * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
- call to arm_process_displaced_insn.
- * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
+2012-01-17 Pedro Alves <palves@redhat.com>
-2011-02-17 Tom Tromey <tromey@redhat.com>
+ * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
+ the frame's stop reason is UNWIND_UNAVAILABLE.
- * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
- * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
- compile_dwarf_to_ax. No longer static. Call
- dwarf2_compile_cfa_to_ax.
- (locexpr_tracepoint_var_ref): Update.
- (loclist_tracepoint_var_ref): Update.
- * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
- * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
- argument; add 'gdbarch' and 'pc'.
- (dwarf2_compile_cfa_to_ax): New function.
- (dwarf2_frame_cache): Update.
+2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-02-17 Joel Brobecker <brobecker@adacore.com>
+ Fix compilation error.
+ * m2-exp.y (yyerror): Use ANSI C prototype.
- * ada-lang.c (ada_type_of_array): Fix the size of the array
- in the case of an unconstrained packed array.
+2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
-2011-02-17 Yao Qi <yao@codesourcery.com>
+ * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
+ (growbuf_by_size): Likewise.
+ (yyerror): Likewise.
+ * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
+ (modblock): Remove variable (was #if 0'ed).
+ (parse_number): Convert prototype from K&R to ANSI C.
+ (yyerror): Likewise.
+ * objc-exp.y (parse_number): Likewise.
+ (yyerror): Likewise.
+ (yylex): Remove #if 0'ed code.
+ * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
+ (yyerror): Likewise.
- * common/Makefile.in: Add more targets for make.
+2012-01-16 Tom Tromey <tromey@redhat.com>
-2011-02-16 Tom Tromey <tromey@redhat.com>
+ * NEWS: Add item.
+ * symtab.h (compare_filenames_for_search): Declare.
+ * symtab.c (compare_filenames_for_search): New function.
+ (iterate_over_some_symtabs): Use it.
+ * symfile.h (struct quick_symbol_functions)
+ <map_symtabs_matching_filename>: Change spec.
+ * psymtab.c (partial_map_symtabs_matching_filename): Use
+ compare_filenames_for_search. Update for new spec.
+ * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
+ compare_filenames_for_search. Update for new spec.
+ * breakpoint.c (clear_command): Use compare_filenames_for_search.
+
+2012-01-16 Tom Tromey <tromey@redhat.com>
+
+ PR python/13281:
+ * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
+ (struct main_type) <flag_flag_enum>: New field.
+ * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
+ * NEWS: Add entries.
+ * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
+ enums.
+ * python/lib/gdb/printing.py (_EnumInstance): New class.
+ (FlagEnumerationPrinter): Likewise.
+
+2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * breakpoint.c (create_sals_from_address_default): New function.
+ (create_breakpoints_sal_default): Likewise.
+ (decode_linespec_default): Likewise.
+ (is_marker_spec): Removed.
+ (strace_marker_p): New function.
+ (init_breakpoint_sal): Using `strace_marker_p' instead of
+ `is_marker_spec'.
+ (create_breakpoint): Call method `create_sals_from_address' from
+ breakpoint_ops, replacing code that created SALs conditionally
+ on the type of the breakpoint. Call method `create_breakpoints_sal',
+ replacing code that created breakpoints conditionally on the type
+ wanted.
+ (base_breakpoint_create_sals_from_address): New function.
+ (base_breakpoint_create_breakpoints_sal): Likewise.
+ (base_breakpoint_decode_linespec): Likewise.
+ (base_breakpoint_ops): Add methods
+ `base_breakpoint_create_sals_from_address',
+ `base_breakpoint_create_breakpoints_sal' and
+ `base_breakpoint_decode_linespec'.
+ (bkpt_create_sals_from_address): New function.
+ (bkpt_create_breakpoints_sal): Likewise.
+ (bkpt_decode_linespec): Likewise.
+ (tracepoint_create_sals_from_address): Likewise.
+ (tracepoint_create_breakpoints_sal): Likewise.
+ (tracepoint_decode_linespec): Likewise.
+ (strace_marker_create_sals_from_address): Likewise.
+ (strace_marker_create_breakpoints_sal): Likewise.
+ (strace_marker_decode_linespec): Likewise.
+ (strace_marker_breakpoint_ops): New variable.
+ (addr_string_to_sals): Remove `marker_spec'. Call method
+ `decode_linespec' from breakpoint_ops, replacing code that decoded
+ an address string into a SAL. Use `strace_marker_p' instead of
+ `marker_spec'.
+ (strace_command): Decide whether we are dealing with a static
+ tracepoint with marker or not. Use the appropriate breakpoint_ops.
+ (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
+ * breakpoint.h (linespec_result, linespec_sals): New forward
+ declarations.
+ (breakpoint_ops) <create_sals_from_address>,
+ <create_breakpoints_sal>, <decode_linespec>: New methods.
- * dwarf2loc.c (unimplemented): Fix typo.
+2012-01-14 Doug Evans <dje@google.com>
-2011-02-16 Tom Tromey <tromey@redhat.com>
+ * NEWS: Update text for "maint set python print-stack".
+ It is deprecated in gdb 7.4 and deleted in 7.5.
- * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
- (compile_dwarf_to_ax) <default>: Use unimplemented.
- <DW_OP_deref>: Update.
- (disassemble_dwarf_expression): Update.
- * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
- (decode_locdesc): Update.
- * dwarf2expr.h (dwarf_stack_op_name): Update.
+2012-01-13 Eli Zaretskii <eliz@gnu.org>
-2011-02-16 Tom Tromey <tromey@redhat.com>
+ * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
+ including curses.h.
- * ax.h (struct aop_map) <name>: Now const.
+2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-02-16 Tom Tromey <tromey@redhat.com>
+ * configure: Regenerate.
+ * config.in: Regenerate.
- * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
- than axs_rvalue.
+2012-01-12 Keith Seitz <keiths@redhat.com>
+
+ PR mi/10586
+ * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
+ (ANONYMOUS_UNION_NAME): Define.
+ (is_path_expr_parent): New function.
+ (get_path_expr_parent): New function.
+ (is_anonymous_child): New function.
+ (create_child_with_value): If the child is anonymous and without
+ a name, assign an object name to it.
+ (c_describe_child): Use get_path_expr_parent to determine
+ the parent expression.
+ If there field represents an anonymous struct or union and
+ has no name, set an appropriate display name and expression.
+ (cplus_describe_child): Likewise.
-2011-02-16 Yao Qi <yao@codesourcery.com>
+2012-01-12 Pedro Alves <palves@redhat.com>
- * infrun.c (get_displaced_step_closure_by_addr): New.
- * inferior.h: Declare it.
- * arm-tdep.c: (arm_pc_is_thumb): Call
- get_displaced_step_closure_by_addr. Adjust MEMADDR if it
- returns non-NULL.
+ * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
+ available when %ebp is found to be zero (outermost).
-2011-02-16 Pedro Alves <pedro@codesourcery.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-01-11 Andreas Tobler <andreast@fgznet.ch>
- gdb/
- * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
+ * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
+ an internal gdb_static_assert.
+ * mi/mi-common.c: Rename static_assert to gdb_static_assert.
-2011-02-16 Pedro Alves <pedro@codesourcery.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-01-11 Tom Tromey <tromey@redhat.com>
- * value.c (value_contents_copy_raw): Extend describing comment.
- Assert that the destination contents we're overwriting are wholly
- available.
- (value_contents_copy): Extend describing comment.
+ PR gdb/9598:
+ * breakpoint.c (_initialize_breakpoint): Fix help for "catch
+ catch" and "catch throw".
-2011-02-16 Pedro Alves <pedro@codesourcery.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
- * value.c (value_available_contents_eq): Remove redundant local
- variables. Fix available contents comparision.
- * value.h (value_available_contents_eq): Extend describing
- comment.
+ * blockframe.c (block_innermost_frame): Start search from selected
+ frame, if present, or otherwise the current frame.
-2011-02-16 Yao Qi <yao@codesourcery.com>
+ * c-exp.y (variable): Update innermost_block for
+ 'block COLONCOLON NAME' clause.
+ * m2-exp.y (variable): Ditto.
+ * objc-exp.y (variable): Ditto.
- * thread.c (info_threads_command): Add missing i18n markup and remove
- trailing newline.
+2012-01-10 Tom Tromey <tromey@redhat.com>
-2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
+ PR python/13199:
+ * python/python.c (finish_python_initialization): Set sys.argv.
- * breakpoint.c (longjmp_names): New variable.
- (struct breakpoint_objfile_data): New type.
- (breakpoint_objfile_key): New variable.
- (msym_not_found): New variable.
- (msym_not_found_p): New predicate.
- (get_breakpoint_objfile_data): New function.
- (create_overlay_event_breakpoint): Check per-objfile cache for
- symbols first.
- (create_longjmp_master_breakpoint): Likewise.
- (create_std_terminate_master_breakpoint): Likewise.
- (create_exception_master_breakpoint): Likewise.
- (_initialize_breakpoint): Register per-objfile data key.
+2012-01-10 Doug Evans <dje@google.com>
-2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
+ * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
+ "want_line_info". All callers updated.
+ (dwarf_decode_lines_1): New function.
+ (handle_DW_AT_stmt_list): Add function comment.
+ New arg "want_line_info". All callers updated.
+ (read_file_scope,read_type_unit_scope): Move comment from
+ handle_DW_AT_stmt_list to here.
- * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
- parameter value.
- (create_longjmp_master_breakpoint): Loop over longjmp names.
- (create_std_terminate_master_breakpoint): Const-propagate parameter
- value.
- (update_breakpoints_after_exec): Adjust.
- (breakpoint_re_set): Adjust.
+2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix regression after libiberty/ update for GCC PR 6057 and others.
+ * c-exp.y (operator) <OPERATOR DELETE>
+ (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
+ * cp-name-parser.y (fill_comp, make_operator, make_dtor)
+ (make_builtin_type, make_name): New variable i, add gdb_assert.
+ (operator) <OPERATOR NEW>: Update ARGS to 3.
+ (operator) <OPERATOR DELETE>: Add trailing space.
+ (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
+ (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
+ * cp-support.c (cp_canonicalize_string): Check NULL from
+ cp_comp_to_string, call warning and return.
+
+2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix duplicate .o files after omitting libbfd.a.
+ * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
+ (SFILES): Add corelow.c.
+ (COMMON_OBS): Add corelow.o.
+ (ALLDEPFILES): Remove corelow.c.
+ * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
+ * config/alpha/alpha-osf3.mh: Likewise.
+ * config/alpha/fbsd.mh: Likewise.
+ * config/arm/nbsdaout.mh: Likewise.
+ * config/arm/nbsdelf.mh: Likewise.
+ * config/i386/i386gnu.mh: Likewise.
+ * config/ia64/hpux.mh: Likewise.
+ * config/ia64/linux.mh: Likewise.
+ * config/m32r/linux.mh: Likewise.
+ * config/m68k/linux.mh: Likewise.
+ * config/mips/irix5.mh: Likewise.
+ * config/mips/irix6.mh: Likewise.
+ * config/pa/hpux.mh: Likewise.
+ * config/pa/linux.mh: Likewise.
+ * config/powerpc/aix.mh: Likewise.
+ * config/sparc/linux.mh: Likewise.
+ * config/sparc/linux64.mh: Likewise.
+ * config/sparc/sol2.mh: Likewise.
+ * config/vax/vax.mh: Likewise.
+ * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
+ (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
+ (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
+ (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
+ (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
+ (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
+ (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
+ (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
+ (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
+ (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
+ (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
+ (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
+ (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
+ (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
+ (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
+ (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
+ (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
+ (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
+ (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
+ (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
+ (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
+ (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
+ corelow.o from gdb_target_obs.
+ * corefile.c (core_target): Update the comment on NULL value.
+ (core_file_command): Replace error by gdb_assert on CORE_TARGET.
+ * corelow.c (sniff_core_bfd): Call error instead of warning on zero
+ MATCHES. Drop YUMMY set on NULL.
+ (core_close): Do not call exit_inferior_silent on zero PID. Do not
+ reclaim CORE_DATA if it is already NULL.
+
+2012-01-09 Doug Evans <dje@google.com>
+
+ * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
+ * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
+
+2012-01-09 Keith Seitz <keiths@redhat.com>
+
+ * breakpoint.c (wrapper.h): Don't include.
+
+2012-01-09 Keith Seitz <keiths@redhat.com>
+
+ * Makefile.in (SFILES): Remove wrapper.c.
+ (HFILES_NO_SRCDIR): Remove wrapper.h.
+ (COMMON_OBS): Remove wrapper.o.
+ * cli/cli-interp.c: Don't inlude wrapper.h.
+ * corelow.c: Likewise.
+ (core_open): Replace gdb_target_find_new_threads with
+ TRY_CATCH around target_find_new_threads.
+ * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
+ * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
+ * varobj.c (varobj_create): Likewise for parse_exp_1 and
+ evaluate_expression.
+ (varobj_set_value): Likewise for evaluate_expression and
+ value_assign.
+ (install_new_variable): Likewise for value_fetch_lazy.
+ (adjust_value_for_child_access): Likewise for value_ind.
+ (c_describe_child): Likewise for value_subscript and
+ value_ind.
+ (c_value_of_root): Likewise for evaluate_expression.
+ * wrapper.c: Remove.
+ * wrapper.h: Remove.
+
+2012-01-09 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
+ partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
+ "abfd" args with "section". All callers updated.
+ Error checking code moved ...
+ (error_check_comp_unit_head): ... here. New function.
+ (read_and_check_type_unit_head): Renamed from read_type_unit_head.
+ Delete arg "abfd". New arg "type_offset". All callers updated.
+ (create_debug_types_hash_table): Simplify by using
+ read_and_check_type_unit_head.
+
+ * parser-defs.h (namecopy): Delete.
+ * parse.c (namecopy, namecopy_size): Move into copy_name.
+
+2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Partially fix duplicate .o files after omitting libbfd.a.
+ * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
+ * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
+ * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
+ * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
+ * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
+ * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
+ * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
+
+2012-01-09 Pedro Alves <palves@redhat.com>
-2011-02-15 Michael Snyder <msnyder@vmware.com>
+ * MAINTAINERS: Update my email address.
- * thread.c (info_threads_command): Process arg as thread id,
- or list of thread ids.
- (thread_find_command): New command.
- (_initialize_thread): Document argument for info threads.
- Document 'thread find' command.
- * NEWS: Document new command "thread find".
+2012-01-08 Doug Evans <dje@google.com>
-2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
+ n_type_units. Rename type_comp_units to all_type_units.
+ All uses updated.
+ (add_signatured_type_cu_to_table): Renamed from
+ add_signatured_type_cu_to_list. All callers updated.
- * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
- * aclocal.m4: Regenerated with aclocal-1.11.1.
- * common/configure: Regenerate with autoconf-2.64.
+ * gdbtypes.h (struct cplus_struct_type): Delete member
+ nfn_fields_total. All uses removed.
-2011-02-15 Ken Werner <ken.werner@de.ibm.com>
+2012-01-06 Doug Evans <dje@google.com>
- * opencl-lang.c (build_opencl_types): Set the size of the built-in
- bool data type to a size of one byte.
+ * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
+ to top of file.
+ (dwarf2_find_comp_unit): Delete.
+ (process_psymtab_comp_unit): Make result "void".
+ Delete args buffer, info_ptr, buffer_size, and replace with
+ "section". All callers updated.
+ (dwarf2_build_psymtabs_hard): Simplify.
-2011-02-15 Pedro Alves <pedro@codesourcery.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
- * target.c (memory_xfer_live_readonly_partial): Document where to
- look for interface description.
+ * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
+ before `struct gdb_exception'.
+ * breakpoint.c (update_global_location_list_nothrow)
+ (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
+ * cp-abi.c (value_rtti_type): Likewise.
+ * cp-support.c (cp_validate_operator): Likewise.
+ * infrun.c (insert_exception_resume_breakpoint)
+ (check_exception_resume, keep_going): Likewise.
+ * mi-interp.c (mi_breakpoint_created)
+ (mi_breakpoint_modified): Likewise.
+ * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
+ * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
+ (ia64_hpux_handle_dld_breakpoint_1): Likewise.
-2011-02-15 Yao Qi <yao@codesourcery.com>
+2012-01-05 Doug Evans <dje@google.com>
- PR tdep/12352
- * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
- order to store PC value on stack instead of text section.
+ * dwarf2read.c (statement_prologue): Delete, unused.
-2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
+ * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
+ * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
- * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
- the EFP register set size.
- (efpr_pseudo_register_read): Use regcache_raw_read_part to read
- data from the VMX register.
- (efpr_pseudo_register_write): Use regcache_raw_write_part to read
- and write data from/to the VMX register.
+ * dwarf2read.c (comp_unit_header): Delete, unused.
-2011-02-14 Michael Snyder <msnyder@vmware.com>
+2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
- * command.h (enum command_class): New class 'no_set_class', for
- "show" commands without a corresponding "set" command.
- * value.c (_initialize_values): Use 'no_set_class' for "show values".
- * copying.c (_initialize_copying): Ditto for "show copying" and
- "show warranty".
- * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
- "show version".
- * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
- which there is no corresponding "set" command (eg. "show copying").
+ * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
+ * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
- * exec.c (section_table_available_memory): Change `len' parameter
- type to ULONGEST.
- * exec.h (section_table_available_memory): Ditto.
- * value.h (read_value_memory): Rename the `offset' parameter to
- `embedded_offset'.
+ * infrun.c (normal_stop): Don't skip calling the normal_stop
+ observers if the thread was doing a multi-step, but stopped for
+ some reason other than stepping.
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-01-05 Pedro Alves <alves.ped@gmail.com>
- * memrange.c (compare_mem_ranges): Mention sort order in
- describing comment.
- (normalize_mem_ranges): Add comment. Fix ra->length calculation.
- * tracepoint.c (traceframe_available_memory): Extend comment to
- mention what happens to RESULT when the target does not support
- the query.
+ * cli/cli-decode.h: Add comments.
+ (CMD_LIST_AMBIGUOUS): Moved to command.h
+ (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
+ (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
+ (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
+ (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
+ (add_com, add_com_alias, add_info, add_info_alias)
+ (complete_on_cmdlist, complete_on_enum, help_list): Remove
+ declarations.
+ * command.h: Add and adjust comments.
+ (CMD_LIST_AMBIGUOUS): Moved here.
+ (help_cmd, help_cmd_list): Delete declarations.
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+2012-01-04 Doug Evans <dje@google.com>
- * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
- range.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * value.c (value_bits_valid, value_bits_synthetic_pointer):
- No longer handle NULL values.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * exceptions.h (NOT_AVAILABLE_ERROR): New error.
- * value.c: Include "exceptions.h".
- (require_available): Throw NOT_AVAILABLE_ERROR instead of a
- generic error.
- * cp-abi.c: Include gdb_assert.h.
- (baseclass_offset): Add `embedded_offset' and `val' parameters.
- Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
- errors.
- * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
- parameters. No longer returns -1 on error.
- (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
- `val' parameters.
- * cp-valprint.c: Include exceptions.h.
- (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
- the baseclass_offset. Handle unavailable base classes. Use
- val_print_invalid_address.
- * p-valprint.c: Include exceptions.h.
- (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
- when fetching the baseclass_offset. No longer expect
- baseclass_offset returning -1. Handle unavailable base classes.
- Use val_print_invalid_address.
- * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
- `valaddr' parameter, and change its type to gdb_byte pointer. Add
- `embedded_offset' and `val' parameters. Adjust.
- (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
- parameter, and change its type to gdb_byte pointer. Add
- `embedded_offset' and `val' parameters. Adjust. No longer expect
- baseclass_offset returning -1.
- (value_dynamic_cast): Use value_contents_for_printing rather than
- value_contents. Adjust.
- (search_struct_field): No longer expect baseclass_offset returning
- -1.
- (search_struct_method): If reading memory from the target is
- necessary, wrap it in a new value to pass to baseclass_offset. No
- longer expect baseclass_offset returning -1.
- (find_method_list): No longer expect baseclass_offset returning
- -1. Use value_contents_for_printing rather than value_contents.
- * valprint.c (val_print_invalid_address): New function.
- * valprint.h (val_print_invalid_address): Declare.
- * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
- and `val' parameters. No longer expect baseclass_offset returning
- -1. Adjust.
- * gnu-v2-abi.c: Include "exceptions.h".
- (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
- parameters. Handle unavailable memory. Recurse through
- gnuv2_baseclass_offset directly, rather than through
- baseclass_offset. No longer returns -1 on not found, instead
- throw an error.
- * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
- `val' parameters. Adjust.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
- almost but not quite adjacent.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * value.h (value_entirely_available): Declare.
- * value.c (value_entirely_available): New function.
- * c-valprint.c (c_value_print): Don't try fetching the pointer's
- real type if the pointer is unavailable.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * valops.c (value_repeat): Use read_value_memory instead of
- read_memory.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * value.h (value_contents_copy, value_contents_copy_raw): Declare.
- * value.c (value_contents_copy_raw, value_contents_copy): New
- functions.
- (value_primitive_field): Use value_contents_copy_raw instead of
- memcpy.
- * valops.c (value_fetch_lazy): Use value_contents_copy instead of
- memcpy.
- (value_array, value_slice): Ditto.
- * valarith.c (value_subscripted_rvalue): Use
- value_contents_copy_raw instead of memcpy.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- <unavailable> references.
-
- * valops.c (get_value_at): Use value_from_contents_and_address,
- avoiding read_memory.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * c-valprint.c (c_val_print): Print a string with unavailable
- contents as an array.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * value.h (unpack_bits_as_long): Delete declaration.
- (unpack_value_bits_as_long): Declare.
- (unpack_value_field_as_long): Declare.
- (value_field_bitfield): Declare.
- * value.c (unpack_bits_as_long): Rename to...
- (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
- value parameters. Return the extracted result in a new output
- parameter. If the value contents are unavailable, return false,
- otherwise return true.
- (unpack_value_bits_as_long): New.
- (unpack_field_as_long): Rename to...
- (unpack_value_field_as_long_1): ... this. Add embedded_offset and
- Add embedded_offset and value parameters. Return the extracted
- result in a new output parameter. If the value contents are
- unavailable, return false, otherwise return true.
- (unpack_value_field_as_long): New.
- (unpack_field_as_long_1): New.
- (unpack_field_as_long): Reimplement as wrapper around
- unpack_value_field_as_long_1.
- (value_field_bitfield): New function.
- * valops.c (value_fetch_lazy): When fetching a bitfield, use
- unpack_value_bits_as_long. Mark the value as unavailable, if it
- is unavailable.
- * jv-valprint.c (java_print_value_fields): Use
- value_field_bitfield.
- * p-valprint.c (pascal_object_print_value_fields): Use
- value_field_bitfield.
- * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * value.c (get_internalvar_integer): Also return the int value of
- TYPE_CODE_INT INTERNALVAR_VALUE values.
- (set_internalvar): Don't special case TYPE_CODE_INT.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * value.c (struct internalvar) <enum internalvar_kind>: Remove
- INTERNALVAR_POINTER.
- <pointer>: Delete.
- (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
- (set_internalvar): Remove special TYPE_CODE_PTR handling.
- (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * value.h (value_available_contents_eq): Declare.
- * value.c (find_first_range_overlap): New function.
- (value_available_contents_eq): New function.
- * valprint.c (val_print_array_elements): Use
- value_available_contents_eq.
- * ada-valprint.c (val_print_packed_array_elements): Use
- value_available_contents_eq.
- * jv-valprint.c (java_value_print): Use
- value_available_contents_eq.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * target.c (target_read_live_memory): New function.
- (memory_xfer_live_readonly_partial): New.
- (memory_xfer_partial): If reading from a traceframe, fallback to
- reading unavailable read-only memory from read-only regions of
- live target memory.
- * tracepoint.c (disconnect_tracing): Adjust.
- (set_current_traceframe): New, factored out from
- set_traceframe_number.
- (set_traceframe_number): Reimplement to only change the traceframe
- number on the GDB side.
- (do_restore_current_traceframe_cleanup): Adjust.
- (make_cleanup_restore_traceframe_number): New.
- (cur_traceframe_number): New global.
- (tfile_open): Set cur_traceframe_number to no traceframe.
- (set_tfile_traceframe): New function.
- (tfile_trace_find): If looking up a traceframe using any method
- other than by number, make sure the current tfile traceframe
- matches gdb's current traceframe. Update the current tfile
- traceframe if the lookup succeeded.
- (tfile_fetch_registers, tfile_xfer_partial)
- (tfile_get_trace_state_variable_value): Make sure the remote
- traceframe matches gdb's current traceframe.
- * remote.c (remote_traceframe_number): New global.
- (remote_open_1): Set it to -1.
- (set_remote_traceframe): New function.
- (remote_fetch_registers, remote_store_registers)
- (remote_xfer_memory, remote_xfer_partial)
- (remote_get_trace_state_variable_value): Make sure the remote
- traceframe matches gdb's current traceframe.
- (remote_trace_find): If looking up a traceframe using any method
- other than by number, make sure the current remote traceframe
- matches gdb's current traceframe. Update the current remote
- traceframe if the lookup succeeded.
- * infrun.c (fetch_inferior_event): Adjust.
- * tracepoint.h (set_current_traceframe): Declare.
- (get_traceframe_number, set_traceframe_number): Add describing
- comments.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- Mark pieces of values as unavailable if the corresponding memory
- is unavailable.
-
- * valops.c: Include tracepoint.h.
- (value_fetch_lazy): Use read_value_memory.
- (read_value_memory): New.
- * value.h (read_value_memory): Declare.
- * dwarf2loc.c (read_pieced_value): Use read_value_memory.
- * exec.c (section_table_available_memory): New function.
- * exec.h (section_table_available_memory): Declare.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * Makefile.in (SFILES): Add memrange.c.
- (HFILES_NO_SRCDIR): Add memrange.h.
- (COMMON_OBS): Add memrange.o.
- * memrange.c: New file.
- * memrange.h: New file.
- * tracepoint.c: Include memrange.h.
- (struct mem_range): Delete.
- (mem_range_s): Delete.
- (traceframe_available_memory): New function.
- * tracepoint.h (traceframe_available_memory): Declare.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- * target.h (struct traceframe_info): Forward declare.
- (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
- (struct target_ops) <to_traceframe_info>: New field.
- (target_traceframe_info): New.
- * target.c (update_current_target): Inherit and default
- to_traceframe_info.
- * remote.c (PACKET_qXfer_traceframe_info): New.
- (remote_protocol_features): Register qXfer:traceframe-info:read.
- (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
- (remote_traceframe_info): New.
- (init_remote_ops): Install it.
- (_initialize_remote): Install "set/show remote traceframe-info"
- commands.
- * tracepoint.h (parse_traceframe_info): Declare.
- * tracepoint.c (struct mem_range): New.
- (mem_range_s): New typedef.
- (struct traceframe_info): New.
- (traceframe_info): New global.
- (free_traceframe_info): New function.
- (clear_traceframe_info): New function.
- (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
- info.
- (build_traceframe_info): New function.
- (tfile_traceframe_info): New function.
- (init_tfile_ops): Install tfile_traceframe_info.
- (traceframe_info_start_memory, free_result): New functions.
- (memory_attributes, traceframe_info_elements): New globals.
- (parse_traceframe_info, get_traceframe_info): New functions.
- * features/traceframe-info.dtd: New file.
- * Makefile.in (XMLFILES): Add traceframe-info.dtd.
-
-2011-02-14 Pedro Alves <pedro@codesourcery.com>
-
- Base support for <unavailable> value contents.
-
- * value.h (value_bytes_available): Declare.
- (mark_value_bytes_unavailable): Declare.
- * value.c (struct range): New struct.
- (range_s): New typedef.
- (ranges_overlap): New function.
- (range_lessthan): New function.
- (ranges_contain_p): New function.
- (struct value) <unavailable>: New field.
- (value_bytes_available): New function.
- (mark_value_bytes_unavailable): New function.
- (require_not_optimized_out): Constify parameter.
- (require_available): New function.
- (value_contents_all, value_contents): Require all bytes be
- available.
- (value_free): Free `unavailable'.
- (value_copy): Copy `unavailable'.
- * valprint.h (val_print_unavailable): Declare.
- * valprint.c (valprint_check_validity): Rename `offset' parameter
- to `embedded_offset'. If printing a scalar, check whether the
- value chunk is available.
- (val_print_unavailable): New.
- (val_print_scalar_formatted): Check whether the value is
- available.
- * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
- pretty-printing unavailable values.
-
-2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix const/volatile qualifiers of C++ types, PR c++/12328.
- * c-typeprint.c (c_type_print_args): Update the function comment. New
- variable param_type, initialize it. Remove const/volatile qualifiers
- for language_cplus and !show_artificial. Use param_type.
-
-2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * symtab.c (find_pc_sect_line): New variable objfile, initialize it
- from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
- * symtab.h (struct symtab) <next>: Comment extension.
-
-2011-02-12 Yao Qi <yao@codesourcery.com>
-
- * Makefile.in (CLEANDIRS): Remove duplicated common dir.
-
-2011-02-11 Yao Qi <yao@codesourcery.com>
-
- * common/Makefile.in: Add copyright header.
-
-2011-02-11 Pedro Alves <pedro@codesourcery.com>
-
- * infrun.c (proceed): Move switching out and in of tfind mode from
- here ...
- (fetch_inferior_event): ... to here.
-
-2011-02-11 Yao Qi <yao@codesourcery.com>
-
- * Makefile.in: Remove signals.o from COMMON_OBS. Link
- libcommon.a.
- * configure.ac: Add common to sub dir.
- * configure: Regenerate.
+ * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
+ All callers updated.
+ (load_full_type_unit): Renamed from read_signatured_type_at_offset.
+ Replace all arguments with "per_cu". All callers updated.
-2011-02-11 Yao Qi <yao@codesourcery.com>
+ * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
- Build libcommon.a.
+ * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
+ New arg "per_cu". All callers updated.
- * common/Makefile.in: New.
- * common/configure.ac: New.
- * common/aclocal.m4: New.
- * common/configure: Generate.
+ Delete #if 0'd out code.
+ * language.c (binop_result_type): Delete.
+ (simple_type, ordered_type, same_type, integral_type): Delete.
+ (numeric_type, character_type, string_type, boolean_type): Delete.
+ (float_type, structured_type): Delete.
+ * language.h: Update.
-2011-02-10 Pedro Alves <pedro@codesourcery.com>
+2012-01-04 Tom Tromey <tromey@redhat.com>
- * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
- side of the parenthesis.
+ * python/py-value.c (valpy_binop): Initialize 'res_val'.
- Merge from GCC:
- 2010-07-13 Jakub Jelinek <jakub@redhat.com>
- * vec.h (VEC_block_remove): Fix comment.
+2012-01-04 Joel Brobecker <brobecker@adacore.com>
-2011-02-08 Michael Snyder <msnyder@vmware.com>
+ * corefile.c (close_exec_file): Delete.
+ (reopen_exec_file): Remove commented out code that seems related
+ to close_exec_file, which is being deleted here.
+ * inferior.h (close_exec_file): Delete.
+ * fork-child.c (fork_inferior): Remove call to fork_inferior.
- * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
+2012-01-04 Joel Brobecker <brobecker@adacore.com>
-2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * ada-lang.c: #include "cli/cli-utils.h".
+ (get_selections): Use skip_spaces.
+ (ada_get_next_arg): Use skip_spaces and skip_to_space.
+ (catch_ada_exception_command_split): Use skip_spaces.
+ (ada_decode_assert_location): Likewise.
- * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
- in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
- psubd and paddd.
+2012-01-04 Joel Brobecker <brobecker@adacore.com>
-2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * linespec.c (decode_line_internal): Check for C++ or Java
+ compound constructs only if the current language is C, C++
+ or Java.
- PR 12361.
- * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
- phsubsw.
- (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
- (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
+2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
+ Revert:
+ 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Joel Brobecker <brobecker@adacore.com>
+ Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
+ * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
+ 3 times.
+ * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
+ fall through into AT_ENTRY_POINT.
+ (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
+ DUMMY_ADDR with it.
+ * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
+ PPC_INSN_SIZE skip to 3 times.
- * dwarf2read.c (read_subroutine_type): Set special calling
- convention flag for functions compiled by IBM XL C for OpenCL.
- * ppc-sysv-tdep.c: Include "dwarf2.h"
- (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
- calling convention.
- (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
- IBM OpenCL vector types calling convention.
- (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
- (ppc_sysv_abi_broken_return_value): Likewise.
- (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
- types calling convention.
- (ppc64_sysv_abi_return_value): Likewise.
- * spu-tdep.c: Include "dwarf2.h"
- (spu_return_value): Implement IBM OpenCL vector types calling
- convention.
-
-2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
-
- * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
- correct ABI for AltiVec vector arguments.
-
-2011-02-07 Pedro Alves <pedro@codesourcery.com>
-
- * valprint.c (val_print): Extend comment.
- * ada-valprint.c (ada_valprint): Rewrite comment deferring
- interface explanation to val_print.
- (ada_val_print_array): Adjust comment to current interface.
- (print_field_values): Adjust comment to current interface.
- * c-valprint.c (c_val_print): Rewrite comment deferring interface
- explanation to val_print.
- * f-valprint.c (f_val_print): Ditto.
- * jv-valprint.c (java_val_print): Ditto.
- * m2-valprint.c (m2_val_print): Ditto.
- * p-valprint.c (pascal_val_print): Ditto.
-
-2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * breakpoint.c (parse_breakpoint_sals): Fix description.
-
-2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
- Oguz Kayral <oguzkayral@gmail.com>
-
- * python/py-inferior.c (python_on_normal_stop): New function.
- (python_on_resume): New function.
- (python_inferior_exit): New function.
- (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
- inferior_exit observers.
- * python/py-evtregistry.c: New file.
- * python/py-threadevent.c : New file.
- * python/py-event.c: New file.
- * python/py-evts.c: New file.
- * python/py-continueevent.c: New file.
- * python/py-bpevent.c: New file.
- * python/py-signalevent.c: New file.
- * python/py-exetiedevent.c: New file.
- * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
- Move struct breakpoint_object from here...
- * python/python-internal.h: ... to here.
- * python/py-event.h: New file.
- * python/py-events.h: New file.
- * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
- py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
- py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
- (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
- py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
- py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
- Add build rules for all the above.
-
-2011-02-04 Tom Tromey <tromey@redhat.com>
-
- * dwarf2read.c (dwarf2_section_empty_p): New function.
- (dwarf2_read_section): Use dwarf2_section_empty_p.
- (dwarf2_section_size): New function.
- (dwarf2_get_section_info): Unconditionally read section.
- (dwarf2_read_index): Use dwarf2_section_empty_p.
- (partial_read_comp_unit_head): Use dwarf2_section_size.
- (dwarf2_symbol_mark_computed): Likewise.
-
-2011-02-04 David Daney <ddaney@caviumnetworks.com>
-
- * NEWS: Add item for "catch syscall" on mips*-linux* targets.
-
-2011-02-04 David Daney <ddaney@caviumnetworks.com>
-
- * mips-linux-tdep.c: Include xml-syscall.h.
- (mips_linux_get_syscall_number): New function.
- (mips_linux_init_abi): Add calls to
- mips_linux_get_syscall_number() and set_xml_syscall_file_name().
- * data-directory/Makefile.in (SYSCALLS_FILES): Add
- mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
- * syscalls/mips-n32-linux.xml: New file.
- * syscalls/mips-n64-linux.xml: New file.
- * syscalls/mips-o32-linux.xml: New file.
-
-2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
- Complain about inverted range entries.
- (dwarf2_record_block_ranges): Likewise.
+2012-01-04 Joel Brobecker <brobecker@adacore.com>
-2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
+ * linespec.c (add_minsym): Preserve function descriptors.
- Fix some typos.
- * breakpoint.c (update_watchpoint): Fix name of the
- update_global_location_list function.
- (print_one_breakpoint): Fix typo.
- (_initialize_breakpoint): Remove extra space in hbreak help
- string.
- * breakpoint.h (struct bp_location) <length>: Fix field
- description.
+2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
-2011-02-04 Pedro Alves <pedro@codesourcery.com>
-
- * regcache.c (registers_changed_ptid): Don't explictly always
- clear `current_regcache'. Only clear current_thread_ptid and
- current_thread_arch when PTID matches. Only reinit the frame
- cache if PTID matches the current inferior_ptid. Move alloca(0)
- call to ...
- (registers_changed): ... here.
-
-2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
- starts with __stack_chk_guard as stack guard symbol.
-
-2011-02-03 Andrew Burgess <aburgess@broadcom.com>
-
- * disasm.c (compare_lines): Handle the end of sequence markers
- within the line table to better support disassembling over
- compilation unit boundaries.
-
-2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
- arguments. Skip in-prologue calls to glibc __aeabi_read_tp
- implementation even if no symbols are available.
- (thumb_analyze_prologue): Update call to skip_prologue_function.
- (arm_analyze_prologue): Likewise.
-
-2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * arm-tdep.c: Include "observer.h".
- (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
- (arm_exidx_data_key): New static variable.
- (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
- (struct arm_exidx_data): Likewise.
- (arm_exidx_data_free): New function.
- (arm_compare_exidx_entries): Likewise.
- (arm_obj_section_from_vma): Likewise.
- (arm_exidx_new_objfile): Likewise.
- (arm_find_exidx_entry): Likewise.
- (arm_exidx_fill_cache): Likewise.
- (arm_exidx_unwind_sniffer): Likewise.
- (arm_exidx_unwind): New global variable.
- (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
- (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
- observer. Register arm_exidx_data_key as objfile data.
-
-2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
-
- * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
- due to accessing uninitialized variable. Fix indentation.
-
-2011-02-02 Pedro Alves <pedro@codesourcery.com>
-
- * c-valprint.c (c_value_print): When doing virtual base pointer
- adjustment, create a new value with adjusted contents rather than
- changing the contents of the value being printed (and getting it
- wrong).
-
-2011-02-02 Pedro Alves <pedro@codesourcery.com>
-
- * xml-support.c (xml_find_attribute): New.
- (xinclude_start_include): Use it.
- * xml-support.h (xml_find_attribute): Declare.
- * memory-map.c (memory_map_start_memory)
- (memory_map_start_property): Use xml_find_attribute.
- * osdata.c (osdata_start_osdata, osdata_start_column): Use
- xml_find_attribute.
- * remote.c (start_thread): Use xml_find_attribute.
- * solib-target.c (library_list_start_segment)
- (library_list_start_section, library_list_start_library)
- (library_list_start_list): Use xml_find_attribute.
- * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
- (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
- (tdesc_start_field): Use xml_find_attribute.
-
-2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
-
- * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
- (BUILD_OCL_VTYPES): Update.
-
-2011-02-02 Joel Brobecker <brobecker@adacore.com>
-
- * configure.ac: Work around non-GNU sed limitation when computing
- python version number.
- * configure: Regenerate.
+ * breakpoint.c (all_locations_are_pending): Consider locations
+ in program spaces executing during startup pending as well.
-2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix debug printing of TYPE_INSTANCE.
- * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
- (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
-
-2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
- OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
- OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
- * ada-operator.inc: Rename the file to ...
- * ada-operator.def: ... here, wrap all the entries by macro OP.
- * expprint.c (op_name_standard): Remove all the entries. Include
- "std-operator.def" instead.
- * expression.h (enum exp_opcode): Include "std-operator.def" and
- "ada-operator.def". Move all the entries ...
- * std-operator.def: ... here, wrap all the entries by macro OP.
-
-2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
-
- * breakpoint.h (remove_jit_event_breakpoints): New prototype.
- * breakpoint.c (remove_jit_event_breakpoints): New function.
- * jit.c (jit_descriptor_addr): Delete.
- (registering_code): Delete.
- (clear_int): Delete.
- (jit_inferior_data): New variable.
- (struct jit_inferior_data): New type.
- (get_jit_inferior_data): New function.
- (jit_inferior_data_cleanup): New function.
- (jit_read_descriptor): Adjust.
- (jit_register_code): Adjust.
- (jit_breakpoint_re_set_internal): New function; move code here ...
- (jit_inferior_init): ... from here.
- (jit_breakpoint_re_set): Adjust.
- (jit_reset_inferior_data_and_breakpoints): New function.
- (jit_inferior_created_observer): Adjust.
- (jit_inferior_exit_hook): Adjust.
- (jit_executable_changed_observer): New function.
- (jit_event_handler): Adjust.
- (_initialize_jit): Adjust.
-
-2011-01-31 Michael Snyder <msnyder@vmware.com>
-
- * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
- line.
-
-2011-01-31 Tom Tromey <tromey@redhat.com>
-
- PR python/12216:
- * python/python.c (execute_gdb_command): Call
- prevent_dont_repeat.
- * top.c (suppress_dont_repeat): New global.
- (dont_repeat): Use it.
- (prevent_dont_repeat): New function.
- * command.h (prevent_dont_repeat): Declare.
-
-2011-01-31 Tom Tromey <tromey@redhat.com>
-
- * infcmd.c (finish_backward): Use breakpoint_set_silent.
- * python/py-breakpoint.c (bppy_set_silent): Use
- breakpoint_set_silent.
- (bppy_set_thread): Use breakpoint_set_thread.
- (bppy_set_task): Use breakpoint_set_task.
- * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
- (breakpoint_set_task): Declare.
- (make_breakpoint_silent): Remove.
- * breakpoint.c (breakpoint_set_silent): New function.
- (breakpoint_set_thread): Likewise.
- (breakpoint_set_task): Likewise.
- (make_breakpoint_silent): Remove.
-
-2011-01-31 Tom Tromey <tromey@redhat.com>
-
- * breakpoint.h (user_breakpoint_p): Declare.
- * breakpoint.c (user_breakpoint_p): New function.
- (breakpoint_1): Use it.
- (save_breakpoints): Likewise.
-
-2011-01-31 Joel Brobecker <brobecker@adacore.com>
-
- * configure.ac: Add handling of Python distribution on Windows.
- * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
- sysconfig variables are not defined, then do not use them.
- On Windows, if LIBPL is not defined, then use prefix + '/libs'
- instead. On Windows, return all paths using forward-slashes
- rather than backslashes.
-
-2011-01-31 Joel Brobecker <brobecker@adacore.com>
-
- * configure.ac: Remove fallback behavior for building
- against Python. Remove tweaking of Python include path.
- Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
- (AC_TRY_LIBPYTHON): Adjust program used in linking test.
- If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
- Always restore CPPFLAGS and LIBS after linking test.
- * configure: Regenerated.
- * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
- (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
- * python/python-internal.h: Adjust includes of Python .h files.
-
-2011-01-31 Joel Brobecker <brobecker@adacore.com>
-
- * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
- in error message.
-
-2011-01-31 Joel Brobecker <brobecker@adacore.com>
-
- * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
- value test.
-
-2011-01-31 Yao Qi <yao@codesourcery.com>
-
- * arm-linux-nat.c: Update calls to regcache_register_status
- instead of regcache_valid_p.
- * aix-thread.c: Likewise.
- * i386gnu-nat.c: Likewise.
-
-2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix crash.
- * valops.c (compare_parameters): Verify TYPE_NFIELDS before
- touching TYPE_FIELD_ARTIFICIAL.
-
-2011-01-28 Richard Earnshaw <rearnsha@arm.com>
-
- * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
- Committers.
-
-2011-01-28 Pedro Alves <pedro@codesourcery.com>
-
- * tracepoint.c (tfile_xfer_partial): If there's no traceframe
- selected, don't try iterating over the traceframe's blocks.
- (tfile_has_stack): If there's no traceframe selected, then there's
- no stack.
- (tfile_has_registers): If there's no traceframe selected, then
- there's no registers.
-
-2011-01-28 Pedro Alves <pedro@codesourcery.com>
-
- * target.c (memory_xfer_partial): No need to restore shadows if we
- haven't read anything.
-
-2011-01-28 Pedro Alves <pedro@codesourcery.com>
-
- * mips-tdep.c (mips_print_register): Use get_frame_register_value
- and val_print_scalar_formatted.
-
-2011-01-27 Pedro Alves <pedro@codesourcery.com>
-
- * tracepoint.c (tfile_read): New.
- (tfile_open): Use it.
- (tfile_get_traceframe_address): Use it.
- (tfile_trace_find): Use it.
- (walk_blocks_callback_func): New typedef.
- (match_blocktype): New function.
- (traceframe_walk_blocks): New function.
- (traceframe_find_block_type): New function.
- (tfile_fetch_registers, tfile_xfer_partial)
- (tfile_get_trace_state_variable_value): Use
- traceframe_find_block_type and tfile_read.
-
-2011-01-26 Kevin Buettner <kevinb@redhat.com>
-
- * remote-mips.c: Add internationalization mark ups. Remove
- trailing \n from already marked up strings.
-
-2011-01-26 Tom Tromey <tromey@redhat.com>
-
- * python/py-prettyprint.c (print_string_repr): Clear
- 'addressprint' option when calling val_print_string.
- (print_children): Handle Val_pretty_default. Clear 'addressprint'
- option when calling val_print_string.
-
-2011-01-26 Tom Tromey <tromey@redhat.com>
-
- * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
- GDB_PY_LL_ARG.
- * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
- macros.
- (gdb_py_longest, gdb_py_ulongest): New typedefs.
- (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
- (gdb_py_long_as_ulongest): New defines.
- (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
- (gdb_py_int_as_long): Declare.
- * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
- GDB_PY_LL_ARG, gdb_py_object_from_longest.
- (valpy_long): Add comment.
- * python/py-utils.c (get_addr_from_python): Use
- gdb_py_long_as_ulongest. Handle overflow properly.
- (gdb_py_object_from_longest): New function.
- (gdb_py_object_from_ulongest): Likewise.
- (gdb_py_int_as_long): Likewise.
- * python/py-type.c (typy_array): Use gdb_py_int_as_long.
- * python/py-symtab.c (salpy_get_pc): Use
- gdb_py_long_from_ulongest.
- (salpy_get_line): Use PyInt_FromLong.
- * python/py-param.c (set_parameter_value): Use
- gdb_py_int_as_long.
- * python/py-lazy-string.c (stpy_get_address): Use
- gdb_py_long_from_ulongest.
- * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
- * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
- * python/py-breakpoint.c (bppy_set_thread): Use
- gdb_py_int_as_long.
- (bppy_set_task): Likewise.
- (bppy_set_ignore_count): Likewise.
- (bppy_set_hit_count): Likewise.
- * python/py-block.c (blpy_get_start): Use
- gdb_py_object_from_ulongest.
- (blpy_get_end): Likewise.
- (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
-
-2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
-
- PR/symtab 11766:
- * gdb/objfiles.h (struct objfile) <addr_low>: New field.
- * gdb/solib.c (solib_read_symbols): Check for addr_low in
- equality test for objfile, initialize addr_low if needed.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- * tui/tui-regs.c (tui_register_format): Remove dead code.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- * printcmd.c (print_formatted): Use val_print_scalar_formatted
- instead of print_scalar_formatted.
- (print_scalar_formatted): Don't handle 's' format strings here,
- and add an assertion that we never see such format here.
- * valprint.h (val_print_scalar_formatted): Declare.
- * valprint.c (val_print_scalar_formatted): New.
- * c-valprint.c (c_val_print): Use val_print_scalar_formatted
- instead of print_scalar_formatted.
- * jv-valprint.c (java_val_print): Ditto.
- * p-valprint.c (pascal_val_print): Ditto.
- * ada-valprint.c (ada_val_print_1): Ditto.
- * f-valprint.c (f_val_print): Ditto.
- * infcmd.c (registers_info): Ditto.
- * m2-valprint.c (m2_val_print): Ditto.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- * m2-valprint.c (print_unbounded_array): Pass
- value_contents_for_printing rather than value_contents, to
- m2_print_array_contents. Also pass in the value.
-
-2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
- (save_gdb_index_command): Switch to .gdb_index version 4.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- * mi/mi-main.c (get_register): Use get_frame_register_value rather
- than frame_register, and always pass a valid value to val_print.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- Centralize printing "<optimized out>".
-
- * valprint.h (val_print_optimized_out): Declare.
- * cp-valprint.c (cp_print_value_fields): Use
- val_print_optimized_out.
- * jv-valprint.c (java_print_value_fields): Ditto.
- * p-valprint.c (pascal_object_print_value_fields): Ditto.
- * printcmd.c (print_formatted): Ditto.
- * valprint.c (valprint_check_validity): Ditto.
- (value_check_printable): Ditto.
- (val_print_optimized_out): New.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- * infcmd.c (default_print_registers_info): Allocate values so to
- never pass a NULL value to val_print.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- * cp-valprint.c (cp_print_value): Treat the 'skip' local as
- boolean. Make sure to always pass a value that matches the
- contents buffer to callees. Preserve `address' for following
- iterations.
- * value.c (value_contents_for_printing_const): New.
- (value_address): Constify value argument.
- * value.h (value_contents_for_printing_const): Declare.
- (value_address): Constify value argument.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- * regcache.c (struct regcache_descr): Rename
- sizeof_raw_register_valid_p field to sizeof_raw_register_status,
- and sizeof_cooked_register_valid_p to
- sizeof_cooked_register_status.
- (init_regcache_descr): Adjust.
- (struct regcache): Rename register_valid_p field to
- register_status.
- (regcache_xmalloc_1, regcache_xfree, regcache_save)
- (do_cooked_read): Adjust.
- (regcache_valid_p): Rename to ...
- (regcache_register_status): ... this. Adjust.
- (regcache_invalidate): Adjust.
- (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
- Adjust.
- (regcache_raw_supply): Adjust. If buf i NULL, mark the register
- as unavailable, not valid.
- (regcache_dump): Adjust.
- * regcache.h (enum register_status): New.
- (regcache_register_status): Declare.
- (regcache_invalidate): Delete declaration.
- * corelow.c (get_core_registers): Adjust.
- * tracepoint.c (tfile_fetch_registers): Adjust.
- * trad-frame.c (REG_VALUE): Rename to ...
- (TF_REG_VALUE): ... this.
- (REG_UNKNOWN): Rename to ...
- (TF_REG_UNKNOWN): ... this.
- (trad_frame_set_value, trad_frame_set_unknown): Adjust.
- * mi/mi-main.c (register_changed_p): Adjust.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- * regcache.c (struct regcache_descr): Remove outdated comment.
- (init_regcache_descr): Remove sizeof_raw_register_valid_p
- overallocate hack.
- (regcache_xmalloc): Rename to ...
- (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
- Allocate the regcache type accordingly.
- (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
- (regcache_xfree): Asser the source is also readonly. Copy sizeof
- cooked registers, not raw.
- (regcache_dup_no_passthrough): Delete.
- (get_thread_arch_regcache): Use regcache_xmalloc_1.
- * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
- mention obsolete write_register_bytes.
- * regcache.h (regcache_dup_no_passthrough): Delete declaration.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- Stop remote_read_bytes from handling partial reads itself.
-
- * remote-fileio.c: Include target.h.
- (remote_fileio_write_bytes): Delete.
- (remote_fileio_func_open, remote_fileio_func_write)
- (remote_fileio_func_rename, remote_fileio_func_unlink): Use
- target_read_memory.
- (remote_fileio_func_stat): Use target_read_memory and
- target_write_memory.
- (remote_fileio_func_gettimeofday): Use target_write_memory.
- (remote_fileio_func_system): Use target_read_memory.
- * remote.c (remote_write_bytes): Make it static.
- (remote_read_bytes): Don't handle partial reads here.
- * remote.h (remote_read_bytes): Delete declaration.
-
-2011-01-25 Pedro Alves <pedro@codesourcery.com>
-
- Simplify XML parsing a bit.
-
- * xml-support.h (gdb_xml_parse_quick): Declare.
- * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
- from gdb_xml_create_parser_and_cleanup, and added `old_chain'
- parameter.
- (gdb_xml_create_parser_and_cleanup): Reimplement on top of
- gdb_xml_create_parser_and_cleanup_1.
- (gdb_xml_parse_quick): New.
- * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
- * osdata.c (osdata_parse): Ditto.
- * remote.c (remote_threads_info): Ditto.
- * solib-target.c (solib_target_parse_libraries): Ditto.
- * xml-syscall.c (syscall_parse_xml): Ditto.
- * xml-tdesc.c (tdesc_parse_xml): Ditto.
-
-2011-01-24 Kevin Buettner <kevinb@redhat.com>
-
- * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
- with remote-mips.o added to gdb_target_obs.
- * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
-
-2011-01-24 Pedro Alves <pedro@codesourcery.com>
-
- * ada-valprint.c (val_print_packed_array_elements): Pass the
- correct struct value to val_print.
- (ada_val_print_1): Ditto.
-
-2011-01-24 Pedro Alves <pedro@codesourcery.com>
-
- Don't lose embedded_offset in printing routines throughout.
-
- * valprint.h (val_print_array_elements): Change prototype.
- * valprint.c (val_print_array_elements): Add `embedded_offset'
- parameter, and adjust to pass it down to val_print, while passing
- `valaddr' or `address' unmodified. Take embedded_offset into
- account when checking repetitions.
- * c-valprint.c (c_val_print): Pass embedded_offset to
- val_print_array_elements instead of adjusting `valaddr' and
- `address'.
- * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
- embedded_offset to val_print_array_elements instead of adjusting
- `valaddr'.
- * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
- * p-valprint.c (pascal_val_print): Pass embedded_offset to
- val_print_array_elements and pascal_object_print_value_fields
- instead of adjusting `valaddr'.
- (pascal_object_print_value_fields): Add `offset' parameter, and
- adjust to use it.
- (pascal_object_print_value): Add `offset' parameter, and adjust to
- use it.
- (pascal_object_print_static_field): Use
- value_contents_for_printing/value_embedded_offset, rather than
- value_contents.
- * ada-valprint.c (val_print_packed_array_elements): Add `offset'
- parameter, and adjust to use it. Use
- value_contents_for_printing/value_embedded_offset, rather than
- value_contents.
- (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
- (ada_val_print_array): Add `offset' parameter, and adjust to use
- it.
- (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
- `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
- Instead work with offsets. Use
- value_contents_for_printing/value_embedded_offset, rather than
- value_contents. Change `defer_val_int' local type to CORE_ADDR,
- and use value_from_pointer to extract a target pointer, rather
- than value_from_longest.
- (print_variant_part): Add `offset' parameter. Replace
- `outer_valaddr' parameter by a new `outer_offset' parameter.
- Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
- (ada_value_print): Use
- value_contents_for_printing/value_embedded_offset, rather than
- value_contents.
- (print_record): Add `offset' parameter, and adjust to pass it
- down.
- (print_field_values): Add `offset' parameter. Replace
- `outer_valaddr' parameter by a new `outer_offset' parameter.
- Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
- Use value_contents_for_printing/value_embedded_offset, rather than
- value_contents.
- * d-valprint.c (dynamic_array_type): Use
- value_contents_for_printing/value_embedded_offset, rather than
- value_contents.
- * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
- Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
- (java_print_value_fields): Take `offset' into account. Don't
- re-adjust `valaddr'. Instead pass down adjusted offsets.
- (java_val_print): Take `embedded_offset' into account. Pass it to
- java_print_value_fields.
- * f-valprint.c (f77_print_array_1): Add `embedded_offset'
- parameter. Don't re-adjust `valaddr' or `address'. Instead pass
- down adjusted offsets.
- (f77_print_array): Add `embedded_offset' parameter. Pass it down.
- (f_val_print): Take `embedded_offset' into account.
-
-2011-01-21 Joel Brobecker <brobecker@adacore.com>
-
- * inflow.c: Include "gdbcmd.h".
- (interactive_mode): New static global, moved here from top.c.
- (show_interactive_mode): New function, moved here from top.c.
- use gdb_has_a_terminal instead of input_from_terminal_p to
- determine the current mode.
- (gdb_has_a_terminal): Add handling of the "iteractive-mode"
- setting.
- (_initialize_inflow): Add the "set/show interactive-mode"
- commands. Moved here from top.c, after having adjusted slightly
- the help text.
- * top.c (interactive_mode, show_interactive_mode): Delete, moved
- to inflow.c.
- (input_from_terminal_p): Remove handling of "interactive-mode"
- setting, moved to infow.c.
- (init_main): Remove creation of the "set/show interactive-mode"
- commands, moved to inflow.c.
-
-2011-01-19 Joel Brobecker <brobecker@adacore.com>
-
- * NEWS: Add entry for native ia64-hpux support.
-
-2011-01-19 Tom Tromey <tromey@redhat.com>
-
- PR mi/8618:
- * thread.c (free_thread): Free 'name'.
- (print_thread_info): Emit thread name. Change CLI output.
- (thread_name_command): New function.
- (do_captured_thread_select): Emit newline.
- (_initialize_thread): Register 'thread name' command.
- * target.h (struct target_ops) <to_thread_name>: New field.
- (target_thread_name): New macro.
- * target.c (update_current_target): Handle to_thread_name.
- * python/py-infthread.c (thpy_get_name): New function.
- (thpy_set_name): Likewise.
- (thread_object_getset): Add "name".
- * linux-nat.c (linux_nat_thread_name): New function.
- (linux_nat_add_target): Set to_thread_name.
- * gdbthread.h (struct thread_info) <name>: New field.
-
-2011-01-18 Joel Brobecker <brobecker@adacore.com>
-
- * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
- (ada_val_print_1): Likewise.
-
-2011-01-18 Joel Brobecker <brobecker@adacore.com>
-
- * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
- upper limit address is not greater than the function end address
- when the upper limit could not be computed using the debugging
- info.
+2012-01-04 Joel Brobecker <brobecker@adacore.com>
-2011-01-17 Tom Tromey <tromey@redhat.com>
+ Copyright year update in most files of the GDB Project.
- * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
- get_regcomp_error.
- * utils.c: Include gdb_regex.h.
- (do_regfree_cleanup): New function.
- (make_regfree_cleanup): Likewise.
- (get_regcomp_error): Likewise.
- * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
+2012-01-04 Joel Brobecker <brobecker@adacore.com>
-2011-01-17 Tom Tromey <tromey@redhat.com>
+ * copyright.sh: Delete.
+ * copyright.py: Rewrite.
- * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
- re_compile_fastmap.
+2012-01-04 Joel Brobecker <brobecker@adacore.com>
-2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
+ * gnulib/extra/update-copyright: New file, imported from gnulib.
- * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
- for internal variables.
- (last_was_structop): New static variable.
- (COMPLETE): New token.
- (field_exp): New rule to group all '.' suffix handling.
- Add mark_struct_expression calls when approriate to be able
- to correctly find fields for completion.
- (yylex): Adapt to handle field completion and set INTVAR when
- required.
+2012-01-04 Joel Brobecker <brobecker@adacore.com>
-2011-01-14 Yao Qi <yao@codesourcery.com>
+ * README (Copyright and License Notices): New section.
- * arm-tdep.c (arm_register_reggroup_p): FPS register is in
- save_reggroup, restore_reggroup and all_reggroup.
+2012-01-03 Tom Tromey <tromey@redhat.com>
-2011-01-14 Joel Brobecker <brobecker@adacore.com>
+ PR python/12533:
+ * python/py-value.c (valpy_dereference, valpy_get_address
+ valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
+ (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
+ (valpy_absolute, valpy_richcompare): Free intermediate values.
- * ada-valprint. (ada_printchar): Use the correct type length
- in call to ada_emit_char.
- * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
+2011-01-03 Joel Brobecker <brobecker@adacore.com>
-2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
+ * ada-lang.c: Reformat the copyright notice.
- * solib-som.h (hpux_major_release): Declare variable here.
- * solib-som.c: Remove <sys/utsname.h> header.
- (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.
- * hppa-hpux-nat.c: Add <sys/utsname.h> include.
- Add "solib-som.h" header.
- (set_hpux_major_release): New function.
- (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
+2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-01-14 Mike Frysinger <vapier@gentoo.org>
+ * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
+ * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
+ (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
+ (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
+ Revert this part of:
+ 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Build gdb directly from *.o files not using libgdb.a.
+ * Makefile.in (COMMON_OBS): Remove solib-target.o.
- * configure.tgt (*-*-uclinux*): Match more Linux os targets
+2012-01-02 Joel Brobecker <brobecker@adacore.com>
-2011-01-14 Joel Brobecker <brobecker@adacore.com>
+ * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
+ gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
+ Reformat the copyright header.
- * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
- new-line at end of warning message.
- (ia64_hpux_store_register): Remove trailing new-line at end of
- error message.
- * ia64-hpux-tdep.c: Rephrase comment.
- * solib-ia64-hpux.c (struct dld_info): Change type of field
- dld_flags from "long long" to ULONGEST.
+2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-01-14 Pedro Alves <pedro@codesourcery.com>
+ Revert this part of:
+ 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Remove the gdbtui binary.
+ * gdb.c (main): Remove args.interpreter_p initialization.
+ * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
+ * main.h (struct captured_main_args): Remove interpreter_p.
- * target.h (deprecated_child_ops): Delete declaration.
- * target.c (deprecated_child_ops): Delete definition.
+2012-01-02 Joel Brobecker <brobecker@adacore.com>
-2011-01-14 Pedro Alves <pedro@codesourcery.com>
+ * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
- * Makefile.in (hpux-thread.o): Delete rule.
- * configure.ac: Don't check for HPUX DCE threads support.
- * configure, config.in: Regenerate.
- * hppa-hpux-nat.c (child_suppress_run): Delete.
- (hppa_hpux_child_can_run): Delete.
- (_initialize_hppa_hpux_nat): Don't override to_can_run.
- * hpux-thread.c: Delete.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- * hpux-thread.c (hpux_pid_to_str): Delete.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- * ada-valprint.c (ada_emit_char): Remove strange code.
- Check that c is <= UCHAR_MAX before passing it to isascii.
- (char_at): Do not assume that TYPE_LEN is either 1 or 2.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- * top.c (input_from_terminal_p): Restrict the use of interactive_mode
- to the case where instream is stdin.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- * ia64-tdep.h (struct regcache): Forward declare.
- (struct ia64_infcall_ops): New struct type.
- (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
- and "infcall_ops".
- * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
- Renames ia64_find_global_pointer.
- (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
- (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
- (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
- methods.
- (ia64_infcall_ops): New static global constant.
- (ia64_gdbarch_init): Set tdep->infcall_ops.
- * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
- (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
- * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
- (ia64_hpux_dummy_code): New static global constant.
- (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
- (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
- (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
- New function.
- (ia64_hpux_infcall_ops): New static global constant.
- (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
- for inferior function calls to work properly on ia64-hpux.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
- * ia64-tdep.h (struct frame_info): forward declaration.
- (struct gdbarch_tdep): Add field size_of_register_frame.
- * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
- to determine the size of the register frame.
- (ia64_size_of_register_frame): New function.
- (ia64_gdbarch_init): Set tdep->size_of_register_frame.
- * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
- (IA64_HPUX_UREG_REASON): New macro.
- (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
- New functions.
- (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
- * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
- (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
- objects.
+2012-01-02 Joel Brobecker <brobecker@adacore.com>
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- Add support for ia64-hpux.
- * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
- ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
-
- * configure.host: Add handling for ia64-hpux hosts. Add associated
- floatformats.
- * configure.tgt: Add handling for ia64-hpux targets.
- * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
- (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
- (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- [ttrace] Compute thread list immediately after attach.
- * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
- New subprogram.
- (inf_ttrace_attach): Use it.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
- if we could not determine the frame's function address. Instead,
- use the frame's PC, and then continue.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
- not already defined.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- * ia64-tdep.c (ia64_struct_type_p): New function.
- (ia64_extract_return_value): Handle integral values that are
- less than 8 bytes long.
- (ia64_push_dummy_call): Likewise.
-
-2011-01-13 Joel Brobecker <brobecker@adacore.com>
-
- * ia64-tdep.c (floatformat_ia64_ext_little): Renames
- floatformat_ia64_ext.
- (floatformat_ia64_ext_big): New static const.
- (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
-
-2011-01-12 Tom Tromey <tromey@redhat.com>
-
- * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
- messages.
- * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
- (mi_cmd_thread_list_ids): Likewise.
- (mi_cmd_data_list_changed_registers): Likewise.
- (mi_cmd_data_list_register_values): Likewise.
- (mi_cmd_data_write_register_values): Likewise.
- (mi_cmd_data_evaluate_expression): Likewise.
- (mi_cmd_data_read_memory): Likewise.
- (mi_cmd_data_read_memory_bytes): Likewise.
- (mi_cmd_data_write_memory): Likewise.
- (mi_cmd_enable_timings): Likewise.
- * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
- * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
- (mi_cmd_var_delete): Likewise.
- (mi_cmd_var_set_format): Likewise.
- (mi_cmd_var_show_format): Likewise.
- (mi_cmd_var_info_num_children): Likewise.
- (mi_cmd_var_list_children): Likewise.
- (mi_cmd_var_info_type): Likewise.
- (mi_cmd_var_info_expression): Likewise.
- (mi_cmd_var_show_attributes): Likewise.
- (mi_cmd_var_assign): Likewise.
- (mi_cmd_var_update): Likewise.
- (mi_cmd_enable_pretty_printing): Likewise.
- (mi_cmd_var_set_update_range): Likewise.
- * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
- messages.
- (mi_cmd_target_file_put): Likewise.
- (mi_cmd_target_file_delete): Likewise.
- * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
- messages.
- (mi_cmd_stack_info_depth): Likewise.
- (mi_cmd_stack_list_locals): Likewise.
- (mi_cmd_stack_list_args): Likewise.
- (mi_cmd_stack_select_frame): Likewise.
- (mi_cmd_stack_select_frame): Likewise.
- (mi_cmd_stack_info_frame): Likewise.
- * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
- messages.
- (mi_cmd_file_list_exec_source_files): Likewise.
- * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
- (mi_cmd_env_cd): Likewise.
- (mi_cmd_env_path): Likewise.
- (mi_cmd_env_dir): Likewise.
- (mi_cmd_inferior_tty_show): Likewise.
- * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
- * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
- (mi_cmd_break_watch): Likewise.
-
-2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
- (ppc_linux_insert_hw_breakpoint): Likewise.
- (ppc_linux_remove_hw_breakpoint): Likewise.
- (ppc_linux_insert_watchpoint): Likewise.
-
-2011-01-12 Andrew Burgess <aburgess@broadcom.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
+ * top.c (print_gdb_version): Update copyright year.
- PR fortran/11104 and DWARF unbound arrays detection.
- * dwarf2read.c (read_subrange_type): Set zero length on unspecified
- upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
- unspecified upper bound.
- * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
- variables array_size_array, tmp_type and offset_item. New variable
- array. Remove call to f77_get_upperbound. New variables array_type
- and index. Call value_subscripted_rvalue for each dimenasion. Remove
- the final call to deprecated_set_value_type.
-
-2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- 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
- 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,
- 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
- remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
- in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
- the end, remove set_value_lazy there.
- * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
- instead of allocate_value and set_value_lazy when possible.
- * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
- * value.c (allocate_computed_value): Use allocate_value_lazy instead
- of allocate_value and set_value_lazy.
- (value_from_contents_and_address): Use allocate_value_lazy instead of
- allocate_value and set_value_lazy when possible.
-
-2011-01-12 Andrew Burgess <aburgess@broadcom.com>
-
- * disasm.c (dump_insns): Support dumping opcodes for MI.
- * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
- dumping of instruction opcodes.
-
-2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
-
- * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
- appropiately.
-
-2011-01-11 Tom Tromey <tromey@redhat.com>
-
- * thread.c (do_captured_thread_select): Emit newline before
- printing frame.
-
-2011-01-11 Michael Snyder <msnyder@vmware.com>
-
- * s390-tdep.c: Comment cleanup, mostly periods and spaces.
- * score-tdep.c: Ditto.
- * score-tdep.h: Ditto.
- * ser-base.c: Ditto.
- * ser-go32.c: Ditto.
- * serial.c: Ditto.
- * serial.h: Ditto.
- * ser-mingw.c: Ditto.
- * ser-pipe.c: Ditto.
- * ser-tcp.c: Ditto.
- * ser-unix.c: Ditto.
- * sh64-tdep.c: Ditto.
- * shnbsd-nat.c: Ditto.
- * sh-tdep.c: Ditto.
- * sh-tdep.h: Ditto.
- * solib.c: Ditto.
- * solib-darwin.c: Ditto.
- * solib-frv.c: Ditto.
- * solib.h: Ditto.
- * solib-irix.c: Ditto.
- * solib-osf.c: Ditto.
- * solib-pa64.c: Ditto.
- * solib-som.c: Ditto.
- * solib-spu.c: Ditto.
- * solib-sunos.c: Ditto.
- * solib-svr4.c: Ditto.
- * solist.h: Ditto.
- * sol-thread.c: Ditto.
- * somread.c: Ditto.
- * source.c: Ditto.
- * source.h: Ditto.
- * sparc64-linux-tdep.c: Ditto.
- * sparc64-tdep.c: Ditto.
- * sparc-linux-nat.c: Ditto.
- * sparc-linux-tdep.c: Ditto.
- * sparc-sol2-nat.c: Ditto.
- * sparc-sol2-tdep.c: Ditto.
- * sparc-tdep.c: Ditto.
- * sparc-tdep.h: Ditto.
- * spu-tdep.c: Ditto.
- * stabsread.c: Ditto.
- * stabsread.h: Ditto.
- * stack.c: Ditto.
- * symfile.c: Ditto.
- * symfile.h: Ditto.
- * symmisc.c: Ditto.
- * symtab.c: Ditto.
- * symtab.h: Ditto.
- * target.c: Ditto.
- * target-descriptions.c: Ditto.
- * target-descriptions.h: Ditto.
- * target.h: Ditto.
- * target-memory.c: Ditto.
- * terminal.h: Ditto.
- * thread.c: Ditto.
- * top.c: Ditto.
- * tracepoint.c: Ditto.
- * tracepoint.h: Ditto.
- * trad-frame.h: Ditto.
- * typeprint.c: Ditto.
-
-2011-01-11 Michael Snyder <msnyder@vmware.com>
-
- * ui-file.c: Comment cleanup, mostly periods and spaces.
- * ui-file.h: Ditto.
- * ui-out.c: Ditto.
- * ui-out.h: Ditto.
- * utils.c: Ditto.
- * v850-tdep.c: Ditto.
- * valarith.c: Ditto.
- * valops.c: Ditto.
- * valprint.c: Ditto.
- * valprint.h: Ditto.
- * value.c: Ditto.
- * value.h: Ditto.
- * varobj.c: Ditto.
- * varobj.h: Ditto.
- * vax-tdep.c: Ditto.
- * vec.c: Ditto.
- * vec.h: Ditto.
- * version.h: Ditto.
- * windows-nat.c: Ditto.
- * windows-tdep.c: Ditto.
- * xcoffread.c: Ditto.
- * xcoffsolib.c: Ditto.
- * xml-support.c: Ditto.
- * xstormy16-tdep.c: Ditto.
- * xtensa-tdep.c: Ditto.
- * xtensa-tdep.h: Ditto.
-
-2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * breakpoint.c (resources_needed_watchpoint): Fix indentation.
- * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
-
-2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
- Thiago Jung Bauermann <bauerman@br.ibm.com>
+2012-01-02 Yao Qi <yao@codesourcery.com>
- Implement support for PowerPC BookE ranged watchpoints.
- * breakpoint.h
- (struct breakpoint_ops) <resources_needed>: New method.
- Initialize to NULL in all existing breakpoint_ops instances.
- (struct breakpoint) <exact>: New field.
- (target_exact_watchpoints): Declare external global.
- * breakpoint.c (target_exact_watchpoints): New global flag.
- (update_watchpoint): Set b->type to bp_hardware_watchpoint and
- b->enable_state to bp_enabled before calling
- hw_watchpoint_used_count.
- (hw_watchpoint_used_count): Iterate over all bp_locations in a
- watchpoint. Call breakpoint's breakpoint_ops.resources_needed
- if available.
- (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
- if the watchpoint is exact.
- (resources_needed_watchpoint): New function.
- (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
- (watch_command_1): Set b->exact if the user asked for an exact
- watchpoint and one can be set.
- (can_use_hardware_watchpoint): Add exact_watchpoints argument.
- Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
- the user asks for an exact watchpoint and one can be set. Return
- number of needed debug registers to watch the expression.
- * gdbtypes.c (is_scalar_type): New function, based on
- valprint.c:scalar_type_p.
- (is_scalar_type_recursive): New function.
- * gdbtypes.h (is_scalar_type_recursive): Declare.
- * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
- handle regions when ranged watchpoints are available.
- (create_watchpoint_request): New function.
- (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
- create_watchpoint_request.
- * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
- (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
- `set powerpc' and `show powerpc' commands.
- * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
- Mention documentation comment in the target macro.
- (target_region_ok_for_hw_watchpoint): Document return value.
-
-2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- * breakpoint.c (update_watchpoint): Decide on using a software or
- hardware watchpoint after the bp_locations are created.
-
-2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
-
- Convert hardware watchpoints to use breakpoint_ops.
- * breakpoint.h (breakpoint_ops) <insert>: Rename to...
- <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...
- <remove_location>: ... this. Accept pointer to struct bp_location
- instead of pointer to struct breakpoint. Adapt all implementations.
- * breakpoint.c (insert_catchpoint): Delete function.
- (insert_bp_location): Call the watchpoint or catchpoint's
- breakpoint_ops.insert method.
- (remove_breakpoint_1): Call the watchpoint or catchpoint's
- breakpoint_ops.remove method.
- (insert_watchpoint, remove_watchpoint): New functions.
- (watchpoint_breakpoint_ops): New structure.
- (watch_command_1): Initialize the OPS field.
- * inf-child.c (inf_child_insert_fork_catchpoint)
- (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
- (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
- (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
- Delete functions.
- (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
- to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
- to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
- to_remove_exec_catchpoint and to_set_syscall_catchpoint.
- * target.c (update_current_target): Change default implementation of
- to_insert_fork_catchpoint, to_remove_fork_catchpoint,
- to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
- to_insert_exec_catchpoint, to_remove_exec_catchpoint and
- to_set_syscall_catchpoint to return_one.
- (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
- (debug_to_insert_exec_catchpoint): Report return value.
- * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
- (to_insert_exec_catchpoint): Change declaration to return int instead
- of void.
-
-2011-01-11 Michael Snyder <msnyder@vmware.com>
-
- * arm-tdep.c: Internationalization.
- * c-lang.c: Ditto.
- * charset.c: Ditto.
- * fork-child.c: Ditto.
- * nto-procfs.c: Ditto.
- * ppc-sysv-tdep.c: Ditto.
- * procfs.c: Ditto.
- * remote-mips.c: Ditto.
- * remote.c: Ditto.
- * rs6000-nat.c: Ditto.
- * rs6000-tdep.c: Ditto.
- * target.c: Ditto.
- * valops.c: Ditto.
- * value.c: Ditto.
- * xml-support.c: Ditto.
- * mi/mi-cmd-break.c: Ditto.
- * mi/mi-cmd-var.c: Ditto.
- * mi/mi-interp.c: Ditto.
- * mi/mi-main.c: Ditto.
+ * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
-2011-01-11 Andrew Burgess <aburgess@broadcom.com>
-
- * remote-sim.c (gdbsim_store_register): Update API to
- sim_store_register to check more error conditions.
-
-2011-01-10 Michael Snyder <msnyder@vmware.com>
-
- * nto-procfs.c: Comment cleanup, mostly periods and spaces.
- * nto-tdep.c: Ditto.
- * nto-tdep.h: Ditto.
- * objc-exp.y: Ditto.
- * objc-lang.c: Ditto.
- * objfiles.c: Ditto.
- * objfiles.h: Ditto.
- * observer.c: Ditto.
- * opencl-lang.c: Ditto.
- * osabi.c: Ditto.
- * parse.c: Ditto.
- * parser-defs.h: Ditto.
- * p-exp.y: Ditto.
- * p-lang.c: Ditto.
- * posix-hdep.c: Ditto.
- * ppcbug-rom.c: Ditto.
- * ppc-linux-nat.c: Ditto.
- * ppc-linux-tdep.c: Ditto.
- * ppc-linux-tdep.h: Ditto.
- * ppcnbsd-tdep.c: Ditto.
- * ppcobsd-tdep.c: Ditto.
- * ppcobsd-tdep.h: Ditto.
- * ppc-sysv-tdep.c: Ditto.
- * ppc-tdep.h: Ditto.
- * printcmd.c: Ditto.
- * proc-abi.c: Ditto.
- * proc-flags.c: Ditto.
- * procfs.c: Ditto.
- * proc-utils.h: Ditto.
- * progspace.h: Ditto.
- * prologue-value.c: Ditto.
- * prologue-value.h: Ditto.
- * psympriv.h: Ditto.
- * psymtab.c: Ditto.
- * p-typeprint.c: Ditto.
- * p-valprint.c: Ditto.
- * ravenscar-sparc-thread.c: Ditto.
- * ravenscar-thread.c: Ditto.
- * ravenscar-thread.h: Ditto.
- * record.c: Ditto.
- * regcache.c: Ditto.
- * regcache.h: Ditto.
- * remote.c: Ditto.
- * remote-fileio.c: Ditto.
- * remote-fileio.h: Ditto.
- * remote.h: Ditto.
- * remote-m32r-sdi.c: Ditto.
- * remote-mips.c: Ditto.
- * remote-sim.c: Ditto.
- * rs6000-aix-tdep.c: Ditto.
- * rs6000-nat.c: Ditto.
- * rs6000-tdep.c: Ditto.
-
-2011-01-10 Michael Snyder <msnyder@vmware.com>
-
- * charset.c (validate): Internationalization.
- * coffread.c (read_one_sym): Ditto.
- * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
- * h8300-tdep.c (H8300_extract_return_value): Ditto.
- * inflow.c (new_tty): Ditto.
- * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
- * m32c-tdep.c (m32c_return_value): Ditto.
- * mep-tdep.c (mep_store_return_value): Ditto.
- * score-tdep.c (score7_fetch_insn): Ditto.
- * ser-mingw.c (pipe_windows_open): Ditto.
- * sh64-tdep.c (sh64_extract_return_value): Ditto.
- * spu-tdep.c (spu_register_type): Ditto.
- * tracepoint.c (trace_find_command): Ditto.
- * valarith.c (value_pos): Ditto.
-
-2011-01-10 Joel Brobecker <brobecker@adacore.com>
-
- * ada-valprint.c (printstr): Minor comment reformatting.
-
-2011-01-08 Michael Snyder <msnyder@vmware.com>
-
- * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
- markup.
-
-2011-01-08 Michael Snyder <msnyder@vmware.com>
-
- * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
- * hppa-hpux-tdep.c: Ditto.
- * hppa-linux-nat.c: Ditto.
- * hppa-linux-tdep.c: Ditto.
- * hppanbsd-tdep.c: Ditto.
- * hppa-tdep.c: Ditto.
- * hppa-tdep.h: Ditto.
- * hpux-thread.c: Ditto.
- * i386-cygwin-tdep.c: Ditto.
- * i386-darwin-nat.c: Ditto.
- * i386gnu-nat.c: Ditto.
- * i386-linux-nat.c: Ditto.
- * i386-linux-tdep.c: Ditto.
- * i386-nat.c: Ditto.
- * i386-nat.h: Ditto.
- * i386nbsd-tdep.c: Ditto.
- * i386-sol2-nat.c: Ditto.
- * i386-stub.c: Ditto.
- * i386-tdep.c: Ditto.
- * i386-tdep.h: Ditto.
- * i387-tdep.c: Ditto.
- * ia64-linux-nat.c: Ditto.
- * ia64-linux-tdep.c: Ditto.
- * ia64-tdep.c: Ditto.
- * infcall.c: Ditto.
- * infcall.h: Ditto.
- * infcmd.c: Ditto.
- * inferior.c: Ditto.
- * inferior.h: Ditto.
- * infloop.c: Ditto.
- * inflow.c: Ditto.
- * infrun.c: Ditto.
- * interps.c: Ditto.
- * interps.h: Ditto.
- * iq2000-tdep.c: Ditto.
- * irix5-nat.c: Ditto.
- * jit.c: Ditto.
- * jit.h: Ditto.
- * jv-exp.y: Ditto.
- * jv-lang.c: Ditto.
- * jv-lang.h: Ditto.
- * jv-typeprint.c: Ditto.
- * jv-valprint.c: Ditto.
- * language.c: Ditto.
- * language.h: Ditto.
- * linespec.c: Ditto.
- * linux-fork.c: Ditto.
- * linux-nat.c: Ditto.
- * linux-thread-db.c: Ditto.
- * lm32-tdep.c: Ditto.
-
-2011-01-08 Michael Snyder <msnyder@vmware.com>
-
- * m2-exp.y: Comment cleanup, mostly periods and spaces.
- * m2-lang.c: Ditto.
- * m2-typeprint.c: Ditto.
- * m2-valprint.c: Ditto.
- * m32c-tdep.c: Ditto.
- * m32r-linux-nat.c: Ditto.
- * m32r-rom.c: Ditto.
- * m32r-tdep.c: Ditto.
- * m32r-tdep.h: Ditto.
- * m68hc11-tdep.c: Ditto.
- * m58klinux-nat.c: Ditto.
- * m68k-tdep.c: Ditto.
- * m88k-tdep.c: Ditto.
- * m88k-tdep.h: Ditto.
- * machoread.c: Ditto.
- * macrocmd.c: Ditto.
- * macroexp.c: Ditto.
- * macrotab.c: Ditto.
- * main.c: Ditto.
- * maint.c: Ditto.
- * mdebugread.c: Ditto.
- * mdebugread.h: Ditto.
- * memattr.c: Ditto.
- * memattr.h: Ditto.
- * memory-map.h: Ditto.
- * mep-tdep.c: Ditto.
- * microblaze-rom.c: Ditto.
- * microblaze-tdep.c: Ditto.
- * minsyms.c: Ditto.
- * mips-irix-tdep.c: Ditto.
- * mips-linux-nat.c: Ditto.
- * mips-linux-tdep.c: Ditto.
- * mips-linux-tdep.h: Ditto.
- * mipsnbsd-nat.c: Ditto.
- * mipsnbsd-tdep.c: Ditto.
- * mipsread.c: Ditto.
- * mips-tdep.c: Ditto.
- * mips-tdep.h: Ditto.
- * mn10300-linux-tdep.c: Ditto.
- * mn10300-tdep.c: Ditto.
- * mn10300-tdep.h: Ditto.
- * monitor.c: Ditto.
- * monitor.h: Ditto.
- * moxie-tdep.c: Ditto.
- * moxie-tdep.h: Ditto.
- * mt-tdep.c: Ditto.
-
-2011-01-08 Mike Frysinger <vapier@gentoo.org>
-
- * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
-
-2011-01-08 Robert Millan <rmh@gnu.org>
-
- * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
-
-2011-01-07 Michael Snyder <msnyder@vmware.com>
-
- * charset.c (_initialize_charset): Fix typo in string.
-
-2011-01-07 Michael Snyder <msnyder@vmware.com>
-
- * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
- for i18n.
- * 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.
-
-2011-01-07 Michael Snyder <msnyder@vmware.com>
-
- * ada-lang.c: Comment cleanup, mostly periods and spaces.
- * ada-lang.h: Ditto.
- * ada-tasks.c: Ditto.
- * ada-valprint.c: Ditto.
- * aix-threads.c: Ditto.
- * alpha-linux-nat.c: Ditto.
- * alpha-linux-tdep.c: Ditto.
- * alpha-mdebug-tdep.c: Ditto.
- * alpha-nat.c: Ditto.
- * alpha-osf1-tdep.c: Ditto.
- * alpha-tdep.c: Ditto.
- * alphabsd-nat.c: Ditto.
- * alphabsd-tdep.c: Ditto.
- * amd64-darwin-tdep.c: Ditto.
- * amd64-linux-nat.c: Ditto.
- * amd64-linux-tdep.c: Ditto.
- * amd64-sol2-tdep.c: Ditto.
- * amd64-tdep.c: Ditto.
- * amd64-fbsd-tdep.c: Ditto.
- * amd64-nbsd-tdep.c: Ditto.
- * amd64-obsd-tdep.c: Ditto.
- * amd64-linux-nat.c: Ditto.
- * amd64-linux-tdep.c: Ditto.
- * arm-tdep.c: Ditto.
- * arm-tdep.h: Ditto.
- * armnbsd-nat.c: Ditto.
- * avr-tdep.c: Ditto.
- * bfin-tdep.c: Ditto.
- * bsd-kvm.c: Ditto.
- * c-typeprintc: Ditto.
- * c-valprint.c: Ditto.
- * coff-pe-read.h: Ditto.
- * coffreead.c: Ditto.
- * cris-tdep.c: Ditto.
- * d-lang.c: Ditto.
- * darwin-nat-info.c: Ditto.
- * darwin-nat.c: Ditto.
- * dbug-rom.c: Ditto.
- * dbxread.c: Ditto.
- * dcache.c: Ditto.
- * dcache.h: Ditto.
- * dec-thread.c: Ditto.
- * defs.h: Ditto.
- * demangle.c: Ditto.
- * dicos-tdep.c: Ditto.
- * dictionary.c: Ditto.
- * dictionary.h: Ditto.
- * dink32-rom.c: Ditto.
- * disasm.c: Ditto.
- * doublest.c: Ditto.
- * dsrec.c: Ditto.
- * dummy-frame.c: Ditto.
- * dwarf2-frame.c: Ditto.
- * dwarf2expr.c: Ditto.
- * dwarf2loc.c: Ditto.
- * dwarf2read.c: Ditto.
- * elfread.c: Ditto.
- * environ.c: Ditto.
- * eval.c: Ditto.
- * event-top.h: Ditto.
- * exceptions.c: Ditto.
- * exceptions.h: Ditto.
- * exec.c: Ditto.
- * expprint.c: Ditto.
- * expression.h: Ditto.
- * f-exp.y: Ditto.
- * f-lang.c: Ditto.
- * f-lang.h: Ditto.
- * f-typeprint.c: Ditto.
- * f-valprint.c: Ditto.
- * fbsd-nat.c: Ditto.
- * findvar.c: Ditto.
- * fork-child.c: Ditto.
- * frame.c: Ditto.
- * frame.h: Ditto.
- * frv-linux-tdep.c: Ditto.
- * frv-tdep.c: Ditto.
- * gcore.c: Ditto.
- * gdb-stabs.h: Ditto.
- * gdb_assert.h: Ditto.
- * gdb_string.h: Ditto.
- * gdb_thread_db.h: Ditto.
- * gdb_wait.h: Ditto.
- * gdbarch.sh: Ditto.
- * gdbcore.h: Ditto.
- * gdbthread.h: Ditto.
- * gdbtypes.c: Ditto.
- * gdbtypes.h: Ditto.
- * gnu-nat.c: Ditto.
- * gnu-nat.h: Ditto.
- * gnu-v2-abi.c: Ditto.
- * gnu-v3-abi.c: Ditto.
- * go32-nat.c: Ditto.
- * gdbarch.c: Regenerate.
- * gdbarch.h: Regenerate.
+2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Joel Brobecker <brobecker@adacore.com>
-2011-01-07 Michael Snyder <msnyder@vmware.com>
+ Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
+ * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
+ 3 times.
+ * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
+ fall through into AT_ENTRY_POINT.
+ (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
+ DUMMY_ADDR with it.
+ * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
+ PPC_INSN_SIZE skip to 3 times.
- * ax-gdb.c: Adjust some long output strings.
- * breakpoint.c: Ditto.
- * charset.c: Ditto.
- * cp-abi.c: Ditto.
- * infcall.c: Ditto.
- * infrun.c: Ditto.
- * linux-nat.c: Ditto.
- * solib-pa64.c: Ditto.
- * solib-som.c: Ditto.
+2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-01-06 Tom Tromey <tromey@redhat.com>
+ * amd64-linux-nat.c (update_debug_registers_callback): New comment on
+ the return value.
+ * i386-linux-nat.c (update_debug_registers_callback): Likewise.
- PR python/12367:
- * NEWS: Add item.
- * python/python.c (GdbMethods): Add "newest_frame" method.
- * python/python-internal.h (gdbpy_newest_frame): Declare.
- * python/py-frame.c (gdbpy_newest_frame): New function.
-
-2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
-
- * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
- * jit.c (jit_debug): New variable.
- (show_jit_debug): New function.
- (struct target_buffer): Use ULONGEST.
- (bfd_open_from_target_memory): Likewise.
- (jit_register_code, jit_inferior_init): Add debug output.
- (_initialize_jit): Register "debug jit" command.
-
-2011-01-06 Tom Tromey <tromey@redhat.com>
-
- * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
- * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
- and ARCH_FRAME.
-
-2011-01-06 Tom Tromey <tromey@redhat.com>
-
- * python/py-frame.c (frapy_block): Use get_frame_block.
-
-2011-01-06 Joel Brobecker <brobecker@adacore.com>
-
- Do not stop on SIGPRIO signals by default
- * infrun.c (_initialize_infrun): Unset signal_stop and
- signal_print for TARGET_SIGNAL_PRIO.
-
-2011-01-06 Joel Brobecker <brobecker@adacore.com>
-
- * ada-tasks.c: Fix style violation in comment.
-
-2011-01-06 Joel Brobecker <brobecker@adacore.com>
-
- * linespec.c (decode_compound, find_method): Remove trailing \n
- at end of error string.
- * solib-irix.c (irix_current_sos): Likewise.
- * varobj.c (uninstall_variable): Likewise.
-
-2011-01-06 Joel Brobecker <brobecker@adacore.com>
-
- * copyright.py: New script.
- * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
- Launch emacs without exec'ing. Call copyright.py afterwards.
-
-2011-01-05 Michael Snyder <msnyder@vmware.com>
-
- * addrmap.c: Shorten lines of >= 80 columns.
- * arch-utils.c: Ditto.
- * arch-utils.h: Ditto.
- * ax-gdb.c: Ditto.
- * ax-general.c: Ditto.
- * bcache.c: Ditto.
- * blockframe.c: Ditto.
- * breakpoint.c: Ditto.
- * buildsym.c: Ditto.
- * c-lang.c: Ditto.
- * c-typeprint.c: Ditto.
- * charset.c: Ditto.
- * coffread.c: Ditto.
- * command.h: Ditto.
- * corelow.c: Ditto.
- * cp-abi.c: Ditto.
- * cp-namespace.c: Ditto.
- * cp-support.c: Ditto.
- * dbug-rom.c: Ditto.
- * dbxread.c: Ditto.
- * defs.h: Ditto.
- * dfp.c: Ditto.
- * dfp.h: Ditto.
- * dictionary.c: Ditto.
- * disasm.c: Ditto.
- * doublest.c: Ditto.
- * dwarf2-frame.c: Ditto.
- * dwarf2expr.c: Ditto.
- * dwarf2loc.c: Ditto.
- * dwarf2read.c: Ditto.
- * elfread.c: Ditto.
- * eval.c: Ditto.
- * event-loop.c: Ditto.
- * event-loop.h: Ditto.
- * exceptions.h: Ditto.
- * exec.c: Ditto.
- * expprint.c: Ditto.
- * expression.h: Ditto.
- * f-lang.c: Ditto.
- * f-valprint.c: Ditto.
- * findcmd.c: Ditto.
- * frame-base.c: Ditto.
- * frame-unwind.c: Ditto.
- * frame-unwind.h: Ditto.
- * frame.c: Ditto.
- * frame.h: Ditto.
- * gcore.c: Ditto.
- * gdb-stabs.h: Ditto.
- * gdb_assert.h: Ditto.
- * gdb_dirent.h: Ditto.
- * gdb_obstack.h: Ditto.
- * gdbcore.h: Ditto.
- * gdbtypes.c: Ditto.
- * gdbtypes.h: Ditto.
- * inf-ttrace.c: Ditto.
- * infcall.c: Ditto.
- * infcmd.c: Ditto.
- * inflow.c: Ditto.
- * infrun.c: Ditto.
- * inline-frame.h: Ditto.
- * language.c: Ditto.
- * language.h: Ditto.
- * libunwind-frame.c: Ditto.
- * libunwind-frame.h: Ditto.
- * linespec.c: Ditto.
- * linux-nat.c: Ditto.
- * linux-nat.h: Ditto.
- * linux-thread-db.c: Ditto.
- * machoread.c: Ditto.
- * macroexp.c: Ditto.
- * macrotab.c: Ditto.
- * main.c: Ditto.
- * maint.c: Ditto.
- * mdebugread.c: Ditto.
- * memattr.c: Ditto.
- * minsyms.c: Ditto.
- * monitor.c: Ditto.
- * monitor.h: Ditto.
- * objfiles.c: Ditto.
- * objfiles.h: Ditto.
- * osabi.c: Ditto.
- * p-typeprint.c: Ditto.
- * p-valprint.c: Ditto.
- * parse.c: Ditto.
- * printcmd.c: Ditto.
- * proc-events.c: Ditto.
- * procfs.c: Ditto.
- * progspace.c: Ditto.
- * progspace.h: Ditto.
- * psympriv.h: Ditto.
- * psymtab.c: Ditto.
- * record.c: Ditto.
- * regcache.c: Ditto.
- * regcache.h: Ditto.
- * remote-fileio.c: Ditto.
- * remote.c: Ditto.
- * ser-mingw.c: Ditto.
- * ser-tcp.c: Ditto.
- * ser-unix.c: Ditto.
- * serial.c: Ditto.
- * serial.h: Ditto.
- * solib-frv.c: Ditto.
- * solib-irix.c: Ditto.
- * solib-osf.c: Ditto.
- * solib-pa64.c: Ditto.
- * solib-som.c: Ditto.
- * solib-sunos.c: Ditto.
- * solib-svr4.c: Ditto.
- * solib-target.c: Ditto.
- * solib.c: Ditto.
- * somread.c: Ditto.
- * source.c: Ditto.
- * stabsread.c: Ditto.
- * stabsread.c: Ditto.
- * stack.c: Ditto.
- * stack.h: Ditto.
- * symfile-mem.c: Ditto.
- * symfile.c: Ditto.
- * symfile.h: Ditto.
- * symmisc.c: Ditto.
- * symtab.c: Ditto.
- * symtab.h: Ditto.
- * target-descriptions.c: Ditto.
- * target-memory.c: Ditto.
- * target.c: Ditto.
- * target.h: Ditto.
- * terminal.h: Ditto.
- * thread.c: Ditto.
- * top.c: Ditto.
- * tracepoint.c: Ditto.
- * tracepoint.h: Ditto.
- * ui-file.c: Ditto.
- * ui-file.h: Ditto.
- * ui-out.h: Ditto.
- * user-regs.c: Ditto.
- * user-regs.h: Ditto.
- * utils.c: Ditto.
- * valarith.c: Ditto.
- * valops.c: Ditto.
- * valprint.c: Ditto.
- * valprint.h: Ditto.
- * value.c: Ditto.
- * varobj.c: Ditto.
- * varobj.h: Ditto.
- * vec.h: Ditto.
- * xcoffread.c: Ditto.
- * xcoffsolib.c: Ditto.
- * xcoffsolib.h: Ditto.
- * xml-syscall.c: Ditto.
- * xml-tdesc.c: Ditto.
-
-2011-01-05 Michael Snyder <msnyder@vmware.com>
-
- * cli/cli-cmds.c: Shorten lines of >= 80 columns.
- * cli/cli-decode.c: Ditto.
- * cli/cli-dump.c: Ditto.
- * cli/cli-logging.c: Ditto.
- * cli/cli-script.c: Ditto.
- * cli/cli-setshow.c: Ditto.
- * common/signals.c: Ditto.
- * mi/mi-cmd-break.c: Ditto.
- * mi/mi-cmd-disas.c: Ditto.
- * mi/mi-cmd-stack.c: Ditto.
- * mi/mi-cmd-var.c: Ditto.
- * mi/mi-cmds.c: Ditto.
- * mi/mi-common.h: Ditto.
- * mi/mi-console.c: Ditto.
- * mi/mi-interp.c: Ditto.
- * mi/mi-main.c: Ditto.
- * osf-share/cma_attr.c: Ditto.
- * osf-share/cma_deb_core.h: Ditto.
- * osf-share/cma_debug_client.h: Ditto.
- * osf-share/cma_handle.h: Ditto.
- * osf-share/cma_mutex.h: Ditto.
- * osf-share/cma_stack_int.h: Ditto.
- * osf-share/cma_tcb_defs.h: Ditto.
- * python/py-auto-load.c: Ditto.
- * python/py-breakpoint.c: Ditto.
- * python/py-cmd.c: Ditto.
- * python/py-frame.c: Ditto.
- * python/py-objfile.c: Ditto.
- * python/py-param.c: Ditto.
- * python/py-progspace.c: Ditto.
- * python/py-symbol.c: Ditto.
- * python/py-value.c: Ditto.
- * python/python-internal.h: Ditto.
- * python/python.c: Ditto.
- * tui/tui-data.c: Ditto.
- * tui/tui-disasm.c: Ditto.
- * tui/tui-hooks.c: Ditto.
- * tui/tui-io.c: Ditto.
- * tui/tui-layout.c: Ditto.
- * tui/tui-regs.c: Ditto.
- * tui/tui-source.c: Ditto.
- * tui/tui-stack.c: Ditto.
- * tui/tui-win.c: Ditto.
- * tui/tui-windata.c: Ditto.
- * tui/tui-winsource.c: Ditto.
-
-2011-01-05 Joel Brobecker <brobecker@adacore.com>
-
- * configure.ac, gdb.1: Copyright year update.
-
-2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
- this_pc_in_block, morestack_msym and morestack_name. Check for
- "__morestack" minimal symbol there.
+2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-01-03 Joel Brobecker <brobecker@adacore.com>
+ Build gdb directly from *.o files not using libgdb.a.
+ * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
+ (COMMON_OBS): Remove solib-target.o.
+ (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
+ (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
+ (LIBGDB_OBS, libgdb.a): Move it above.
+ * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
+ (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
+ (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
+ (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
+ (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
+ (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
+ (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
+ (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
+ (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
+ (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
+ (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
+ (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
+ (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
+ (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
+ (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
+ (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
+ (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
+ (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
+ (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
+ (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
+ (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
+ (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
+ (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
+ (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
+ (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
+ (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
+ (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
- * symfile.c (find_sym_fns): Add call to dont_repeat.
+2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-2011-01-01 Joel Brobecker <brobecker@adacore.com>
+ Remove the gdbtui binary.
+ * .gitignore (/gdbtui): Remove.
+ * Makefile.in (TUI): Remove.
+ (SUBDIR_TUI_OBS): Remove tui-main.o.
+ (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
+ (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
+ (tui-main.o): Remove.
+ (all_object_files): Remove tui-main.o.
+ * NEWS: New note for the gdbtui removal.
+ * configure: Rebuilt.
+ * configure.ac: No longer add all-tui, clean-tui, install-tui and
+ uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
+ CONFIG_UNINSTALL respectively.
+ * gdb.c (main): Remove args.interpreter_p initialization.
+ * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
+ * main.h (struct captured_main_args): Remove interpreter_p.
+ * tui/tui-main.c: Remove.
+
+2012-01-01 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
+ (dwarf2_physname, read_import_statement): Ditto.
+ (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
+ (process_structure_scope read_subroutine_type): Ditto.
+ (read_typedef, load_partial_dies, read_partial_die): Ditto.
+ (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
+ (dwarf2_fetch_die_location_block): Ditto.
+ (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
+
+ * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
+ All callers updated.
+ (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
+ (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
+ (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
- Copyright year update in most files (performed by copyright.sh).
+ * dwarf2read.c (load_cu): Move assert to more useful location.
-2011-01-01 Joel Brobecker <brobecker@adacore.com>
+ * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
+ All callers updated.
- * top.c (print_gdb_version): Update copyright year in version output.
+ * dwarf2read.c (dwarf2_per_objfile): Add comment.
+ (dwarf2_elf_names): Minor reformat.
+ (dwarf2_per_cu_data): Tweak comment.
+ (dwarf2_read_section): Fix comment.
+ (create_all_comp_units): Fix comment.
+ (load_full_comp_unit): Fix comment.
+ (process_full_comp_unit): Fix comment.
+ (read_signatured_type): Fix comment.
-For older changes see ChangeLog-2010.
+For older changes see ChangeLog-2011.
Local Variables:
mode: change-log
« no previous file with comments | « gdb/CONTRIBUTE ('k') | gdb/ChangeLog-2011 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698