1 2014-12-13 Joel Brobecker <brobecker@adacore.com>
3 * utils.c (make_hex_string): Replace use of sprintf by use of
6 2014-12-13 Joel Brobecker <brobecker@adacore.com>
8 * compile/compile-object-load.c (link_callbacks_multiple_definition)
9 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
10 newline at end of warning message.
12 2014-12-13 Joel Brobecker <brobecker@adacore.com>
14 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
15 new "EXTRA-ARGS" parameter.
16 * configure.ac: If large-file support is disabled in GDB,
17 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
18 * configure: Regenerate.
20 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
23 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
24 TYPE if not TYPE_CODE_TYPEDEF.
26 2014-12-13 Joel Brobecker <brobecker@adacore.com>
29 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
30 the frame unwinder must either be the dwarf2_frame_unwind
31 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
32 stack_addr is valid before calling get_frame_base. Throw
33 an error if not valid.
35 2014-12-12 Doug Evans <xdje42@gmail.com>
37 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
40 2014-12-12 Doug Evans <xdje42@gmail.com>
42 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
43 All callers updated. Rename arg "namespace" to "symbol_name".
45 2014-12-12 Doug Evans <xdje42@gmail.com>
47 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
48 partial_map_symtabs_matching_filename. All uses updated.
49 (psym_find_pc_sect_compunit_symtab): Renamed from
50 find_pc_sect_compunit_symtab_from_partial. All uses updated.
52 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
53 All uses updated. Add function comment.
54 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
56 (psym_find_last_source_symtab): Renamed from
57 find_last_source_symtab_from_partial. All uses updated.
59 (psym_forget_cached_source_info): Renamed from
60 forget_cached_source_info_partial. All uses updated.
62 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
63 All uses updated. Add function comment.
64 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
65 updated. Add function comment.
66 (psym_expand_symtabs_for_function): Renamed from
67 read_symtabs_for_function. All uses updated. Update function comment.
68 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
69 All uses updated. Add function comment.
70 (psym_expand_symtabs_with_fullname): Renamed from
71 read_psymtabs_with_fullname. All uses updated. Add function comment.
72 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
73 All uses updated. Add function comment.
74 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
76 (psym_expand_symtabs_matching): Renamed from
77 expand_symtabs_matching_via_partial. All uses updated.
79 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
82 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
83 Jan Kratochvil <jan.kratochvil@redhat.com>
84 Tom Tromey <tromey@redhat.com>
87 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
89 * p-lang.c (pascal_language_defn): Update.
90 * opencl-lang.c (opencl_language_defn): Update.
91 * objc-lang.c (objc_language_defn): Update.
92 * m2-lang.c (m2_language_defn): Update.
93 * language.h (struct language_defn) <la_get_compile_instance,
94 la_compute_program>: New fields.
95 * language.c (unknown_language_defn, auto_language_defn)
96 (local_language_defn): Update.
97 * jv-lang.c (java_language_defn): Update.
98 * go-lang.c (go_language_defn): Update.
99 * f-lang.c (f_language_defn): Update.
100 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
101 * dwarf2loc.c (dwarf2_compile_property_to_c)
102 (locexpr_generate_c_location, loclist_generate_c_location): New
104 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
105 * defs.h (enum compile_i_scope_types): New.
106 (enum command_control_type) <compile_control>: New constant.
107 (struct command_line) <control_u>: New field.
108 * d-lang.c (d_language_defn): Update.
109 * compile/compile.c: New file.
110 * compile/compile-c-support.c: New file.
111 * compile/compile-c-symbols.c: New file.
112 * compile/compile-c-types.c: New file.
113 * compile/compile.h: New file.
114 * compile/compile-internal.h: New file.
115 * compile/compile-loc2c.c: New file.
116 * compile/compile-object-load.c: New file.
117 * compile/compile-object-load.h: New file.
118 * compile/compile-object-run.c: New file.
119 * compile/compile-object-run.h: New file.
120 * cli/cli-script.c (multi_line_command_p, print_command_lines)
121 (execute_control_command, process_next_line)
122 (recurse_read_control_structure): Handle compile_control.
123 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
124 * c-lang.c (c_language_defn, cplus_language_defn)
125 (asm_language_defn, minimal_language_defn): Update.
126 * ada-lang.c (ada_language_defn): Update.
127 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
129 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
130 (HFILES_NO_SRCDIR): Add compile.h.
131 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
132 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
133 (compile.o, compile-c-types.o, compile-c-symbols.o)
134 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
135 (compile-c-support.o): New targets.
137 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
139 * s390-linux-tdep.c (s390_gcc_target_options): New function.
140 (s390_gdbarch_init): Add it to gdbarch.
142 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
144 * linux-tdep.c: Include objfiles.h and infcall.h.
145 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
147 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
149 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
151 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
152 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
153 translate_register. Now public.
154 (dwarf2_compile_expr_to_ax): Update.
156 2014-12-12 Tom Tromey <tromey@redhat.com>
157 Jan Kratochvil <jan.kratochvil@redhat.com>
159 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
160 (dwarf_expr_frame_base): Update caller.
161 (dwarf_expr_frame_base_1): Rename to ...
162 (func_get_frame_base_dwarf_block): ... this and make it public.
163 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
165 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
167 2014-12-12 Tom Tromey <tromey@redhat.com>
169 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
171 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
172 dwarf2_compile_cfa_to_ax.
173 (dwarf2_compile_cfa_to_ax): Remove.
174 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
175 (dwarf2_compile_cfa_to_ax): Remove.
177 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
179 * infcall.h (call_function_by_hand_dummy): Declare.
180 * infcall.c (call_function_by_hand): Use
181 call_function_by_hand_dummy.
182 (call_function_by_hand_dummy): Rename from call_function_by_hand.
183 Add arguments. Register a destructor.
185 2014-12-12 Tom Tromey <tromey@redhat.com>
186 Jan Kratochvil <jan.kratochvil@redhat.com>
188 * osabi.h (osabi_triplet_regexp): Declare.
189 * osabi.c (struct osabi_names): New.
190 (gdb_osabi_names): Change type to struct osabi_names. Update
192 (gdbarch_osabi_name): Update.
193 (osabi_triplet_regexp): New function.
194 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
195 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
196 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
197 set_gdbarch_gnu_triplet_regexp.
198 * gdbarch.sh (gnu_triplet_regexp): New method.
199 * gdbarch.c, gdbarch.h: Rebuild.
200 * arch-utils.h (default_gnu_triplet_regexp): Declare.
201 * arch-utils.c (default_gnu_triplet_regexp): New function.
203 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
205 * arch-utils.c (default_infcall_mmap)
206 (default_gcc_target_options): New functions.
207 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
208 (GDB_MMAP_PROT_EXEC): Define.
209 (default_infcall_mmap, default_gcc_target_options): Declare.
210 * gdbarch.h: Rebuild.
211 * gdbarch.c: Rebuild.
212 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
214 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
216 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
218 (pop_dummy_frame): Call the destructor if it exists.
219 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
221 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
222 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
224 2014-12-12 Tom Tromey <tromey@redhat.com>
226 * gdbtypes.h (make_unqualified_type): Declare.
227 * gdbtypes.c (make_unqualified_type): New function.
229 2014-12-12 Tom Tromey <tromey@redhat.com>
231 * ui-file.h (ui_file_write_for_put): Declare.
232 * ui-file.c (ui_file_write_for_put): New function.
233 * mi/mi-out.c (do_write): Remove.
234 (mi_out_put): Use ui_file_write_for_put.
236 2014-12-12 Doug Evans <dje@google.com>
238 * NEWS: Mention gdb.lookup_objfile.
239 * python/python.c (GdbMethods): Add lookup_objfile.
240 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
241 * python/py-objfile.c: #include "symtab.h".
242 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
243 (objfpy_lookup_objfile_by_name): New function.
244 (objfpy_lookup_objfile_by_build_id): New function.
245 (gdbpy_lookup_objfile): New function.
247 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
249 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
250 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
251 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
253 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
256 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
258 * completer.c: Include "target.h", "reggroups.h", and
260 (reg_or_group_completer): New.
261 * completer.h (reg_or_group_completer): Declare.
262 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
263 the "info registers" and "info all-registers" commands and the
264 dbx-mode "lr" command.
266 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
268 * user-regs.c: Include "arch-utils.h", "command.h", and
270 (maintenance_print_user_registers): New.
271 (_initialize_user_regs): Register new "maint print user-registers"
273 * NEWS: Mention new GDB command "maint print user-registers".
275 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
276 Maciej W. Rozycki <macro@mips.com>
277 Pedro Alves <pedro@codesourcery.com>
279 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
280 remove `predefault' and `invalid_p' initializers.
281 (make_symbol_special): New architecture method.
282 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
283 (objfile, symbol): New declarations.
284 * arch-utils.h (default_elf_make_msymbol_special): Remove
286 (default_make_symbol_special): New prototype.
287 (default_adjust_dwarf2_addr): Likewise.
288 (default_adjust_dwarf2_line): Likewise.
289 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
290 * arch-utils.c (default_elf_make_msymbol_special): Remove
292 (default_make_symbol_special): New function.
293 (default_adjust_dwarf2_addr): Likewise.
294 (default_adjust_dwarf2_line): Likewise.
295 * dwarf2-frame.c (decode_frame_entry_1): Call
296 `gdbarch_adjust_dwarf2_addr'.
297 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
298 * dwarf2read.c (create_addrmap_from_index): Likewise.
299 (process_psymtab_comp_unit_reader): Likewise.
300 (add_partial_symbol): Likewise.
301 (add_partial_subprogram): Likewise.
302 (process_full_comp_unit): Likewise.
303 (read_file_scope): Likewise.
304 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
305 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
306 (read_call_site_scope): Likewise.
307 (dwarf2_ranges_read): Likewise.
308 (dwarf2_record_block_ranges): Likewise.
309 (read_attribute_value): Likewise.
310 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
311 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
312 * elfread.c (elf_symtab_read): Don't call
313 `gdbarch_elf_make_msymbol_special' if unset.
314 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
315 the ISA bit from the PC.
316 * mips-tdep.c (mips_unmake_compact_addr): New function.
317 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
318 address appropriately.
319 (mips_make_symbol_special): New function.
320 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
321 (mips_pc_is_mips16): Likewise.
322 (mips_pc_is_micromips): Likewise.
323 (mips_pc_isa): Likewise.
324 (mips_adjust_dwarf2_addr): New function.
325 (mips_adjust_dwarf2_line): Likewise.
326 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
327 (mips_addr_bits_remove): Likewise.
328 (mips_skip_trampoline_code): Likewise.
329 (mips_write_pc): Don't set the ISA bit.
330 (mips_eabi_push_dummy_call): Likewise.
331 (mips_o64_push_dummy_call): Likewise.
332 (mips_gdbarch_init): Install `mips_make_symbol_special',
333 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
335 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
336 target-specific symbol address adjustments.
337 * gdbarch.h: Regenerate.
338 * gdbarch.c: Regenerate.
340 2014-12-12 Yao Qi <yao@codesourcery.com>
343 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
344 'skip_pc'. Remove code skipping prologue instructions, use
345 arm_analyze_prologue instead.
346 (arm_analyze_prologue): Stop the scanning for unrecognized
347 instruction when skipping prologue.
349 2014-12-12 Yao Qi <yao@codesourcery.com>
351 * arm-tdep.c (arm_instruction_restores_sp): New function.
352 (arm_analyze_prologue): Call arm_instruction_restores_sp.
353 (arm_in_function_epilogue_p): Move code to
354 arm_instruction_restores_sp.
356 2014-12-11 Doug Evans <xdje42@gmail.com>
358 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
360 2014-12-11 Doug Evans <xdje42@gmail.com>
362 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
363 (symbol *lookup_symbol_via_quick_fns): Ditto.
364 (lookup_symbol_in_objfile): Add forward decl.
365 (lookup_global_symbol_from_objfile): Simplify, call
366 lookup_symbol_in_objfile.
368 2014-12-11 Doug Evans <xdje42@gmail.com>
370 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
372 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
375 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
376 it is marked as persistent.
378 2014-12-10 Doug Evans <xdje42@gmail.com>
380 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
381 closer to its subroutines.
383 2014-12-10 Doug Evans <xdje42@gmail.com>
385 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
387 2014-12-10 Doug Evans <xdje42@gmail.com>
389 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
390 * cp-support.c (cp_lookup_symbol_imports): Delete.
392 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
395 * target.c (cleanup_restore_target_terminal): New function.
396 (make_cleanup_restore_target_terminal): New function.
397 * target.h (make_cleanup_restore_target_terminal): New declaration.
398 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
400 2014-12-08 Doug Evans <dje@google.com>
402 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
404 2014-12-08 Doug Evans <dje@google.com>
406 * NEWS: Mention gdb.Objfile.owner.
407 * python/py-objfile.c (objfpy_get_owner): New function.
408 (objfile_getset): Add "owner".
410 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
412 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
413 (lookup_global_symbol_from_objfile): Call it.
415 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
417 Remove const from struct objfile *.
418 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
419 symtab.c, symtab.h: In these files.
421 2014-12-05 Andreas From <andreas.from@ericsson.com>
423 * MAINTAINERS (Write After Approval): Add "Andreas From"
425 2014-12-05 Doug Evans <xdje42@gmail.com>
429 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
431 2014-12-04 Doug Evans <dje@google.com>
433 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
434 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
435 (objfile_getset): Add "add_separate_debug_file".
437 2014-12-04 Doug Evans <dje@google.com>
439 * NEWS: Mention gdb.Objfile.build_id.
440 * build-id.c (build_id_bfd_get): Make non-static.
441 * build-id.h (build_id_bfd_get): Add declaration.
442 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
443 (OBJFPY_REQUIRE_VALID): New macro.
444 (objfpy_get_build_id): New function.
445 (objfile_getset): Add "build_id".
446 * utils.c (make_hex_string): New function.
447 * utils.h (make_hex_string): Add declaration.
449 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
451 * block.c (block_lookup_symbol_primary): New function.
452 * block.h (block_lookup_symbol_primary): New declaration.
453 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
454 Call block_lookup_symbol_primary.
456 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
458 * tramp-frame.h (tramp_frame): Add `validate' member.
459 * tramp-frame.c (tramp_frame_start): Validate trampoline before
461 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
462 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
463 (mips_linux_o32_sigframe): Initialize `validate' member.
464 (mips_linux_o32_rt_sigframe): Likewise.
465 (mips_linux_n32_rt_sigframe): Likewise.
466 (mips_linux_n64_rt_sigframe): Likewise.
467 (micromips_linux_o32_sigframe): New variable.
468 (micromips_linux_o32_rt_sigframe): Likewise.
469 (micromips_linux_n32_rt_sigframe): Likewise.
470 (micromips_linux_n64_rt_sigframe): Likewise.
471 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
472 (mips_linux_n32n64_sigframe_init): Likewise.
473 (mips_linux_sigframe_validate): New function.
474 (micromips_linux_sigframe_validate): Likewise.
475 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
477 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
479 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
480 * sparc-sol2-tdep.c: Include "regset.h".
481 (sparc32_sol2_supply_core_gregset): New function.
482 (sparc32_sol2_collect_core_gregset): Likewise.
483 (sparc32_sol2_supply_core_fpregset): Likewise.
484 (sparc32_sol2_collect_core_fpregset): Likewise.
485 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
486 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
487 tdep->fpregset/sizeof_fpregset.
488 * sparc64-sol2-tdep.c: Include "regset.h".
489 (sparc64_sol2_supply_core_gregset): New function.
490 (sparc64_sol2_collect_core_gregset): Likewise.
491 (sparc64_sol2_supply_core_fpregset): Likewise.
492 (sparc64_sol2_collect_core_fpregset): Likewise.
493 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
494 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
495 tdep->fpregset/sizeof_fpregset.
497 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
499 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
502 2014-12-02 Doug Evans <dje@google.com>
504 * symtab.c (symbol_init_cplus_specific): Delete.
505 (symbol_set_demangled_name): Remove special c++ support.
506 (symbol_get_demangled_name, symbol_set_language): Ditto.
507 * symtab.h (struct cplus_specific): Delete.
508 (struct general_symbol_info) <language_specific>: Remove
511 2014-12-02 Doug Evans <dje@google.com>
514 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
516 2014-12-02 Doug Evans <dje@google.com>
519 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
522 2014-12-02 Doug Evans <dje@google.com>
524 * dwarf2read.c (peek_die_abbrev): Improve error message text.
526 2014-12-02 Doug Evans <dje@google.com>
528 * valops.c (do_search_struct_field): Remove remnant of Chill support.
529 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
531 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
533 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
535 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
537 * NEWS: Mention new Python events.
538 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
539 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
540 (py-infevents.o): New rule.
541 * doc/observer.texi (inferior_call_pre, inferior_call_post)
542 (memory_changed, register_changed): New observers.
543 * infcall.c (call_function_by_hand): Notify observer before and
545 * python/py-event.h (inferior_call_kind): New enum.
546 (emit_inferior_call_event): New prototype.
547 (emit_register_changed_event): New prototype.
548 (emit_memory_changed_event): New prototype.
549 * python/py-events.h (events_object): New registries
550 inferior_call, memory_changed and register_changed.
551 * python/py-evts.c (gdbpy_initialize_py_events): Add the
552 inferior_call, memory_changed and register_changed registries.
553 * python/py-infevents.c: New.
554 * python/py-inferior.c (python_on_inferior_call_pre)
555 (python_on_inferior_call_post, python_on_register_change)
556 (python_on_memory_change): New functions.
557 (gdbpy_initialize_inferior): Attach python handler to new
559 * python/py-infthread.c(gdbpy_create_ptid_object): New.
560 (thpy_get_ptid) Use gdbpy_create_ptid_object.
561 * python/python-internal.h:
562 (gdbpy_create_ptid_object)
563 (gdbpy_initialize_inferior_call_pre_event)
564 (gdbpy_initialize_inferior_call_post_event)
565 (gdbpy_initialize_register_changed_event)
566 (gdbpy_initialize_memory_changed_event): New prototypes.
567 * python/python.c (_initialize_python): Initialize new events.
568 * valops.c (value_assign): Notify register_changed observer.
570 2014-12-02 Doug Evans <dje@google.com>
572 * python/py-infthread.c: Whitespace fixes.
574 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
576 * features/Makefile (s390-te-linux64-expedite): Replace
577 non-existant r14 and r15 by r14l and r15l, respectively.
578 * regformats/s390-te-linux64.dat: Regenerate.
580 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
582 * objfiles.c (allocate_objfile): Remove duplicate comment.
584 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
586 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
587 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
588 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
589 (supply_gregset, supply_fpregset): Remove.
590 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
591 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
594 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
596 Add add-auto-load-scripts-directory.
597 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
598 * auto-load.c (add_auto_load_dir): New function.
599 (_initialize_auto_load): Install it.
601 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
603 Pushed by Joel Brobecker <brobecker@adacore.com>.
604 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
606 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
608 * eval.c (evaluate_subexp): Check that the thread stack temporaries
609 are not already enabled before enabling them.
611 2014-11-29 Yao Qi <yao@codesourcery.com>
613 * arm-tdep.c (arm_analyze_prologue): Move local variables
614 'framereg' and 'framesize' to inner block. Move code to
617 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
619 * eval.c: Include gdbthread.h.
620 (evaluate_subexp): Enable thread stack temporaries before
621 evaluating a complete expression and clean them up after the
622 evaluation is complete.
623 * gdbthread.h: Include common/vec.h.
624 (value_ptr): New typedef.
625 (VEC (value_ptr)): New vector type.
626 (value_vec): New typedef.
627 (struct thread_info): Add new fields stack_temporaries_enabled
628 and stack_temporaries.
629 (enable_thread_stack_temporaries)
630 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
631 (get_last_thread_stack_temporary)
632 (value_in_thread_stack_temporaries): Declare.
633 * gdbtypes.c (class_or_union_p): New function.
634 * gdbtypes.h (class_or_union_p): Declare.
635 * infcall.c (call_function_by_hand): Store return values of class
636 type as temporaries on stack.
637 * thread.c (enable_thread_stack_temporaries): New function.
638 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
639 (get_last_thread_stack_temporary): Likewise.
640 (value_in_thread_stack_temporaries): Likewise.
641 * value.c (value_force_lval): New function.
642 * value.h (value_force_lval): Declare.
644 2014-11-28 Pierre Muller <muller@sourceware.org>
646 Pushed by Joel Brobecker <brobecker@adacore.com>.
647 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
650 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
652 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
653 * config/sparc/linux.mh (NATDEPFILES): Likewise.
654 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
655 * m68klinux-nat.c (fetch_core_registers): Remove.
656 (linux_elf_core_fns): Remove.
657 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
659 2014-11-28 Joel Brobecker <brobecker@adacore.com>
661 * utils.c (gdb_realpath): Rework comment about handling on
664 2014-11-28 Yao Qi <yao@codesourcery.com>
666 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
668 * gnulib/aclocal.m4: Re-generated.
669 * gnulib/config.in: Re-generated.
670 * gnulib/configure: Re-generated.
671 * gnulib/import/Makefile.am: Re-generated.
672 * gnulib/import/Makefile.in: Re-generated.
673 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
674 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
675 * import/basename-lgpl.c: New file.
676 * import/dirname-lgpl.c: New file.
677 * import/dirname.h: New file.
678 * import/m4/dirname.m4: New file.
679 * import/m4/malloc.m4: New file.
680 * import/m4/rename.m4: New file.
681 * import/m4/rmdir.m4: New file.
682 * import/m4/stdio_h.m4: New file.
683 * import/malloc.c: New file.
684 * import/rename.c: New file.
685 * import/rmdir.c: New file.
686 * import/same-inode.h: New file.
687 * import/stdio.c: New file.
688 * import/stdio.in.h: New file.
689 * import/stripslash.c: New file.
691 2014-11-28 Yao Qi <yao@codesourcery.com>
693 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
695 * config.in: Re-generated.
696 * configure: Re-generated.
697 * utils.c (gdb_realpath): Remove code calling realpath,
698 canonicalize_file_name and pathconf.
699 [!_WIN32]: Call canonicalize_file_name.
701 2014-11-28 Yao Qi <yao@codesourcery.com>
703 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
705 * aclocal.m4: Re-generated.
706 * config.in: Re-generated.
707 * configure: Re-generated.
708 * import/Makefile.am: Re-generated.
709 * import/Makefile.in: Re-generated.
710 * import/m4/gnulib-cache.m4: Re-generated.
711 * import/m4/gnulib-comp.m4: Re-generated.
712 * import/canonicalize-lgpl.c: New file.
713 * import/extra/snippet/_Noreturn.h: New file.
714 * import/m4/canonicalize.m4: New file.
715 * import/m4/double-slash-root.m4: New file.
716 * import/m4/eealloc.m4: New file.
717 * import/m4/malloca.m4: New file.
718 * import/m4/nocrash.m4: New file.
719 * import/m4/stdlib_h.m4: New file.
720 * import/malloca.c: New file.
721 * import/malloca.h: New file.
722 * import/malloca.valgrind: New file.
724 2014-11-28 Yao Qi <yao@codesourcery.com>
726 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
727 * config.in, configure: Regenerate.
728 * symfile.c (find_separate_debug_file_by_debuglink): Remove
729 code checking HAVE_LSTAT is defined.
731 2014-11-28 Yao Qi <yao@codesourcery.com>
733 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
735 * gnulib/aclocal.m4: Re-generated.
736 * gnulib/config.in: Re-generated.
737 * gnulib/configure: Re-generated.
738 * gnulib/import/Makefile.am: Re-generated.
739 * gnulib/import/Makefile.in: Re-generated.
740 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
741 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
742 * gnulib/import/lstat.c: New file.
743 * gnulib/import/m4/lstat.m4: New file.
745 2014-11-28 Yao Qi <yao@codesourcery.com>
747 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
748 * config.in, configure: Re-generate.
749 * inf-child.c (inf_child_fileio_readlink): Don't check
750 HAVE_READLINK is defined.
752 2014-11-28 Yao Qi <yao@codesourcery.com>
754 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
755 * gnulib/aclocal.m4: Re-generated.
756 * gnulib/config.in: Likewise.
757 * gnulib/configure: Likewise.
758 * gnulib/import/Makefile.am: Likewise.
759 * gnulib/import/Makefile.in: Likewise.
760 * gnulib/import/m4/gnulib-cache.m4: Likewise.
761 * gnulib/import/m4/gnulib-comp.m4: Likewise.
762 * gnulib/import/dosname.h: New file
763 * gnulib/import/m4/largefile.m4: New file.
764 * gnulib/import/m4/readlink.m4: New file.
765 * gnulib/import/m4/stat.m4: New file.
766 * gnulib/import/readlink.c: New file.
767 * gnulib/import/stat.c: New file.
769 2014-11-26 Mark Wielaard <mjw@redhat.com>
771 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
772 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
774 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
776 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
777 that there can be only one stack adjustment in the prologue
778 with tests to detect specific disallowed stack adjustments.
780 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
782 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
785 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
787 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
788 the instruction as well as reading it from memory.
789 (nios2_match_add): New.
790 (nios2_match_sub): New.
791 (nios2_match_addi): New.
792 (nios2_match_orhi): New.
793 (nios2_match_stw): New.
794 (nios2_match_ldw): New.
795 (nios2_match_rdctl): New.
796 (enum branch_condition): New.
797 (nios2_match_branch): New.
798 (nios2_match_jmpi): New.
799 (nios2_match_calli): New.
800 (nios2_match_jmpr): New.
801 (nios2_match_callr): New.
802 (nios2_match_break): New.
803 (nios2_match_trap): New.
804 (nios2_in_epilogue_p): Rewrite to use new functions.
805 (nios2_analyze_prologue): Likewise.
806 (nios2_skip_prologue): Delete unused local limit_pc.
807 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
808 (nios2_get_next_pc): Rewrite to use new functions.
810 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
812 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
814 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
816 Pushed by Joel Brobecker <brobecker@adacore.com>
817 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
818 elements pi_len by the size of the elements before calling
820 (inf_validate_task_sc): Likewise, and properly deallocate the
823 2014-11-23 Doug Evans <xdje42@gmail.com>
825 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
826 number and name if present. All callers updated.
827 (dump_fn_fieldlists): Fix indentation of args.
829 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
831 * MAINTAINERS (Write After Approval): Add myself.
833 2014-11-23 Joel Brobecker <brobecker@adacore.com>
835 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
836 to a bp_call_dummy breakpoint type.
838 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
840 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
841 registering the signal handler.
843 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
845 * event-top.h (call_stdin_event_handler_again_p): Declare.
846 * event-top.c (call_stdin_event_handler_again_p): Define.
847 (stdin_event_handler): Use it.
848 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
849 handler again if there is pending input following a
852 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
854 Pushed by Joel Brobecker <brobecker@adacore.com>
855 * linux-fork.c (checkpoint_command): Print index of new
856 checkpoint in response message.
858 2014-11-23 Yao Qi <yao@codesourcery.com>
860 * valprint.c (read_string): Move local variables 'found_nul',
861 'chunksize' and 'limit' to inner scope. Update comments.
863 2014-11-22 Doug Evans <xdje42@gmail.com>
865 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
867 (search_symbols): Fix comments and whitespace.
869 2014-11-22 Doug Evans <xdje42@gmail.com>
871 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
873 2014-11-21 Doug Evans <dje@google.com>
875 * psymtab.c (psymtab_search_name): Fix whitespace.
877 2014-11-21 Yao Qi <yao@codesourcery.com>
879 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
881 * gnulib/import/Makefile.am: Re-generated.
882 * gnulib/import/Makefile.in: Likewise.
883 * gnulib/import/m4/gnulib-cache.m4: Likewise.
885 2014-11-21 Yao Qi <yao@codesourcery.com>
887 * gdb_wchar.h: Include wchar.h and wctype.h.
888 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
889 include wchar.h and wctype.h.
890 Don't check HAVE_WCHAR_H.
892 2014-11-21 Yao Qi <yao@codesourcery.com>
894 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
896 * gnulib/import/Makefile.am: Re-generated.
897 * gnulib/import/Makefile.in: Likewise.
898 * gnulib/import/m4/gnulib-cache.m4: Likewise.
900 2014-11-21 Yao Qi <yao@codesourcery.com>
902 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
904 * gnulib/import/Makefile.am: Re-generated.
905 * gnulib/import/Makefile.in: Likewise.
906 * gnulib/import/m4/gnulib-cache.m4: Likewise.
908 2014-11-21 Yao Qi <yao@codesourcery.com>
910 * common/common-defs.h: Include alloca.h
911 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
912 * configure: Re-generated.
913 * defs.h: Remove code handling alloca.
914 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
917 2014-11-21 Yao Qi <yao@codesourcery.com>
919 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
921 * gnulib/import/Makefile.am: Re-generated.
922 * gnulib/import/Makefile.in: Likewise..
923 * gnulib/import/m4/gnulib-cache.m4: Likewise.
925 2014-11-21 Yao Qi <yao@codesourcery.com>
927 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
930 2014-11-21 Joel Brobecker <brobecker@adacore.com>
932 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
933 flag_unsigned if HIGH_BOUND is constant and negative.
935 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
938 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
939 modifier from "struct gdbarch" when compiling without Expat (XML)
941 (get_syscall_by_number): Likewise.
942 (get_syscall_by_name): Likewise.
943 (get_syscall_names): Likewise.
945 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
948 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
949 set_xml_syscall_file_name to provide gdbarch.
950 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
951 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
952 * breakpoint.c (print_it_catch_syscall): Adjust call to
953 get_syscall_by_number to provide gdbarch.
954 (print_one_catch_syscall): Likewise.
955 (print_mention_catch_syscall): Likewise.
956 (print_recreate_catch_syscall): Likewise.
957 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
958 and get_syscall_by_name to provide gdbarch.
959 (catch_syscall_completer): Adjust call to get_syscall_names to
961 * gdbarch.c: Regenerate.
962 * gdbarch.h: Likewise.
963 * gdbarch.sh: Forward declare "struct syscalls_info".
964 (xml_syscall_file): New variable.
965 (syscalls_info): Likewise.
966 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
967 set_xml_syscall_file_name to provide gdbarch.
968 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
969 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
970 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
971 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
972 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
973 * xml-syscall.c: Include gdbarch.h.
974 (set_xml_syscall_file_name): Accept gdbarch parameter.
975 (get_syscall_by_number): Likewise.
976 (get_syscall_by_name): Likewise.
977 (get_syscall_names): Likewise.
978 (my_gdb_datadir): Delete global variable.
979 (struct syscalls_info) <my_gdb_datadir>: New variable.
980 (struct syscalls_info) <sysinfo>: Rename variable to
982 (sysinfo): Delete global variable.
983 (have_initialized_sysinfo): Likewise.
984 (xml_syscall_file): Likewise.
985 (sysinfo_free_syscalls_desc): Rename to...
986 (syscalls_info_free_syscalls_desc): ... this.
987 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
988 code to the new layout of "struct syscalls_info".
989 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
991 (syscall_create_syscall_desc): Likewise.
992 (syscall_start_syscall): Likewise.
993 (syscall_parse_xml): Likewise.
994 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
995 (init_sysinfo): Rename to...
996 (init_syscalls_info): ...this. Add gdbarch as a parameter.
997 Adjust function to deal with gdbarch.
998 (xml_get_syscall_number): Delete parameter sysinfo. Accept
999 gdbarch as a parameter. Adjust code.
1000 (xml_get_syscall_name): Likewise.
1001 (xml_list_of_syscalls): Likewise.
1002 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1003 (get_syscall_by_number): Likewise.
1004 (get_syscall_by_name): Likewise.
1005 (get_syscall_names): Likewise.
1006 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1007 (get_syscall_by_number): Likewise.
1008 (get_syscall_by_name): Likewise.
1009 (get_syscall_names): Likewise.
1011 2014-11-20 Doug Evans <xdje42@gmail.com>
1013 Split struct symtab into two: struct symtab and compunit_symtab.
1014 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1015 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1016 to "struct compunit_symtab *". All callers updated.
1017 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1018 "struct symtab *" argument to "struct compunit_symtab *".
1019 All callers updated.
1020 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1021 result to "struct compunit_symtab *". All callers updated.
1022 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1023 Change result to "struct compunit_symtab *". All callers updated.
1024 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1025 hange type to "struct compunit_symtab *". All uses updated.
1026 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1027 Change type to "struct compunit_symtab *". All uses updated.
1028 * buildsym.c (struct buildsym_compunit): New struct.
1029 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1030 (buildsym_compunit): New static global.
1031 (finish_block_internal): Update to fetch objfile from
1033 (make_blockvector): Delete objfile argument.
1034 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1035 debugformat, producer.
1036 (start_buildsym_compunit): New function.
1037 (free_buildsym_compunit): Renamed from free_subfiles_list.
1038 All callers updated.
1039 (patch_subfile_names): Rewrite to use buildsym_compunit.
1040 (get_compunit_symtab): New function.
1041 (get_macro_table): Delete argument comp_dir. All callers updated.
1042 (start_symtab): Change result to "struct compunit_symtab *".
1043 All callers updated. Create the subfile of the main source file.
1044 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1045 (reset_symtab_globals): Update.
1046 (end_symtab_get_static_block): Update to use buildsym_compunit.
1047 (end_symtab_without_blockvector): Rewrite.
1048 (end_symtab_with_blockvector): Change result to
1049 "struct compunit_symtab *". All callers updated.
1050 Update to use buildsym_compunit. Don't set symtab->dirname,
1051 instead set it in the compunit.
1052 Explicitly make sure main symtab is first in its list.
1053 Set debugformat, producer, blockvector, block_line_section, and
1054 macrotable in the compunit.
1055 (end_symtab_from_static_block): Change result to
1056 "struct compunit_symtab *". All callers updated.
1057 (end_symtab, end_expandable_symtab): Ditto.
1058 (set_missing_symtab): Change symtab argument to
1059 "struct compunit_symtab *". All callers updated.
1060 (augment_type_symtab): Ditto.
1061 (record_debugformat): Update to use buildsym_compunit.
1062 (record_producer): Update to use buildsym_compunit.
1063 * buildsym.h (struct subfile) <dirname>: Delete.
1064 <producer, debugformat>: Delete.
1065 <buildsym_compunit>: New member.
1066 (get_compunit_symtab): Declare.
1067 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1068 from primary_symtab. Change type to "struct compunit_symtab *".
1070 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1071 All callers updated.
1072 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1073 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1074 symtab. Change type to "struct compunit_symtab *". All uses updated.
1075 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1076 All callers updated.
1077 (dw2_find_last_source_symtab): Ditto.
1078 (dw2_lookup_symbol): Ditto.
1079 (recursively_find_pc_sect_compunit_symtab): Renamed from
1080 recursively_find_pc_sect_symtab. Change result to
1081 "struct compunit_symtab *". All callers updated.
1082 (dw2_find_pc_sect_compunit_symtab): Renamed from
1083 dw2_find_pc_sect_symtab. Change result to
1084 "struct compunit_symtab *". All callers updated.
1085 (get_compunit_symtab): Renamed from get_symtab. Change result to
1086 "struct compunit_symtab *". All callers updated.
1087 (recursively_compute_inclusions): Change type of immediate_parent
1088 argument to "struct compunit_symtab *". All callers updated.
1089 (compute_compunit_symtab_includes): Renamed from
1090 compute_symtab_includes. All callers updated. Rewrite to compute
1091 includes of compunit_symtabs and not symtabs.
1092 (process_full_comp_unit): Update to work with struct compunit_symtab.
1093 (process_full_type_unit): Ditto.
1094 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1095 (dwarf_decode_lines): Remove special case handling of main subfile.
1096 (macro_start_file): Delete argument comp_dir. All callers updated.
1097 (dwarf_decode_macro_bytes): Ditto.
1098 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1099 use struct compunit_symtab.
1100 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1101 * jit.c (finalize_symtab): Build compunit_symtab.
1102 * jv-lang.c (get_java_class_symtab): Change result to
1103 "struct compunit_symtab *". All callers updated.
1104 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1105 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1106 comp_dir. Change type to "struct compunit_symtab *".
1108 (new_macro_table): Change comp_dir argument to cust,
1109 "struct compunit_symtab *". All callers updated.
1110 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1111 nr_primary_symtabs. All uses updated.
1112 (count_symtabs_and_blocks): Update to handle compunits.
1113 (report_command_stats): Update output, "primary symtabs" renamed to
1115 * mdebugread.c (new_symtab): Change result to
1116 "struct compunit_symtab *". All callers updated.
1117 (parse_procedure): Change type of search_symtab argument to
1118 "struct compunit_symtab *". All callers updated.
1119 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1121 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1122 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1123 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1125 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1127 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1128 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1129 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1130 symtab. Change type to "struct compunit_symtab *". All uses updated.
1131 * psymtab.c (psymtab_to_symtab): Change result type to
1132 "struct compunit_symtab *". All callers updated.
1133 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1134 find_pc_sect_symtab_from_partial. Change result type to
1135 "struct compunit_symtab *". All callers updated.
1136 (lookup_symbol_aux_psymtabs): Change result type to
1137 "struct compunit_symtab *". All callers updated.
1138 (find_last_source_symtab_from_partial): Ditto.
1139 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1140 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1141 and macro_table from compunit.
1142 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1143 type to "struct compunit_symtab *". All callers updated.
1144 (debug_qf_lookup_symbol): Ditto.
1145 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1146 debug_qf_find_pc_sect_symtab, change result type to
1147 "struct compunit_symtab *". All callers updated.
1148 * symfile.c (allocate_symtab): Delete objfile argument.
1150 (allocate_compunit_symtab): New function.
1151 (add_compunit_symtab_to_objfile): New function.
1152 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1153 Change result type to "struct compunit_symtab *". All uses updated.
1154 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1155 Change result type to "struct compunit_symtab *". All uses updated.
1156 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1158 (dump_symtab_1): Update test for primary source symtab.
1159 (maintenance_info_symtabs): Update to handle compunit symtabs.
1160 (maintenance_check_symtabs): Ditto.
1161 * symtab.c (set_primary_symtab): Delete.
1162 (compunit_primary_filetab): New function.
1163 (compunit_language): New function.
1164 (iterate_over_some_symtabs): Change type of arguments "first",
1165 "after_last" to "struct compunit_symtab *". All callers updated.
1166 Update to loop over symtabs in each compunit.
1167 (error_in_psymtab_expansion): Rename symtab argument to cust,
1168 and change type to "struct compunit_symtab *". All callers updated.
1169 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1170 Change result type to "struct compunit_symtab *". All callers updated.
1171 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1172 Change result type to "struct compunit_symtab *". All callers updated.
1173 (find_pc_sect_line): Only loop over symtabs within selected compunit
1174 instead of all symtabs in the objfile.
1175 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1176 <compunit_symtab> New member.
1177 <block_line_section>: Moved to compunit_symtab.
1178 <locations_valid>: Ditto.
1179 <epilogue_unwind_valid>: Ditto.
1180 <macro_table>: Ditto.
1182 <debugformat>: Ditto.
1185 <call_site_htab>: Ditto.
1189 (SYMTAB_COMPUNIT): New macro.
1190 (SYMTAB_BLOCKVECTOR): Update definition.
1191 (SYMTAB_OBJFILE): Update definition.
1192 (SYMTAB_DIRNAME): Update definition.
1193 (struct compunit_symtab): New type. Common members among all source
1194 symtabs within a compilation unit moved here. All uses updated.
1195 (COMPUNIT_OBJFILE): New macro.
1196 (COMPUNIT_FILETABS): New macro.
1197 (COMPUNIT_DEBUGFORMAT): New macro.
1198 (COMPUNIT_PRODUCER): New macro.
1199 (COMPUNIT_DIRNAME): New macro.
1200 (COMPUNIT_BLOCKVECTOR): New macro.
1201 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1202 (COMPUNIT_LOCATIONS_VALID): New macro.
1203 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1204 (COMPUNIT_CALL_SITE_HTAB): New macro.
1205 (COMPUNIT_MACRO_TABLE): New macro.
1206 (ALL_COMPUNIT_FILETABS): New macro.
1207 (compunit_symtab_ptr): New typedef.
1208 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1210 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1212 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1213 if the TYPE_CODE of range_type's base type does not match
1214 the TYPE_CODE of encoding_type's base type.
1216 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1218 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1221 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1223 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1224 (ada_is_redundant_index_type_desc): New function.
1225 (to_fixed_array_type): Ignore parallel XA type if redundant.
1227 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1229 * ada-lang.c (constrained_packed_array_type): Set the length
1230 of the return array as if both bounds where zero if that
1231 returned array's index type is dynamic.
1233 2014-11-19 Yao Qi <yao@codesourcery.com>
1235 * config/i386/go32.mh (CC): Remove.
1237 2014-11-18 Doug Evans <xdje42@gmail.com>
1239 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1242 2014-11-18 Doug Evans <xdje42@gmail.com>
1244 * buildsym.c (buildsym_objfile): New static global.
1245 (buildsym_comp_dir): New static global.
1246 (finish_block_internal): Delete arg objfile. All callers updated.
1247 (finish_block): Delete arg objfile. All callers updated.
1248 (start_subfile): Delete arg dirname. All callers updated.
1249 (patch_subfile_names): Update buildsym_comp_dir.
1250 (get_macro_table): Delete arg objfile. All callers updated.
1251 (start_symtab): New arg objfile. All callers updated.
1252 Rename arg dirname to comp_dir.
1253 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1254 (end_symtab_get_static_block): Delete arg objfile. All callers
1256 (end_symtab_without_blockvector): Ditto.
1257 (end_symtab_with_blockvector): Ditto.
1258 (end_symtab_from_static_block): Ditto.
1259 (end_symtab): Ditto.
1260 (end_expandable_symtab): Ditto.
1261 (augment_type_symtab): Ditto.
1262 * coffread.c (coff_start_symtab): New arg objfile. All callers
1265 2014-11-18 Doug Evans <xdje42@gmail.com>
1267 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1270 2014-11-18 Doug Evans <xdje42@gmail.com>
1272 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1273 symtab.dirname updated to use it.
1275 2014-11-18 Doug Evans <xdje42@gmail.com>
1277 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1278 symtab.objfile updated to use it.
1280 2014-11-18 Doug Evans <xdje42@gmail.com>
1282 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1284 2014-11-18 Doug Evans <xdje42@gmail.com>
1286 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1288 * findvar.c (default_read_var_value): Ditto.
1289 * jv-lang.c (add_class_symtab_symbol): Ditto.
1290 * parse.c (operator_check_standard): Ditto.
1291 * printcmd.c (address_info): Ditto.
1292 * symtab.c (fixup_symbol_section): Ditto.
1293 (skip_prologue_sal): Ditto.
1294 * tracepoint.c (scope_info): Ditto.
1295 * valops.c (find_function_in_inferior): Ditto.
1296 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1297 * python/py-symbol.c (set_symbol): Ditto.
1299 2014-11-18 Doug Evans <xdje42@gmail.com>
1301 * buildsym.c (main_subfile): New static global.
1302 (free_subfiles_list): New function.
1303 (start_symtab): Set main_subfile.
1304 (restart_symtab): Replace init of subfiles, current_subfile with
1305 call to free_subfiles_list.
1306 (watch_main_source_file_lossage): Use main_subfile.
1307 (reset_symtab_globals): Replace init of current_subfile with call
1308 to free_subfiles_list.
1309 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1310 functions, split out from ...
1311 (end_symtab_from_static_block): ... here. Rewrite to call them.
1313 2014-11-18 Doug Evans <xdje42@gmail.com>
1315 The result of symtab expansion is always a primary symtab.
1316 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1317 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1318 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1319 (psymtab_to_symtab): Add comment and assert.
1320 (map_matching_symbols_psymtab): Remove unnecessary test for
1323 2014-11-15 Doug Evans <xdje42@gmail.com>
1326 * symtab.c (find_pc_line_symtab): New function.
1327 * symtab.h (find_pc_line_symtab): Declare.
1328 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1330 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1331 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1332 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1333 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1334 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1335 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1337 2014-11-15 Doug Evans <xdje42@gmail.com>
1339 * symtab.c (expand_symtab_containing_pc): Renamed from
1340 find_pc_sect_symtab_via_partial. All callers updated.
1342 2014-11-15 Yao Qi <yao@codesourcery.com>
1344 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1346 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1348 * common/common-defs.h: Move <stdarg.h> #include ahead of
1351 2014-11-14 Pedro Alves <palves@redhat.com>
1353 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1354 [!PHONY_ICONV] (gdb_iconv): New function.
1355 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1357 2014-11-13 Doug Evans <dje@google.com>
1360 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1361 "(anonymous namespace)".
1363 2014-11-13 Doug Evans <dje@google.com>
1365 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1368 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1370 * NEWS (maint set target-async): Fix typo.
1372 2014-11-12 Pedro Alves <palves@redhat.com>
1374 * infrun.c (enum infwait_states, infwait_state): Delete.
1376 2014-11-12 Pedro Alves <palves@redhat.com>
1378 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1379 Rewrite stepping over a permanent breakpoint.
1380 (thread_still_needs_step_over, proceed): Don't set
1381 stepping_over_breakpoint for permanent breakpoints.
1382 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1383 single-step breakpoints out of the target on hardware step
1385 (process_event_stop_test): If stepping a permanent breakpoint
1386 doesn't hit the step-resume breakpoint, delete the step-resume
1388 (switch_back_to_stepped_thread): Also check if the stepped thread
1389 has advanced already on hardware step targets.
1390 (currently_stepping): Return true if the thread stepped a
1393 2014-11-12 Pedro Alves <palves@redhat.com>
1395 Mark locations as permanent, not the whole breakpoint.
1396 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1397 (mark_breakpoints_out): Don't mark permanent breakpoints as
1399 (breakpoint_init_inferior): Use mark_breakpoints_out.
1400 (breakpoint_here_p): Adjust.
1401 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1402 of permanent breakpoints.
1403 (make_breakpoint_permanent): Mark each location as permanent,
1404 instead of marking the breakpoint.
1405 (add_location_to_breakpoint): If the location is permanent, mark
1406 it as such, and as inserted.
1407 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1408 (bp_location_compare, update_global_location_list): Adjust.
1409 (update_breakpoint_locations): Don't make the breakpoint permanent
1411 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1413 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1414 (struct bp_location) <permanent>: New field.
1415 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1416 reference to bp_permanent.
1418 2014-11-12 Pedro Alves <palves@redhat.com>
1420 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1421 * arch-utils.h (default_skip_permanent_breakpoint): New
1423 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1424 Install default_skip_permanent_breakpoint as default method.
1425 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1426 (i386_gdbarch_init): Don't install it.
1427 * infrun.c (resume): Assume there's always a
1428 gdbarch_skip_permanent_breakpoint implementation.
1429 * gdbarch.h, gdbarch.c: Regenerate.
1431 2014-11-11 Daniel Colascione <dancol@dancol.org>
1433 Warn about cross-PID-namespace debugging.
1434 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1435 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1436 * linux-thread-db.c (check_pid_namespace_match): New function.
1437 (thread_db_inferior_created): Call it.
1439 2014-11-10 Doug Evans <xdje42@gmail.com>
1441 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1442 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1444 2014-11-10 Doug Evans <xdje42@gmail.com>
1446 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1448 2014-11-10 Doug Evans <xdje42@gmail.com>
1451 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1452 (lookup_static_symbol): Move definition to new location and rewrite.
1453 (lookup_symbol_in_objfile): New function.
1454 (lookup_symbol_global_iterator_cb): Call it.
1456 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1458 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1460 2014-11-07 Pedro Alves <palves@redhat.com>
1462 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1463 check if we did a "nexti" inside a prologue.
1464 * symtab.c (in_prologue): Delete function.
1465 * symtab.h (in_prologue): Delete declaration.
1467 2014-11-06 Doug Evans <xdje42@gmail.com>
1469 * symtab.h (lookup_global_symbol): Improve function comment.
1471 2014-11-06 Doug Evans <xdje42@gmail.com>
1473 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1474 All callers updated.
1475 * symtab.h (lookup_global_symbol): Update decl.
1476 (lookup_static_symbol): Move decl to better location.
1478 2014-11-06 Doug Evans <xdje42@gmail.com>
1480 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1482 2014-11-06 Doug Evans <xdje42@gmail.com>
1484 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1485 All callers updated.
1486 (lookup_symbol_in_all_objfiles): Renamed from
1487 lookup_symbol_aux_symtabs. All callers updated.
1488 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1489 All callers updated.
1490 (lookup_symbol_in_objfile_symtabs): Renamed from
1491 lookup_symbol_aux_objfile. All callers updated.
1493 2014-11-06 Doug Evans <xdje42@gmail.com>
1495 * symtab.c (lookup_symbol_in_block): Renamed from
1496 lookup_symbol_aux_block. All callers updated.
1498 2014-11-06 Doug Evans <xdje42@gmail.com>
1500 * symtab.c (lookup_static_symbol): Renamed from
1501 lookup_static_symbol_aux. All callers updated.
1502 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1503 All callers updated.
1505 2014-11-06 Doug Evans <xdje42@gmail.com>
1507 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1508 * block.c (block_lookup_symbol): Use it.
1509 * cp-support.c (make_symbol_overload_list_block): Use it.
1510 * symtab.c (iterate_over_symbols): Use it.
1512 2014-11-06 Doug Evans <xdje42@gmail.com>
1514 * symtab.c (lookup_block_symbol): Moved to ...
1515 * block.c (block_lookup_symbol): ... here and renamed.
1516 All callers updated.
1517 * block.h (block_lookup_symbol): Declare.
1518 * symtab.h (lookup_block_symbol): Delete.
1520 2014-11-06 Doug Evans <xdje42@gmail.com>
1522 * ada-lang.c (ada_make_symbol_completion_list): Use
1523 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1524 * symtab.c (lookup_objfile_from_block): Ditto.
1526 2014-11-06 Doug Evans <xdje42@gmail.com>
1528 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1531 2014-11-06 Doug Evans <xdje42@gmail.com>
1533 * objfiles.c (get_objfile_arch): Constify.
1534 * objfiles.h (get_objfile_arch): Update prototype.
1535 * solib.c (solib_global_lookup): Fetch arch from objfile,
1538 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1540 * nios2-tdep.c (wild_insn): Delete.
1541 (profiler_insn, irqentry_insn): Delete.
1542 (nios2_match_sequence): Delete.
1543 (nios2_analyze_prologue): Update comments. Remove matching
1544 of obsolete profiler_insn and irqentry_insn sequences.
1546 2014-11-05 Alan Modra <amodra@gmail.com>
1548 * charset.c (convert_between_encodings): Shrink obstack using
1550 * minsyms.c (install_minimal_symbols): Likewise.
1551 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1552 to char* before doing pointer arithmetic.
1554 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1556 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1558 2014-11-04 Pedro Alves <palves@redhat.com>
1560 * breakpoint.c (breakpoint_thread_match): Delete function.
1561 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1563 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1566 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1567 the method args also under EVAL_SKIP when evaluating method
1568 calls under EVAL_SKIP.
1570 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1572 * dwarf2loc.c (read_pieced_value): Do big endian
1573 processing only if gdb_regnum is not -1.
1574 (write_pieced_value): Ditto.
1576 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1578 * arm-linux-tdep.c (arm_linux_init_abi): Use
1579 info.byte_order_for_code to choose endianity of breakpoint
1580 instructions snippets.
1582 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1584 * arm-tdep.c (extract_arm_insn): Use
1585 gdbarch_byte_order_for_code to read arm instruction.
1587 2014-11-02 Doug Evans <xdje42@gmail.com>
1589 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1591 2014-11-02 Doug Evans <xdje42@gmail.com>
1593 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1594 main_subfile before returning.
1596 2014-10-31 Doug Evans <xdje42@gmail.com>
1598 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1599 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1601 2014-10-31 Doug Evans <xdje42@gmail.com>
1603 * valops.c (value_cast_pointers): Fix whitespace.
1604 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1607 2014-10-30 Doug Evans <dje@google.com>
1609 * NEWS: Mention ability add attributes to gdb.Objfile and
1610 gdb.Progspace objects.
1611 * python/py-objfile.c (objfile_object): New member dict.
1612 (objfpy_dealloc): Py_XDECREF dict.
1613 (objfpy_initialize): Initialize dict.
1614 (objfile_getset): Add __dict__.
1615 (objfile_object_type): Set tp_dictoffset member.
1616 * python/py-progspace.c (progspace_object): New member dict.
1617 (pspy_dealloc): Py_XDECREF dict.
1618 (pspy_initialize): Initialize dict.
1619 (pspace_getset): Add __dict__.
1620 (pspace_object_type): Set tp_dictoffset member.
1622 2014-10-30 Yao Qi <yao@codesourcery.com>
1624 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1625 replace '\\' with '\\\\'.
1627 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1631 2014-10-29 Pedro Alves <palves@redhat.com>
1634 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1635 instead of assuming a thread with a stepping range is always
1638 2014-10-29 Pedro Alves <palves@redhat.com>
1641 * event-top.c (change_line_handler): Call
1642 gdb_rl_callback_handler_remove instead of
1643 rl_callback_handler_remove.
1644 (callback_handler_installed): New global.
1645 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1646 (gdb_rl_callback_handler_reinstall): New functions.
1647 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1648 gdb_rl_callback_handler_install instead of
1649 rl_callback_handler_remove and rl_callback_handler_install.
1650 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1651 instead of rl_callback_handler_remove.
1652 * event-top.h (gdb_rl_callback_handler_remove)
1653 (gdb_rl_callback_handler_install)
1654 (gdb_rl_callback_handler_reinstall): New declarations.
1655 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1657 (fetch_inferior_event): Install it.
1658 * top.c (gdb_readline_wrapper_line) Call
1659 gdb_rl_callback_handler_remove instead of
1660 rl_callback_handler_remove.
1661 (gdb_readline_wrapper_cleanup): Don't call
1662 rl_callback_handler_install.
1664 2014-10-29 Pedro Alves <palves@redhat.com>
1666 * event-top.c (command_line_handler): Clear the first byte of
1667 linebuffer, when it is first allocated.
1669 2014-10-29 Pedro Alves <palves@redhat.com>
1671 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1674 2014-10-29 Pedro Alves <palves@redhat.com>
1678 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1679 (tui_allowed_p): Delete function.
1680 * tui/tui.c: Include "interps.h".
1681 (tui_enable): Don't use tui_allowed_p. Error out here with
1682 detailed error messages if the TUI is the top level interpreter,
1683 or if output is not a terminal. Use newterm instead of initscr,
1684 and error out if initializing the terminal fails. Also error out if
1685 the terminal doesn't support cursor addressing.
1686 * tui/tui.h (tui_allowed_p): Delete declaration.
1688 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1690 * arm-tdep.c (arm_skip_stack_protector): Return early if
1691 address loaded by first "ldr" instruction does not have
1692 a corresponding minimal symbol. Update comment.
1694 2014-10-29 Yao Qi <yao@codesourcery.com>
1696 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1697 loaded address correctly of ldr instruction.
1699 2014-10-28 Pedro Alves <palves@redhat.com>
1702 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1704 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1705 thread's stepped_breakpoint field. Skip if reverse debugging.
1707 (init_thread_stepping_state, handle_signal_stop): Clear the
1708 thread's stepped_breakpoint field.
1710 2014-10-27 Pedro Alves <palves@redhat.com>
1712 * remote.c (remote_thread_alive): New, factored out from ...
1713 (remote_thread_alive): ... this.
1714 (remote_update_thread_list): Bail out before deleting threads if
1715 the target returned an empty list, and, the current thread has a
1718 2014-10-27 Pedro Alves <palves@redhat.com>
1720 * infrun.c (handle_signal_stop): Also skip handlers when a random
1721 signal arrives while handling a "stepi" or a "nexti". Set the
1722 thread's 'step_after_step_resume_breakpoint' flag.
1724 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1726 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1727 (arm_record_ld_st_imm_offset): Reimplement to cover all
1728 load/store cases for ARM opcode 010.
1729 (arm_record_ld_st_multiple): Reimplement to cover all
1730 load/store cases for ARM opcode 100.
1732 2014-10-26 Doug Evans <xdje42@gmail.com>
1734 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1736 2014-10-26 Doug Evans <xdje42@gmail.com>
1738 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1739 parameter "kind" to "block_index".
1740 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1742 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1744 2014-10-26 Doug Evans <xdje42@gmail.com>
1746 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1748 2014-10-26 Doug Evans <xdje42@gmail.com>
1750 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1753 2014-10-26 Doug Evans <xdje42@gmail.com>
1755 * parser-defs.h (block_found): Move decl from here ...
1756 * symtab.h (block_found): ... to here.
1758 2014-10-26 Doug Evans <xdje42@gmail.com>
1760 * symtab.h (struct field_of_this_result): Fix typo in comment.
1761 (lookup_symbol_in_language): Move function comment here.
1762 (lookup_symbol): Improve function comment.
1763 (basic_lookup_symbol_nonlocal): Ditto.
1764 (lookup_symbol_static, lookup_symbol_global): Ditto.
1765 (lookup_symbol_aux_block): Ditto.
1766 (lookup_language_this): Add function comment.
1767 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1769 (lookup_block_symbol): Improve function comment.
1770 (lookup_struct): Fix capitalization in function comment.
1771 (lookup_transparent_type): Add function comment.
1772 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1773 Improve function comment.
1774 (lookup_objfile_from_block): Add function comment.
1775 * symtab.c (lookup_symbol_in_language): Update function comment.
1776 (lookup_symbol, lookup_language_this): Ditto.
1777 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1778 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1779 (basic_lookup_symbol_nonlocal): Ditto.
1780 (lookup_symbol_static, lookup_symbol_global): Ditto.
1781 (lookup_transparent_type, lookup_block_symbol): Ditto.
1783 2014-10-25 Doug Evans <xdje42@gmail.com>
1785 * symtab.c (types_info): Delete forward decl.
1786 (functions_info, variables_info, sources_info): Ditto.
1787 (_initialize_symtab): Rewrite forward decl to use
1788 initialize_file_ftype.
1790 2014-10-25 Doug Evans <xdje42@gmail.com>
1792 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1794 2014-10-25 Doug Evans <xdje42@gmail.com>
1796 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1797 of local var child_die.
1799 2014-10-24 Don Breazeal <donb@codesourcery.com>
1801 * infrun.c (follow_fork_inferior): Update fork message printing
1802 to use target_terminal_ours_for_output instead of
1803 target_terminal_ours, to use _() for all format strings, to print
1804 "vfork" instead of "fork" for vforks, and to add a detach message.
1805 (handle_vfork_child_exec_or_exit): Update message printing to use
1806 target_terminal_ours_for_output instead of target_terminal_ours, to
1807 use _() for all format strings, and to fix some formatting.
1809 2014-10-24 Pedro Alves <palves@redhat.com>
1811 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1812 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1813 * config/vax/vax.mh: Delete.
1814 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1815 obsolete configurations section.
1816 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1817 * vax-nat.c: Delete file.
1819 2014-10-24 Pedro Alves <palves@redhat.com>
1821 * NEWS (Removed targets): Add OS/arch column.
1823 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1825 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1826 on the arg type of a constructor only if it is of reference type.
1828 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1830 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1831 accessors and constants from nios2 opcodes update.
1832 (nios2_get_next_pc): Likewise.
1834 2014-10-19 Doug Evans <xdje42@gmail.com>
1836 * gdbthread.h (set_running): Fix comment.
1837 (set_executing, finish_thread_state): Fix comment.
1839 2014-10-18 Doug Evans <xdje42@gmail.com>
1841 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1843 2014-10-17 Doug Evans <dje@google.com>
1845 * NEWS: Mention new event gdb.clear_objfiles.
1846 * python/py-event.h (emit_clear_objfiles_event): Clear
1847 * python/py-events.h (events_object): New member clear_objfiles.
1848 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1850 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1851 emit clear_objfiles event.
1852 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1854 (emit_clear_objfiles_event): New function.
1855 (clear_objfiles): New event.
1856 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1858 * python/python.c (_initialize_python): Call
1859 gdbpy_initialize_clear_objfiles_event.
1861 2014-10-17 Doug Evans <dje@google.com>
1863 * NEWS: Mention new gdb.Objfile.progspace attribute.
1864 * python/py-objfile.c (objfpy_get_progspace): New function.
1865 (objfile_getset): New entry for "progspace".
1867 2014-10-17 Pedro Alves <palves@redhat.com>
1870 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1871 returns a copy of the input.
1872 (run_command_1, continue_command, step_1, jump_command)
1873 (signal_command, until_command, advance_command, finish_command)
1874 (attach_command): Adjust and install a cleanup to free the
1877 2014-10-17 Pedro Alves <palves@redhat.com>
1880 * infcmd.c (continue_1): If continuing all threads in the
1881 foreground, make sure the inferior's terminal settings are put in
1884 2014-10-17 Pedro Alves <palves@redhat.com>
1887 * annotate.c (annotate_breakpoints_invalid): Use
1888 target_terminal_our_for_output instead of target_terminal_ours.
1889 Give back the terminal to the target.
1890 (annotate_frames_invalid): Likewise.
1892 2014-10-17 Pedro Alves <palves@redhat.com>
1894 * target.c (enum terminal_state): New enum.
1895 (terminal_state): New global.
1896 (target_terminal_init): New function.
1897 (target_terminal_inferior): Skip if inferior already owns the
1899 (target_terminal_ours, target_terminal_ours_for_output): New
1901 * target.h (target_terminal_init): Convert to function prototype.
1902 (target_terminal_ours_for_output): Convert to function prototype
1904 (target_terminal_ours): Convert to function prototype and tweak
1906 * windows-nat.c (do_initial_windows_stuff): Call
1907 target_terminal_init instead of child_terminal_init_with_pgrp.
1909 2014-10-17 Pedro Alves <palves@redhat.com>
1911 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1912 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1913 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1915 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1916 * ada-lang.h [__alpha__ && __osf__]
1917 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1918 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1919 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1921 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1923 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1924 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1925 * configure: Regenerate.
1926 * configure.ac: Remove references to osf.
1927 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1928 section. Remove all other references to osf.
1929 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1930 Remove all other references to osf.
1931 * dec-thread.c: Delete file.
1932 * defs.h (GDB_OSABI_OSF1): Delete.
1933 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1935 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1936 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1938 (unconditionally_kill_inferior)
1939 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1940 * solib-osf.c: Delete file.
1942 2014-10-17 Pedro Alves <palves@redhat.com>
1944 * remote.c (clear_threads_listing_context): Move higher up, out of
1945 the HAVE_LIBEXPAT guard.
1947 2014-10-16 Tristan Gingold <gingold@adacore.com>
1949 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1950 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1953 2014-10-15 Pedro Alves <palves@redhat.com>
1955 * dec-thread.c (dec_thread_count_gdb_threads)
1956 (dec_thread_add_gdb_thread): Delete.
1957 (dec_thread_update_thread_list): Delete.
1958 (dec_thread_find_new_threads): Rename to ...
1959 (dec_thread_update_thread_list): ... this. Delete GDB-size
1960 threads that are no longer found in dec_thread_list.
1961 (resync_thread_list): Delete.
1962 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1965 2014-10-15 Pedro Alves <palves@redhat.com>
1967 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1968 * remote.c (remote_update_thread_list): Skip calling prune_threads
1969 if any thread listing method is supported, and instead walk over
1970 the set of remote threads listed, deleting those that are not
1971 found in GDB's thread list.
1973 2014-10-15 Pedro Alves <palves@redhat.com>
1975 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1976 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1977 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1978 (bsd_uthread_target): Adjust.
1979 * corelow.c (core_open): Adjust.
1980 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1981 (dec_thread_update_thread_list): New function.
1982 (init_dec_thread_ops): Adjust.
1983 * gdbthread.h (prune_threads): New declaration.
1984 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1985 (thread_db_update_thread_list): ... this. Call prune_threads.
1986 (init_thread_db_ops): Adjust.
1987 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1988 (procfs_update_thread_list): ... this. Call prune_threads.
1989 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1991 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1992 (obsd_update_thread_list): ... this. Call prune_threads.
1993 (obsd_add_target): Adjust.
1994 * procfs.c (procfs_target): Adjust.
1995 (procfs_notice_thread): Update comment.
1996 (procfs_find_new_threads): Rename to ...
1997 (procfs_update_thread_list): ... this. Call prune_threads.
1998 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2000 (ravenscar_wait): Adjust.
2001 (ravenscar_find_new_threads): Rename to ...
2002 (ravenscar_update_thread_list): ... this. Call prune_threads.
2003 (init_ravenscar_thread_ops): Adjust.
2004 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2005 (record_btrace_update_thread_list): ... this. Adjust comment.
2006 (init_record_btrace_ops): Adjust.
2007 * remote.c (remote_threads_info): Rename to ...
2008 (remote_update_thread_list): ... this. Call prune_threads.
2009 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2011 * sol-thread.c (check_for_thread_db): Adjust.
2012 (sol_find_new_threads_callback): Rename to ...
2013 (sol_update_thread_list_callback): ... this.
2014 (sol_find_new_threads): Rename to ...
2015 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2016 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2017 * target-delegates.c: Regenerate.
2018 * target.c (target_find_new_threads): Rename to ...
2019 (target_update_thread_list): ... this.
2020 * target.h (struct target_ops): Rename to_find_new_threads field
2021 to to_update_thread_list.
2022 (target_find_new_threads): Rename to ...
2023 (target_update_thread_list): ... this.
2024 * thread.c (prune_threads): Make extern.
2025 (update_thread_list): Adjust.
2027 2014-10-15 Pedro Alves <palves@redhat.com>
2029 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2030 Add describing comment. Return -1 if the qL packet is not
2032 (struct thread_item, thread_item_t): Move higher up in
2033 the file. Add comments.
2034 (struct threads_parsing_context): Move higher up in
2035 the file, add comments, and remote to ...
2036 (struct threads_listing_context): ... this.
2037 (remote_newthread_step): Don't add the thread to GDB's thread
2038 database here. Instead push it to the thread_listing_context
2040 (remote_find_new_threads): Rename to ...
2041 (remote_get_threads_with_ql): ... this. Add target_ops and
2042 targets_listing_context parameters. Pass down context.
2043 (start_thread): Adjust.
2044 (clear_threads_parsing_context): Rename to ...
2045 (clear_threads_listing_context): ... this.
2046 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2047 remote_threads_info.
2048 (remote_get_threads_with_qthreadinfo): Ditto.
2049 (remote_threads_info): Reimplement.
2051 2014-10-15 Pedro Alves <palves@redhat.com>
2053 * infrun.c (resume): Don't force displaced-stepping for all
2054 single-steps on software single-stepping archs.
2056 2014-10-15 Pedro Alves <palves@redhat.com>
2058 * breakpoint.c (single_step_breakpoints): Delete global.
2059 (insert_single_step_breakpoint): Adjust to store the breakpoint
2060 pointer in the current thread.
2061 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2062 (cancel_single_step_breakpoints): Delete functions.
2063 (breakpoint_has_location_inserted_here): Make extern.
2064 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2066 * breakpoint.h (breakpoint_has_location_inserted_here): New
2068 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2069 (cancel_single_step_breakpoints): Remove declarations.
2070 * gdbthread.h (struct thread_control_state)
2071 <single_step_breakpoints>: New field.
2072 (delete_single_step_breakpoints)
2073 (thread_has_single_step_breakpoints_set)
2074 (thread_has_single_step_breakpoint_here): New declarations.
2075 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2076 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2077 (singlestep_pc): Delete globals.
2078 (infrun_thread_ptid_changed): Remove references to removed
2080 (resume_cleanups): Delete the current thread's single-step
2082 (maybe_software_singlestep): Remove references to removed globals.
2083 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2084 delete_single_step_breakpoints.
2085 (init_wait_for_inferior): Remove references to removed globals.
2086 (delete_thread_infrun_breakpoints): Delete the thread's
2087 single-step breakpoints too.
2088 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2089 single-step breakpoints here.
2090 (delete_stopped_threads_single_step_breakpoints): New function.
2091 (adjust_pc_after_break): Adjust to use
2092 thread_has_single_step_breakpoints_set.
2093 (handle_inferior_event): Remove references to removed globals.
2094 Use delete_stopped_threads_single_step_breakpoints.
2095 (handle_signal_stop): Adjust to per-thread single-step
2096 breakpoints. Swap test order to do cheaper tests first.
2097 (switch_back_to_stepped_thread): Extend debug output. Remove
2098 references to removed globals.
2099 * record-full.c (record_full_wait_1): Adjust to per-thread
2100 single-step breakpoints.
2101 * thread.c (delete_single_step_breakpoints)
2102 (thread_has_single_step_breakpoints_set)
2103 (thread_has_single_step_breakpoint_here): New functions.
2104 (clear_thread_inferior_resources): Also delete the thread's
2105 single-step breakpoints.
2107 2014-10-15 Pedro Alves <palves@redhat.com>
2109 * thread.c (delete_thread_breakpoint): New function.
2110 (delete_step_resume_breakpoint)
2111 (delete_exception_resume_breakpoint): Use it.
2112 (delete_at_next_stop): New function.
2113 (clear_thread_inferior_resources): Use delete_at_next_stop.
2115 2014-10-15 Pedro Alves <palves@redhat.com>
2117 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2118 (breakpoint_inserted_here_p): ... here. Remove special case for
2119 software single-step breakpoints.
2120 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2121 (software_breakpoint_inserted_here_p): ... here. Remove special
2122 case for software single-step breakpoints.
2123 (bp_target_info_copy_insertion_state)
2124 (deprecated_insert_raw_breakpoint)
2125 (deprecated_remove_raw_breakpoint): Delete functions.
2126 * breakpoint.h (deprecated_insert_raw_breakpoint)
2127 (deprecated_remove_raw_breakpoint): Remove declarations.
2129 2014-10-15 Pedro Alves <palves@redhat.com>
2132 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2133 Delete array globals.
2134 (single_step_breakpoints): New global.
2135 (breakpoint_xfer_memory): Remove special handling for single-step
2137 (update_breakpoints_after_exec): Delete bp_single_step
2139 (detach_breakpoints): Remove special handling for single-step
2141 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2142 (bpstat_stop_status): Add comment.
2143 (bpstat_what, bptype_string, print_one_breakpoint_location)
2144 (adjust_breakpoint_address, init_bp_location): Handle
2146 (new_single_step_breakpoint): New function.
2147 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2148 handling for single-step breakpoints.
2149 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2150 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2152 (detach_single_step_breakpoints, find_single_step_breakpoint):
2154 (breakpoint_has_location_inserted_here): New function.
2155 (single_step_breakpoint_inserted_here_p): Rewrite.
2156 * breakpoint.h: Remove FIXME.
2157 (enum bptype) <bp_single_step>: New enum value.
2158 (insert_single_step_breakpoint): Update comment.
2159 * infrun.c (resume_cleanups)
2160 (delete_step_thread_step_resume_breakpoint): Remove single-step
2162 (fetch_inferior_event): Install a cleanup that removes infrun
2164 (switch_back_to_stepped_thread) <expect thread advanced also>:
2165 Clear step-over info.
2167 2014-10-15 Pedro Alves <palves@redhat.com>
2169 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2170 (delete_thread_infrun_breakpoints): New function, with parts
2171 salvaged from delete_step_resume_breakpoint_callback.
2172 (delete_step_thread_step_resume_breakpoint): Delete.
2173 (for_each_just_stopped_thread_callback_func): New typedef.
2174 (for_each_just_stopped_thread): New function.
2175 (delete_just_stopped_threads_infrun_breakpoints): New function.
2176 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2177 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2179 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2181 2014-10-15 Pedro Alves <palves@redhat.com>
2183 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2184 trying to step past a non-steppable watchpoint.
2185 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2187 * infrun.c (struct step_over_info): Add new field
2188 'nonsteppable_watchpoint_p' and adjust comments.
2189 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2191 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2192 (stepping_past_nonsteppable_watchpoint): New function.
2193 (step_over_info_valid_p): Also return true if stepping past a
2194 nonsteppable watchpoint.
2195 (proceed): Adjust call to set_step_over_info. Remove reference to
2197 (init_wait_for_inferior): Remove reference to init_infwait_state.
2198 (waiton_ptid): Delete global.
2199 (struct execution_control_state)
2200 <stepped_after_stopped_by_watchpoint>: Delete field.
2201 (wait_for_inferior, fetch_inferior_event): Always pass
2202 minus_one_ptid to target_wait.
2203 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2205 (init_infwait_state): Delete function.
2206 (handle_inferior_event): Remove infwait_state handling.
2207 (handle_signal_stop) <watchpoints handling>: Adjust after
2208 stepped_after_stopped_by_watchpoint removal. Don't remove
2209 breakpoints here nor set infwait_state. Set the thread's
2210 stepping_over_watchpoint flag, and call keep_going instead.
2211 (keep_going): Handle stepping_over_watchpoint. Adjust
2212 set_step_over_info calls.
2213 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2216 2014-10-15 Pedro Alves <palves@redhat.com>
2218 * infrun.c (step_over_info_valid_p): New function.
2219 (resume): Use step_over_info_valid_p instead of checking the
2220 threads's trap_expected flag.
2222 2014-10-15 Doug Evans <dje@google.com>
2223 Walfred Tedeschi <walfred.tedeschi@intel.com>
2226 * python/lib/gdb/__init__.py (packages): Add "printer".
2227 * python/lib/gdb/command/bound_registers.py: Moved to ...
2228 * python/lib/gdb/printer/bound_registers.py: ... here.
2229 Add printer to global set of builtin printers. Rename printer from
2230 "bound" to "mpx_bound128".
2231 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2232 registered as global "builtin" printer.
2233 (add_builtin_pretty_printer): New function.
2234 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2235 gdb/printer/__init__.py.
2237 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2239 * Makefile.in (SFILES): Remove d-support.c.
2240 (COMMON_OBS): Remove d-support.o.
2241 * d-lang.h (d_parse_symbol): Remove declaration.
2242 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2243 * d-support.c: Remove file.
2245 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2247 * gdb/infrun.c (process_event_stop_test): Apply
2248 gdbarch_addr_bits_remove to longjmp resume address.
2250 2014-10-15 Pedro Alves <palves@redhat.com>
2252 * regformats/microblaze.dat: Delete file.
2254 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2256 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2257 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2259 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2261 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2264 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2268 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2269 with qualified args.
2271 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2273 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2274 of the case where the second operand is a pointer.
2275 <BINOP_SUB>: Likewise.
2277 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2279 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2280 only if it is not NULL.
2281 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2282 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2283 (struct probe_ops) <clear_semaphore>: Likewise.
2284 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2286 (stop_tracing): Likewise, for clear_semaphore.
2288 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2290 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2291 using language_c, instead of current_language.
2293 2014-10-13 Doug Evans <dje@google.com>
2295 * python/py-objfile.c (objfpy_initialize): New function.
2296 (objfpy_new, objfile_to_objfile_object): Call it.
2297 * python/py-progspace.c (pspy_initialize): New function.
2298 (pspy_new, pspace_to_pspace_object): Call it.
2300 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2301 Jan Kratochvil <jan.kratochvil@redhat.com>
2303 Fix "save breakpoints" for "catch" command.
2304 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2307 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2309 Fix "save breakpoints" for "disable $bpnum" command.
2310 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2312 2014-10-10 Pedro Alves <palves@redhat.com>
2314 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2315 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2316 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2317 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2319 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2320 * configure.ac: Remove references to IRIX.
2321 * configure.host: Add *-*-irix* to the obsolete hosts section.
2322 Remove all other references to irix.
2323 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2326 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2328 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2329 isn't valid, release the tdesc arch data and return NULL.
2331 2014-10-10 Pedro Alves <palves@redhat.com>
2333 * linux-tdep.c: Include observer.h.
2334 (linux_inferior_data): New global.
2335 (struct linux_info): New structure.
2336 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2337 (get_linux_inferior_data): New functions.
2338 (linux_vsyscall_range): Rename to ...
2339 (linux_vsyscall_range_raw): ... this.
2340 (linux_vsyscall_range): New function; handles caching.
2341 (_initialize_linux_tdep): Register linux_inferior_data. Install
2342 inferior_exit and inferior_appeared observers.
2344 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2345 Pedro Alves <palves@redhat.com>
2348 * solib-svr4.c (svr4_read_so_list): Rename to ...
2349 (svr4_current_sos_1): ... this and change the function comment.
2350 (svr4_current_sos): New function.
2352 2014-10-10 Pedro Alves <palves@redhat.com>
2354 * arch-utils.c (default_vsyscall_range): New function.
2355 * arch-utils.h (default_vsyscall_range): New declaration.
2356 * gdbarch.sh (vsyscall_range): New hook.
2357 * gdbarch.h, gdbarch.c: Regenerate.
2358 * linux-tdep.c (linux_vsyscall_range): New function.
2359 (linux_init_abi): Install linux_vsyscall_range as
2360 vsyscall_range gdbarch hook.
2361 * memrange.c (address_in_mem_range): New function.
2362 * memrange.h (address_in_mem_range): New declaration.
2363 * symfile-mem.c (find_vdso_size): Delete function.
2364 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2366 2014-10-10 Pedro Alves <palves@redhat.com>
2368 * infrun.c (normal_stop): Fix typo in comment.
2370 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2373 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2374 typo when using logical AND to determine instruction type.
2376 2014-10-09 Yao Qi <yao@codesourcery.com>
2378 * infrun.c (handle_signal_stop): Remove local variable
2381 2014-10-08 Stan Shebs <stan@codesourcery.com>
2383 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2385 2014-10-08 Gary Benson <gbenson@redhat.com>
2387 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2389 2014-10-08 Gary Benson <gbenson@redhat.com>
2391 * common/common-defs.h: Include common-exceptions.h.
2392 * exceptions.h: Do not include common-exceptions.h.
2394 2014-10-08 Gary Benson <gbenson@redhat.com>
2396 * common/common-defs.h: Include cleanups.h.
2397 * common/common-exceptions.c: Do not include cleanups.h.
2398 * utils.h: Likewise.
2400 2014-10-08 Gary Benson <gbenson@redhat.com>
2402 * ada-lang.c: Do not include exceptions.h.
2403 * ada-valprint.c: Likewise.
2404 * amd64-tdep.c: Likewise.
2405 * auto-load.c: Likewise.
2406 * block.c: Likewise.
2407 * break-catch-throw.c: Likewise.
2408 * breakpoint.c: Likewise.
2409 * btrace.c: Likewise.
2410 * c-lang.c: Likewise.
2411 * cli/cli-cmds.c: Likewise.
2412 * cli/cli-interp.c: Likewise.
2413 * cli/cli-script.c: Likewise.
2414 * completer.c: Likewise.
2415 * corefile.c: Likewise.
2416 * corelow.c: Likewise.
2417 * cp-abi.c: Likewise.
2418 * cp-support.c: Likewise.
2419 * cp-valprint.c: Likewise.
2420 * darwin-nat.c: Likewise.
2421 * dwarf2-frame-tailcall.c: Likewise.
2422 * dwarf2-frame.c: Likewise.
2423 * dwarf2loc.c: Likewise.
2424 * dwarf2read.c: Likewise.
2426 * event-loop.c: Likewise.
2427 * event-top.c: Likewise.
2428 * f-valprint.c: Likewise.
2429 * frame-unwind.c: Likewise.
2430 * frame.c: Likewise.
2431 * gdbtypes.c: Likewise.
2432 * gnu-v2-abi.c: Likewise.
2433 * gnu-v3-abi.c: Likewise.
2434 * guile/scm-auto-load.c: Likewise.
2435 * guile/scm-breakpoint.c: Likewise.
2436 * guile/scm-cmd.c: Likewise.
2437 * guile/scm-frame.c: Likewise.
2438 * guile/scm-lazy-string.c: Likewise.
2439 * guile/scm-param.c: Likewise.
2440 * guile/scm-symbol.c: Likewise.
2441 * guile/scm-type.c: Likewise.
2442 * hppa-hpux-tdep.c: Likewise.
2443 * i386-tdep.c: Likewise.
2444 * inf-loop.c: Likewise.
2445 * infcall.c: Likewise.
2446 * infcmd.c: Likewise.
2447 * infrun.c: Likewise.
2448 * interps.c: Likewise.
2449 * interps.h: Likewise.
2451 * linespec.c: Likewise.
2452 * linux-nat.c: Likewise.
2453 * linux-thread-db.c: Likewise.
2454 * m32r-rom.c: Likewise.
2456 * memory-map.c: Likewise.
2457 * mi/mi-cmd-break.c: Likewise.
2458 * mi/mi-cmd-stack.c: Likewise.
2459 * mi/mi-interp.c: Likewise.
2460 * mi/mi-main.c: Likewise.
2461 * monitor.c: Likewise.
2462 * nto-procfs.c: Likewise.
2463 * objc-lang.c: Likewise.
2464 * p-valprint.c: Likewise.
2465 * parse.c: Likewise.
2466 * ppc-linux-tdep.c: Likewise.
2467 * printcmd.c: Likewise.
2468 * probe.c: Likewise.
2469 * python/py-auto-load.c: Likewise.
2470 * python/py-breakpoint.c: Likewise.
2471 * python/py-cmd.c: Likewise.
2472 * python/py-finishbreakpoint.c: Likewise.
2473 * python/py-frame.c: Likewise.
2474 * python/py-framefilter.c: Likewise.
2475 * python/py-function.c: Likewise.
2476 * python/py-gdb-readline.c: Likewise.
2477 * python/py-inferior.c: Likewise.
2478 * python/py-infthread.c: Likewise.
2479 * python/py-lazy-string.c: Likewise.
2480 * python/py-linetable.c: Likewise.
2481 * python/py-param.c: Likewise.
2482 * python/py-prettyprint.c: Likewise.
2483 * python/py-symbol.c: Likewise.
2484 * python/py-type.c: Likewise.
2485 * python/py-value.c: Likewise.
2486 * python/python-internal.h: Likewise.
2487 * python/python.c: Likewise.
2488 * record-btrace.c: Likewise.
2489 * record-full.c: Likewise.
2490 * regcache.c: Likewise.
2491 * remote-fileio.c: Likewise.
2492 * remote-mips.c: Likewise.
2493 * remote.c: Likewise.
2494 * rs6000-aix-tdep.c: Likewise.
2495 * rs6000-nat.c: Likewise.
2497 * solib-darwin.c: Likewise.
2498 * solib-dsbt.c: Likewise.
2499 * solib-frv.c: Likewise.
2500 * solib-ia64-hpux.c: Likewise.
2501 * solib-spu.c: Likewise.
2502 * solib-svr4.c: Likewise.
2503 * solib.c: Likewise.
2504 * spu-tdep.c: Likewise.
2505 * stack.c: Likewise.
2506 * stap-probe.c: Likewise.
2507 * symfile-mem.c: Likewise.
2508 * symmisc.c: Likewise.
2509 * target.c: Likewise.
2510 * thread.c: Likewise.
2512 * tracepoint.c: Likewise.
2513 * tui/tui-interp.c: Likewise.
2514 * typeprint.c: Likewise.
2515 * utils.c: Likewise.
2516 * valarith.c: Likewise.
2517 * valops.c: Likewise.
2518 * valprint.c: Likewise.
2519 * value.c: Likewise.
2520 * varobj.c: Likewise.
2521 * windows-nat.c: Likewise.
2522 * xml-support.c: Likewise.
2524 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2526 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2528 (extended_mips16_next_pc): Update accordingly.
2530 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2532 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2534 (micromips_instruction_is_compact_branch): Likewise.
2535 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2536 or a compact jump, reaching a jump delay slot, or seeing a
2537 second non-prologue instruction.
2538 (micromips_scan_prologue): Also terminate scanning upon seeing a
2539 compact branch or jump, or reaching a branch or jump delay slot.
2540 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2541 or jump delay slot, or seeing a second non-prologue instruction.
2542 (mips32_instruction_has_delay_slot): Retain instruction
2543 examination code only, update arguments accordingly and move
2544 instruction fetch pieces to...
2545 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2546 (micromips_instruction_has_delay_slot): Likewise and to...
2547 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2548 (mips16_instruction_has_delay_slot): Likewise and to...
2549 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2550 (mips_single_step_through_delay): Update accordingly.
2551 (mips_adjust_breakpoint_address): Likewise.
2553 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2555 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2556 !mustbe32 also return 1 for 32-bit instructions.
2557 (mips16_instruction_has_delay_slot): Likewise. Add an
2558 explanatory comment.
2560 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2562 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2565 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2567 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2569 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2570 for the breakpoint's address. Don't preinitialize `placed_size'.
2571 (insert_bp_location): Set `reqstd_address' rather than
2573 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2574 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2576 (bkpt_remove_location): Likewise.
2577 (deprecated_insert_raw_breakpoint): Likewise.
2578 (deprecated_remove_raw_breakpoint): Likewise.
2579 (find_single_step_breakpoint): Likewise.
2580 * mem-break.c (default_memory_insert_breakpoint): Use
2581 `reqstd_address' for the breakpoint's address. Don't set
2582 `placed_address' or `placed_size' if breakpoint contents couldn't
2583 have been determined.
2584 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2585 the breakpoint's address.
2586 (remote_insert_hw_breakpoint): Likewise. Don't set
2587 `placed_address' or `placed_size' if breakpoint couldn't have been
2589 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2590 `reqstd_address' for the breakpoint's address.
2591 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2592 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2593 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2594 * microblaze-linux-tdep.c
2595 (microblaze_linux_memory_remove_breakpoint): Likewise.
2596 * monitor.c (monitor_insert_breakpoint): Likewise.
2597 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2598 (procfs_insert_hw_breakpoint): Likewise.
2599 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2600 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2601 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2602 * remote-mips.c (mips_insert_breakpoint): Likewise.
2603 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2605 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2607 * valops.c (value_assign): Check for bit field assignments
2608 before calling architecture-specific register value
2609 conversion functions.
2611 2014-10-03 Pierre Muller <muller@sourceware.org>
2613 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2615 2014-10-02 Pedro Alves <palves@redhat.com>
2617 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2618 threads_are_executing.
2619 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2621 * gdbthread.h (threads_are_executing): Declare.
2622 (handle_signal_stop) <random signals>: Don't print about the
2623 signal here if stopping.
2624 (end_stepping_range): Don't notify observers here.
2625 (normal_stop): Update the thread list. If stopped by a random
2626 signal or a stepping range ended, notify observers.
2627 * thread.c (threads_executing): New global.
2628 (init_thread_list): Clear 'threads_executing'.
2629 (set_executing): Set or clear 'threads_executing'.
2630 (threads_are_executing): New function.
2631 (update_threads_executing): New function.
2632 (update_thread_list): Use it.
2634 2014-10-02 Pedro Alves <palves@redhat.com>
2636 PR breakpoints/17431
2637 * breakpoint.c (update_breakpoints_after_exec): Don't create
2638 overlay, longjmp, std terminate nor exception breakpoints here.
2640 2014-10-02 Pedro Alves <palves@redhat.com>
2642 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2644 * inferior.c (find_inferior_for_program_space): Give preference to
2645 the current inferior.
2646 * inferior.h (find_inferior_for_program_space): Update comment.
2647 * progspace.c (switch_to_program_space_and_thread): Prefer the
2648 current inferior if it's bound to the program space requested. If
2649 the inferior found doesn't have a PID yet, don't bother looking up
2651 * progspace.h (switch_to_program_space_and_thread): Adjust
2653 * thread.c (any_thread_of_process, any_live_thread_of_process):
2654 Give preference to the current thread.
2656 2014-10-01 Pedro Alves <palves@redhat.com>
2658 * breakpoint.c (insert_bp_location): Error out if inserting a
2659 software breakpoint at a read-only address.
2660 * target.c (memory_xfer_check_region): New function, factored out
2662 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2664 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2665 against the memory region attributes.
2667 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2669 * NEWS: Announce new exit-code field in -list-thread-groups
2671 * inferior.c (exit_inferior_1): Don't clear exit code.
2672 (inferior_appeared): Clear exit code.
2673 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2676 2014-10-01 Pedro Alves <palves@redhat.com>
2678 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2679 GENERATED" along with emacs/vi read-only markers.
2680 * regformats/aarch64.dat: Regenerate.
2681 * regformats/arm-with-iwmmxt.dat: Regenerate.
2682 * regformats/arm-with-neon.dat: Regenerate.
2683 * regformats/arm-with-vfpv2.dat: Regenerate.
2684 * regformats/arm-with-vfpv3.dat: Regenerate.
2685 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2686 * regformats/i386/amd64-avx.dat: Regenerate.
2687 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2688 * regformats/i386/amd64-avx512.dat: Regenerate.
2689 * regformats/i386/amd64-linux.dat: Regenerate.
2690 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2691 * regformats/i386/amd64-mpx.dat: Regenerate.
2692 * regformats/i386/amd64.dat: Regenerate.
2693 * regformats/i386/i386-avx-linux.dat: Regenerate.
2694 * regformats/i386/i386-avx.dat: Regenerate.
2695 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2696 * regformats/i386/i386-avx512.dat: Regenerate.
2697 * regformats/i386/i386-linux.dat: Regenerate.
2698 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2699 * regformats/i386/i386-mmx.dat: Regenerate.
2700 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2701 * regformats/i386/i386-mpx.dat: Regenerate.
2702 * regformats/i386/i386.dat: Regenerate.
2703 * regformats/i386/x32-avx-linux.dat: Regenerate.
2704 * regformats/i386/x32-avx.dat: Regenerate.
2705 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2706 * regformats/i386/x32-avx512.dat: Regenerate.
2707 * regformats/i386/x32-linux.dat: Regenerate.
2708 * regformats/i386/x32.dat: Regenerate.
2709 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2710 * regformats/mips-dsp-linux.dat: Regenerate.
2711 * regformats/mips-linux.dat: Regenerate.
2712 * regformats/mips64-dsp-linux.dat: Regenerate.
2713 * regformats/mips64-linux.dat: Regenerate.
2714 * regformats/nios2-linux.dat: Regenerate.
2715 * regformats/rs6000/powerpc-32.dat: Regenerate.
2716 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2717 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2718 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2719 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2720 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2721 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2722 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2723 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2724 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2725 * regformats/s390-linux32.dat: Regenerate.
2726 * regformats/s390-linux32v1.dat: Regenerate.
2727 * regformats/s390-linux32v2.dat: Regenerate.
2728 * regformats/s390-linux64.dat: Regenerate.
2729 * regformats/s390-linux64v1.dat: Regenerate.
2730 * regformats/s390-linux64v2.dat: Regenerate.
2731 * regformats/s390-te-linux64.dat: Regenerate.
2732 * regformats/s390x-linux64.dat: Regenerate.
2733 * regformats/s390x-linux64v1.dat: Regenerate.
2734 * regformats/s390x-linux64v2.dat: Regenerate.
2735 * regformats/s390x-te-linux64.dat: Regenerate.
2736 * regformats/tic6x-c62x-linux.dat: Regenerate.
2737 * regformats/tic6x-c62x.dat: Regenerate.
2738 * regformats/tic6x-c64x-linux.dat: Regenerate.
2739 * regformats/tic6x-c64x.dat: Regenerate.
2740 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2741 * regformats/tic6x-c64xp.dat: Regenerate.
2743 2014-10-01 Pedro Alves <palves@redhat.com>
2745 * features/Makefile: Update comments.
2746 (XMLTOC): List all xml files we build C files from.
2747 (clean-cfiles): New rule.
2749 2014-10-01 Pedro Alves <palves@redhat.com>
2751 * features/i386/amd64-avx512-linux.c: Regenerate.
2752 * features/i386/amd64-avx512.c: Regenerate.
2753 * features/i386/x32-avx512-linux.c: Regenerate.
2754 * features/i386/x32-avx512.c: Regenerate.
2756 2014-10-01 Pedro Alves <palves@redhat.com>
2758 * features/Makefile (WHICH): Remove arm-with-m,
2759 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2761 2014-10-01 Pedro Alves <palves@redhat.com>
2763 * features/Makefile (clean): New rule.
2765 2014-10-01 Pedro Alves <palves@redhat.com>
2767 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2768 (zmm14h): Add missing end quotes.
2770 2014-10-01 Pedro Alves <palves@redhat.com>
2772 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2773 * features/aarch64.c: Regenerate.
2775 2014-09-30 Don Breazeal <donb@codesourcery.com>
2777 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2778 code so as to work with follow_fork_inferior.
2779 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2780 (inf_ttrace_create_inferior): Remove reference to
2781 inf_ttrace_vfork_ppid.
2782 (inf_ttrace_attach): Ditto.
2783 (inf_ttrace_detach): Ditto.
2784 (inf_ttrace_kill): Use current_inferior instead of
2785 inf_ttrace_vfork_ppid.
2786 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2787 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2788 inferior away from the parent.
2789 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2791 (follow_fork_inferior): New function.
2792 (follow_inferior_reset_breakpoints): Make function static.
2793 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2794 * linux-nat.c (linux_child_follow_fork): Move target-independent
2795 code to infrun.c:follow_fork_inferior.
2797 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2799 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2800 * gdbarch.c: Regenerate.
2801 * gdbarch.h: Likewise.
2802 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2803 gdbarch method 'regset_from_core_section'.
2804 (get_core_register_section): Remove handling for the case that
2805 regset == NULL and regset_from_core_section is defined.
2806 (get_core_registers): Drop check for deleted method.
2807 * procfs.c (procfs_do_thread_registers): Adjust comment.
2809 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2811 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2812 (linux_nat_make_corefile_notes): Remove.
2813 (linux_target_install_ops): Do not set target method
2814 'make_corefile_notes'.
2815 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2817 (linux_corefile_thread_callback): Instead of args->collect, call
2818 linux_collect_thread_registers.
2819 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2820 NULL unless there is a regset iterator.
2821 (linux_make_corefile_notes_1): Remove.
2822 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2823 by linux_make_corefile_notes.
2824 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2826 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2828 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2829 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2831 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2833 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2835 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2836 (xtensa_iterate_over_regset_sections): New.
2837 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2839 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2841 * vax-tdep.c (vax_regset_from_core_section): Remove.
2842 (vax_iterate_over_regset_sections): New.
2843 (vax_gdbarch_init): Adjust gdbarch initialization.
2845 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2847 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2848 (tilegx_regset_from_core_section): Remove.
2849 (tilegx_iterate_over_regset_sections): New.
2850 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2852 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2854 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2855 (sparc_iterate_over_regset_sections): New.
2856 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2857 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2859 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2860 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2861 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2862 target method 'make_corefile_notes'.
2864 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2866 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2867 'sizeof_gregset' and 'sizeof_fpregset'.
2868 * sh-tdep.c (sh_regset_from_core_section): Remove.
2869 (sh_iterate_over_regset_sections): New.
2870 (sh_gdbarch_init): Adjust gdbarch initialization.
2871 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2873 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2876 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2878 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2879 (score7_linux_iterate_over_regset_sections): New.
2880 (score_gdbarch_init): Adjust gdbarch initialization.
2882 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2884 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2886 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2887 method 'make_corefile_notes'.
2888 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2889 (ppcfbsd_regset_from_core_section): Remove.
2890 (ppcfbsd_iterate_over_regset_sections): New.
2891 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2893 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2894 (ppcnbsd_iterate_over_regset_sections): New.
2895 (ppcnbsd_init_abi): Adjust.
2896 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2897 (ppcobsd_iterate_over_regset_sections): New.
2898 (ppcobsd_init_abi): Adjust.
2899 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2900 (rs6000_aix_iterate_over_regset_sections): New.
2901 (rs6000_aix_init_osabi): Adjust.
2903 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2905 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2906 (nios2_regset_from_core_section): Remove.
2907 (nios2_iterate_over_regset_sections): New.
2908 (nios2_linux_init_abi): Adjust gdbarch initialization.
2910 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2912 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2913 (am33_iterate_over_regset_sections): New.
2914 (am33_linux_init_osabi): Adjust gdbarch initialization.
2916 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2918 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2919 (mips_linux_iterate_over_regset_sections): New.
2920 (mips_linux_init_abi): Adjust gdbarch initialization.
2921 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2922 (mips64obsd_iterate_over_regset_sections): New.
2923 (mips64obsd_init_abi): Adjust.
2924 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2925 (mipsnbsd_iterate_over_regset_sections): New.
2926 (mipsnbsd_init_abi): Adjust.
2928 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2930 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2931 (m88k_iterate_over_regset_sections): New.
2932 (m88k_gdbarch_init): Adjust gdbarch initialization.
2934 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2936 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2937 (ia64_linux_iterate_over_regset_sections): New.
2938 (ia64_linux_init_abi): Adjust gdbarch initialization.
2940 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2942 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2943 (m68kbsd_iterate_over_regset_sections): New.
2944 (m68kbsd_init_abi): Adjust gdbarch initialization.
2945 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2946 (m68k_linux_iterate_over_regset_sections): New.
2947 (m68k_linux_init_abi): Adjust gdbarch initialization.
2949 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2951 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2952 (m32r_linux_regset_from_core_section): Remove.
2953 (m32r_linux_iterate_over_regset_sections): New.
2954 (m32r_linux_init_abi): Adjust gdbarch initialization.
2956 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2958 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2959 (amd64obsd_iterate_over_regset_sections): New.
2960 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2961 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2963 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2964 regset_from_core_section initialization.
2965 * i386-tdep.c (i386_regset_from_core_section): Remove.
2966 (i386_iterate_over_regset_sections): New.
2967 (i386_gdbarch_init): Adjust gdbarch initialization.
2968 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2969 (i386_iterate_over_regset_sections): New prototype.
2970 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2972 (i386obsd_aout_iterate_over_regset_sections): New.
2973 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2974 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2976 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2977 (amd64fbsd_init_abi): Call fbsd_init_abi.
2978 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2979 (i386fbsd4_init_abi): Call fbsd_init_abi.
2980 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2981 target method 'make_corefile_notes'.
2982 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2984 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2986 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2987 (hppa_hpux_iterate_over_regset_sections): New.
2988 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2989 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2990 (hppa_linux_iterate_over_regset_sections): New.
2991 (hppa_linux_init_abi): Adjust.
2992 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2993 (hppanbsd_iterate_over_regset_sections): New.
2994 (hppanbsd_init_abi): Adjust.
2995 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2996 (hppaobsd_iterate_over_regset_sections): New.
2997 (hppaobsd_init_abi): Adjust.
2999 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3001 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3002 (frv_linux_iterate_over_regset_sections): New.
3003 (frv_linux_init_abi): Adjust gdbarch initialization.
3005 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3007 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3008 (armbsd_iterate_over_regset_sections): New prototype.
3009 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3010 (armbsd_iterate_over_regset_sections): New.
3011 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3014 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3016 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3017 (alpha_linux_iterate_over_regset_sections): New.
3018 (alpha_linux_init_abi): Adjust gdbarch initialization.
3019 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3021 (alphanbsd_iterate_over_regset_sections): New prototype.
3023 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3025 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3027 (aarch64_linux_iterate_over_regset_sections): New.
3028 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3030 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3032 * fbsd-tdep.c: New file.
3033 * fbsd-tdep.h: New file.
3034 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3035 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3036 (ALLDEPFILES): Add fbsd-tdep.c.
3038 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3040 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3042 * gdbarch.h: Regenerate.
3043 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3045 (get_core_register_section): Add parameter 'regset' and use it, if
3046 set. Add parameter 'min_size' and verify the bfd section size
3048 (get_core_registers_cb): Add parameter 'regset' and pass it to
3049 get_core_register section. For the "standard" register sections
3050 ".reg" and ".reg2", set an appropriate default for human_name.
3051 (get_core_registers): Don't abort when the gdbarch has an iterator
3052 but no regset_from_core_section. Add NULL/0 for parameters
3053 'regset'/'min_size' in calls to get_core_register_section.
3054 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3055 'regset' and use it instead of calling the
3056 regset_from_core_section gdbarch method.
3057 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3058 * i386-tdep.c (i386_supply_xstateregset)
3059 (i386_collect_xstateregset, i386_xstateregset): Moved to
3061 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3063 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3064 core file support only if the regset iterator hasn't been set.
3065 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3066 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3067 Moved from i386-tdep.c and renamed to *_linux*.
3068 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3069 each callback invocation. Allow any .reg-xstate size when reading
3071 * amd64-tdep.c (amd64_supply_xstateregset)
3072 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3074 (amd64_regset_from_core_section): Remove.
3075 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3076 install an amd64-specific regset_from_core_section gdbarch method.
3077 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3078 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3079 Moved from amd64-tdep.c and renamed to *_linux*.
3080 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3081 to each callback invocation. Allow any .reg-xstate size when
3082 reading from a core file.
3083 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3084 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3085 each callback invocation.
3086 (arm_linux_init_abi): No longer set the regset_from_core_section
3088 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3089 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3090 each callback invocation.
3091 (ppc_linux_init_abi): No longer set the regset_from_core_section
3093 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3094 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3095 (s390_regset_from_core_section): Remove.
3096 (s390_iterate_over_regset_sections): Add regset parameter to each
3097 callback invocation.
3098 (s390_gdbarch_init): No longer set the regset_from_core_section
3099 gdbarch method. Drop initialization of deleted tdep fields.
3101 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3103 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3104 (amd64_linux_iterate_over_regset_sections): New.
3105 (amd64_linux_init_abi_common): Don't install the regset section
3106 list, but the new iterator in gdbarch.
3107 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3108 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3109 (arm_linux_iterate_over_regset_sections): ...here. New function.
3110 (arm_linux_init_abi): Set iterator instead of section list.
3111 * corelow.c (get_core_registers_cb): New function, logic moved
3113 (get_core_registers): ...loop body here. Use new iterator method
3114 instead of walking through the regset section list.
3115 * gdbarch.sh: Remove 'core_regset_sections'. New method
3116 'iterate_over_regset_sections'. New typedef
3117 'iterate_over_regset_sections_cb'.
3118 * gdbarch.c: Regenerate.
3119 * gdbarch.h: Likewise.
3120 * i386-linux-tdep.c (i386_linux_regset_sections)
3121 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3123 (i386_linux_iterate_over_regset_sections): New.
3124 (i386_linux_init_abi): Don't choose a regset section list, but
3125 install new iterator in gdbarch.
3126 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3127 (linux_collect_regset_section_cb): New function, logic moved
3129 (linux_collect_thread_registers): ...loop body here. Use iterator
3130 method instead of walking through list.
3131 (linux_make_corefile_notes_1): Check for presence of iterator
3132 method instead of regset section list.
3133 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3134 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3135 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3136 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3137 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3138 (ppc_linux_init_abi): Don't choose from above regset section
3139 lists, but install new iterator in gdbarch.
3140 * regset.h (struct core_regset_section): Remove.
3141 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3142 have_linux_v1, have_linux_v2, and have_tdb.
3143 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3144 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3145 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3146 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3147 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3148 (s390_iterate_over_regset_sections): ...here. New function. Use
3150 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3151 regset section lists, but install new iterator.
3153 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3155 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3157 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3159 * progspace.c (print_program_space): Don't prune program spaces
3160 before printing them.
3162 2014-09-25 Pedro Alves <palves@redhat.com>
3164 * infrun.c (user_visible_resume_ptid): Don't check
3165 singlestep_breakpoints_inserted_p.
3167 2014-09-25 Pedro Alves <palves@redhat.com>
3169 * breakpoint.c (should_be_inserted): Add debug output.
3171 2014-09-25 Pedro Alves <palves@redhat.com>
3173 * infrun.c (stepping_past_instruction_at)
3174 (clear_exit_convenience_vars): Point at infrun.h instead of
3176 (handle_signal_stop): Fix typo.
3178 2014-09-24 Yao Qi <yao@codesourcery.com>
3180 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3183 2014-09-22 Gary Benson <gbenson@redhat.com>
3185 * target.c (target_stop): Updated comment.
3187 2014-09-22 Gary Benson <gbenson@redhat.com>
3189 * target/target.h (target_stop_ptid): Renamed as...
3190 (target_stop_and_wait): New function. Updated comment.
3192 (target_continue_ptid): Renamed as...
3193 (target_continue_no_signal): New function. Updated comment.
3196 2014-09-22 Pedro Alves <palves@redhat.com>
3198 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3200 * breakpoint.c (enum ugll_insert_mode): New enum.
3201 (always_inserted_mode): Now a plain boolean.
3202 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3203 (breakpoints_always_inserted_mode): Delete.
3204 (breakpoints_should_be_inserted_now): New function.
3205 (insert_breakpoints): Pass UGLL_INSERT to
3206 update_global_location_list instead of calling
3207 insert_breakpoint_locations manually.
3208 (create_solib_event_breakpoint_1): New, factored out from ...
3209 (create_solib_event_breakpoint): ... this.
3210 (create_and_insert_solib_event_breakpoint): Use
3211 create_solib_event_breakpoint_1 instead of calling
3212 insert_breakpoint_locations manually.
3213 (update_global_location_list): Change parameter type from boolean
3214 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3215 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3216 (update_global_location_list_nothrow): Change parameter type from
3217 boolean to enum ugll_insert_mode.
3218 (_initialize_breakpoint): "breakpoint always-inserted" option is
3219 now a boolean command. Update help text.
3220 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3221 (breakpoints_should_be_inserted_now): New declaration.
3222 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3223 Remove breakpoints_always_inserted_mode check.
3224 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3225 * remote.c (remote_start_remote): Likewise.
3227 2014-09-22 Pedro Alves <palves@redhat.com>
3229 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3230 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3231 Instead, pass UGLL_INSERT to update_global_location_list.
3232 (update_global_location_list): Change parameter type from boolean
3233 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3234 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3235 (create_solib_event_breakpoint_1): New, factored out from ...
3236 (create_solib_event_breakpoint): ... this.
3237 (create_and_insert_solib_event_breakpoint): Use
3238 create_solib_event_breakpoint_1 instead of calling
3239 insert_breakpoint_locations manually.
3240 (update_global_location_list): Handle UGLL_INSERT.
3242 2014-09-22 Pedro Alves <palves@redhat.com>
3244 * breakpoint.c (enum ugll_insert_mode): New enum.
3245 (update_global_location_list)
3246 (update_global_location_list_nothrow): Change parameter type from
3247 boolean to enum ugll_insert_mode. All callers adjusted.
3249 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3251 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3252 SystemTap support in GDB.
3254 2014-09-19 Don Breazeal <donb@codesourcery.com>
3256 * linux-nat.c (linux_handle_extended_wait): Call
3257 linux_ptrace_get_extended_event.
3258 (wait_lwp): Call linux_is_extended_waitstatus.
3259 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3260 and linux_is_extended_waitstatus.
3261 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3262 linux_ptrace_get_extended_event.
3263 (linux_ptrace_get_extended_event): New function.
3264 (linux_is_extended_waitstatus): New function.
3265 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3266 (linux_is_extended_waitstatus): New declarations.
3268 2014-09-19 Yao Qi <yao@codesourcery.com>
3270 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3271 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3272 comments. Callers update.
3273 (dwarf_decode_lines): Likewise.
3274 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3275 comments. Skip the line table if 'lowpc' is greater than
3276 'address'. Don't check
3277 dwarf2_per_objfile->has_section_at_zero.
3279 2014-09-18 Doug Evans <dje@google.com>
3281 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3282 * python/py-symtab.c (stpy_get_producer): New function.
3283 (symtab_object_getset): Add "producer" attribute.
3285 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3288 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3289 (do_captured_read_memory_integer): Remove.
3290 (safe_read_memory_integer): Use target_read_memory directly instead
3291 of catching errors in do_captured_read_memory_integer.
3293 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3295 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3298 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3300 * objc-lang.c (find_implementation_from_class): Remove dead code.
3302 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3305 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3306 "fprintf_unfiltered (gdb_stdlog...)".
3308 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3310 PR breakpoints/12526
3311 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3313 * breakpoint.c (watch_command_1): Use these fields to retain
3314 bitfield information.
3315 (extract_bitfield_from_watchpoint_value): New function.
3316 (watchpoint_check): Use it.
3317 (update_watchpoint): Use it. Optimize the address and length of a
3318 HW watchpoint pointing to a bitfield.
3319 * value.h (unpack_value_bitfield): New prototype.
3320 * value.c (unpack_value_bitfield): Make extern.
3322 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3324 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3326 * gnu-nat.c (inf_threads): New function.
3327 * gnu-nat.h (inf_threads_ftype): New typedef.
3328 (inf_threads): New declaration.
3329 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3330 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3331 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3332 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3333 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3334 (i386_gnu_dr_get_control): New functions.
3335 (reg_addr): New structure.
3336 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3337 i386 debugging register hooks.
3338 * NEWS: Mention this.
3340 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3342 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3343 vector data transfer instructions.
3344 (arm_record_coproc_data_proc): Updated.
3346 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3348 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3349 arm_record_exreg_ld_st_insn.
3350 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3353 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3355 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3356 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3357 processing instructions.
3359 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3361 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3362 for advance SIMD struct ld/st insn.
3363 (thumb2_record_decode_insn_handler): Replace stub handler with
3364 thumb2_record_asimd_struct_ld_st.
3366 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3368 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3369 for asimd, vfp and coprocessor insns.
3370 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3371 and coprocessor insns.
3372 (thumb2_record_coproc_insn): New function.
3373 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3375 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3378 2014-09-13 Doug Evans <xdje42@gmail.com>
3380 * NEWS: Mention new "queue-signal" command.
3381 * infcmd.c (queue_signal_command): New function.
3382 (_initialize_infcmd): Add new queue-signal command.
3384 2014-09-13 Doug Evans <xdje42@gmail.com>
3386 * linux-nat.c (wait_lwp): Add debugging printf.
3387 (linux_nat_wait_1): Ditto.
3389 2014-09-12 Pedro Alves <palves@redhat.com>
3391 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3392 (create_and_insert_solib_event_breakpoint): New functions.
3393 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3394 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3395 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3396 (remove_dbx_link_breakpoint): Delete function.
3397 (insert_dbx_link_bpt_in_file): Use
3398 create_and_insert_solib_event_breakpoint instead of
3399 deprecated_insert_raw_breakpoint.
3400 (procfs_wait): Don't check whether we hit __dbx_link here.
3401 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3403 * solib-irix.c (base_breakpoint): Delete global.
3404 (disable_break): Delete function.
3405 (enable_break): Use create_solib_event_breakpoint
3406 instead of deprecated_insert_raw_breakpoint.
3407 (irix_solib_handle_event): New function.
3408 (irix_solib_create_inferior_hook): Don't run the target or disable
3409 the mapping-complete breakpoint here.
3410 (_initialize_irix_solib): Install irix_solib_handle_event as
3411 so_ops->handle_event hook.
3413 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3414 Ulrich Weigand <uweigand@de.ibm.com>
3417 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3418 instead of read_memory_unsigned_integer.
3420 2014-09-12 Gary Benson <gbenson@redhat.com>
3422 * nat/linux-waitpid.c: Include common-defs.h.
3423 [GDBSERVER]: Add FIXME comment.
3424 [!GDBSERVER]: Don't include defs.h or signal.h.
3425 (linux_debug) [!GDBSERVER]: Remove empty block.
3427 2014-09-12 Gary Benson <gbenson@redhat.com>
3429 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3430 Don't include defs.h or server.h.
3432 2014-09-12 Gary Benson <gbenson@redhat.com>
3434 * nat/linux-btrace.c: Include common-defs.h.
3435 Don't include defs.h, server.h or gdbthread.h.
3436 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3438 2014-09-12 Gary Benson <gbenson@redhat.com>
3440 * common/agent.c: Include common-defs.h.
3441 Don't include defs.h or server.h.
3442 * common/buffer.c: Likewise.
3443 * common/common-debug.c: Likewise.
3444 * common/common-utils.c: Likewise.
3445 * common/errors.c: Likewise.
3446 * common/filestuff.c: Likewise.
3447 * common/format.c: Likewise.
3448 * common/gdb_vecs.c: Likewise.
3449 * common/print-utils.c: Likewise.
3450 * common/ptid.c: Likewise.
3451 * common/rsp-low.c: Likewise.
3452 * common/signals.c: Likewise.
3453 * common/vec.c: Likewise.
3454 * common/xml-utils.c: Likewise.
3455 * nat/linux-osdata.c: Likewise.
3456 * nat/linux-procfs.c: Likewise.
3457 * nat/linux-ptrace.c: Likewise.
3458 * nat/mips-linux-watch.c: Likewise.
3459 * target/waitstatus.c: Likewise.
3461 2014-09-12 Tom Tromey <tromey@redhat.com>
3462 Gary Benson <gbenson@redhat.com>
3464 * common/common-regcache.h: New file.
3465 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3466 * regcache.h: Include common-regcache.h.
3467 (regcache_read_pc): Don't declare.
3468 * regcache.c (get_thread_regcache_for_ptid): New function.
3469 * nat/linux-btrace.c: Don't include regcache.h.
3470 Include common-regcache.h.
3471 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3473 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3475 * regcache.h (struct regset): Declare.
3477 2014-09-11 Pedro Alves <palves@redhat.com>
3480 * main.c: Include "infrun.h".
3481 (catch_command_errors, catch_command_errors_const): Wait for the
3482 foreground command to complete.
3483 * top.c (maybe_wait_sync_command_done): New function, factored out
3485 (maybe_wait_sync_command_done): ... here.
3486 * top.h (maybe_wait_sync_command_done): New declaration.
3488 2014-09-11 Tom Tromey <tromey@redhat.com>
3489 Gary Benson <gbenson@redhat.com>
3491 * common/symbol.h: New file.
3492 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3493 * minsyms.c (find_minimal_symbol_address): New function.
3494 * common/agent.c: Include common/symbol.h.
3495 [!GDBSERVER]: Don't include objfiles.h.
3496 (agent_look_up_symbols): Use find_minimal_symbol_address.
3498 2014-09-11 Gary Benson <gbenson@redhat.com>
3500 * target/target.h (target_stop_ptid, target_continue_ptid):
3502 * target.c (target_stop_ptid, target_continue_ptid): New
3504 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3505 (agent_run_command): Always use target_stop_ptid and
3506 target_continue_ptid.
3508 2014-09-11 Tom Tromey <tromey@redhat.com>
3509 Gary Benson <gbenson@redhat.com>
3511 * target/target.h: New file.
3512 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3513 * target.h: Include target/target.h.
3514 (target_read_memory, target_write_memory): Don't declare.
3515 * target.c (target_read_uint32): New function.
3516 * common/agent.c: Include target/target.h.
3517 [!GDBSERVER]: Don't include target.h.
3518 (helper_thread_id): Type changed to uint32_t.
3519 (agent_get_helper_thread_id): Use target_read_uint32.
3520 (agent_run_command): Always use target_read_memory and
3521 target_write_memory.
3522 (agent_capability): Type changed to uint32_t.
3523 (agent_capability_check): Use target_read_uint32.
3525 2014-09-11 Gary Benson <gbenson@redhat.com>
3527 * common/common-debug.h (show_debug_regs): Declare.
3528 * common/common-debug.c (show_debug_regs): Define.
3529 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3530 all uses with show_debug_regs. Replace all uses that considered
3531 debug_hw_points as a multi-value integer with straight boolean
3533 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3534 with show_debug_regs.
3535 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3536 all uses with show_debug_regs.
3537 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3538 uses with show_debug_regs.
3540 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3542 * findvar.c (address_from_register): Handle targets requiring
3543 a special conversion routine even for plain pointer types.
3545 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3547 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3548 (store_register): Do not call exec_one_dummy_insn.
3550 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3552 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3553 dereference it first. Use value_enclosing_type instead of
3555 (ada_array_length): Likewise.
3557 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3559 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3560 Adjust function implementation and documentation accordingly.
3561 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3562 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3563 Update call to ada_value_ptr_subscript.
3565 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3567 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3568 instead of VAL's type.
3570 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3572 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3574 2014-09-09 Doug Evans <xdje42@gmail.com>
3577 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3578 last parameter to pkg-config, not first.
3579 * configure.ac: Pass --with-guile provided pkg-config path to
3580 GDB_GUILE_PROGRAM_NAMES.
3581 * configure: Regenerate.
3583 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3585 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3588 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3590 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3591 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3592 the list of sections determining GDB_OSABI_IRIX.
3594 2014-09-09 James Hogan <james.hogan@imgtec.com>
3596 * MAINTAINERS (Write After Approval): Add "James Hogan".
3598 2014-09-09 James Hogan <james.hogan@imgtec.com>
3600 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3602 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3604 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3606 2014-09-08 Doug Evans <xdje42@gmail.com>
3609 * guile.c: #include <signal.h>.
3610 (_initialize_guile): Block SIGCHLD while initializing Guile.
3612 Replaces the following, which is reverted.
3614 2014-07-26 Doug Evans <xdje42@gmail.com>
3617 * configure.ac: Add check for header gc/gc.h.
3618 Add check for function setenv.
3619 * configure: Regenerate.
3620 * config.in: Regenerate.
3621 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3623 2014-09-08 Doug Evans <xdje42@gmail.com>
3625 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3626 with named constant. Fix style of pointer comparison.
3627 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3629 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3632 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3633 decide whether we display the command on "show user".
3634 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3635 printing command name.
3636 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3637 * cli/cli-decode.c (cli_user_command_p): Create helper function
3638 to verify whether cmd_list_element is a user-defined command.
3640 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3643 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3644 Fix goto out of TRY_CATCH.
3646 2014-09-06 Doug Evans <xdje42@gmail.com>
3647 Tom Tromey <tromey@redhat.com>
3650 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3651 $_any_caller_matches.
3652 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3653 * python/lib/gdb/function/caller_is.py: New file.
3655 2014-09-06 Doug Evans <xdje42@gmail.com>
3657 * infcmd.c (program_info): Fix typo.
3659 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3662 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3663 'number'. New variable 'has_digit'. Rewrite code to deal with
3664 subexpressions on SDT probes.
3666 2014-09-04 Pedro Alves <palves@redhat.com>
3668 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3669 the input is only one character long.
3671 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3674 * f-valprint.c (f_val_print): Specify the correct print option to
3675 use when printing integer values.
3677 2014-09-04 Gary Benson <gbenson@redhat.com>
3679 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3680 Remove code to cope with LWPs wrapped as PIDs.
3681 Add assertions to ensure no wrapped LWPs are passed.
3683 2014-09-04 Pedro Alves <palves@redhat.com>
3685 * value.c (value_ranges_copy_adjusted): New function, factored out
3687 (value_contents_copy_raw): ... here.
3688 (unpack_value_bits_as_long_1): Rename back to ...
3689 (unpack_bits_as_long): ... this. Remove 'original_value' and
3690 'result' parameters. Change return type to LONGEST.
3691 (unpack_value_bits_as_long): Delete.
3692 (unpack_value_field_as_long_1): Delete.
3693 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3694 (unpack_value_bitfield): New function.
3695 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3696 (value_fetch_lazy): Use unpack_value_bitfield.
3697 * value.h (unpack_value_bits_as_long): Delete declaration.
3699 2014-09-03 Sasha Smundak <asmundak@google.com>
3701 * python/py-frame.c (frapy_read_register): New function.
3703 2014-09-03 James Hogan <james.hogan@imgtec.com>
3705 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3706 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3708 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3711 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3713 (add_cmd): Set "completer_handle_brkchars" to NULL.
3714 * cli/cli-decode.h (struct cmd_list_element)
3715 <completer_handle_brkchars>: New field.
3716 * command.h (completer_ftype_void): New typedef.
3717 (set_cmd_completer_handle_brkchars): New prototype.
3718 * completer.c (set_gdb_completion_word_break_characters): New
3720 (complete_line_internal): Call "completer_handle_brkchars"
3721 callback from command.
3722 * completer.h: Include "command.h".
3723 (set_gdb_completion_word_break_characters): New prototype.
3724 * python/py-cmd.c (cmdpy_completer_helper): New function.
3725 (cmdpy_completer_handle_brkchars): New function.
3726 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3727 (cmdpy_init): Set completer_handle_brkchars to
3728 cmdpy_completer_handle_brkchars.
3730 2014-09-03 Gary Benson <gbenson@redhat.com>
3732 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3733 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3734 Loop conditions changed to equivalent form.
3735 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3736 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3737 ALL_DEBUG_ADDRESS_REGISTERS.
3739 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3741 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3744 2014-09-02 Doug Evans <dje@google.com>
3746 * typeprint.c (find_global_typedef): Fix comment.
3748 2014-09-02 Gary Benson <gbenson@redhat.com>
3750 * i386-nat.h: Renamed as...
3751 * x86-nat.h: New file. All type, function and variable name
3752 prefixes changed from "i386_" to "x86_". All references updated.
3753 * i386-nat.c: Renamed as...
3754 * x86-nat.c: New file. All type, function and variable name
3755 prefixes changed from "i386_" to "x86_". All references updated.
3756 * common/i386-xstate.h: Renamed as...
3757 * common/x86-xstate.h: New file. All type, function and variable
3758 name prefixes changed from "i386_" to "x86_". All references
3760 * nat/i386-cpuid.h: Renamed as...
3761 * nat/x86-cpuid.h: New file. All type, function and variable name
3762 prefixes changed from "i386_" to "x86_". All references updated.
3763 * nat/i386-gcc-cpuid.h: Renamed as...
3764 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3765 name prefixes changed from "i386_" to "x86_". All references
3767 * nat/i386-dregs.h: Renamed as...
3768 * nat/x86-dregs.h: New file. All type, function and variable name
3769 prefixes changed from "i386_" to "x86_". All references updated.
3770 * nat/i386-dregs.c: Renamed as...
3771 * nat/x86-dregs.c: New file. All type, function and variable name
3772 prefixes changed from "i386_" to "x86_". All references updated.
3774 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3776 * varobj.c (_initialize_varobj): Move to the end of file.
3778 2014-08-29 Gary Benson <gbenson@redhat.com>
3780 * common/common-exceptions.h: New file.
3781 * common/common-exceptions.c: Likewise.
3782 * Makefile.in (SFILES): Add common/common-exceptions.c.
3783 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3784 (COMMON_OBS): Add common-exceptions.o.
3785 (common-exceptions.o): New rule.
3786 * exceptions.h (common-exceptions.h): Include.
3787 (gdb_setjmp.h): Do not include.
3788 (return_reason): Moved to common-exceptions.h.
3789 (enum return_reason): Likewise.
3790 (RETURN_MASK): Likewise.
3791 (typedef return_mask): Likewise.
3792 (enum errors): Likewise.
3793 (struct gdb_exception): Likewise.
3794 (exceptions_state_mc_init): Likewise.
3795 (exceptions_state_mc_action_iter): Likewise.
3796 (exceptions_state_mc_action_iter_1): Likewise.
3797 (TRY_CATCH): Likewise.
3798 (throw_exception): Likewise.
3799 (throw_verror): Likewise.
3800 (throw_vquit): Likewise.
3801 (throw_error): Likewise.
3802 (throw_quit): Likewise.
3803 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3804 (enum catcher_action): Likewise.
3805 (struct catcher): Likewise.
3806 (current_catcher): Likewise.
3807 (catcher_list_size): Likewise.
3808 (exceptions_state_mc_init): Likewise.
3809 (catcher_pop): Likewise.
3810 (exceptions_state_mc): Likewise.
3811 (exceptions_state_mc_action_iter): Likewise.
3812 (exceptions_state_mc_action_iter_1): Likewise.
3813 (throw_exception): Likewise.
3814 (exception_messages): Likewise.
3815 (exception_messages_size): Likewise.
3816 (throw_it): Likewise.
3817 (throw_verror): Likewise.
3818 (throw_vquit): Likewise.
3819 (throw_error): Likewise.
3820 (throw_quit): Likewise.
3821 (prepare_to_throw_exception): New function.
3823 2014-08-29 Gary Benson <gbenson@redhat.com>
3825 * common/gdb_setjmp.h: New file.
3826 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3827 * configure.ac: Move sigsetjmp check...
3828 * common/common.m4: ...here.
3829 * configure: Regenerate.
3830 * cp-support.c (SIGJMP_BUF): Delete.
3831 (SIGSETJMP): Likewise.
3832 (SIGLONGJMP): Likewise.
3833 * exceptions.h (gdb_setjmp.h): Include.
3834 (setjmp.h): Do not include.
3835 (EXCEPTIONS_SIGJMP_BUF): Delete.
3836 (EXCEPTIONS_SIGSETJMP): Likewise.
3837 (EXCEPTIONS_SIGLONGJMP): Likewise.
3838 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3840 * exceptions.c: Likewise.
3842 2014-08-29 Gary Benson <gbenson@redhat.com>
3844 * cleanups.h: Moved to...
3845 * common/cleanups.h: New file.
3846 * cleanups.c: Moved to...
3847 * common/cleanups.c: New file. Include common-defs.h and
3848 cleanups.h. Do not include defs.h.
3849 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3850 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3851 (cleanups.o): New rule.
3853 2014-08-29 Gary Benson <gbenson@redhat.com>
3855 * common/errors.h (internal_warning): New declaration.
3856 (internal_vwarning): Likewise.
3857 * common/errors.c (internal_warning): New function.
3858 * utils.h (internal_warning): Don't declare.
3859 (internal_vwarning): Likewise.
3860 * utils.c (internal_warning): Removed.
3862 2014-08-29 Gary Benson <gbenson@redhat.com>
3864 * main.c (captured_main): Use warning during startup.
3865 Prefix startup warning messages with command name.
3867 2014-08-29 Gary Benson <gbenson@redhat.com>
3869 * main.c (captured_main): Handle usage errors with error.
3871 2014-08-29 Gary Benson <gbenson@redhat.com>
3873 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3874 exit pair with a call to error. Wrap the message with _().
3876 2014-08-29 Gary Benson <gbenson@redhat.com>
3878 * main.c (captured_main): Replace a fprintf/exit
3879 pair with a call to error. Wrap the message with _().
3881 2014-08-29 Gary Benson <gbenson@redhat.com>
3883 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3884 pairs with calls to error. Wrap the message with _().
3886 2014-08-29 Gary Benson <gbenson@redhat.com>
3888 * utils.c (vwarning): Protect calls to target_terminal_ours
3891 2014-08-29 Gary Benson <gbenson@redhat.com>
3893 * exceptions.c (print_flush): Protect calls to
3894 target_terminal_ours and wrap_here.
3896 2014-08-29 Gary Benson <gbenson@redhat.com>
3898 * utils.h (filtered_printing_initialized): New declaration.
3899 * utils.c (abort_with_message): New function.
3900 (internal_vproblem): Use abort_with_message for first level
3901 recursive internal problems, and if gdb_stderr is not set up.
3902 Protect calls to target_terminal_ours, begin_line and query.
3904 2014-08-28 Doug Evans <dje@google.com>
3906 * symtab.c (in_prologue): Move definition to better spot.
3907 (skip_prologue_using_sal): Ditto.
3909 2014-08-28 Doug Evans <dje@google.com>
3911 * symtab.c (find_function_start_sal): Move definition to better spot.
3913 2014-08-28 Yao Qi <yao@codesourcery.com>
3915 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3916 found_stack_adjust in forward scan. Remove condition check
3917 on found_stack_adjust which is always true. Indent the code.
3919 2014-08-28 Yao Qi <yao@codesourcery.com>
3921 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3922 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3923 (dwarf_decode_lines): Remove argument
3924 want_line_info. Remove condition check on want_line_info.
3927 2014-08-27 Doug Evans <dje@google.com>
3929 * dwarf2read.c (dwarf_record_line): Fix typo.
3931 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3933 * target.h (struct target_ops::to_terminal_save_ours): Remove
3935 (target_terminal_save_ours): Remove macro.
3936 * target-delegates.c: Regenerate.
3937 * inf-child.c (inf_child_target): Don't set the nonexistent
3938 field to_terminal_save_ours.
3939 * inferior.h (child_terminal_save_ours): Remove declaration.
3940 * terminal.h (gdb_save_tty_state): New declaration.
3941 * inflow.c (child_terminal_save_ours): Rename to ...
3942 (gdb_save_tty_state): ... this.
3943 * tui/tui.c: Include terminal.h.
3944 (tui_enable): Use gdb_save_tty_state instead of
3945 target_terminal_save_ours.
3946 (tui_disable): Likewise.
3948 2014-08-25 Doug Evans <dje@google.com>
3950 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3951 Pass NULL instead of 0 for context pointer.
3953 2014-08-25 Yao Qi <yao@codesourcery.com>
3955 * dwarf2read.c: Fix grammatical error.
3957 2014-08-24 Yao Qi <yao@codesourcery.com>
3959 * dwarf2read.c (scan_partial_symbols): Update comments.
3960 Rename argument 'need_pc' with 'set_addrmap'.
3961 (add_partial_namespace): Rename argument 'need_pc' with
3963 (add_partial_module): Likewise.
3964 (add_partial_subprogram): Likewise. Update comments.
3965 (dwarf2_name): Fix typo.
3967 2014-08-22 Doug Evans <dje@google.com>
3970 * dwarf2read.c (dwarf_record_line_p): New function.
3971 (dwarf_decode_lines_1): Ignore subsequent line number entries
3972 for the same line if any entry had a non-zero discriminator.
3974 2014-08-22 Doug Evans <dje@google.com>
3976 * buildsym.h (record_line_ftype): New typedef.
3977 (record_line): Use it.
3978 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3979 (dwarf_decode_lines_1): Call them.
3981 2014-08-22 Yao Qi <yao@codesourcery.com>
3983 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3984 (ctf_end): Remove code.
3986 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3988 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3989 (linux_make_corefile_notes): call update_thread_list, protected against
3992 2014-08-21 Pedro Alves <palves@redhat.com>
3994 * infcmd.c (attach_command): Remove comment.
3996 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3998 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3999 unsigned LONGEST to ULONGEST.
4001 2014-08-20 Pedro Alves <palves@redhat.com>
4003 * Makefile.in (check-read1): New rule.
4005 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4007 * value.c (value_from_contents_and_address): Strip resolved_type's
4008 typedef layers before checking its TYPE_DATA_LOCATION.
4010 2014-08-20 Pedro Alves <palves@redhat.com>
4012 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4014 2014-08-20 Yao Qi <yao@codesourcery.com>
4016 * amd64-tdep.c (amd64_classify): Add a blank line after the
4017 example. Move "*/" to a new line.
4018 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4019 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4020 * dwarf2read.c (psymtab_include_file_name): Likewise.
4022 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4023 Pedro Alves <palves@redhat.com>
4027 * ada-lang.c (coerce_unspec_val_to_type): Use
4028 value_contents_copy_raw.
4029 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4030 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4031 * cp-valprint.c (cp_print_value_fields): Let the common printing
4032 code handle optimized out values.
4033 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4034 * d-valprint.c (dynamic_array_type): Use
4035 value_bits_any_optimized_out.
4036 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4037 check_any_valid fields.
4038 (check_pieced_value_bits): Delete and inline ...
4039 (check_pieced_synthetic_pointer): ... here.
4040 (check_pieced_value_validity): Delete.
4041 (check_pieced_value_invalid): Delete.
4042 (pieced_value_funcs): Remove check_validity and check_any_valid
4044 (read_pieced_value): Use mark_value_bits_optimized_out.
4045 (write_pieced_value): Switch to use
4046 mark_value_bytes_optimized_out.
4047 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4048 of assuming the whole value is optimized out.
4049 * findvar.c (read_frame_register_value): Remove special handling
4050 of optimized out registers.
4051 (value_from_register): Use mark_value_bytes_optimized_out.
4052 * frame-unwind.c (frame_unwind_got_optimized): Use
4053 mark_value_bytes_optimized_out.
4054 * jv-valprint.c (java_value_print): Adjust.
4055 (java_print_value_fields): Let the common printing code handle
4056 optimized out values.
4057 * mips-tdep.c (mips_print_register): Remove special handling of
4058 optimized out registers.
4059 * opencl-lang.c (lval_func_check_validity): Delete.
4060 (lval_func_check_any_valid): Delete.
4061 (opencl_value_funcs): Remove check_validity and check_any_valid
4063 * p-valprint.c (pascal_object_print_value_fields): Let the common
4064 printing code handle optimized out values.
4065 * stack.c (read_frame_arg): Remove special handling of optimized
4066 out values. Fetch both VAL and ENTRYVAL before comparing
4067 contents. Adjust to value_available_contents_eq rename.
4068 * valprint.c (valprint_check_validity)
4069 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4070 (val_print_array_elements): Adjust.
4071 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4072 (value_bits_any_optimized_out): New function.
4073 (value_entirely_covered_by_range_vector): New function, factored
4074 out from value_entirely_unavailable.
4075 (value_entirely_unavailable): Reimplement.
4076 (value_entirely_optimized_out): New function.
4077 (insert_into_bit_range_vector): New function, factored out from
4078 mark_value_bits_unavailable.
4079 (mark_value_bits_unavailable): Reimplement.
4080 (struct ranges_and_idx): New struct.
4081 (find_first_range_overlap_and_match): New function, factored out
4082 from value_available_contents_bits_eq.
4083 (value_available_contents_bits_eq): Rename to ...
4084 (value_contents_bits_eq): ... this. Check both unavailable
4085 contents and optimized out contents.
4086 (value_available_contents_eq): Rename to ...
4087 (value_contents_eq): ... this.
4088 (allocate_value_lazy): Remove reference to the old optimized_out
4090 (allocate_optimized_out_value): Use
4091 mark_value_bytes_optimized_out.
4092 (require_not_optimized_out): Adjust to check whether the
4093 optimized_out vec is empty.
4094 (ranges_copy_adjusted): New function, factored out from
4095 value_contents_copy_raw.
4096 (value_contents_copy_raw): Also copy the optimized out ranges.
4097 Assert the destination ranges aren't optimized out.
4098 (value_contents_copy): Update comment, remove call to
4099 require_not_optimized_out.
4100 (value_contents_equal): Adjust to check whether the optimized_out
4102 (set_value_optimized_out, value_optimized_out_const): Delete.
4103 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4105 (value_entirely_optimized_out, value_bits_valid): Delete.
4106 (value_copy): Take a VEC copy of the 'optimized_out' field.
4107 (value_primitive_field): Remove special handling of optimized out.
4108 (value_fetch_lazy): Assert that lazy values have no unavailable
4109 regions. Use value_bits_any_optimized_out. Remove some special
4110 handling for optimized out values.
4111 * value.h: Add intro comment about <optimized out> and
4113 (struct lval_funcs): Remove check_validity and check_any_valid
4115 (set_value_optimized_out, value_optimized_out_const): Remove.
4116 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4118 (value_bits_any_optimized_out): New declaration.
4119 (value_bits_valid): Delete declaration.
4120 (value_available_contents_eq): Rename to ...
4121 (value_contents_eq): ... this, and extend comments.
4123 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4125 Fix -fsanitize=address on unreadable inferior strings.
4126 * valprint.c (val_print_string): Fix access before BUFFER.
4128 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4130 * target.c (target_struct_size): Remove.
4131 (target_struct_allocsize): Remove.
4132 (DEFAULT_ALLOCSIZE): Remove.
4133 (target_ops_p): New typedef.
4134 (DEF_VEC_P (target_ops_p)): New vector type.
4135 (target_structs): Change type to VEC (target_ops_p).
4136 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4137 (find_default_run_target): Rewrite for loop following changes to
4140 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4142 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4143 Adjust code accordingly. Adjust function description comment.
4145 2014-08-19 Yao Qi <yao@codesourcery.com>
4147 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4150 2014-08-19 Alan Modra <amodra@gmail.com>
4152 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4153 * config.in: Regenerate.
4154 * configure: Regenerate.
4156 2014-08-19 Tom Tromey <tromey@redhat.com>
4157 Gary Benson <gbenson@redhat.com>
4159 * common/common-debug.h: New file.
4160 * common/common-debug.c: Likewise.
4161 * debug.c: Likewise.
4162 * Makefile.in (SFILES): Add common/common-debug.c.
4163 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4164 (COMMON_OBS): Add common-debug.o and debug.o.
4165 (common-debug.o): New rule.
4166 * common/common-defs.h: Include common-debug.h.
4167 * common/agent.c (debug_agent_printf): New function.
4168 (DEBUG_AGENT): Redefine.
4169 * nat/i386-dregs.c (debug_printf): Undefine.
4171 2014-08-19 Gary Benson <gbenson@redhat.com>
4173 * common/common-defs.h: Include print-utils.h.
4174 * utils.h: Do not include print-utils.h.
4176 2014-08-19 Tom Tromey <tromey@redhat.com>
4177 Gary Benson <gbenson@redhat.com>
4179 * common/common-types.h: New file.
4180 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4181 * common/common-defs.h: Include common-types.h.
4182 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4185 2014-08-19 Tom Tromey <tromey@redhat.com>
4186 Gary Benson <gbenson@redhat.com>
4188 * common/errors.h: New file.
4189 * common/errors.c: Likewise.
4190 * Makefile.in (SFILES): Add common/errors.c.
4191 (HFILES_NO_SRCDIR): Add common/errors.h.
4192 (COMMON_OBS): Add errors.o.
4193 (errors.o): New rule.
4194 * common/common-defs.h: Include errors.h.
4195 * utils.h (perror_with_name, error, verror, warning, vwarning):
4197 * common/common-utils.h: (malloc_failure, internal_error):
4200 2014-08-19 Gary Benson <gbenson@redhat.com>
4202 * utils.c (internal_vproblem): Always print the message.
4204 2014-08-18 Doug Evans <dje@google.com>
4206 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4208 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4210 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4211 Return 0 if TYPE is dynamic.
4212 (print_range): Add handling of dynamic ranges.
4214 2014-08-18 Keven Boell <keven.boell@intel.com>
4215 Joel Brobecker <brobecker@adacore.com>
4217 * gdbtypes.h (struct main_type): Add field "data_location".
4218 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4219 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4220 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4221 a dynamic data location.
4222 (resolve_dynamic_type): Add DW_AT_data_location handling.
4223 (copy_recursive, copy_type): Copy the data_location information
4225 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4226 * value.c (value_from_contents_and_address): Add
4227 DW_AT_data_location handling.
4229 2014-08-18 Keven Boell <keven.boell@intel.com>
4230 Joel Brobecker <brobecker@adacore.com>
4232 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4233 field "get_object_address".
4234 * dwarf2expr.c (execute_stack_op): Add handling for
4235 DW_OP_push_object_address.
4236 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4237 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4238 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4239 (dwarf_expr_get_obj_addr): New function.
4240 (dwarf_expr_ctx_funcs): Add get_object_address field.
4241 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4242 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4243 (dwarf2_evaluate_property): Add parameter "address". Use it.
4244 (needs_get_obj_addr): New function.
4245 (needs_frame_ctx_funcs): Add get_object_address field.
4246 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4247 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4248 (resolve_dynamic_array): Likewise.
4250 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4252 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4253 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4254 fixed value for records and unions for which some GNAT encodings
4257 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4259 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4260 rewrite to avoid "else if" and "else" constructs. Should be
4261 a no-op in practice.
4263 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4265 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4268 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4271 * eval.c: Update all calls to find_overload_match.
4272 * valarith.c: Likewise.
4273 (value_user_defined_cpp_op, value_user_defined_op): New
4274 argument NOSIDE. Update all callers.
4275 * valops.c (find_overload_match): New argument NOSIDE.
4276 * value.h (find_overload_match): Update signature.
4278 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4280 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4281 'items' methods instead of 'iteritems' method on dictionaries.
4283 2014-08-15 Doug Evans <dje@google.com>
4285 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4288 2014-08-15 Doug Evans <dje@google.com>
4290 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4292 2014-08-15 Doug Evans <dje@google.com>
4294 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4296 2014-08-15 Doug Evans <dje@google.com>
4298 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4301 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4303 * dcache.h: Include target.h, to avoid compile time warnings.
4305 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4307 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4308 frame_info" partial declaration.
4309 * gdbarch.h: Regenerate.
4311 2014-08-15 Yao Qi <yao@codesourcery.com>
4313 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4314 Add parameter 'decode_for_pst_p'. Callers update.
4316 2014-08-13 Yao Qi <yao@codesourcery.com>
4319 * configure.ac: Use local variable 'pos'.
4320 * configure: Regenerated.
4322 2014-08-11 Doug Evans <dje@google.com>
4324 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4325 message, it is redundant with "Reading symbols from ..." message.
4327 2014-08-10 Doug Evans <xdje42@gmail.com>
4329 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4331 2014-08-09 Yao Qi <yao@codesourcery.com>
4334 * remote.c (remote_xfer_partial): Remove dead code.
4336 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4338 * ia64-linux-tdep.c: Include "regset.h".
4339 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4340 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4341 (ia64_linux_supply_fpregset): New function.
4342 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4343 (ia64_linux_regset_from_core_section): New function.
4344 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4347 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4349 * m68klinux-tdep.c: Include "regset.h".
4350 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4351 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4352 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4353 (m68k_linux_regset_from_core_section): New function.
4354 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4357 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4359 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4360 function. Move logic to...
4361 (tilegx_linux_regmap): ... this new register map.
4362 (tilegx_linux_regset): Refer to register map, replace supply
4363 method by regcache_supply_regset, and add collect method.
4364 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4365 TILEGX_FIRST_EASY_REGNUM.
4367 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4369 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4370 that calls regcache_supply_regset and handles the EPC register
4371 separately. Move main logic to...
4372 (score7_linux_gregmap): ... this new register map.
4373 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4374 (score7_linux_gregset): Refer to register map. Add collect method.
4375 (score7_linux_regset_from_core_section): Replace
4376 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4377 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4378 (struct regset): Delete unused forward declaraction.
4379 (struct pt_regs): Delete structure definition.
4380 (elf_gregset_t): Delete typedef.
4382 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4384 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4385 (nios2_core_regset): Add collect method.
4387 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4389 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4390 platform-independent and don't write to read-only input buffer.
4391 (m32r_linux_collect_gregset): New function.
4392 (m32r_linux_gregset): Add collect method.
4394 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4396 * hppa-linux-tdep.c (greg_map): Rename to...
4397 (hppa_linux_gregmap): ... this. Also convert to
4398 regcache_map_entry format.
4399 (hppa_linux_supply_regset): Delete function.
4400 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4401 (hppa_linux_fpregmap): ... this new register map.
4402 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4403 register map, replace supply method by regcache_supply_regset, and
4404 add collect method regcache_collect_regset.
4406 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4408 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4409 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4410 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4411 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4412 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4413 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4414 (frv_linux_supply_gregset): Replace main logic by call to
4415 regcache_supply_regset, but keep clearing gr32-gr63.
4416 (frv_linux_supply_fpregset): Delete function.
4417 (frv_linux_gregset): Refer to appropriate register map and add
4418 regcache_collect_regset as the collect method.
4419 (frv_linux_fpregset): Likewise. Also exchange the supply method
4420 by regcache_supply_regset.
4422 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4424 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4425 by call to alpha_supply_int_regs.
4426 (alpha_linux_collect_gregset): New function.
4427 (alpha_linux_supply_fpregset): Replace logic by call to
4428 alpha_supply_fp_regs.
4429 (alpha_linux_collect_fpregset): New function.
4430 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4432 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4434 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4435 by call to regcache_collect_regset.
4436 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4437 instead of aarch64_linux_supply_gregset/_fpregset.
4438 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4439 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4440 header file instead.
4441 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4442 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4443 functions. Move logic to ...
4444 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4446 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4447 refer to new register maps, replace *_regset_from_core by
4448 regcache_supply_regset, and also use regcache_collect_regset.
4449 * aarch64-linux-tdep.h: Include "regset.h".
4450 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4452 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4453 macros, moved from C source file.
4454 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4455 variable declarations.
4457 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4459 * s390-linux-nat.c: Include "regset.h".
4460 (regmap_gregset): Delete macro.
4461 (s390_64_regmap_gregset): New register map for
4462 regcache_supply/_collect_regset.
4463 (s390_64_gregset): New regset.
4464 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4465 (regmap_fpregset): Delete macro.
4466 (s390_native_supply, s390_native_collect): Delete functions.
4467 (supply_gregset, fill_gregset): Replace s390-specific regmap
4468 handling by a call to regcache_supply/_collect_regset.
4469 (supply_fpregset, fill_fpregset): Call regcache_supply/
4470 _collect_regset instead of s390_native_supply/_collect.
4471 (fetch_regset, store_regset): Likewise. Also change the last
4472 parameter to a regset instead of a regmap.
4473 (s390_linux_fetch_inferior_registers)
4474 (390_linux_store_inferior_registers): Adjust last parameter in
4475 calls to fetch_regset and store_regset.
4476 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4477 (s390_gregmap): ... this. Also make static const and convert to
4478 regcache_map_entry format.
4479 (s390x_regmap_gregset): Delete.
4480 (s390_regmap_fpregset): Rename to...
4481 (s390_fpregmap): ... this. Make static const and convert to
4482 regcache_map_entry format.
4483 (s390_regmap_upper, s390_regmap_last_break)
4484 (s390x_regmap_last_break, s390_regmap_system_call)
4485 (s390_regmap_tdb): Likewise.
4486 (s390_supply_regset, s390_collect_regset): Remove functions.
4487 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4489 (s390_gregset, s390_fpregset, s390_upper_regset)
4490 (s390_last_break_regset, s390x_last_break_regset)
4491 (s390_system_call_regset, s390_tdb_regset): Make global and
4492 replace s390_supply/_collect_regset by regcache_supply/
4494 (s390x_gregset): Delete.
4495 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4496 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4497 (s390_regmap_fpregset, s390_regmap_last_break)
4498 (s390x_regmap_last_break, s390_regmap_system_call)
4499 (s390_regmap_tdb): Delete global variable declarations.
4500 (s390_gregset, s390_fpregset, s390_last_break_regset)
4501 (s390x_last_break_regset, s390_system_call_regset)
4502 (s390_tdb_regset): New global variable declarations.
4504 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4506 * regcache.c: Include "regset.h".
4507 (regcache_transfer_regset): New local function.
4508 (regcache_supply_regset, regcache_collect_regset): New functions.
4509 * regcache.h (struct regcache_map_entry): New structure.
4510 (REGCACHE_MAP_SKIP): New enum value.
4511 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4513 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4515 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4516 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4517 (ppc_linux_collect_gregset ): Likewise.
4518 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4519 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4520 (ppc_collect_vrregset): Likewise.
4521 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4524 2014-08-07 Yao Qi <yao@codesourcery.com>
4526 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4527 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4528 * remote.c (remote_read_bytes): Likewise.
4530 2014-08-07 Yao Qi <yao@codesourcery.com>
4532 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4534 2014-08-07 Yao Qi <yao@codesourcery.com>
4537 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4538 TARGET_XFER_OK instead of 0.
4540 2014-08-07 Gary Benson <gbenson@redhat.com>
4542 * common/common-defs.h: Include errno.h.
4543 * defs.h: Do not include errno.h.
4544 * ada-typeprint.c: Likewise.
4545 * c-typeprint.c: Likewise.
4546 * core-regset.c: Likewise.
4547 * corefile.c: Likewise.
4548 * corelow.c: Likewise.
4549 * event-loop.c: Likewise.
4550 * f-typeprint.c: Likewise.
4551 * gnu-nat.c: Likewise.
4552 * go32-nat.c: Likewise.
4553 * i386gnu-nat.c: Likewise.
4554 * m2-typeprint.c: Likewise.
4555 * nat/linux-btrace.c: Likewise.
4556 * p-typeprint.c: Likewise.
4557 * procfs.c: Likewise.
4558 * remote-sim.c: Likewise.
4559 * rs6000-nat.c: Likewise.
4560 * target.c: Likewise.
4561 * typeprint.c: Likewise.
4562 * ui-file.c: Likewise.
4563 * valops.c: Likewise.
4564 * valprint.c: Likewise.
4566 2014-08-07 Gary Benson <gbenson@redhat.com>
4568 * common/common-defs.h: Include string.h.
4569 * aarch64-tdep.c: Do not include string.h.
4570 * ada-exp.y: Likewise.
4571 * ada-lang.c: Likewise.
4572 * ada-lex.l: Likewise.
4573 * ada-typeprint.c: Likewise.
4574 * ada-valprint.c: Likewise.
4575 * aix-thread.c: Likewise.
4576 * alpha-linux-tdep.c: Likewise.
4577 * alpha-mdebug-tdep.c: Likewise.
4578 * alpha-nat.c: Likewise.
4579 * alpha-osf1-tdep.c: Likewise.
4580 * alpha-tdep.c: Likewise.
4581 * alphanbsd-tdep.c: Likewise.
4582 * amd64-dicos-tdep.c: Likewise.
4583 * amd64-linux-tdep.c: Likewise.
4584 * amd64-nat.c: Likewise.
4585 * amd64-sol2-tdep.c: Likewise.
4586 * amd64fbsd-tdep.c: Likewise.
4587 * amd64obsd-tdep.c: Likewise.
4588 * arch-utils.c: Likewise.
4589 * arm-linux-nat.c: Likewise.
4590 * arm-linux-tdep.c: Likewise.
4591 * arm-tdep.c: Likewise.
4592 * arm-wince-tdep.c: Likewise.
4593 * armbsd-tdep.c: Likewise.
4594 * armnbsd-nat.c: Likewise.
4595 * armnbsd-tdep.c: Likewise.
4596 * armobsd-tdep.c: Likewise.
4597 * avr-tdep.c: Likewise.
4598 * ax-gdb.c: Likewise.
4599 * ax-general.c: Likewise.
4600 * bcache.c: Likewise.
4601 * bfin-tdep.c: Likewise.
4602 * breakpoint.c: Likewise.
4603 * build-id.c: Likewise.
4604 * buildsym.c: Likewise.
4605 * c-exp.y: Likewise.
4606 * c-lang.c: Likewise.
4607 * c-typeprint.c: Likewise.
4608 * c-valprint.c: Likewise.
4609 * charset.c: Likewise.
4610 * cli-out.c: Likewise.
4611 * cli/cli-cmds.c: Likewise.
4612 * cli/cli-decode.c: Likewise.
4613 * cli/cli-dump.c: Likewise.
4614 * cli/cli-interp.c: Likewise.
4615 * cli/cli-logging.c: Likewise.
4616 * cli/cli-script.c: Likewise.
4617 * cli/cli-setshow.c: Likewise.
4618 * cli/cli-utils.c: Likewise.
4619 * coffread.c: Likewise.
4620 * common/agent.c: Likewise.
4621 * common/buffer.c: Likewise.
4622 * common/buffer.h: Likewise.
4623 * common/common-utils.c: Likewise.
4624 * common/filestuff.c: Likewise.
4625 * common/filestuff.c: Likewise.
4626 * common/format.c: Likewise.
4627 * common/print-utils.c: Likewise.
4628 * common/rsp-low.c: Likewise.
4629 * common/signals.c: Likewise.
4630 * common/vec.h: Likewise.
4631 * common/xml-utils.c: Likewise.
4632 * core-regset.c: Likewise.
4633 * corefile.c: Likewise.
4634 * corelow.c: Likewise.
4635 * cp-abi.c: Likewise.
4636 * cp-name-parser.y: Likewise.
4637 * cp-support.c: Likewise.
4638 * cp-valprint.c: Likewise.
4639 * cris-tdep.c: Likewise.
4640 * d-exp.y: Likewise.
4641 * darwin-nat.c: Likewise.
4642 * dbxread.c: Likewise.
4643 * dcache.c: Likewise.
4644 * demangle.c: Likewise.
4645 * dicos-tdep.c: Likewise.
4646 * disasm.c: Likewise.
4647 * doublest.c: Likewise.
4648 * dsrec.c: Likewise.
4649 * dummy-frame.c: Likewise.
4650 * dwarf2-frame.c: Likewise.
4651 * dwarf2loc.c: Likewise.
4652 * dwarf2read.c: Likewise.
4653 * elfread.c: Likewise.
4654 * environ.c: Likewise.
4656 * event-loop.c: Likewise.
4657 * exceptions.c: Likewise.
4659 * expprint.c: Likewise.
4660 * f-exp.y: Likewise.
4661 * f-lang.c: Likewise.
4662 * f-typeprint.c: Likewise.
4663 * f-valprint.c: Likewise.
4664 * fbsd-nat.c: Likewise.
4665 * findcmd.c: Likewise.
4666 * findvar.c: Likewise.
4667 * fork-child.c: Likewise.
4668 * frame.c: Likewise.
4669 * frv-linux-tdep.c: Likewise.
4670 * frv-tdep.c: Likewise.
4672 * gdb_bfd.c: Likewise.
4673 * gdbarch.c: Likewise.
4674 * gdbarch.sh: Likewise.
4675 * gdbtypes.c: Likewise.
4676 * gnu-nat.c: Likewise.
4677 * gnu-v2-abi.c: Likewise.
4678 * gnu-v3-abi.c: Likewise.
4679 * go-exp.y: Likewise.
4680 * go-lang.c: Likewise.
4681 * go32-nat.c: Likewise.
4682 * guile/guile.c: Likewise.
4683 * guile/scm-auto-load.c: Likewise.
4684 * hppa-hpux-tdep.c: Likewise.
4685 * hppa-linux-nat.c: Likewise.
4686 * hppanbsd-tdep.c: Likewise.
4687 * hppaobsd-tdep.c: Likewise.
4688 * i386-cygwin-tdep.c: Likewise.
4689 * i386-dicos-tdep.c: Likewise.
4690 * i386-linux-tdep.c: Likewise.
4691 * i386-nto-tdep.c: Likewise.
4692 * i386-sol2-tdep.c: Likewise.
4693 * i386-tdep.c: Likewise.
4694 * i386bsd-tdep.c: Likewise.
4695 * i386gnu-nat.c: Likewise.
4696 * i386nbsd-tdep.c: Likewise.
4697 * i386obsd-tdep.c: Likewise.
4698 * i387-tdep.c: Likewise.
4699 * ia64-libunwind-tdep.c: Likewise.
4700 * ia64-linux-nat.c: Likewise.
4701 * inf-child.c: Likewise.
4702 * inf-ptrace.c: Likewise.
4703 * inf-ttrace.c: Likewise.
4704 * infcall.c: Likewise.
4705 * infcmd.c: Likewise.
4706 * inflow.c: Likewise.
4707 * infrun.c: Likewise.
4708 * interps.c: Likewise.
4709 * iq2000-tdep.c: Likewise.
4710 * irix5-nat.c: Likewise.
4711 * jv-exp.y: Likewise.
4712 * jv-lang.c: Likewise.
4713 * jv-typeprint.c: Likewise.
4714 * jv-valprint.c: Likewise.
4715 * language.c: Likewise.
4716 * linux-fork.c: Likewise.
4717 * linux-nat.c: Likewise.
4718 * lm32-tdep.c: Likewise.
4719 * m2-exp.y: Likewise.
4720 * m2-typeprint.c: Likewise.
4721 * m32c-tdep.c: Likewise.
4722 * m32r-linux-nat.c: Likewise.
4723 * m32r-linux-tdep.c: Likewise.
4724 * m32r-rom.c: Likewise.
4725 * m32r-tdep.c: Likewise.
4726 * m68hc11-tdep.c: Likewise.
4727 * m68k-tdep.c: Likewise.
4728 * m68kbsd-tdep.c: Likewise.
4729 * m68klinux-nat.c: Likewise.
4730 * m68klinux-tdep.c: Likewise.
4731 * m88k-tdep.c: Likewise.
4732 * machoread.c: Likewise.
4733 * macrocmd.c: Likewise.
4735 * mdebugread.c: Likewise.
4736 * mem-break.c: Likewise.
4737 * memattr.c: Likewise.
4738 * memory-map.c: Likewise.
4739 * mep-tdep.c: Likewise.
4740 * mi/mi-cmd-break.c: Likewise.
4741 * mi/mi-cmd-disas.c: Likewise.
4742 * mi/mi-cmd-env.c: Likewise.
4743 * mi/mi-cmd-stack.c: Likewise.
4744 * mi/mi-cmd-var.c: Likewise.
4745 * mi/mi-cmds.c: Likewise.
4746 * mi/mi-console.c: Likewise.
4747 * mi/mi-getopt.c: Likewise.
4748 * mi/mi-interp.c: Likewise.
4749 * mi/mi-main.c: Likewise.
4750 * mi/mi-parse.c: Likewise.
4751 * microblaze-rom.c: Likewise.
4752 * microblaze-tdep.c: Likewise.
4753 * mingw-hdep.c: Likewise.
4754 * minidebug.c: Likewise.
4755 * minsyms.c: Likewise.
4756 * mips-irix-tdep.c: Likewise.
4757 * mips-linux-tdep.c: Likewise.
4758 * mips-tdep.c: Likewise.
4759 * mips64obsd-tdep.c: Likewise.
4760 * mipsnbsd-tdep.c: Likewise.
4761 * mipsread.c: Likewise.
4762 * mn10300-linux-tdep.c: Likewise.
4763 * mn10300-tdep.c: Likewise.
4764 * monitor.c: Likewise.
4765 * moxie-tdep.c: Likewise.
4766 * mt-tdep.c: Likewise.
4767 * nat/linux-btrace.c: Likewise.
4768 * nat/linux-osdata.c: Likewise.
4769 * nat/linux-procfs.c: Likewise.
4770 * nat/linux-ptrace.c: Likewise.
4771 * nat/linux-waitpid.c: Likewise.
4772 * nbsd-tdep.c: Likewise.
4773 * nios2-linux-tdep.c: Likewise.
4774 * nto-procfs.c: Likewise.
4775 * nto-tdep.c: Likewise.
4776 * objc-lang.c: Likewise.
4777 * objfiles.c: Likewise.
4778 * opencl-lang.c: Likewise.
4779 * osabi.c: Likewise.
4780 * osdata.c: Likewise.
4781 * p-exp.y: Likewise.
4782 * p-lang.c: Likewise.
4783 * p-typeprint.c: Likewise.
4784 * parse.c: Likewise.
4785 * posix-hdep.c: Likewise.
4786 * ppc-linux-nat.c: Likewise.
4787 * ppc-sysv-tdep.c: Likewise.
4788 * ppcfbsd-tdep.c: Likewise.
4789 * ppcnbsd-tdep.c: Likewise.
4790 * ppcobsd-tdep.c: Likewise.
4791 * printcmd.c: Likewise.
4792 * procfs.c: Likewise.
4793 * prologue-value.c: Likewise.
4794 * python/py-auto-load.c: Likewise.
4795 * python/py-gdb-readline.c: Likewise.
4796 * ravenscar-thread.c: Likewise.
4797 * regcache.c: Likewise.
4798 * registry.c: Likewise.
4799 * remote-fileio.c: Likewise.
4800 * remote-m32r-sdi.c: Likewise.
4801 * remote-mips.c: Likewise.
4802 * remote-notif.c: Likewise.
4803 * remote-sim.c: Likewise.
4804 * remote.c: Likewise.
4805 * reverse.c: Likewise.
4806 * rs6000-aix-tdep.c: Likewise.
4807 * ser-base.c: Likewise.
4808 * ser-go32.c: Likewise.
4809 * ser-mingw.c: Likewise.
4810 * ser-pipe.c: Likewise.
4811 * ser-tcp.c: Likewise.
4812 * ser-unix.c: Likewise.
4813 * serial.c: Likewise.
4814 * sh-tdep.c: Likewise.
4815 * sh64-tdep.c: Likewise.
4816 * shnbsd-tdep.c: Likewise.
4818 * sol-thread.c: Likewise.
4819 * solib-dsbt.c: Likewise.
4820 * solib-frv.c: Likewise.
4821 * solib-osf.c: Likewise.
4822 * solib-som.c: Likewise.
4823 * solib-spu.c: Likewise.
4824 * solib-target.c: Likewise.
4825 * solib.c: Likewise.
4826 * somread.c: Likewise.
4827 * source.c: Likewise.
4828 * sparc-nat.c: Likewise.
4829 * sparc-sol2-tdep.c: Likewise.
4830 * sparc-tdep.c: Likewise.
4831 * sparc64-tdep.c: Likewise.
4832 * sparc64fbsd-tdep.c: Likewise.
4833 * sparc64nbsd-tdep.c: Likewise.
4834 * sparcnbsd-tdep.c: Likewise.
4835 * spu-linux-nat.c: Likewise.
4836 * spu-multiarch.c: Likewise.
4837 * spu-tdep.c: Likewise.
4838 * stabsread.c: Likewise.
4839 * stack.c: Likewise.
4840 * std-regs.c: Likewise.
4841 * symfile.c: Likewise.
4842 * symmisc.c: Likewise.
4843 * symtab.c: Likewise.
4844 * target.c: Likewise.
4845 * thread.c: Likewise.
4846 * tilegx-linux-nat.c: Likewise.
4847 * tilegx-tdep.c: Likewise.
4849 * tracepoint.c: Likewise.
4850 * tui/tui-command.c: Likewise.
4851 * tui/tui-data.c: Likewise.
4852 * tui/tui-disasm.c: Likewise.
4853 * tui/tui-file.c: Likewise.
4854 * tui/tui-layout.c: Likewise.
4855 * tui/tui-out.c: Likewise.
4856 * tui/tui-regs.c: Likewise.
4857 * tui/tui-source.c: Likewise.
4858 * tui/tui-stack.c: Likewise.
4859 * tui/tui-win.c: Likewise.
4860 * tui/tui-windata.c: Likewise.
4861 * tui/tui-winsource.c: Likewise.
4862 * typeprint.c: Likewise.
4863 * ui-file.c: Likewise.
4864 * ui-out.c: Likewise.
4865 * user-regs.c: Likewise.
4866 * utils.c: Likewise.
4867 * v850-tdep.c: Likewise.
4868 * valarith.c: Likewise.
4869 * valops.c: Likewise.
4870 * valprint.c: Likewise.
4871 * value.c: Likewise.
4872 * varobj.c: Likewise.
4873 * vax-tdep.c: Likewise.
4874 * vaxnbsd-tdep.c: Likewise.
4875 * vaxobsd-tdep.c: Likewise.
4876 * windows-nat.c: Likewise.
4877 * xcoffread.c: Likewise.
4878 * xml-support.c: Likewise.
4879 * xstormy16-tdep.c: Likewise.
4880 * xtensa-linux-nat.c: Likewise.
4882 2014-08-07 Gary Benson <gbenson@redhat.com>
4884 * common/common-defs.h: Include gdb_assert.h.
4885 * aarch64-tdep.c: Do not include gdb_assert.h.
4886 * addrmap.c: Likewise.
4887 * aix-thread.c: Likewise.
4888 * alpha-linux-tdep.c: Likewise.
4889 * alpha-mdebug-tdep.c: Likewise.
4890 * alphanbsd-tdep.c: Likewise.
4891 * amd64-nat.c: Likewise.
4892 * amd64-tdep.c: Likewise.
4893 * amd64bsd-nat.c: Likewise.
4894 * amd64fbsd-nat.c: Likewise.
4895 * amd64fbsd-tdep.c: Likewise.
4896 * amd64nbsd-nat.c: Likewise.
4897 * amd64nbsd-tdep.c: Likewise.
4898 * amd64obsd-nat.c: Likewise.
4899 * amd64obsd-tdep.c: Likewise.
4900 * arch-utils.c: Likewise.
4901 * arm-tdep.c: Likewise.
4902 * armbsd-tdep.c: Likewise.
4904 * bcache.c: Likewise.
4905 * bfin-tdep.c: Likewise.
4906 * blockframe.c: Likewise.
4907 * breakpoint.c: Likewise.
4908 * bsd-kvm.c: Likewise.
4909 * bsd-uthread.c: Likewise.
4910 * buildsym.c: Likewise.
4911 * c-exp.y: Likewise.
4912 * c-lang.c: Likewise.
4913 * charset.c: Likewise.
4914 * cleanups.c: Likewise.
4915 * cli-out.c: Likewise.
4916 * cli/cli-decode.c: Likewise.
4917 * cli/cli-dump.c: Likewise.
4918 * cli/cli-logging.c: Likewise.
4919 * cli/cli-script.c: Likewise.
4920 * cli/cli-utils.c: Likewise.
4921 * coffread.c: Likewise.
4922 * common/common-utils.c: Likewise.
4923 * common/queue.h: Likewise.
4924 * common/signals.c: Likewise.
4925 * common/vec.h: Likewise.
4926 * complaints.c: Likewise.
4927 * completer.c: Likewise.
4928 * corelow.c: Likewise.
4929 * cp-abi.c: Likewise.
4930 * cp-name-parser.y: Likewise.
4931 * cp-namespace.c: Likewise.
4932 * cp-support.c: Likewise.
4933 * cris-tdep.c: Likewise.
4934 * dbxread.c: Likewise.
4935 * dictionary.c: Likewise.
4936 * doublest.c: Likewise.
4937 * dsrec.c: Likewise.
4938 * dummy-frame.c: Likewise.
4939 * dwarf2-frame-tailcall.c: Likewise.
4940 * dwarf2-frame.c: Likewise.
4941 * dwarf2expr.c: Likewise.
4942 * dwarf2loc.c: Likewise.
4943 * dwarf2read.c: Likewise.
4945 * event-loop.c: Likewise.
4946 * exceptions.c: Likewise.
4947 * expprint.c: Likewise.
4948 * f-valprint.c: Likewise.
4949 * fbsd-nat.c: Likewise.
4950 * findvar.c: Likewise.
4951 * frame-unwind.c: Likewise.
4952 * frame.c: Likewise.
4953 * frv-tdep.c: Likewise.
4954 * gcore.c: Likewise.
4955 * gdb-dlfcn.c: Likewise.
4956 * gdb_bfd.c: Likewise.
4957 * gdbarch.c: Likewise.
4958 * gdbarch.sh: Likewise.
4959 * gdbtypes.c: Likewise.
4960 * gnu-nat.c: Likewise.
4961 * gnu-v3-abi.c: Likewise.
4962 * go-lang.c: Likewise.
4963 * guile/scm-exception.c: Likewise.
4964 * guile/scm-gsmob.c: Likewise.
4965 * guile/scm-lazy-string.c: Likewise.
4966 * guile/scm-math.c: Likewise.
4967 * guile/scm-pretty-print.c: Likewise.
4968 * guile/scm-safe-call.c: Likewise.
4969 * guile/scm-utils.c: Likewise.
4970 * guile/scm-value.c: Likewise.
4971 * h8300-tdep.c: Likewise.
4972 * hppa-hpux-nat.c: Likewise.
4973 * hppa-tdep.c: Likewise.
4974 * hppanbsd-tdep.c: Likewise.
4975 * hppaobsd-tdep.c: Likewise.
4976 * i386-darwin-nat.c: Likewise.
4977 * i386-darwin-tdep.c: Likewise.
4978 * i386-nto-tdep.c: Likewise.
4979 * i386-tdep.c: Likewise.
4980 * i386bsd-nat.c: Likewise.
4981 * i386fbsd-tdep.c: Likewise.
4982 * i386gnu-nat.c: Likewise.
4983 * i386nbsd-tdep.c: Likewise.
4984 * i386obsd-tdep.c: Likewise.
4985 * i387-tdep.c: Likewise.
4986 * ia64-libunwind-tdep.c: Likewise.
4987 * ia64-tdep.c: Likewise.
4988 * inf-ptrace.c: Likewise.
4989 * inf-ttrace.c: Likewise.
4990 * infcall.c: Likewise.
4991 * infcmd.c: Likewise.
4992 * infrun.c: Likewise.
4993 * inline-frame.c: Likewise.
4994 * interps.c: Likewise.
4995 * jv-lang.c: Likewise.
4996 * jv-typeprint.c: Likewise.
4997 * linux-fork.c: Likewise.
4998 * linux-nat.c: Likewise.
4999 * linux-thread-db.c: Likewise.
5000 * m32c-tdep.c: Likewise.
5001 * m32r-linux-nat.c: Likewise.
5002 * m32r-tdep.c: Likewise.
5003 * m68k-tdep.c: Likewise.
5004 * m68kbsd-nat.c: Likewise.
5005 * m68kbsd-tdep.c: Likewise.
5006 * m88k-tdep.c: Likewise.
5007 * machoread.c: Likewise.
5008 * macroexp.c: Likewise.
5009 * macrotab.c: Likewise.
5010 * maint.c: Likewise.
5011 * mdebugread.c: Likewise.
5012 * memory-map.c: Likewise.
5013 * mep-tdep.c: Likewise.
5014 * mi/mi-common.c: Likewise.
5015 * microblaze-tdep.c: Likewise.
5016 * mingw-hdep.c: Likewise.
5017 * mips-linux-nat.c: Likewise.
5018 * mips-linux-tdep.c: Likewise.
5019 * mips-tdep.c: Likewise.
5020 * mips64obsd-tdep.c: Likewise.
5021 * mipsnbsd-tdep.c: Likewise.
5022 * mn10300-linux-tdep.c: Likewise.
5023 * mn10300-tdep.c: Likewise.
5024 * moxie-tdep.c: Likewise.
5025 * mt-tdep.c: Likewise.
5026 * nat/linux-btrace.c: Likewise.
5027 * nat/linux-osdata.c: Likewise.
5028 * nat/linux-ptrace.c: Likewise.
5029 * nat/mips-linux-watch.c: Likewise.
5030 * nios2-linux-tdep.c: Likewise.
5031 * nios2-tdep.c: Likewise.
5032 * objc-lang.c: Likewise.
5033 * objfiles.c: Likewise.
5034 * obsd-nat.c: Likewise.
5035 * opencl-lang.c: Likewise.
5036 * osabi.c: Likewise.
5037 * parse.c: Likewise.
5038 * ppc-linux-nat.c: Likewise.
5039 * ppc-sysv-tdep.c: Likewise.
5040 * ppcfbsd-nat.c: Likewise.
5041 * ppcfbsd-tdep.c: Likewise.
5042 * ppcnbsd-nat.c: Likewise.
5043 * ppcnbsd-tdep.c: Likewise.
5044 * ppcobsd-nat.c: Likewise.
5045 * ppcobsd-tdep.c: Likewise.
5046 * printcmd.c: Likewise.
5047 * procfs.c: Likewise.
5048 * prologue-value.c: Likewise.
5049 * psymtab.c: Likewise.
5050 * python/py-lazy-string.c: Likewise.
5051 * python/py-value.c: Likewise.
5052 * regcache.c: Likewise.
5053 * reggroups.c: Likewise.
5054 * registry.c: Likewise.
5055 * remote-sim.c: Likewise.
5056 * remote.c: Likewise.
5057 * rs6000-aix-tdep.c: Likewise.
5058 * rs6000-tdep.c: Likewise.
5059 * s390-linux-tdep.c: Likewise.
5060 * score-tdep.c: Likewise.
5061 * ser-base.c: Likewise.
5062 * ser-mingw.c: Likewise.
5063 * sh-tdep.c: Likewise.
5064 * sh64-tdep.c: Likewise.
5065 * solib-darwin.c: Likewise.
5066 * solib-spu.c: Likewise.
5067 * solib-svr4.c: Likewise.
5068 * source.c: Likewise.
5069 * sparc-nat.c: Likewise.
5070 * sparc-sol2-tdep.c: Likewise.
5071 * sparc-tdep.c: Likewise.
5072 * sparc64-sol2-tdep.c: Likewise.
5073 * sparc64-tdep.c: Likewise.
5074 * sparc64fbsd-tdep.c: Likewise.
5075 * sparc64nbsd-tdep.c: Likewise.
5076 * sparc64obsd-tdep.c: Likewise.
5077 * sparcnbsd-tdep.c: Likewise.
5078 * sparcobsd-tdep.c: Likewise.
5079 * spu-multiarch.c: Likewise.
5080 * spu-tdep.c: Likewise.
5081 * stabsread.c: Likewise.
5082 * stack.c: Likewise.
5083 * symfile.c: Likewise.
5084 * symtab.c: Likewise.
5085 * target-descriptions.c: Likewise.
5086 * target-memory.c: Likewise.
5087 * target.c: Likewise.
5088 * tic6x-linux-tdep.c: Likewise.
5089 * tic6x-tdep.c: Likewise.
5090 * tilegx-linux-nat.c: Likewise.
5091 * tilegx-tdep.c: Likewise.
5093 * tramp-frame.c: Likewise.
5094 * tui/tui-out.c: Likewise.
5095 * tui/tui-winsource.c: Likewise.
5096 * ui-out.c: Likewise.
5097 * user-regs.c: Likewise.
5098 * utils.c: Likewise.
5099 * v850-tdep.c: Likewise.
5100 * valops.c: Likewise.
5101 * value.c: Likewise.
5102 * varobj.c: Likewise.
5103 * vax-nat.c: Likewise.
5104 * xml-syscall.c: Likewise.
5105 * xml-tdesc.c: Likewise.
5106 * xstormy16-tdep.c: Likewise.
5107 * xtensa-linux-nat.c: Likewise.
5108 * xtensa-tdep.c: Likewise.
5110 2014-08-07 Gary Benson <gbenson@redhat.com>
5112 * common/common-defs.h: Include common-utils.h.
5113 * defs.h: Do not include common-utils.h.
5114 * common/gdb_assert.h: Likewise.
5115 * darwin-nat.h: Likewise.
5116 * nat/linux-btrace.c: Likewise.
5117 * target/waitstatus.h: Likewise.
5119 2014-08-07 Gary Benson <gbenson@redhat.com>
5121 * common/common-defs.h: Include ptid.h.
5122 * defs.h: Do not include ptid.h.
5123 * inferior.h: Likewise.
5124 * infrun.h: Likewise.
5125 * nat/linux-btrace.h: Likewise.
5126 * nat/linux-osdata.h: Likewise.
5127 * target/waitstatus.h: Likewise.
5129 2014-08-07 Gary Benson <gbenson@redhat.com>
5131 * common/common-defs.h: Include gdb_locale.h.
5132 * defs.h: Do not include gdb_locale.h.
5134 2014-08-07 Gary Benson <gbenson@redhat.com>
5136 * common/common-defs.h: Include gdb/signals.h.
5137 * defs.h: Do not include gdb/signals.h.
5139 2014-08-07 Gary Benson <gbenson@redhat.com>
5141 * common/common-defs.h: Include pathmax.h.
5142 * defs.h: Do not include pathmax.h.
5144 2014-08-07 Gary Benson <gbenson@redhat.com>
5146 * common/common-defs.h: Include libiberty.h.
5147 * defs.h: Do not include libiberty.h.
5148 * common/queue.h: Likewise.
5149 * cp-name-parser.y: Likewise.
5150 * mi/mi-cmd-catch.c: Likewise.
5151 * python/python.c: Likewise.
5153 2014-08-07 Gary Benson <gbenson@redhat.com>
5155 * common/common-defs.h: Include ansidecl.h.
5156 * defs.h: Do not include ansidecl.h.
5157 * common/buffer.h: Likewise.
5158 * common/common-utils.h: Likewise.
5160 2014-08-07 Gary Benson <gbenson@redhat.com>
5162 * common/common-defs.h: Include stddef.h.
5163 * defs.h: Do not include stddef.h.
5164 * common/common-utils.h: Likewise.
5165 * amd64fbsd-nat.c: Likewise.
5166 * bcache.c: Likewise.
5167 * charset.c: Likewise.
5168 * common/buffer.h: Likewise.
5169 * common/vec.h: Likewise.
5170 * i386bsd-nat.c: Likewise.
5171 * nat/linux-btrace.h: Likewise.
5172 * ppcfbsd-nat.c: Likewise.
5173 * ppcnbsd-tdep.h: Likewise.
5174 * ppcobsd-nat.c: Likewise.
5175 * ppcobsd-tdep.h: Likewise.
5176 * python/py-gdb-readline.c: Likewise.
5178 2014-08-07 Gary Benson <gbenson@redhat.com>
5180 * common/common-defs.h: Include stdarg.h.
5181 * defs.h: Do not include stdarg.h.
5182 * ada-lang.c: Likewise.
5183 * common/common-utils.h: Likewise.
5184 * guile/scm-string.c: Likewise.
5185 * guile/scm-utils.c: Likewise.
5186 * m32c-tdep.c: Likewise.
5188 2014-08-07 Gary Benson <gbenson@redhat.com>
5190 * common/common-defs.h: Include stdlib.h.
5191 * defs.h: Do not include stdlib.h.
5192 * addrmap.c: Likewise.
5193 * bcache.c: Likewise.
5194 * common/buffer.c: Likewise.
5195 * common/common-utils.c: Likewise.
5196 * cp-name-parser.y: Likewise.
5197 * go32-nat.c: Likewise.
5198 * mn10300-linux-tdep.c: Likewise.
5199 * nat/linux-osdata.c: Likewise.
5200 * tui/tui.c: Likewise.
5201 * windows-nat.c: Likewise.
5203 2014-08-07 Gary Benson <gbenson@redhat.com>
5205 * common/common-defs.h: Include stdio.h.
5206 * defs.h: Do not include stdio.h.
5207 * ada-lang.c: Likewise.
5208 * common/buffer.c: Likewise.
5209 * common/common-utils.c: Likewise.
5210 * cp-name-parser.y: Likewise.
5211 * gnu-nat.c: Likewise.
5212 * go32-nat.c: Likewise.
5213 * i386gnu-nat.c: Likewise.
5214 * proc-api.c: Likewise.
5215 * proc-events.c: Likewise.
5216 * proc-flags.c: Likewise.
5217 * proc-why.c: Likewise.
5218 * python/python-internal.h: Likewise.
5219 * target-memory.c: Likewise.
5220 * tui/tui-io.c: Likewise.
5221 * tui/tui.c: Likewise.
5223 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5225 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5226 (scan_dyntag_auxv): Same.
5228 2014-08-06 Yao Qi <yao@codesourcery.com>
5230 * amd64-linux-nat.c: Remove duplicated include
5232 * i386-linux-nat.c: Likewise.
5234 2014-08-06 Yao Qi <yao@codesourcery.com>
5236 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5237 operand" with "Special opcode" in comments.
5239 2014-08-05 Gary Benson <gbenson@redhat.com>
5241 * interps.c (initialize_interps): Remove prototype.
5242 (interpreter_initialized): Remove static global.
5243 (interp_add): Do not call initialize_interps.
5244 (initialize_interps): Remove function.
5246 2014-08-05 Gary Benson <gbenson@redhat.com>
5248 * utils.c (vwarning): Remove spurious va_end.
5250 2014-08-05 Alan Modra <amodra@gmail.com>
5252 * charset.c (convert_between_encodings): Cast result of obstack_base.
5253 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5254 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5255 (read_unwind_info): Use size_t for some locals.
5256 * jit.c (finalize_symtab): Likewise.
5257 * utils.c (hashtab_obstack_allocate): Likewise.
5258 * symmisc.c (print_objfile_statistics): Update format strings.
5260 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5262 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5263 (Changes in GDB 7.8): ... here.
5265 2014-08-04 Tom Tromey <tromey@redhat.com>
5267 * target.c (set_targetdebug): New function.
5268 (initialize_targets): Pass set_targetdebug when creating "set
5271 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5273 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5274 if detecting a variable-sized field that is not the last field.
5275 Fix struct type length computation.
5277 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5279 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5282 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5284 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5285 Remove "+ 8" offset in computation of CHAIN_VMA.
5287 2014-07-31 Doug Evans <dje@google.com>
5289 * inflow.c (child_terminal_inferior): Add comment.
5290 (child_terminal_ours_for_output): Add comment.
5291 (child_terminal_ours): Add comment.
5292 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5293 (linux_nat_terminal_ours): Add comment.
5295 2014-07-31 Gary Benson <gbenson@redhat.com>
5297 * common/btrace-common.h: Do not include defs.h or server.h.
5298 * nat/mips-linux-watch.h: Likewise.
5299 * gdb-dlfcn.h: Do not include defs.h.
5300 * tracefile.h: Likewise.
5302 2014-07-30 Roland McGrath <mcgrathr@google.com>
5304 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5306 2014-07-30 Tom Tromey <tromey@redhat.com>
5308 * bsd-kvm.c (bsd_kvm_open): Constify.
5309 * corelow.c (core_open): Constify.
5310 * ctf.c (ctf_open): Constify.
5311 * dbug-rom.c (dbug_open): Constify.
5312 * exec.c (exec_open): Constify.
5313 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5314 * microblaze-rom.c (picobug_open): Constify.
5315 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5317 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5318 * record-btrace.c (record_btrace_open): Constify.
5319 * record-full.c (record_full_core_open_1, record_full_open_1)
5320 (record_full_open): Constify.
5321 * remote-m32r-sdi.c (m32r_open): Constify.
5322 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5323 (rockhopper_open, lsi_open): Constify.
5324 * remote-sim.c (gdbsim_open): Constify.
5325 * remote.c (remote_open, extended_remote_open, remote_open_1):
5327 * target.h (struct target_ops) <to_open>: Make "arg" const.
5328 * tracefile-tfile.c (tfile_open): Constify.
5330 2014-07-30 Tom Tromey <tromey@redhat.com>
5332 * breakpoint.c (map_breakpoint_numbers): Update.
5333 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5334 (get_number_const): New function.
5335 (get_number): Rewrite using get_number_const.
5336 (init_number_or_range): Make "string" const.
5337 (number_is_in_list): Make "list" const.
5338 * cli/cli-utils.h (get_number_const): Declare.
5339 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5340 (init_number_or_range, number_is_in_list): Update.
5341 * printcmd.c (map_display_numbers): Update.
5342 * value.c (value_from_history_ref): Constify.
5343 * value.h (value_from_history_ref): Update.
5345 2014-07-30 Tom Tromey <tromey@redhat.com>
5347 * corefile.c (hook_type, call_extra_exec_file_hooks)
5348 (specify_exec_file_hook): Constify.
5349 * exec.c (exec_file_attach): Make "filename" const.
5350 * gdbcore.h (deprecated_exec_file_display_hook)
5351 (specify_exec_file_hook, exec_file_attach): Constify.
5352 * main.c (captured_main): Use catch_command_errors_const.
5354 2014-07-30 Tom Tromey <tromey@redhat.com>
5356 * target.c (open_target): New function.
5357 (add_target_with_completer, add_deprecated_target_alias): Use
5358 set_cmd_sfunc, set_cmd_context.
5359 (debug_to_open): Remove.
5360 (setup_target_debug): Update.
5362 2014-07-30 Yao Qi <yao@codesourcery.com>
5364 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5366 * parse.c (exp_iterate): Update comments.
5368 2014-07-30 Gary Benson <gbenson@redhat.com>
5370 * common/common-defs.h: New file.
5371 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5372 * defs.h: Include common-defs.h.
5373 Do not include config.h or build-gnulib/config.h.
5375 2014-07-30 Gary Benson <gbenson@redhat.com>
5377 * common/common-utils.h: Do not include config.h.
5378 * nat/linux-btrace.h: Likewise.
5380 2014-07-30 Gary Benson <gbenson@redhat.com>
5382 * btrace.c: Include defs.h.
5383 * common/ptid.c: Include defs.h or server.h as appropriate.
5384 * nat/mips-linux-watch.c: Likewise.
5386 2014-07-29 Tom Tromey <tromey@redhat.com>
5388 * target.c (target_is_pushed): Simplify.
5390 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5394 2014-07-29 Yao Qi <yao@codesourcery.com>
5397 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5399 2014-07-28 Doug Evans <xdje42@gmail.com>
5402 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5403 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5406 2014-07-28 Will Newton <will.newton@linaro.org>
5408 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5409 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5410 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5411 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5412 (THUMB2_EABI_SYSCALL): Likewise.
5413 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5415 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5416 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5418 2014-07-27 Doug Evans <xdje42@gmail.com>
5420 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5422 2014-07-27 Doug Evans <xdje42@gmail.com>
5424 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5426 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5427 Doug Evans <xdje42@gmail.com>
5430 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5431 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5432 * configure.ac: Try to use guild to compile an scm file, if it fails
5433 then disable guile support.
5434 * configure: Regenerate.
5435 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5437 (GUILE_COMPILED_FILES): New variable.
5438 (GUILE_FILES) Update.
5439 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5440 (stamp-guile): Compile scm files.
5441 * guile/guile.c (boot_guile_support): New function.
5442 (standard_throw_args_p): New function.
5443 (print_standard_throw_error, print_throw_error): New functions.
5444 (handle_boot_error): New function.
5445 (initialize_scheme_side): Rewrite to call boot_guile_support.
5446 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5447 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5449 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5450 Doug Evans <xdje42@gmail.com>
5453 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5454 * guile/lib/gdb/support.scm: New file.
5455 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5456 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5458 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5460 (%assert-type): Ditto, and renamed to assert-type.
5461 (%exception-print-style): Delete.
5463 2014-07-26 Doug Evans <xdje42@gmail.com>
5466 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5467 * configure: Regenerate.
5468 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5470 (PYTHON_FILES): New variable.
5471 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5472 (GUILE_FILES): New variable.
5473 (stamp-python, install-python, uninstall-python): Handle empty
5475 (stamp-guile, install-guile, uninstall-guile): Ditto.
5477 2014-07-26 Doug Evans <xdje42@gmail.com>
5480 * guile/lib/gdb.scm (pretty-printers): Export.
5481 (set-pretty-printers!): Export.
5482 * guile/lib/gdb/printing.scm (gdb module): Update.
5483 (prepend-pretty-printer!, append-pretty-printer!): Update.
5484 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5485 (pretty_printer_list_var): Delete.
5486 (pretty_printer_list): New static global.
5487 (gdbscm_pretty_printers): New function.
5488 (gdbscm_set_pretty_printers_x): New function.
5489 (ppscm_find_pretty_printer_from_gdb): Update.
5490 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5491 (gdbscm_initialize_pretty_printers): Update.
5493 2014-07-26 Doug Evans <xdje42@gmail.com>
5496 * configure.ac: Add check for header gc/gc.h.
5497 Add check for function setenv.
5498 * configure: Regenerate.
5499 * config.in: Regenerate.
5500 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5502 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5504 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5505 variation in gdbarch matching.
5507 2014-07-25 Tom Tromey <tromey@redhat.com>
5509 * exec.c (using_exec_ops): Remove.
5510 (exec_close_1): Update. Remove extraneous block, reindent.
5511 (add_target_sections): Use target_is_pushed.
5513 2014-07-25 Pedro Alves <palves@redhat.com>
5515 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5516 * monitor.c (monitor_create_inferior): Likewise.
5517 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5518 * remote-sim.c (gdbsim_create_inferior): Likewise.
5519 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5520 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5521 * windows-nat.c (do_initial_windows_stuff): Likewise.
5523 2014-07-25 Pedro Alves <palves@redhat.com>
5525 * NEWS: Mention signal passing and "signal" command changes.
5526 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5528 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5530 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5531 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5532 (jump_command): Adjust clear_proceed_status call.
5533 (signal_command): Warn if other thread that are resumed have
5534 signals that will be delivered. Adjust clear_proceed_status call.
5535 (until_next_command, finish_command)
5536 (proceed_after_attach_callback, attach_command_post_wait)
5537 (attach_command): Adjust clear_proceed_status call.
5538 * infrun.c (proceed_after_vfork_done): Likewise.
5539 (proceed_after_attach_callback): Adjust comment.
5540 (clear_proceed_status_thread): Clear stop_signal if not in pass
5542 (clear_proceed_status_callback): Delete.
5543 (clear_proceed_status): New 'step' parameter. Only clear the
5544 proceed status of threads the command being prepared is about to
5546 (proceed): If passed in an explicit signal, override stop_signal
5547 with it. Don't pass the last stop signal to the thread we're
5549 (init_wait_for_inferior): Adjust clear_proceed_status call.
5550 (switch_back_to_stepped_thread): Clear the signal if it should not
5552 * infrun.h (clear_proceed_status): New 'step' parameter.
5553 (user_visible_resume_ptid): Add comment.
5554 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5555 signal is in pass state.
5556 * remote.c (append_pending_thread_resumptions): Likewise.
5557 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5559 2014-07-25 Tom Tromey <tromey@redhat.com>
5561 * target.h (target_stopped_data_address)
5562 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5565 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5567 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5569 (avr_pointer_to_address): Likewise.
5571 2014-07-24 Tom Tromey <tromey@redhat.com>
5573 * monitor.c (compile_pattern): Update.
5574 * target.h (struct target_ops) <to_shortname, to_longname,
5577 2014-07-24 Tom Tromey <tromey@redhat.com>
5579 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5580 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5581 (add_info_alias, add_com): Make "doc" const.
5582 (print_doc_line): Make "str" const.
5583 (delete_cmd): Update.
5584 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5585 (print_doc_line): Update.
5586 * cli/cli-script.c (document_command): Update.
5587 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5588 (add_com, add_info, add_info_alias): Update.
5589 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5590 * python/py-cmd.c (cmdpy_destroyer): Update.
5592 2014-07-24 Tom Tromey <tromey@redhat.com>
5594 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5595 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5596 (help_cmd_list): Constify.
5597 (lookup_cmd): Update.
5598 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5600 (help_cmd_list, apropos_cmd): Update.
5601 * cli/cli-script.c (show_user): Update.
5602 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5603 * cli/cli-setshow.h (cmd_show_list): Update.
5604 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5605 (cmd_show_list): Update.
5606 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5607 * python/py-cmd.c (cmdpy_destroyer): Update.
5609 2014-07-24 Tom Tromey <tromey@redhat.com>
5611 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5612 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5614 * command.h (deprecate_cmd): Update.
5615 * maint.c (maintenance_do_deprecate): Add casts.
5617 2014-07-24 Tom Tromey <tromey@redhat.com>
5619 * cli/cli-decode.c (help_cmd): Make parameter "const".
5620 * cli/cli-decode.h (help_cmd): Update.
5622 2014-07-24 Tom Tromey <tromey@redhat.com>
5624 * stack.c (up_silently_base, down_silently_base): Make argument
5627 2014-07-24 Tom Tromey <tromey@redhat.com>
5629 * solib.c (solib_add): Make "pattern" const.
5630 * solib.h (solib_add): Update.
5632 2014-07-24 Tom Tromey <tromey@redhat.com>
5634 * remote.c (remote_serial_open, print_packet, putpkt)
5635 (putpkt_binary): Constify.
5636 * remote.h (putpkt): Update.
5638 2014-07-24 Tom Tromey <tromey@redhat.com>
5640 * monitor.c (monitor_open): Make "args" const.
5641 * monitor.h (monitor_open): Update.
5643 2014-07-24 Tom Tromey <tromey@redhat.com>
5645 * maint.c (match_bfd_flags): Make "string" const.
5646 (print_bfd_section_info): Remove casts.
5647 (print_objfile_section_info): Make "string" const.
5649 2014-07-24 Tom Tromey <tromey@redhat.com>
5651 * inf-child.c (inf_child_open_target): Make "arg" const.
5652 * inf-child.h (inf_child_open_target): Update.
5654 2014-07-24 Tom Tromey <tromey@redhat.com>
5656 * environ.c (unset_in_environ): Make "var" const.
5657 * environ.h (unset_in_environ): Update.
5659 2014-07-24 Tom Tromey <tromey@redhat.com>
5661 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5663 (scan_filename_with_cleanup): Likewise.
5664 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5665 Make arguments const.
5666 (restore_command): Update.
5668 2014-07-24 Pedro Alves <palves@redhat.com>
5670 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5672 2014-07-24 Tom Tromey <tromey@redhat.com>
5673 Gary Benson <gbenson@redhat.com>
5675 * nat/linux-ptrace.c (additional_flags): New global.
5676 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5677 additional_flags; don't check GDBSERVER.
5678 (linux_ptrace_set_additional_flags): New function.
5679 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5681 * linux-nat.c (_initialize_linux_nat): Call
5682 linux_ptrace_set_additional_flags.
5684 2014-07-24 Tom Tromey <tromey@redhat.com>
5686 * make-target-delegates (munge_type, write_debugmethod): New
5688 (debug_names): New global.
5689 ($TARGET_DEBUG_PRINTER): New global.
5690 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5692 Write debug methods. Generate init_debug_target.
5693 * target-debug.h: New file.
5694 * target-delegates.c: Rebuild.
5695 * target.c: Include target-debug.h.
5696 (debug_target): Hoist definition.
5697 (target_kill, target_get_section_table, target_memory_map)
5698 (target_flash_erase, target_flash_done, target_detach)
5699 (target_disconnect, target_wait, target_resume)
5700 (target_pass_signals, target_program_signals, target_follow_fork)
5701 (target_mourn_inferior, target_search_memory)
5702 (target_thread_address_space, target_close)
5703 (target_find_new_threads, target_core_of_thread)
5704 (target_verify_memory, target_insert_mask_watchpoint)
5705 (target_remove_mask_watchpoint): Remove targetdebug code.
5706 (debug_to_post_attach, debug_to_prepare_to_store)
5707 (debug_to_files_info, debug_to_insert_breakpoint)
5708 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5709 (debug_to_region_ok_for_hw_watchpoint)
5710 (debug_to_can_accel_watchpoint_condition)
5711 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5712 (debug_to_watchpoint_addr_within_range)
5713 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5714 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5715 (debug_to_terminal_init, debug_to_terminal_inferior)
5716 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5717 (debug_to_terminal_save_ours, debug_to_terminal_info)
5718 (debug_to_load, debug_to_post_startup_inferior)
5719 (debug_to_insert_fork_catchpoint)
5720 (debug_to_remove_fork_catchpoint)
5721 (debug_to_insert_vfork_catchpoint)
5722 (debug_to_remove_vfork_catchpoint)
5723 (debug_to_insert_exec_catchpoint)
5724 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5725 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5726 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5727 (setup_target_debug): Call init_debug_target.
5728 * target.h (TARGET_DEBUG_PRINTER): New macro.
5729 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5730 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5732 2014-07-24 Gary Benson <gbenson@redhat.com>
5734 * exceptions.h (throw_vfatal): Renamed to...
5735 (throw_vquit): New declaration.
5736 (throw_quit): Likewise.
5737 * exceptions.c (throw_vfatal): Renamed to...
5738 (throw_vquit): New function.
5739 (throw_quit): Likewise.
5740 (throw_error): Call throw_verror rather than throw_it.
5741 * utils.h (vfatal): Removed.
5743 * utils.c (vfatal): Removed.
5745 (internal_verror): Replaced call to fatal with call to throw_quit.
5746 (quit): Replaced calls to fatal with calls to throw_quit.
5748 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5750 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5753 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5755 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5756 less than zero in conditional expression.
5758 2014-07-23 Tom Tromey <tromey@redhat.com>
5760 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5761 ($INTRO_PART): Don't match whitespace.
5762 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5764 ($METHOD): Add $METHOD_TRAILER.
5766 (scan_target_h): New sub.
5767 Change main loop not to collect state.
5768 * target-delegates.c: Rebuild.
5770 2014-07-23 Gary Benson <gbenson@redhat.com>
5772 * cp-support.c (gdb_demangle): Fix build on systems without
5775 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5777 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5778 for reference entry value target data value.
5780 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5782 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5783 value_available_contents_eq.
5785 2014-07-22 Pedro Alves <palves@redhat.com>
5787 * value.c (allocate_optimized_out_value): Don't mark value as
5790 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5792 * MAINTAINERS (Write After Approval): Update my email address.
5794 2014-07-20 Doug Evans <dje@google.com>
5797 * remote.c (putpkt_binary): Add text to error message.
5799 2014-07-20 Yao Qi <yao@codesourcery.com>
5801 * eval.c: Remove "Chill" from comments.
5802 * gdbtypes.h: Likewise.
5803 * symtab.h: Likewise.
5805 2014-07-20 Yao Qi <yao@codesourcery.com>
5807 * std-operator.def: Update comments to TERNOP_SLICE.
5809 2014-07-20 Yao Qi <yao@codesourcery.com>
5811 * std-operator.def: Remove BINOP_RANGE.
5812 * breakpoint.c (watchpoint_exp_is_const): Update.
5813 * expprint.c (dump_subexp_body_standard): Likewise.
5814 * eval.c (init_array_element): Remove dead code.
5815 (evaluate_subexp_standard): Likewise.
5817 2014-07-20 Yao Qi <yao@codesourcery.com>
5819 * std-operator.def: Remove BINOP_IN.
5820 * breakpoint.c (watchpoint_exp_is_const): Update.
5821 * eval.c (evaluate_subexp_standard): Likewise.
5822 * expprint.c (dump_subexp_body_standard): Likewise.
5824 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5826 * microblaze-tdep.c (microblaze_register_names): Add
5827 the rshr and rslr register names.
5828 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5829 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5830 Use of tdesc_numbered_register. Use of
5831 microblaze_register_g_packet_guesses. Use of
5832 tdesc_use_registers. Use of set_gdbarch_register_type.
5833 (microblaze_register_g_packet_guesses): New.
5834 * microblaze-tdep.h (microblaze_reg_num): Add
5835 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5836 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5837 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5838 * features/microblaze-core.xml: New file.
5839 * features/microblaze-stack-protect.xml: New file.
5840 * features/microblaze-with-stack-protect.c: New file.
5841 * features/microblaze-with-stack-protect.xml: New file.
5842 * features/microblaze.xml: New file.
5843 * features/microblaze.c: New file.
5844 * features/Makefile (microblaze-with-stack-protect): Add
5845 microblaze-with-stack-protect microblaze and microblaze-expedite.
5846 * regformats/microblaze-with-stack-protect.dat: New file.
5847 * regformats/microblaze.dat: New file.
5848 * doc/gdb.texinfo (MicroBlaze Features): Added.
5850 2014-07-18 Tom Tromey <tromey@redhat.com>
5852 * exec.c (exec_ops): Now static.
5853 * exec.h (exec_ops): Don't declare.
5855 2014-07-18 Tom Tromey <tromey@redhat.com>
5857 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5858 to find_target_beneath.
5859 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5860 find_target_beneath.
5861 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5863 2014-07-18 Tom Tromey <tromey@redhat.com>
5866 * utils.c (quit): Use target_supports_terminal_ours.
5867 * target.h (target_supports_terminal_ours): Declare.
5868 * target.c (target_supports_delete_record): Don't check
5869 to_delete_record against NULL.
5870 (target_supports_terminal_ours): New function.
5872 2014-07-18 Tom Tromey <tromey@redhat.com>
5875 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5876 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5877 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5878 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5879 * windows-nat.c (windows_xfer_partial): Always delegate.
5880 * record-btrace.c (record_btrace_xfer_partial): Simplify
5882 (record_btrace_fetch_registers, record_btrace_store_registers)
5883 (record_btrace_prepare_to_store, record_btrace_resume)
5884 (record_btrace_wait, record_btrace_find_new_threads)
5885 (record_btrace_thread_alive): Likewise.
5886 * procfs.c (procfs_xfer_partial): Always delegate.
5887 * corelow.c (core_xfer_partial): Always delegate.
5888 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5890 2014-07-18 Tom Tromey <tromey@redhat.com>
5892 * exec.c (exec_make_note_section): Move earlier.
5894 2014-07-17 Doug Evans <dje@google.com>
5897 * maint.c (count_symtabs_and_blocks): Handle NULL
5898 current_program_space.
5899 (report_command_stats): Check global enabled flag in addition to
5900 recorded enabled flag.
5901 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5903 2014-07-16 Pedro Alves <palves@redhat.com>
5905 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5907 2014-07-16 Tom Tromey <tromey@redhat.com>
5909 * target.h (struct target_ops) <to_delete_record>: Reformat
5912 2014-07-16 Tom Tromey <tromey@redhat.com>
5914 * target-delegates.c: Rebuild.
5916 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5918 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5919 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5920 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5921 (avr_pointer_to_address): Likewise.
5922 (avr_address_class_type_flags): New function.
5923 (avr_address_class_type_flags_to_name): Likewise.
5924 (avr_address_class_name_to_type_flags): Likewise.
5925 (avr_gdbarch_init): Set address_class_type_flags,
5926 address_class_type_flags_to_name and
5927 address_class_name_to_type_flags.
5929 2014-07-15 Pedro Alves <palves@redhat.com>
5931 * linux-nat.c (kill_callback): Save errno and work with saved
5934 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5936 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5938 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5940 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5941 breakpoint support correctly.
5943 2014-07-14 Pedro Alves <palves@redhat.com>
5945 * utils.c (prompt_for_continue): Call target_terminal_ours.
5947 2014-07-14 Pedro Alves <palves@redhat.com>
5949 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5950 catch_errors. Don't re-enable stdin or notify observers where,
5952 (fetch_inferior_event_wrapper): Delete.
5954 2014-07-14 Pedro Alves <palves@redhat.com>
5957 * top.c: Include "inf-loop.h".
5958 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5960 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5962 (gdb_readline_wrapper): Store whether the target is async, and
5965 2014-07-14 Pedro Alves <palves@redhat.com>
5968 * top.c (gdb_readline_wrapper_line): Tweak comment.
5969 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5970 the input handler callback.
5972 2014-07-14 Pedro Alves <palves@redhat.com>
5975 * main.c: Include event-top.h.
5976 (handle_command_errors): New function.
5977 (catch_command_errors, catch_command_errors_const): Use it.
5979 2014-07-14 Pedro Alves <palves@redhat.com>
5981 * exceptions.c (catch_command_errors, catch_command_errors_const):
5983 * exceptions.h (catch_command_errors_ftype)
5984 (catch_command_errors_const_ftype): Moved to main.c.
5985 (catch_command_errors, catch_command_errors_const): Delete
5987 * main.c (catch_command_errors_ftype)
5988 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5989 (catch_command_errors, catch_command_errors_const)): Moved here
5990 from exceptions.c and make static.
5992 2014-07-14 Pedro Alves <palves@redhat.com>
5994 * exceptions.c (print_any_exception): Delete.
5995 (catch_exceptions_with_msg): Use exception_print instead of
5996 print_any_exception.
5997 (catch_errors): Use exception_fprintf instead of
5998 print_any_exception.
5999 (catch_command_errors, catch_command_errors_const): Use
6000 exception_print instead of print_any_exception.
6002 2014-07-14 Pedro Alves <palves@redhat.com>
6004 * infcall.c (run_inferior_call): Set 'sync_execution' while
6005 running the inferior call.
6007 2014-07-14 Pedro Alves <palves@redhat.com>
6009 * value.c (value_contents_equal): Delete function.
6010 * value.h (value_contents_equal): Delete declaration.
6012 2014-07-14 Tom Tromey <tromey@redhat.com>
6015 * gdbtypes.c (is_dynamic_type_internal): New function, from
6017 (is_dynamic_type): Rewrite.
6018 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6019 (resolve_dynamic_struct): Likewise.
6020 (resolve_dynamic_type_internal): New function, from
6021 resolve_dynamic_type.
6022 (resolve_dynamic_type): Rewrite.
6024 2014-07-14 Tom Tromey <tromey@redhat.com>
6026 * target.c (target_require_runnable): Also check record_stratum.
6029 2014-07-11 Yao Qi <yao@codesourcery.com>
6031 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6032 thumb_instruction_restores_sp return true.
6034 2014-07-11 Yao Qi <yao@codesourcery.com>
6036 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6037 (thumb_in_function_epilogue_p): Call
6038 thumb_instruction_restores_sp.
6040 2014-07-11 Yao Qi <yao@codesourcery.com>
6042 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6044 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6046 2014-07-11 Gary Benson <gbenson@redhat.com>
6048 * amd64-linux-nat.c (gdbcore.h): Remove include.
6049 (regset.h): Likewise.
6050 (nat/linux-btrace.h): Likewise.
6051 (btrace.h): Likewise.
6052 (gdb_assert.h): Likewise.
6053 (string.h): Likewise.
6054 (sys/uio.h): Likewise.
6055 (sys/debugreg.h): Likewise.
6056 (sys/syscall.h): Likewise.
6057 (sys/procfs.h): Likewise.
6058 (sys/user.h): Likewise.
6059 (asm/ptrace.h): Likewise.
6060 (i386-nat.h): Likewise.
6061 * i386-linux-nat.c (i386-nat.h): Likewise.
6062 (regset.h): Likewise.
6063 (target.h): Likewise.
6064 (linux-nat.h): Likewise.
6065 (nat/linux-btrace.h): Likewise.
6066 (btrace.h): Likewise.
6067 (gdb_assert.h): Likewise.
6068 (string.h): Likewise.
6069 (sys/uio.h): Likewise.
6070 (sys/user.h): Likewise.
6071 (sys/procfs.h): Likewise.
6072 (sys/reg.h): Likewise.
6073 (sys/debugreg.h): Likewise.
6074 (ORIG_EAX): Remove definition.
6076 2014-07-11 Gary Benson <gbenson@redhat.com>
6078 * i386-linux-nat.h: New file.
6079 * x86-linux-nat.h: Likewise.
6080 * x86-linux-nat.c: Likewise.
6081 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6082 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6083 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6084 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6085 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6086 (PTRACE_SETREGSET): Likewise.
6087 (arch_lwp_info): Now in x86-linux-nat.c.
6088 (have_ptrace_getregset): Now in x86-linux-nat.h.
6089 (x86_linux_dr_get): Now in x86-linux-nat.c.
6090 (x86_linux_dr_set): Likewise.
6091 (x86_linux_dr_get_addr): Likewise.
6092 (x86_linux_dr_get_control): Likewise.
6093 (x86_linux_dr_get_status): Likewise.
6094 (update_debug_registers_callback): Likewise.
6095 (x86_linux_dr_set_control): Likewise.
6096 (x86_linux_dr_set_addr): Likewise.
6097 (x86_linux_prepare_to_resume): Likewise.
6098 (x86_linux_new_thread): Likewise.
6099 (x86_linux_new_fork): Likewise.
6100 (x86_linux_get_thread_area): Likewise.
6101 (super_post_startup_inferior): Likewise.
6102 (x86_linux_child_post_startup_inferior): Likewise.
6103 (AMD64_LINUX_USER64_CS): Likewise.
6104 (AMD64_LINUX_X32_DS): Likewise.
6105 (x86_linux_read_description): Likewise.
6106 (x86_linux_enable_btrace): Likewise.
6107 (x86_linux_disable_btrace): Likewise.
6108 (x86_linux_teardown_btrace): Likewise.
6109 (x86_linux_read_btrace): Likewise.
6110 (x86_linux_create_target): Likewise.
6111 (x86_linux_add_target): Likewise.
6112 * i386-linux-nat.c (x86-linux-nat.h): New include.
6113 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6114 (PTRACE_SETREGSET): Likewise.
6115 (arch_lwp_info): Now in x86-linux-nat.c.
6116 (have_ptrace_getregset): Now in x86-linux-nat.h.
6117 (x86_linux_dr_get): Now in x86-linux-nat.c.
6118 (x86_linux_dr_set): Likewise.
6119 (x86_linux_dr_get_addr): Likewise.
6120 (x86_linux_dr_get_control): Likewise.
6121 (x86_linux_dr_get_status): Likewise.
6122 (update_debug_registers_callback): Likewise.
6123 (x86_linux_dr_set_control): Likewise.
6124 (x86_linux_dr_set_addr): Likewise.
6125 (x86_linux_prepare_to_resume): Likewise.
6126 (x86_linux_new_thread): Likewise.
6127 (x86_linux_new_fork): Likewise.
6128 (x86_linux_get_thread_area): Likewise.
6129 (super_post_startup_inferior): Likewise.
6130 (x86_linux_child_post_startup_inferior): Likewise.
6131 (AMD64_LINUX_USER64_CS): Likewise.
6132 (AMD64_LINUX_X32_DS): Likewise.
6133 (x86_linux_read_description): Likewise.
6134 (x86_linux_enable_btrace): Likewise.
6135 (x86_linux_disable_btrace): Likewise.
6136 (x86_linux_teardown_btrace): Likewise.
6137 (x86_linux_read_btrace): Likewise.
6138 (x86_linux_create_target): Likewise.
6139 (x86_linux_add_target): Likewise.
6141 2014-07-11 Gary Benson <gbenson@redhat.com>
6143 * amd64-linux-nat.c: Comment and whitespace changes.
6144 * i386-linux-nat.c: Comment and whitespace changes.
6146 2014-07-11 Gary Benson <gbenson@redhat.com>
6148 * amd64-linux-nat.c (x86_linux_create_target): New function.
6149 (x86_linux_add_target): Likewise.
6150 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6151 * i386-linux-nat.c (x86_linux_create_target): New function.
6152 (x86_linux_add_target): Likewise.
6153 (_initialize_i386_linux_nat): Delegate to the above new functions.
6155 2014-07-11 Gary Benson <gbenson@redhat.com>
6157 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6158 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6159 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6160 (ps_get_thread_area): Delegate to the above.
6162 2014-07-11 Gary Benson <gbenson@redhat.com>
6164 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6165 x86_linux_read_description. All uses updated. amd64-specific
6166 code conditionalized. Conditionalized i386-specific code added.
6167 Redundant cast removed.
6168 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6169 x86_linux_read_description. All uses updated. i386-specific
6170 code conditionalized. Conditionalized amd64-specific code added.
6171 One sizeof replaced with the actual type it is describing.
6173 2014-07-11 Gary Benson <gbenson@redhat.com>
6175 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6176 x86_linux_dr_get. All uses updated.
6177 (amd64_linux_dr_set): Renamed to
6178 x86_linux_dr_set. All uses updated.
6179 (amd64_linux_dr_get_addr): Renamed to
6180 x86_linux_dr_get_addr. All uses updated.
6181 (amd64_linux_dr_get_control): Renamed to
6182 x86_linux_dr_get_control. All uses updated.
6183 (amd64_linux_dr_get_status): Renamed to
6184 x86_linux_dr_get_status. All uses updated.
6185 (amd64_linux_dr_set_control): Renamed to
6186 x86_linux_dr_set_control. All uses updated.
6187 (amd64_linux_dr_set_addr): Renamed to
6188 x86_linux_dr_set_addr. All uses updated.
6189 (amd64_linux_prepare_to_resume): Renamed to
6190 x86_linux_prepare_to_resume. All uses updated.
6191 (amd64_linux_new_thread): Renamed to
6192 x86_linux_new_thread. All uses updated.
6193 (amd64_linux_new_fork): Renamed to
6194 x86_linux_new_fork. All uses updated.
6195 (amd64_linux_child_post_startup_inferior): Renamed to
6196 x86_linux_child_post_startup_inferior. All uses updated.
6197 (amd64_linux_enable_btrace): Renamed to
6198 x86_linux_enable_btrace. All uses updated.
6199 (amd64_linux_disable_btrace): Renamed to
6200 x86_linux_disable_btrace. All uses updated.
6201 (amd64_linux_teardown_btrace): Renamed to
6202 x86_linux_teardown_btrace. All uses updated.
6203 (amd64_linux_read_btrace): Renamed to
6204 x86_linux_read_btrace. All uses updated.
6205 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6206 x86_linux_dr_get. All uses updated.
6207 (i386_linux_dr_set): Renamed to
6208 x86_linux_dr_set. All uses updated.
6209 (i386_linux_dr_get_addr): Renamed to
6210 x86_linux_dr_get_addr. All uses updated.
6211 (i386_linux_dr_get_control): Renamed to
6212 x86_linux_dr_get_control. All uses updated.
6213 (i386_linux_dr_get_status): Renamed to
6214 x86_linux_dr_get_status. All uses updated.
6215 (i386_linux_dr_set_control): Renamed to
6216 x86_linux_dr_set_control. All uses updated.
6217 (i386_linux_dr_set_addr): Renamed to
6218 x86_linux_dr_set_addr. All uses updated.
6219 (i386_linux_prepare_to_resume): Renamed to
6220 x86_linux_prepare_to_resume. All uses updated.
6221 (i386_linux_new_thread): Renamed to
6222 x86_linux_new_thread. All uses updated.
6223 (i386_linux_new_fork): Renamed to
6224 x86_linux_new_fork. All uses updated.
6225 (i386_linux_child_post_startup_inferior): Renamed to
6226 x86_linux_child_post_startup_inferior. All uses updated.
6227 (i386_linux_enable_btrace): Renamed to
6228 x86_linux_enable_btrace. All uses updated.
6229 (i386_linux_disable_btrace): Renamed to
6230 x86_linux_disable_btrace. All uses updated.
6231 (i386_linux_teardown_btrace): Renamed to
6232 x86_linux_teardown_btrace. All uses updated.
6233 (i386_linux_read_btrace): Renamed to
6234 x86_linux_read_btrace. All uses updated.
6236 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6238 * remote.c (extended_remote_post_attach): New function.
6239 (init_extended_remote_ops): Install it as to_post_attach method.
6241 2014-07-09 Pedro Alves <palves@redhat.com>
6243 * infcmd.c (attach_command_post_wait): Don't call
6244 target_terminal_inferior here.
6245 (attach_command): Call it here instead.
6247 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6249 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6251 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6252 from varobj.c, with additional checks.
6253 (c_varobj_ops): Fill in is_path_expr_parent field.
6254 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6255 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6257 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6259 (varobj_default_is_path_expr_parent): New function.
6260 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6261 (varobj_default_is_path_expr_parent): Declare new function.
6263 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6265 * infcmd.c (finish_backward): Turn internal error into normal error.
6267 2014-07-07 Pedro Alves <palves@redhat.com>
6270 * remote.c (async_handle_remote_sigint)
6271 (async_handle_remote_sigint_twice): Call
6272 gdb_call_async_signal_handler instead of
6273 mark_async_signal_handler.
6275 2014-07-07 Tom Tromey <tromey@redhat.com>
6277 * target-delegates.c: Rebuild.
6278 * target.c (target_info_record): Remove.
6279 * record.c (info_record_command): Unconditionally call
6281 * target.h (struct target_ops) <to_info_record>: Use
6282 TARGET_DEFAULT_IGNORE.
6283 (target_info_record): Remove.
6285 2014-07-07 Tom Tromey <tromey@redhat.com>
6287 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6288 TARGET_DEFAULT_NORETURN.
6289 * target.c (generic_tls_error): New function.
6290 (target_translate_tls_address): Don't search target stack.
6291 * target-delegates.c: Rebuild.
6292 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6294 * linux-thread-db.c (thread_db_get_thread_local_address):
6295 Unconditionally call beneath target.
6297 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6299 * cli/cli-logging.c (pop_output_files): Assign targerr to
6302 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6304 * MAINTAINERS (Write After Approval): Update my email address.
6306 2014-07-02 Gary Benson <gbenson@redhat.com>
6308 * proc-service.c (ps_xfer_memory): Update comment.
6309 (ps_pstop): Remove unused function.
6310 (ps_pcontinue): Likewise.
6311 (ps_lstop): Likewise.
6312 (ps_lcontinue): Likewise.
6313 (ps_lgetxregsize): Likewise.
6314 (ps_lgetxregs): Likewise.
6315 (ps_lsetxregs): Likewise.
6316 (ps_plog): Likewise.
6317 (ps_ptread): Likewise.
6318 (ps_ptwrite): Likewise.
6320 2014-07-01 Mark Wielaard <mjw@redhat.com>
6322 * dwarf2read.c (add_array_cv_type): New function.
6323 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6324 (read_tag_volatile_type): Likewise.
6326 2014-07-01 Tom Tromey <tromey@redhat.com>
6328 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6329 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6330 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6331 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6332 * command.h (cmd_cfunc_ftype): Move earlier.
6333 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6334 (add_com, add_info): Use cmd_cfunc_ftype.
6336 2014-06-30 Tom Tromey <tromey@redhat.com>
6338 * symtab.c (operator_chars): Make parameters and return type
6340 (file_matches): Make "files" const.
6341 (struct search_symbols_data) <files>: Now const.
6342 (search_symbols): Make "regexp" and "files" parameters const.
6344 (symtab_symbol_info): Remove cast.
6345 (rbreak_command): Update.
6346 * symtab.h (search_symbols): Update.
6348 2014-06-27 Yao Qi <yao@codesourcery.com>
6350 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6351 Change parameter type to 'struct thread_info *'. Caller
6353 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6355 * dummy-frame.c (struct dummy_frame_id): New.
6356 (dummy_frame_id_eq): New function.
6357 (struct dummy_frame) <id>: Change its type to 'struct
6359 (dummy_frame_push): Add parameter ptid and save it in
6361 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6363 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6365 (lookup_dummy_frame): Change parameter type to 'struct
6366 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6367 instead of frame_id_eq.
6368 (dummy_frame_pop): Add parameter ptid. Callers updated.
6369 Update comments. Compose dummy_frame_id and pass it to
6371 (dummy_frame_discard): Add parameter ptid.
6372 (dummy_frame_sniffer): Compose dummy_frame_id and call
6373 dummy_frame_id_eq instead of frame_id_eq.
6374 (fprint_dummy_frames): Print ptid.
6375 * dummy-frame.h: Remove comments.
6376 (dummy_frame_push): Add ptid in declaration.
6377 (dummy_frame_pop, dummy_frame_discard): Likewise.
6379 2014-06-26 Tom Tromey <tromey@redhat.com>
6381 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6382 * command.h (error_no_arg): Update.
6384 2014-06-26 Tom Tromey <tromey@redhat.com>
6386 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6387 (do_show_command): Make "arg" const.
6388 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6390 2014-06-26 Tom Tromey <tromey@redhat.com>
6392 * record-full.c (record_full_get_bookmark): Make "args" const.
6393 (record_full_goto_bookmark): Make "raw_bookmark" const.
6394 * record.c (record_goto): New function.
6395 (cmd_record_goto): Use it. Now static.
6396 * record.h (record_goto): Declare.
6397 (cmd_record_goto): Remove declaration.
6398 * target-delegates.c: Rebuild.
6399 * target.h (struct target_ops) <to_get_bookmark,
6400 to_goto_bookmark>: Make parameter const.
6402 2014-06-26 Tom Tromey <tromey@redhat.com>
6404 * defs.h (generic_load): Update.
6405 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6406 * monitor.c (monitor_load): Make "args" const.
6407 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6408 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6410 (mips_load): Make "file" const.
6411 * remote-sim.c (gdbsim_load): Make "args" const.
6412 * remote.c (remote_load): Make "name" const.
6413 * symfile.c (generic_load): Make "args" const.
6414 * target-delegates.c: Rebuild.
6415 * target.c (target_load): Make "arg" const.
6416 (debug_to_load): Make "args" const.
6417 * target.h (struct target_ops) <to_load>: Make parameter const.
6418 (target_load): Update.
6420 2014-06-26 Tom Tromey <tromey@redhat.com>
6423 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6424 (dwarf2_physname, read_partial_die)
6425 (guess_partial_die_structure_name, fixup_partial_die)
6426 (guess_full_die_structure_name, anonymous_struct_prefix)
6427 (dwarf2_name): Use per-BFD obstack.
6429 2014-06-26 Yao Qi <yao@codesourcery.com>
6431 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6432 dummyframe and this_id into inner block below.
6434 2014-06-26 Yao Qi <yao@codesourcery.com>
6436 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6437 with "signal_pass[0]" in the initialization of signal_pass.
6439 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6441 * record-btrace.c (record_btrace_generating_corefile)
6442 (record_btrace_prepare_to_generate_core)
6443 (record_btrace_done_generating_core): New.
6444 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6445 (record_btrace_store_registers, record_btrace_prepare_to_store):
6446 Forward request when generating a core file.
6447 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6448 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6449 to_done_generating_core.
6451 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6453 * target.h (target_ops) <to_prepare_to_generate_core>
6454 <to_done_generating_core>: New.
6455 (target_prepare_to_generate_core, target_done_generating_core): New.
6456 * target.c (target_prepare_to_generate_core)
6457 (target_done_generating_core): New.
6458 * target-delegates.c: Regenerate.
6459 * gcore.c: (write_gcore_file): Rename to ...
6460 (write_gcore_file_1): ...this.
6461 (write_gcore_file): Call target_prepare_to_generate_core
6462 and target_done_generating_core.
6464 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6466 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6467 * gcore.c (write_gcore_file): Free memory returned from
6468 make_corefile_notes.
6469 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6470 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6472 2014-06-24 Yao Qi <yao@codesourcery.com>
6474 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6475 (arm_linux_init_abi): Set skip_trampoline_code with
6476 gdbarch_skip_trampoline_code instead of
6477 find_solib_trampoline_target.
6479 2014-06-24 Yao Qi <yao@codesourcery.com>
6481 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6482 arm_skip_bx_reg returns non-zero.
6484 2014-06-24 Yao Qi <yao@codesourcery.com>
6486 * arm-tdep.c (arm_skip_bx_reg): New function.
6487 (arm_skip_stub): Call arm_skip_bx_reg.
6489 2014-06-23 Don Breazeal <donb@codesourcery.com>
6491 * MAINTAINERS: Add myself as write-after-approval maintainer.
6493 2014-06-23 Pedro Alves <palves@redhat.com>
6495 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6496 DR_CONTROL before setting DR0..DR3.
6497 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6498 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6499 bits of DR_CONTROL related to the debug register slot being
6500 disabled. If all slots are vacant, clear local slowdown as well,
6501 and assert DR_CONTROL is 0.
6503 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6505 * python/lib/gdb/command/xmethods.py
6506 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6507 current progspace only if the string "progspace" matches LOCUS_RE.
6509 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6511 Fix --with-system-readline with readline-6.3 patch 5.
6512 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6513 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6516 2014-06-20 Tom Tromey <tromey@redhat.com>
6518 * dwarf2read.c (dw2_get_real_path): Use correct type in
6520 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6522 2014-06-20 Gary Benson <gbenson@redhat.com>
6524 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6525 * common/glibc_thread_db.h: Likewise.
6526 * common/i386-cpuid.h: Likewise.
6527 * common/i386-gcc-cpuid.h: Likewise.
6528 * common/linux-btrace.h: Likewise.
6529 * common/linux-osdata.h: Likewise.
6530 * common/linux-procfs.h: Likewise.
6531 * common/linux-ptrace.h: Likewise.
6532 * common/mips-linux-watch.h: Likewise.
6533 * common/linux-btrace.c: Moved to nat.
6534 * common/linux-osdata.c: Likewise.
6535 * common/linux-procfs.c: Likewise.
6536 * common/linux-ptrace.c: Likewise.
6537 * common/mips-linux-watch.c: Likewise.
6538 * nat/gdb_thread_db.h: Moved from common.
6539 * nat/glibc_thread_db.h: Likewise.
6540 * nat/i386-cpuid.h: Likewise.
6541 * nat/i386-gcc-cpuid.h: Likewise.
6542 * nat/linux-btrace.c: Likewise.
6543 * nat/linux-btrace.h: Likewise.
6544 * nat/linux-osdata.c: Likewise.
6545 * nat/linux-osdata.h: Likewise.
6546 * nat/linux-procfs.c: Likewise.
6547 * nat/linux-procfs.h: Likewise.
6548 * nat/linux-ptrace.c: Likewise.
6549 * nat/linux-ptrace.h: Likewise.
6550 * nat/mips-linux-watch.c: Likewise.
6551 * nat/mips-linux-watch.h: Likewise.
6552 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6553 (object file files): Reordered.
6554 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6555 of glibc_thread_db.h.
6557 2014-06-20 Gary Benson <gbenson@redhat.com>
6559 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6560 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6561 (i386_dr_low): Likewise.
6562 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6563 (i386_dr_low_set_addr): Likewise.
6564 (i386_dr_low_get_addr): Likewise.
6565 (i386_dr_low_can_set_control): Likewise.
6566 (i386_dr_low_set_control): Likewise.
6567 (i386_dr_low_get_control): Likewise.
6568 (i386_dr_low_get_status): Likewise.
6569 (i386_get_debug_register_length): Likewise.
6570 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6571 (i386_dr_low): Likewise.
6572 * nat/i386-dregs.c (i386-low.h): Remove include.
6573 (i386-nat.h): Likewise.
6574 (nat/i386-dregs.h): New include.
6575 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6576 (i386_dr_low_set_addr): Likewise.
6577 (i386_dr_low_get_addr): Likewise.
6578 (i386_dr_low_can_set_control): Likewise.
6579 (i386_dr_low_set_control): Likewise.
6580 (i386_dr_low_get_control): Likewise.
6581 (i386_dr_low_get_status): Likewise.
6582 (i386_get_debug_register_length): Likewise.
6583 (debug_hw_points): Likewise.
6585 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6587 * Makefile.in (SFILES): Add d-exp.y.
6588 (YYFILES): Add d-exp.c.
6589 (YYOBJ): Add d-exp.o.
6590 (local-maintainer-clean): Delete d-exp.c.
6591 * d-exp.y: New file.
6592 * d-lang.h (d_parse): New declaration.
6593 (d_error): New declaration.
6594 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6595 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6596 PREC_ORDER operators.
6597 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6599 2014-06-19 Yao Qi <yao@codesourcery.com>
6601 * gdbthread.h (any_running): Remove the declaration.
6602 * thread.c (any_running): Remove.
6604 2014-06-19 Yao Qi <yao@codesourcery.com>
6606 * gdbthread.h (struct thread_info) <state>: Change its type to
6607 'enum thread_state'. Update comments.
6609 2014-06-19 Pedro Alves <palves@redhat.com>
6611 * gdbthread.h (ALL_THREADS): Delete.
6612 (ALL_NON_EXITED_THREADS): New macro.
6613 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6614 instead of ALL_THREADS.
6615 * infrun.c (find_thread_needs_step_over)
6616 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6617 instead of ALL_THREADS.
6618 * record-btrace.c (record_btrace_open)
6619 (record_btrace_stop_recording, record_btrace_close)
6620 (record_btrace_is_replaying, record_btrace_resume)
6621 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6622 * remote.c (append_pending_thread_resumptions): Likewise.
6623 * thread.c (thread_apply_all_command): Likewise.
6625 2014-06-19 Gary Benson <gbenson@redhat.com>
6627 * i386-nat.c (i386_stopped_by_watchpoint):
6628 Use i386_dr_stopped_by_watchpoint.
6629 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6630 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6632 2014-06-19 Gary Benson <gbenson@redhat.com>
6634 * nat/i386-dregs.c: New file.
6635 * Makefile.in (i386-dregs.o): New rule.
6636 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6637 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6638 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6639 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6640 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6641 * config/i386/go32.mh (NATDEPFILES): Likewise.
6642 * config/i386/linux.mh (NATDEPFILES): Likewise.
6643 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6644 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6645 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6646 * i386-nat.h (debug_hw_points): New declaration.
6647 * i386-nat.c (breakpoint.h): Remove include.
6648 (command.h): Likewise.
6649 (target.h): Likewise.
6650 (gdb_assert.h): Likewise.
6651 (debug_hw_points): Made nonstatic.
6652 (debug_printf): Now in i386-dregs.c.
6653 (TARGET_HAS_DR_LEN_8): Likewise.
6654 (DR_CONTROL_SHIFT): Likewise.
6655 (DR_CONTROL_SIZE): Likewise.
6656 (DR_RW_EXECUTE): Likewise.
6657 (DR_RW_WRITE): Likewise.
6658 (DR_RW_READ): Likewise.
6659 (DR_RW_IORW): Likewise.
6660 (DR_LEN_1): Likewise.
6661 (DR_LEN_2): Likewise.
6662 (DR_LEN_4): Likewise.
6663 (DR_LEN_8): Likewise.
6664 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6665 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6666 (DR_ENABLE_SIZE): Likewise.
6667 (DR_LOCAL_SLOWDOWN): Likewise.
6668 (DR_GLOBAL_SLOWDOWN): Likewise.
6669 (DR_CONTROL_RESERVED): Likewise.
6670 (I386_DR_CONTROL_MASK): Likewise.
6671 (I386_DR_VACANT): Likewise.
6672 (I386_DR_LOCAL_ENABLE): Likewise.
6673 (I386_DR_GLOBAL_ENABLE): Likewise.
6674 (I386_DR_DISABLE): Likewise.
6675 (I386_DR_SET_RW_LEN): Likewise.
6676 (I386_DR_GET_RW_LEN): Likewise.
6677 (I386_DR_WATCH_HIT): Likewise.
6678 (i386_wp_op_t): Likewise.
6679 (i386_show_dr): Likewise.
6680 (i386_length_and_rw_bits): Likewise.
6681 (i386_insert_aligned_watchpoint): Likewise.
6682 (i386_remove_aligned_watchpoint): Likewise.
6683 (i386_handle_nonaligned_watchpoint): Likewise.
6684 (i386_update_inferior_debug_regs): Likewise.
6685 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6686 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6687 (i386_region_ok_for_watchpoint):
6688 Use i386_dr_region_ok_for_watchpoint.
6689 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6691 2014-06-19 Gary Benson <gbenson@redhat.com>
6693 * i386-nat.c (i386_insert_hw_breakpoint): Use
6694 i386_insert_watchpoint.
6695 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6697 2014-06-19 Gary Benson <gbenson@redhat.com>
6699 * i386-nat.c (i386_dr_show): Renamed to
6700 i386_show_dr and made static. All uses updated.
6701 (i386_dr_length_and_rw_bits): Renamed to
6702 i386_length_and_rw_bits and made static.
6704 (i386_dr_insert_aligned_watchpoint): Renamed to
6705 i386_insert_aligned_watchpoint and made static.
6707 (i386_dr_remove_aligned_watchpoint): Renamed to
6708 i386_remove_aligned_watchpoint and made static.
6710 (i386_dr_update_inferior_debug_regs): Renamed to
6711 i386_update_inferior_debug_regs and made static.
6713 * nat/i386-dregs.h (i386_dr_show): Removed.
6714 (i386_dr_length_and_rw_bits): Likewise.
6715 (i386_dr_insert_aligned_watchpoint): Likewise.
6716 (i386_dr_remove_aligned_watchpoint): Likewise.
6717 (i386_dr_update_inferior_debug_regs): Likewise.
6719 2014-06-19 Gary Benson <gbenson@redhat.com>
6721 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6722 * configure: Regenerate.
6723 * config.in: Likewise.
6724 * main.c (signal.h): New include.
6725 (setup_alternate_signal_stack): New function.
6726 (captured_main): Call the above.
6727 * cp-support.c (signal.h): New include.
6728 (catch_demangler_crashes): New flag.
6729 (SIGJMP_BUF): New define.
6730 (SIGSETJMP): Likewise.
6731 (SIGLONGJMP): Likewise.
6732 (gdb_demangle_jmp_buf): New static global.
6733 (gdb_demangle_attempt_core_dump): Likewise.
6734 (gdb_demangle_signal_handler): New function.
6735 (gdb_demangle): If catch_demangler_crashes is set, install the
6736 above signal handler before calling bfd_demangle, and restore
6737 the original signal handler afterwards. Display the offending
6738 symbol and call demangler_warning the first time a segmentation
6740 (_initialize_cp_support): New maint set/show command.
6742 2014-06-19 Gary Benson <gbenson@redhat.com>
6744 * utils.h (resource_limit_kind): New enum.
6745 (can_dump_core): New declaration.
6746 (warn_cant_dump_core): Likewise.
6747 (dump_core): Likewise.
6748 * utils.c (dump_core): Made nonstatic. Added new
6749 parameter "limit_kind".
6750 (can_dump_core): Made nonstatic. Moved printing code to...
6751 (warn_cant_dump_core): New function.
6752 (can_dump_core_warn): Likewise.
6753 (internal_vproblem): Replace calls to can_dump_core with
6754 calls to can_dump_core_warn. Supply new argument to each.
6756 2014-06-19 Gary Benson <gbenson@redhat.com>
6758 * utils.h (demangler_vwarning): New declaration.
6759 (demangler_warning): Likewise.
6760 * utils.c (struct internal_problem)
6761 <user_settable_should_quit>: New field.
6762 <user_settable_should_dump_core>: Likewise
6763 (internal_error_problem): Add values for above new fields.
6764 (internal_warning_problem): Likewise.
6765 (demangler_warning_problem): New static global.
6766 (demangler_vwarning): New function.
6767 (demangler_warning): Likewise.
6768 (add_internal_problem_command): Selectively add commands.
6769 (_initialize_utils): New internal problem command.
6770 * maint.c (maintenance_demangler_warning): New function.
6771 (_initialize_maint_cmds): New command.
6773 2014-06-18 Tom Tromey <tromey@redhat.com>
6775 * f-valprint.c (info_common_command_for_block): Update.
6776 * symtab.h (struct general_symbol_info) <common_block>: Now
6779 2014-06-18 Tom Tromey <tromey@redhat.com>
6781 * symtab.h (struct symtab) <blockvector>: Now const.
6782 * ada-lang.c (ada_add_global_exceptions): Update.
6783 * buildsym.c (augment_type_symtab): Update.
6784 * dwarf2read.c (dw2_lookup_symbol): Update.
6785 * jit.c (finalize_symtab): Update.
6786 * jv-lang.c (add_class_symtab_symbol): Update.
6787 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6789 * objfiles.c (objfile_relocate1): Update.
6790 * psymtab.c (lookup_symbol_aux_psymtabs)
6791 (maintenance_check_psymtabs): Update.
6792 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6794 * spu-tdep.c (spu_catch_start): Update.
6795 * symmisc.c (dump_symtab_1): Update.
6796 * symtab.c (lookup_global_symbol_from_objfile)
6797 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6798 (basic_lookup_transparent_type_quick)
6799 (basic_lookup_transparent_type, find_pc_sect_symtab)
6800 (find_pc_sect_line, search_symbols): Update.
6801 * block.c (find_block_in_blockvector): Make "bl" const.
6802 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6804 (blockvector_contains_pc): Make "bv" const.
6805 (block_for_pc_sect): Update.
6806 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6807 (blockvector_contains_pc): Update.
6808 * breakpoint.c (resolve_sal_pc): Update.
6809 * inline-frame.c (block_starting_point_at): Update.
6811 2014-06-18 Tom Tromey <tromey@redhat.com>
6813 * completer.c (complete_line): Make "line_buffer" const.
6814 * completer.h (complete_line): Update.
6816 2014-06-18 Tom Tromey <tromey@redhat.com>
6818 * symtab.c (add_macro_name): Remove unneeded cast.
6820 2014-06-18 Tom Tromey <tromey@redhat.com>
6822 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6823 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6825 2014-06-18 Tom Tromey <tromey@redhat.com>
6827 * probe.c (info_probes_for_ops): Make "arg" const.
6828 * probe.h (info_probes_for_ops): Update.
6830 2014-06-18 Tom Tromey <tromey@redhat.com>
6832 * varobj.c (varobj_create): Update.
6833 * valops.c (value_of_this): Update.
6834 * tracepoint.c (add_local_symbols, scope_info): Update.
6835 * symtab.h (struct general_symbol_info) <block>: Now const.
6836 * symtab.c (skip_prologue_sal)
6837 (default_make_symbol_completion_list_break_on)
6838 (skip_prologue_using_sal): Update.
6839 * stack.h (iterate_over_block_locals)
6840 (iterate_over_block_local_vars): Update.
6841 * stack.c (print_frame_args): Update.
6842 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6844 (get_selected_block): Make return type const.
6845 * python/py-frame.c (frapy_block): Update.
6846 * python/py-block.c (gdbpy_block_for_pc): Update.
6847 * p-exp.y (%union) <bval>: Now const.
6848 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6849 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6850 * m2-exp.y (%union) <bval>: Now const.
6851 * linespec.c (get_current_search_block): Make return type const.
6852 (create_sals_line_offset, find_label_symbols): Update.
6853 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6855 (block_starting_point_at): Make "block" const.
6856 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6857 (check_exception_resume): Update.
6858 * guile/scm-frame.c (gdbscm_frame_block): Update.
6859 * guile/scm-block.c (gdbscm_lookup_block): Update.
6860 * frame.h (get_frame_block): Update.
6861 (get_selected_block): Make return type const.
6862 * frame.c (frame_id_inner): Update.
6863 * f-valprint.c (info_common_command_for_block)
6864 (info_common_command): Update.
6865 * dwarf2loc.c (dwarf2_find_location_expression)
6866 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6867 (locexpr_describe_location_piece): Update.
6868 * c-exp.y (%union) <bval>: Now const.
6869 * breakpoint.c (resolve_sal_pc): Update.
6870 * blockframe.c (get_frame_block):Make return type const.
6871 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6872 (block_innermost_frame): Update.
6873 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6874 (block_for_pc, block_for_pc_sect): Update.
6875 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6877 (block_for_pc_sect, block_for_pc): Make return type const.
6878 * ax-gdb.c (gen_expr): Update.
6879 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6880 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6881 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6882 (ada_read_var_value): Update.
6883 * ada-exp.y (struct name_info) <block>: Now const.
6885 (block_lookup): Constify.
6887 2014-06-18 Gary Benson <gbenson@redhat.com>
6889 * nat/i386-dregs.h: New file.
6890 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6891 * i386-nat.h (i386-dregs.h): New include.
6892 (DR_FIRSTADDR): Now in i386-dregs.h.
6893 (DR_LASTADDR): Likewise.
6894 (DR_NADDR): Likewise.
6895 (DR_STATUS): Likewise.
6896 (DR_CONTROL): Likewise.
6897 (i386_debug_reg_state): Likewise.
6898 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6900 2014-06-18 Don Breazeal <donb@codesourcery.com>
6902 * breakpoint.c (set_longjmp_breakpoint): Call
6903 momentary_breakpoint_from_master with additional argument.
6904 (set_longjmp_breakpoint_for_call_dummy): Call
6905 momentary_breakpoint_from_master with additional argument.
6906 (set_std_terminate_breakpoint): Call
6907 momentary_breakpoint_from_master with additional argument.
6908 (momentary_breakpoint_from_master): Add argument to function
6909 definition and use it to initialize structure member flag.
6910 (clone_momentary_breakpoint): Call
6911 momentary_breakpoint_from_master with additional argument.
6912 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6913 member flags set in momentary_breakpoint_from_master.
6915 2014-06-18 Gary Benson <gbenson@redhat.com>
6917 * i386-nat.c (i386_show_dr): Renamed to
6918 i386_dr_show and made nonstatic. All uses updated.
6919 (i386_length_and_rw_bits): Renamed to
6920 i386_dr_length_and_rw_bits and made nonstatic.
6922 (i386_insert_aligned_watchpoint): Renamed to
6923 i386_dr_insert_aligned_watchpoint and made nonstatic.
6925 (i386_remove_aligned_watchpoint): Renamed to
6926 i386_dr_remove_aligned_watchpoint and made nonstatic.
6928 (i386_update_inferior_debug_regs): Renamed to
6929 i386_dr_update_inferior_debug_regs and made nonstatic.
6932 2014-06-18 Gary Benson <gbenson@redhat.com>
6934 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6935 (i386_dr_low_can_set_control): Likewise.
6936 (i386_dr_low_set_addr): Likewise.
6937 (i386_dr_low_set_control): Likewise.
6938 (i386_dr_low_get_addr): Likewise.
6939 (i386_dr_low_get_status): Likewise.
6940 (i386_dr_low_get_control): Likewise.
6941 (i386_insert_aligned_watchpoint): Use new macros.
6942 (i386_update_inferior_debug_regs): Likewise.
6943 (i386_stopped_data_address): Likewise.
6945 2014-06-18 Gary Benson <gbenson@redhat.com>
6947 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6948 New parameter. All uses updated.
6950 2014-06-18 Gary Benson <gbenson@redhat.com>
6952 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6955 2014-06-18 Gary Benson <gbenson@redhat.com>
6957 * i386-nat.c (debug_printf): New macro.
6958 (i386_get_debug_register_length): Likewise.
6959 (TARGET_HAS_DR_LEN_8): Use above macro.
6960 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6961 and printf_unfiltered. Use phex to format values.
6963 2014-06-18 Gary Benson <gbenson@redhat.com>
6965 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6968 2014-06-18 Gary Benson <gbenson@redhat.com>
6970 * i386-nat.c: Comment changes.
6972 2014-06-18 Gary Benson <gbenson@redhat.com>
6974 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6976 2014-06-18 Gary Benson <gbenson@redhat.com>
6978 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6979 (i386_insert_aligned_watchpoint): Likewise.
6980 (i386_remove_aligned_watchpoint): Likewise.
6981 (i386_handle_nonaligned_watchpoint): Likewise.
6983 2014-06-18 Gary Benson <gbenson@redhat.com>
6985 * i386-nat.c: Whitespace changes.
6987 2014-06-17 Samuel Bronson <naesten@gmail.com>
6989 * MAINTAINERS: Update Roland McGrath's email address.
6990 Thanks to Sergio Durigan Junior for pointing out that he left
6991 Red Hat a while ago, and giving me a current address.
6993 2014-06-17 Tom Tromey <tromey@redhat.com>
6995 * utils.h (savestring): Remove declaration.
6997 2014-06-17 Tom Tromey <tromey@redhat.com>
6999 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7001 2014-06-16 Keith Seitz <keiths@redhat.com>
7004 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7005 to update the varobj if inferior_ptid is null_ptid.
7007 2014-06-16 Tom Tromey <tromey@redhat.com>
7009 * target.h (struct target_ops) <to_info_proc>: Make parameter
7011 (target_info_proc): Update.
7012 * target.c (target_info_proc): Make "args" const.
7013 * procfs.c (procfs_info_proc): Update.
7014 * linux-tdep.c (linux_info_proc): Update.
7015 (linux_core_info_proc_mappings): Make "args" const.
7016 (linux_core_info_proc): Update.
7017 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7018 * gdbarch.c: Rebuild.
7019 * gdbarch.h: Rebuild.
7020 * corelow.c (core_info_proc): Update.
7022 2014-06-16 Tom Tromey <tromey@redhat.com>
7024 * target.h (struct target_ops) <to_disconnect>: Make parameter
7026 (target_disconnect): Update.
7027 * target.c (target_disconnect): Make "args" const.
7028 * target-delegates.c: Rebuild.
7029 * remote.c (remote_disconnect): Update.
7030 * record.h (record_disconnect): Update.
7031 * record.c (record_disconnect): Update.
7032 * inf-child.c (inf_child_disconnect): Update.
7034 2014-06-16 Tom Tromey <tromey@redhat.com>
7036 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7037 * target.c (debug_to_rcmd, default_rcmd): Update.
7038 * target-delegates.c: Rebuild.
7039 * remote.c (remote_rcmd): Update.
7040 * monitor.c (monitor_rcmd): Update.
7042 2014-06-16 Pedro Alves <palves@redhat.com>
7044 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7045 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7046 have OBJF_SHARED set.
7047 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7048 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7049 instead of OBJF_USERLOADED.
7050 * objfiles.h (OBJF_SHARED): Update comment.
7051 (userloaded_objfile_contains_address_p): Rename to ...
7052 (shared_objfile_contains_address_p): ... this, and update
7054 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7056 (remove_symbol_file_command): Skip objfiles that don't have
7059 2014-06-16 Tom Tromey <tromey@redhat.com>
7061 * minsyms.h (prim_record_minimal_symbol)
7062 (prim_record_minimal_symbol_and_info): Update comments.
7064 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7066 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7067 or --without-guile, according to how GDB was built.
7069 2014-06-13 Tom Tromey <tromey@redhat.com>
7071 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7073 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7075 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7077 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7078 help_list.Pass all_commands, not -1, to help_list.
7079 * cli/cli-dump.c (dump_command, append_command)
7080 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7081 (binary_dump_command, binary_append_command): Pass all_commands,
7082 not -1, to help_list.
7083 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7085 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7087 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7089 * top.c (set_history): Pass all_commands, not -1, to help_list.
7090 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7091 all_commands, not -1, to help_list.
7092 * symfile.c (overlay_command): Pass all_commands, not -1, to
7094 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7096 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7098 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7100 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7101 not -1, to help_list.
7102 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7103 not -1, to help_list.
7104 * maint.c (maintenance_command, maintenance_info_command)
7105 (maintenance_print_command, maintenance_set_cmd): Pass
7106 all_commands, not -1, to help_list.
7107 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7109 * language.c (set_check): Pass all_commands, not -1, to help_list.
7110 * infcmd.c (unset_command): Pass all_commands, not -1, to
7112 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7114 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7116 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7118 * breakpoint.c (save_command): Pass all_commands, not -1, to
7120 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7121 all_commands, not -1, to help_list.
7123 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7125 * regcache.c (struct register_to_invalidate): New structure.
7126 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7128 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7130 2014-06-12 Yao Qi <yao@codesourcery.com>
7132 * varobj.c (varobj_get_num_children): Call
7133 varobj_is_dynamic_p.
7134 (varobj_list_children): Likewise.
7135 (varobj_update): Likewise. Update comments.
7137 2014-06-12 Yao Qi <yao@codesourcery.com>
7139 * varobj.c (varobj_pretty_printed_p): Rename to ...
7140 (varobj_is_dynamic_p): ... this. New function.
7141 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7142 (varobj_is_dynamic_p): Declare.
7143 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7144 (mi_print_value_p, varobj_update_one): Likewise.
7146 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7147 Yao Qi <yao@codesourcery.com>
7149 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7150 (varobj_get_iterator): Wrap up code for pretty-printer by
7151 "#if HAVE_PYTHON" and "#endif".
7152 (update_dynamic_varobj_children): Likewise.
7154 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7155 Yao Qi <yao@codesourcery.com>
7157 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7158 gdb_python_initialized is false. Move some code from varobj.c.
7159 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7160 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7161 (struct varobj_item): Moved to varobj-iter.h".
7162 (varobj_clear_saved_item): New function.
7163 (update_dynamic_varobj_children): Move python-related code to
7165 (free_variable): Call varobj_clear_saved_item and
7168 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7169 Yao Qi <yao@codesourcery.com>
7171 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7172 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7173 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7174 (py-varobj.o): New rule.
7175 * python/py-varobj.c: New file.
7176 * python/python-internal.h (py_varobj_get_iterator): Declare.
7177 * varobj-iter.h: New file.
7178 * varobj.c: Include "varobj-iter.h"
7179 (struct varobj) <child_iter>: Change its type from "PyObject *"
7180 to "struct varobj_iter *".
7181 <saved_item>: Likewise.
7182 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7183 [HAVE_PYTHON] (varobj_get_iterator): New function.
7184 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7185 python-specific code to python/py-varobj.c.
7186 (install_visualizer): Call varobj_iter_delete instead of
7188 * varobj.h (varobj_ensure_python_env): Declare.
7190 2014-06-12 Yao Qi <yao@codesourcery.com>
7192 * varobj.c (struct varobj_item): New structure.
7193 (create_child_with_value): Update declaration.
7194 (varobj_add_child): Replace arguments 'name' and 'value' with
7195 'item'. All callers updated.
7196 (install_dynamic_child): Likewise.
7197 (update_dynamic_varobj_children): Likewise.
7198 (varobj_add_child): Likewise.
7199 (create_child_with_value): Likewise.
7201 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7203 * NEWS: Create a new section for the next release branch.
7204 Rename the section of the current branch, now that it has
7207 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7209 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7210 * version.in: Bump version to 7.8.50.DATE-cvs.
7212 2014-06-11 Pedro Alves <palves@redhat.com>
7215 * ser-mingw.c (net_windows_socket_check_pending): New function.
7216 (net_windows_select_thread): Ignore spurious wakeups. Use
7217 net_windows_socket_check_pending.
7218 (net_windows_wait_handle): Check for pending events with
7219 ioctlsocket, through net_windows_socket_check_pending, instead of
7220 checking the socket's event.
7222 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7224 * python/python-internal.h (gdb_PyObject_GetAttrString)
7225 (gdb_PyObject_HasAttrString): New inline function definitions.
7226 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7227 char * of the second argument to PyObject_GetAttrString.
7229 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7231 * serial.c (serial_write): Fix index of character to be printed
7232 in call to serial_logchar when serial debug traces are enabled.
7234 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7236 * gdbtypes (resolve_dynamic_range): Add function description.
7238 2014-06-09 Pedro Alves <palves@redhat.com>
7240 * linux-nat.c (linux_child_follow_fork): Initialize status with
7241 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7242 inner block. Only pass the signal to PTRACE_DETACH if in pass
7245 2014-06-09 Gary Benson <gbenson@redhat.com>
7247 * common/signals.c (gdb_signal_from_host): Reorder to separate
7248 the always-available ANSI-standard signals from the signals that
7250 (do_gdb_signal_to_host): Likewise.
7251 * proc-events.c (signal_table): Likewise.
7253 2014-06-08 Hui Zhu <hui@codesourcery.com>
7255 * common/linux-ptrace.c (linux_disable_event_reporting): New
7257 * common/linux-ptrace.h (linux_disable_event_reporting): New
7259 * linux-nat.c (linux_child_follow_fork): Do a single step before
7262 2014-06-07 Keith Seitz <keiths@redhat.com>
7266 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7267 from symbol_matches_domain in symtab.c. All local callers
7268 of symbol_matches_domain updated.
7269 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7270 search STRUCT_DOMAIN.
7271 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7272 independently. standard_lookup will do that automatically.
7273 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7274 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7275 (cp_lookup_symbol_in_namespace): Likewise.
7276 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7277 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7278 may return a STRUCT_DOMAIN match.
7279 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7280 * cp-support.c: Include language.h.
7281 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7283 * psymtab.c (match_partial_symbol): Compare the requested
7284 domain with the symbol's domain directly.
7285 (lookup_partial_symbol): Likewise.
7286 * symtab.c (lookup_symbol_in_language): Explain when/why
7287 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7288 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7289 appropriate languages.
7290 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7291 and moved to ada-lang.c
7292 (lookup_block_symbol): Explain that this function only returns
7293 symbol matching the requested DOMAIN.
7294 Compare the requested domain with the symbol's domain directly.
7295 (iterate_over_symbols): Compare the requested domain with the
7296 symbol's domain directly.
7297 * symtab.h (symbol_matches_domain): Remove.
7299 2014-06-06 Doug Evans <xdje42@gmail.com>
7301 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7302 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7303 (gdbscm_guile_version_is_at_least): Declare.
7304 (gdbscm_scm_string_to_int): Declare.
7305 * guile/guile.c (gdbscm_guile_major_version): New global.
7306 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7307 (guile_datadir): New static global.
7308 (gdbscm_guile_data_directory): New function.
7309 (initialize_scheme_side): Update.
7310 (misc_guile_functions): Add guile-data-directory.
7311 (initialize_gdb_module): Fetch guile version number.
7312 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7313 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7314 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7315 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7317 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7318 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7319 * guile/scm-value.c (gdbscm_value_to_string): Only call
7320 scm_port_conversion_strategy if Guile version >= 2.0.6.
7322 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7324 * main.c (print_gdb_help): Add -q and --silent.
7326 2014-06-06 Gary Benson <gbenson@redhat.com>
7328 * common/signals.c: Remove preprocessor conditionals for
7329 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7330 SIGSEGV and SIGTERM.
7331 * proc-events.c: Likewise.
7333 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7335 * symfile.c (symfile_free_objfile): Remove restriction to
7337 * symfile-mem.c (symbol_file_add_from_memory): Call
7338 add_target_sections_of_objfile.
7340 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7342 * guile/scm-value.c (gdbscm_history_append_x): Use
7343 'vlscm_get_value_smob_arg_unsafe' instead of
7344 'vlscm_scm_to_value'.
7346 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7349 * utils.c (printchar): Don't escape at all if quoter is NUL.
7350 Update function documentation to clarify effect of parameter
7352 * remote.c (escape_buffer): Pass '\\' as the quoter to
7353 fputstrn_unfiltered.
7354 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7355 generate the output.
7356 (mi_solib_unloaded): Same.
7358 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7360 * development.sh: Delete.
7361 * Makefile.in (config.status): Adjust dependency on development.sh.
7362 * configure.ac: Adjust development.sh source call.
7363 * configure: Regenerate.
7365 2014-06-04 Doug Evans <xdje42@gmail.com>
7367 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7368 is_scheme_bkpt, spec.
7369 (bpscm_make_breakpoint_smob): Initialize new members.
7370 (gdbscm_create_breakpoint_x): Split into two ...
7371 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7372 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7373 (scheme_function breakpoint_functions): Update.
7374 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7375 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7376 register-breakpoint!.
7378 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7381 * mem-break.c (z_type_supported): Return zero if
7382 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7384 2014-06-04 Tom Tromey <tromey@redhat.com>
7386 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7387 value_from_contents_and_address_unresolved.
7388 (ada_template_to_fixed_record_type_1): Likewise.
7389 (ada_which_variant_applies): Likewise.
7390 * value.h (value_from_contents_and_address_unresolved): Declare.
7391 * value.c (value_from_contents_and_address_unresolved): New
7393 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7394 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7395 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7397 2014-06-04 Tom Tromey <tromey@redhat.com>
7399 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7401 2014-06-04 Tom Tromey <tromey@redhat.com>
7403 * procfs.c (procfs_attach): Make "args" const.
7404 * windows-nat.c (windows_attach): Make "args" const.
7405 * nto-procfs.c (procfs_attach): Make "args" const.
7406 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7407 * go32-nat.c (go32_attach): Make "args" const.
7408 * gnu-nat.c (gnu_attach): Make "args" const.
7409 * darwin-nat.c (darwin_attach): Make "args" const.
7410 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7411 * linux-nat.c (linux_nat_attach): Make "args" const.
7412 * remote.c (extended_remote_attach_1, extended_remote_attach):
7414 * target.h (struct target_ops) <to_attach>: Make "args" const.
7415 (find_default_attach): Likewise.
7416 * utils.c (parse_pid_to_attach): Make "args" const.
7417 * utils.h (parse_pid_to_attach): Update.
7419 2014-06-04 Tom Tromey <tromey@redhat.com>
7421 * target-delegates.c: Rebuild.
7422 * target.c (default_thread_address_space): New function.
7423 (target_thread_address_space): Simplify.
7424 * target.h (struct target_ops) <to_thread_address_space>: Add
7425 TARGET_DEFAULT_FUNC.
7427 2014-06-04 Doug Evans <xdje42@gmail.com>
7429 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7431 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7433 * record-btrace.c: Include event-loop.h and inf-loop.h.
7434 (record_btrace_resume_exec_dir)
7435 (record_btrace_async_inferior_event_handler)
7436 (record_btrace_handle_async_inferior_event): New.
7437 (record_btrace_open): Create async event handler.
7438 (record_btrace_close): Delete async event handler.
7439 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7440 Mark async event handler.
7441 (record_btrace_execution_direction): New.
7442 (init_record_btrace_ops): Initialize to_execution_direction.
7444 2014-06-03 Doug Evans <xdje42@gmail.com>
7446 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7447 (gdbscm_make_parameter): Ditto.
7449 2014-06-03 Doug Evans <dje@google.com>
7451 * exec.c (exec_close_1): Call clear_section_table instead of
7452 resize_section_table.
7453 (clear_section_table): New function.
7454 (resize_section_table): Make static. Rename arg num_added to
7456 * exec.h (clear_section_table): Declare.
7457 (resize_section_table): Delete.
7458 * progspace.c (release_program_space): Call clear_section_table
7459 instead of resize_section_table.
7461 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7463 * NEWS (Python Scripting): Add entry about the new xmethods
7466 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7468 * python/py-xmethods.c: New file.
7469 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7470 (objfpy_dealloc): XDECREF on the new xmethods field.
7471 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7473 (objfpy_get_xmethods): New function.
7474 (objfile_getset): New entry 'xmethods'.
7475 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7476 (pspy_dealloc): XDECREF on the new xmethods field.
7477 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7479 (pspy_get_xmethods): New function.
7480 (pspace_getset): New entry 'xmethods'.
7481 * python/python-internal.h: Add declarations for new functions.
7482 * python/python.c (_initialize_python): Invoke
7483 gdbpy_initialize_xmethods.
7484 * python/lib/gdb/__init__.py (xmethods): New
7486 * python/lib/gdb/xmethod.py: New file.
7487 * python/lib/gdb/command/xmethods.py: New file.
7489 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7491 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7492 best match method returned by find_overload_match is an xmethod.
7493 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7494 the best matching operator returned by find_overload_match is an
7496 * valops.c: #include "extension.h".
7497 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7498 Return void. The list of matching source methods is returned in
7499 "fn_list" and a vector of matching debug method workers is
7500 returned in "xm_worker_vec". Update all callers.
7501 (value_find_oload_method_list): Likewise.
7502 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7503 non-NULL, then the index of the best matching method in this
7504 vector is returned. Update all callers.
7505 (find_overload_match): Include xmethods while performing overload
7508 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7510 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7511 * extension-priv.h (struct extension_language_ops): Add the
7513 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7514 get_matching_xmethod_workers, get_xmethod_argtypes,
7515 invoke_xmethod, free_xmethod_worker,
7516 free_xmethod_worker_vec): New functions.
7517 * extension.h: #include "common/vec.h".
7518 New function declarations.
7519 (struct xmethod_worker): New struct.
7520 (VEC (xmethod_worker_ptr)): New vector type.
7521 (xmethod_worker_ptr): New typedef.
7522 (xmethod_worker_vec): Likewise.
7523 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7525 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7526 (struct builtin_type): New field "xmethod".
7527 * valarith.c (value_ptradd): Assert that the value argument is not
7529 * valops.c (value_must_coerce_to_target): Return 0 for
7530 lval_xcallable values.
7531 * value.c (struct value): New field XM_WORKER in the field
7533 (value_address, value_raw_address): Return 0 for lval_xcallable
7535 (set_value_address): Assert that the value is not an
7537 (value_free): Free the associated xmethod worker when freeing
7538 lval_xcallable values.
7539 (set_value_component_location): Assert that the WHOLE value is not
7541 (value_of_xmethod, call_xmethod): New functions.
7542 * value.h: Declare "struct xmethod_worker".
7543 Declare new functions value_of_xmethod, call_xmethod.
7545 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7546 Pedro Alves <palves@redhat.com>
7548 PR breakpoints/17000
7549 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7550 New function, extracted from software_breakpoint_inserted_here_p.
7551 (software_breakpoint_inserted_here_p): Replace factored out code
7552 by call to find_non_raw_software_breakpoint_inserted_here.
7553 (bp_target_info_copy_insertion_state): New function.
7554 (bkpt_insert_location): Handle the case of a single-step
7555 breakpoint already inserted at the same address.
7556 (bkpt_remove_location): Handle the case of a single-step
7557 breakpoint still inserted at the same address.
7558 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7559 breakpoint already inserted at the same address.
7560 (deprecated_remove_raw_breakpoint): Handle the case of a
7561 non-raw breakpoint still inserted at the same address.
7562 (find_single_step_breakpoint): New function, extracted from
7563 single_step_breakpoint_inserted_here_p.
7564 (find_single_step_breakpoint): New function,
7565 factored out from single_step_breakpoint_inserted_here_p.
7566 (single_step_breakpoint_inserted_here_p): Reimplement.
7568 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7570 Pushed by Joel Brobecker <brobecker@adacore.com>
7571 * source.c (show_substitute_path_command): Fix display of matching
7574 2014-06-03 Gary Benson <gbenson@redhat.com>
7576 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7578 2014-06-02 Doug Evans <xdje42@gmail.com>
7580 Add parameter support for Guile.
7581 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7582 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7583 (scm-param.o): New rule.
7584 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7585 (gdbscm_misc_error): Declare.
7586 (gdbscm_canonicalize_command_name): Declare.
7587 (gdbscm_scm_to_host_string): Declare.
7588 (gdbscm_scm_from_host_string): Declare.
7589 (gdbscm_initialize_parameters): Declare.
7590 * guile/guile.c (initialize_gdb_module): Call
7591 gdbscm_initialize_parameters.
7592 * guile/lib/gdb.scm: Export parameter symbols.
7593 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7594 cmdscm_canonicalize_name and made public. All callers updated.
7595 * guile/scm-exception.c (gdbscm_misc_error): New function.
7596 * guile/scm-param.c: New file.
7597 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7598 (gdbscm_scm_to_host_string): New function.
7599 (gdbscm_scm_from_host_string): New function.
7600 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7602 2014-06-02 Doug Evans <xdje42@gmail.com>
7604 Add command support for Guile.
7605 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7606 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7607 (scm-cmd.o): New rule.
7608 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7609 (gdbscm_user_error_p): Declare.
7610 (gdbscm_parse_command_name): Declare.
7611 (gdbscm_valid_command_class_p): Declare.
7612 (gdbscm_initialize_commands): Declare.
7613 * guile/guile.c (initialize_gdb_module): Call
7614 gdbscm_initialize_commands.
7615 * guile/lib/gdb.scm: Export command symbols.
7616 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7617 (throw-user-error): New function.
7618 * guile/scm-cmd.c: New file.
7619 * guile/scm-exception.c (user_error_symbol): New static global.
7620 (gdbscm_user_error_p): New function.
7621 (gdbscm_initialize_exceptions): Set user_error_symbol.
7622 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7624 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7626 * top.c (command_loop): Handle comments here...
7627 (command_line_input): ... not here.
7629 2014-06-02 Doug Evans <xdje42@gmail.com>
7631 Add progspace support for Guile.
7632 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7633 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7634 (scm-progspace.o): New rule.
7635 * guile/guile-internal.h (pspace_smob): New typedef.
7636 (psscm_pspace_smob_pretty_printers): Declare.
7637 (psscm_pspace_smob_from_pspace): Declare.
7638 (psscm_scm_from_pspace): Declare.
7639 * guile/guile.c (initialize_gdb_module): Call
7640 gdbscm_initialize_pspaces.
7641 * guile/lib/gdb.scm: Export progspace symbols.
7642 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7644 (append-pretty-printer!): Ditto.
7645 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7647 * guile/scm-progspace.c: New file.
7649 2014-06-03 Alan Modra <amodra@gmail.com>
7651 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7652 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7654 2014-06-02 Doug Evans <dje@google.com>
7656 Add support for skeletonless type units.
7657 * dwarf2read.c (struct dwarf2_per_objfile): New member
7658 n_allocated_type_units.
7659 (struct dwarf2_per_objfile) <tu_stats>: New member
7660 nr_all_type_units_reallocs.
7661 (create_signatured_type_table_from_index): Initialize
7662 n_allocated_type_units
7663 (create_all_type_units): Ditto.
7664 (add_type_unit): Move up in file. New arg slot.
7665 All callers updated. Increase space for all_type_units more
7667 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7668 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7669 (lookup_dwp_signatured_type): Ditto.
7670 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7671 All callers updated.
7672 (build_type_psymtabs_1): Leave type_unit_groups as
7673 NULL if no TUs present.
7674 (print_tu_stats): New function.
7675 (process_skeletonless_type_unit): New function.
7676 (process_dwo_file_for_skeletonless_type_units): New
7678 (process_skeletonless_type_units): New function.
7679 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7680 Call print tu_stats if debugging enabled.
7682 2014-06-02 Pedro Alves <palves@redhat.com>
7684 * breakpoint.c (build_target_command_list): Don't build a command
7685 list if we have any duplicate location that isn't a dprintf.
7687 2014-06-02 Pedro Alves <palves@redhat.com>
7689 * breakpoint.c (dprintf_breakpoint_hit): New function.
7690 (initialize_breakpoint_ops): Install it as dprintf's
7691 breakpoint_hit method.
7693 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7695 * source.c (substitute_path_rule_matches): Simplify using
7696 filename_ncmp instead of FILENAME_CMP.
7698 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7700 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7702 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7704 * configure.ac: When Guile is available, check for the
7705 availability of 'scm_new_smob'.
7706 * configure, config.h.in: Regenerate.
7707 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7710 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7712 * frame.c (struct frame_info): Add stop_string field.
7713 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7714 (get_prev_frame_always): Old content moved into
7715 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7716 TRY_CATCH, handle MEMORY_ERROR exceptions.
7717 (frame_stop_reason_string): New function definition.
7718 * frame.h (unwind_stop_reason_to_string): Extend comment to
7719 mention frame_stop_reason_string.
7720 (frame_stop_reason_string): New function declaration.
7721 * stack.c (frame_info): Switch to frame_stop_reason_string.
7722 (backtrace_command_1): Switch to frame_stop_reason_string.
7723 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7724 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7725 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7727 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7729 * frame.c (frame_stop_reason_string): Rename to ...
7730 (unwind_stop_reason_to_string): this.
7731 * frame.h (frame_stop_reason_string): Rename to ...
7732 (unwind_stop_reason_to_string): this.
7733 * stack.c (frame_info): Update call to frame_stop_reason_string.
7734 (backtrace_command_1): Likewise.
7735 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7736 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7738 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7740 * frame.c (remove_prev_frame): New function.
7741 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7744 2014-05-29 Pedro Alves <palves@redhat.com>
7746 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7747 and make it const. When a single-step decays to a continue,
7748 clear 'step', not 'hw_step'. Pass whether the caller wanted
7749 to step to user_visible_resume_ptid, not what we ask the
7752 2014-05-29 Pedro Alves <palves@redhat.com>
7754 * infrun.c (process_event_stop_test, handle_step_into_function)
7755 (handle_step_into_function_backward): Adjust.
7756 Don't set the even thread's stop_step and call stop_waiting before
7757 calling end_stepping_range. Instead do that ...
7758 (end_stepping_range): ... here. Take an ecs pointer parameter.
7760 2014-05-29 Pedro Alves <palves@redhat.com>
7762 * infrun.c (stop_stepping): Rename to ...
7763 (stop_waiting): ... this.
7764 (proceed): Update comment.
7765 (process_event_stop_test, handle_inferior_event)
7766 (handle_signal_stop, handle_step_into_function)
7767 (handle_step_into_function_backward): Update.
7769 2014-05-29 Pedro Alves <palves@redhat.com>
7771 * infcall.c (run_inferior_call): Don't check whether the current
7772 thread is running after the proceed call.
7774 2014-05-29 Pedro Alves <palves@redhat.com>
7775 Tom Tromey <tromey@redhat.com>
7777 * NEWS: Mention "maint set target-async", "set mi-async", and that
7778 background execution commands are now always available.
7779 * target.h (target_async_permitted): Update comment.
7780 * target.c (target_async_permitted, target_async_permitted_1):
7782 (set_target_async_command): Rename to ...
7783 (maint_set_target_async_command): ... this.
7784 (show_target_async_command): Rename to ...
7785 (maint_show_target_async_command): ... this.
7786 (_initialize_target): Adjust.
7787 * infcmd.c (prepare_execution_command): Make extern.
7788 * inferior.h (prepare_execution_command): Declare.
7789 * infrun.c (set_observer_mode): Leave target async alone.
7790 * mi/mi-interp.c (mi_interpreter_init): Install
7791 mi_on_sync_execution_done as sync_execution_done observer.
7792 (mi_on_sync_execution_done): New function.
7793 (mi_execute_command_input_handler): Don't print the prompt if we
7794 just started a synchronous command with an async target.
7795 (mi_on_resume): Check sync_execution before printing prompt.
7796 * mi/mi-main.h (mi_async_p): Declare.
7797 * mi/mi-main.c: Include gdbcmd.h.
7798 (mi_async_p): New function.
7799 (mi_async, mi_async_1): New globals.
7800 (set_mi_async_command, show_mi_async_command, mi_async): New
7802 (exec_continue): Call prepare_execution_command.
7803 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7804 (mi_execute_async_cli_command): Use mi_async_p.
7805 (_initialize_mi_main): Install "set mi-async". Make
7806 "target-async" a deprecated alias.
7808 2014-05-29 Pedro Alves <palves@redhat.com>
7810 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7811 (_initialize_cli_interp): Adjust.
7812 * event-loop.c: Include "observer.h".
7813 (start_event_loop): Notify 'command_error' observers instead of
7814 calling display_gdb_prompt. Remove FIXME comment.
7815 * event-top.c (display_gdb_prompt): Remove call into the
7817 * inf-loop.c: Include "observer.h".
7818 (inferior_event_handler): Notify 'command_error' observers instead
7819 of calling display_gdb_prompt.
7820 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7821 observers instead of calling display_gdb_prompt.
7822 * interps.c (interp_set): Don't call display_gdb_prompt.
7823 (current_interp_display_prompt_p): Delete.
7824 * interps.h (interp_prompt_p): Delete declaration.
7825 (interp_prompt_p_ftype): Delete.
7826 (struct interp_procs) <prompt_proc_p>: Delete field.
7827 (current_interp_display_prompt_p): Delete declaration.
7828 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7829 (_initialize_mi_interp): Adjust.
7830 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7831 'command_error' observers.
7832 (tui_on_sync_execution_done, tui_on_command_error): New
7834 (tui_display_prompt_p): Delete.
7835 (_initialize_tui_interp): Adjust.
7837 2014-05-29 Pedro Alves <palves@redhat.com>
7840 * cli/cli-interp.c: Include infrun.h and observer.h.
7841 (cli_uiout, cli_interp): New globals.
7842 (cli_on_signal_received, cli_on_end_stepping_range)
7843 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7845 (cli_interpreter_init): Install them as 'end_stepping_range',
7846 'signal_received' 'signal_exited', 'exited' and 'no_history'
7848 (_initialize_cli_interp): Remove cli_interp local.
7849 * infrun.c (handle_inferior_event): Call the several stop reason
7850 observers instead of printing the stop reason directly.
7851 (end_stepping_range): New function.
7852 (print_end_stepping_range_reason, print_signal_exited_reason)
7853 (print_exited_reason, print_signal_received_reason)
7854 (print_no_history_reason): Make static, and add an uiout
7855 parameter. Print to that instead of to CURRENT_UIOUT.
7856 * infrun.h (print_end_stepping_range_reason)
7857 (print_signal_exited_reason, print_exited_reason)
7858 (print_signal_received_reason print_no_history_reason): New
7860 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7862 <cli_uiout>: New field.
7863 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7864 uiout for CLI output. Install 'signal_received',
7865 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7867 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7868 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7869 (mi_on_no_history): New functions.
7870 (ui_out_free_cleanup): Delete function.
7871 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7872 instead use the one already stored in the MI interpreter data.
7873 (mi_ui_out): Adjust.
7874 * tui/tui-interp.c: Include infrun.h and observer.h.
7875 (tui_interp): New global.
7876 (tui_on_signal_received, tui_on_end_stepping_range)
7877 (tui_on_signal_exited, tui_on_exited)
7878 (tui_on_no_history): New functions.
7879 (tui_init): Install them as 'end_stepping_range',
7880 'signal_received' 'signal_exited', 'exited' and 'no_history'
7882 (_initialize_tui_interp): Delete tui_interp local.
7884 2014-05-29 Pedro Alves <palves@redhat.com>
7887 * linux-nat.c (linux_nat_resume_callback): Rename the second
7888 parameter to 'except'. Skip LP if it points to EXCEPT.
7889 (linux_nat_resume): Don't mark the event lwp as not stopped
7890 before resuming sibling lwps. Instead ask
7891 linux_nat_resume_callback to skip the event lwp. Mark it as not
7892 stopped after actually resuming it.
7893 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7895 (wait_lwp): Mark the lwp as stopped here.
7896 (stop_wait_callback): Mark the lwp as not stopped right after
7897 resuming it. Don't mark lwps as stopped here.
7898 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7899 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7901 2014-05-29 Pedro Alves <palves@redhat.com>
7904 * infrun.c (resume): Determine how much to resume depending on
7905 whether the caller wanted a step, not whether we can hardware step
7906 the target. Mark all threads that we intend to run as running,
7907 unless we're calling an inferior function.
7908 (normal_stop): If the thread is running an infcall, don't finish
7910 * target.c (target_resume): Don't mark threads as running here.
7912 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7914 * serial.c (_initialize_serial): Remove support for
7915 the "set remotebaud" and "show remotebaud" commands.
7916 * NEWS: Add entry documenting the removal of that command.
7918 2014-05-28 Yao Qi <yao@codesourcery.com>
7920 * charset.c: Fix typo in comments.
7922 2014-05-27 Gary Benson <gbenson@redhat.com>
7924 * utils.c (internal_vproblem): Prompt for a bug report.
7926 2014-05-26 Andy Wingo <wingo@igalia.com>
7928 * guile/scm-arch.c (arscm_mark_arch_smob):
7929 * guile/scm-block.c (bkscm_mark_block_smob)
7930 (bkscm_mark_block_syms_progress_smob):
7931 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7932 * guile/scm-exception.c (exscm_mark_exception_smob):
7933 * guile/scm-frame.c (frscm_mark_frame_smob):
7934 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7935 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7936 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7937 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7938 (ppscm_mark_pretty_printer_worker_smob):
7939 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7940 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7941 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7942 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7944 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7947 2014-05-26 Andy Wingo <wingo@igalia.com>
7948 Doug Evans <xdje42@gmail.com>
7950 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7951 empty_base_class. All uses updated.
7952 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7953 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7955 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7956 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7957 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7958 (gdbscm_gsmob_has_property_p, add_property_name)
7959 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7960 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7961 (gdb-object-has-property?, gdb-object-properties): Remove.
7962 (gdb-object-kind): Renamed from gsmob-kind.
7964 2014-05-26 Andy Wingo <wingo@igalia.com>
7966 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7967 * configure: Regenerate.
7969 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7971 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7973 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7975 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7976 (replay_memory_access_read_only, replay_memory_access_read_write)
7977 (replay_memory_access_types, replay_memory_access)
7978 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7979 (cmd_set_record_btrace, cmd_show_record_btrace)
7980 (cmd_show_replay_memory_access): New.
7981 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7982 (record_btrace_remove_breakpoint): Replace
7983 record_btrace_allow_memory_access with replay_memory_access.
7984 (_initialize_record_btrace): Add commands.
7985 * NEWS: Announce it.
7987 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7989 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7991 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7993 * MAINTAINERS (Write After Approval): Move self back from
7996 2014-05-22 Pedro Alves <palves@redhat.com>
7998 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7999 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8000 (disable_randomization, enum exec_direction_kind)
8001 (execution_direction, stop_registers, start_remote)
8002 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8003 (wait_for_inferior, normal_stop, get_last_target_status)
8004 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8005 (insert_step_resume_breakpoint_at_sal)
8006 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8007 (set_step_info, print_stop_event, signal_stop_state)
8008 (signal_print_state, signal_pass_state, signal_stop_update)
8009 (signal_print_update, signal_pass_update)
8010 (update_signals_program_target, clear_exit_convenience_vars)
8011 (displaced_step_dump_bytes, update_observer_mode)
8012 (signal_catch_update, gdb_signal_from_command): Move
8014 * infrun.h: ... to this new file.
8015 * amd64-tdep.c: Include infrun.h.
8016 * annotate.c: Include infrun.h.
8017 * arch-utils.c: Include infrun.h.
8018 * arm-linux-tdep.c: Include infrun.h.
8019 * arm-tdep.c: Include infrun.h.
8020 * break-catch-sig.c: Include infrun.h.
8021 * breakpoint.c: Include infrun.h.
8022 * common/agent.c: Include infrun.h instead of inferior.h.
8023 * corelow.c: Include infrun.h.
8024 * event-top.c: Include infrun.h.
8025 * go32-nat.c: Include infrun.h.
8026 * i386-tdep.c: Include infrun.h.
8027 * inf-loop.c: Include infrun.h.
8028 * infcall.c: Include infrun.h.
8029 * infcmd.c: Include infrun.h.
8030 * infrun.c: Include infrun.h.
8031 * linux-fork.c: Include infrun.h.
8032 * linux-nat.c: Include infrun.h.
8033 * linux-thread-db.c: Include infrun.h.
8034 * monitor.c: Include infrun.h.
8035 * nto-tdep.c: Include infrun.h.
8036 * procfs.c: Include infrun.h.
8037 * record-btrace.c: Include infrun.h.
8038 * record-full.c: Include infrun.h.
8039 * remote-m32r-sdi.c: Include infrun.h.
8040 * remote-mips.c: Include infrun.h.
8041 * remote-notif.c: Include infrun.h.
8042 * remote-sim.c: Include infrun.h.
8043 * remote.c: Include infrun.h.
8044 * reverse.c: Include infrun.h.
8045 * rs6000-tdep.c: Include infrun.h.
8046 * s390-linux-tdep.c: Include infrun.h.
8047 * solib-irix.c: Include infrun.h.
8048 * solib-osf.c: Include infrun.h.
8049 * solib-svr4.c: Include infrun.h.
8050 * target.c: Include infrun.h.
8051 * top.c: Include infrun.h.
8052 * windows-nat.c: Include infrun.h.
8053 * mi/mi-interp.c: Include infrun.h.
8054 * mi/mi-main.c: Include infrun.h.
8055 * python/py-threadevent.c: Include infrun.h.
8057 2014-05-22 Pedro Alves <palves@redhat.com>
8059 * infrun.c (handle_inferior_event): Store the exit code for
8060 --return-child-result here, instead of ...
8061 (print_exited_reason): ... here.
8063 2014-05-21 Pedro Alves <palves@redhat.com>
8066 * gdbthread.h (struct thread_control_state): New field
8068 * infrun.c (follow_fork): Copy the new thread control field to the
8070 (clear_proceed_status_thread): Clear the new thread control field.
8071 (proceed): Set the new thread control field.
8072 * interps.h (command_interp): Declare.
8073 * interps.c (command_interpreter): New global.
8074 (command_interp): New function.
8075 (interp_exec): Set `command_interpreter' while here.
8076 * cli-out.c (cli_uiout_dtor): New function.
8077 (cli_ui_out_impl): Install it.
8078 * mi/mi-interp.c: Include cli-out.h.
8079 (mi_cmd_interpreter_exec): Add comment.
8080 (restore_current_uiout_cleanup): New function.
8081 (ui_out_free_cleanup): New function.
8082 (mi_on_normal_stop): If finishing an execution command started by
8083 a CLI command, or any kind of breakpoint-like event triggered,
8084 print the stop event to the output (CLI) stream.
8085 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8087 2014-05-21 Pedro Alves <palves@redhat.com>
8089 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8090 current source line having changed.
8091 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8092 * infrun.c (normal_stop): Adjust call to
8093 set_current_sal_from_frame.
8094 * source.c (clear_lines_listed_range): New function.
8095 (set_current_source_symtab_and_line, identify_source_line): Clear
8096 the lines listed range.
8097 (line_info): Handle the first "info line" after the current source
8098 line having changed.
8099 * stack.c (print_stack_frame): Remove center handling.
8100 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8103 2014-05-21 Pedro Alves <palves@redhat.com>
8105 * inf-child.c (inf_child_mourn_inferior): New function.
8106 * inf-child.h (inf_child_mourn_inferior): New declaration.
8107 * darwin-nat.c (darwin_mourn_inferior): Use
8108 inf_child_mourn_inferior.
8109 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8110 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8111 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8112 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8113 * windows-nat.c (windows_mourn_inferior): Likewise.
8115 2014-05-21 Doug Evans <xdje42@gmail.com>
8117 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8119 2014-05-21 Doug Evans <xdje42@gmail.com>
8121 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8122 (gdbscm_out_of_range_error): Ditto.
8123 (gdbscm_memory_error): Ditto.
8124 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8125 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8126 (gdbscm_out_of_range_error): Update.
8127 (gdbscm_memory_error): Update.
8128 (gdbscm_scm_to_target_string_unsafe): Delete.
8130 2014-05-21 Pedro Alves <palves@redhat.com>
8132 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8134 (inf_child_open_target): New function.
8135 (inf_child_open): Use inf_child_open_target to push the target
8136 instead of erroring out.
8137 (inf_child_disconnect, inf_child_close)
8138 (inf_child_maybe_unpush_target): New functions.
8139 (inf_child_target): Install inf_child_disconnect and
8140 inf_child_close. Store a pointer to the returned object.
8141 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8143 * target.c (auto_connect_native_target): New global.
8144 (show_default_run_target): New function.
8145 (find_default_run_target): Return NULL if automatically connecting
8146 to the native target is disabled.
8147 (_initialize_target): Install set/show auto-connect-native-target.
8148 * NEWS: Mention "set auto-connect-native-target", and "target
8150 * linux-nat.c (super_close): New global.
8151 (linux_nat_close): Call super_close.
8152 (linux_nat_add_target): Store a pointer to the base class's
8154 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8155 inf_child_maybe_unpush.
8156 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8158 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8159 the inferior. Use inf_child_maybe_unpush_target.
8160 (inf_ttrace_attach): Don't push the target if it is already
8162 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8163 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8164 after mourning the inferior. Use inf_child_maybe_unpush_target.
8165 (darwin_attach_pid): Don't push the target if it is already
8167 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8168 mourning the inferior. Use inf_child_maybe_unpush_target.
8169 (gnu_detach): Use inf_child_maybe_unpush_target.
8170 * go32-nat.c (go32_create_inferior): Don't push the target if it
8172 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8173 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8174 (procfs_open): Rename to ...
8175 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8176 comments. Can target_preopen before changing node. Call
8177 inf_child_open_target to push the target explicitly.
8178 (procfs_attach): Don't push the target if it is already pushed.
8179 (procfs_detach): Use inf_child_maybe_unpush_target.
8180 (procfs_create_inferior): Don't push the target if it is already
8182 (nto_native_ops): New global.
8183 (procfs_open): Reimplement.
8184 (procfs_native_open): New function.
8185 (init_procfs_targets): Install procfs_native_open as to_open of
8186 "target native". Store a pointer to the "native" target in
8188 * procfs.c (procfs_attach): Don't push the target if it is already
8190 (procfs_detach): Use inf_child_maybe_unpush_target.
8191 (procfs_mourn_inferior): Only unpush the target after mourning the
8192 inferior. Use inf_child_maybe_unpush_target.
8193 (procfs_init_inferior): Don't push the target if it is already
8195 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8196 if it is already pushed.
8198 2014-05-21 Pedro Alves <palves@redhat.com>
8200 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8201 and "procfs" targets are now called "native" instead.
8203 2014-05-21 Pedro Alves <palves@redhat.com>
8205 * go32-nat.c (go32_open): Delete.
8206 (go32_target): Don't override the to_open method.
8208 2014-05-21 Pedro Alves <palves@redhat.com>
8210 * nto-procfs.c (procfs_can_run): New function.
8211 (nto_procfs_ops): New global.
8212 (init_procfs_targets): New, based on procfs_target. Install
8213 "target native" in addition to "target procfs".
8214 (_initialize_procfs): Call init_procfs_targets instead of adding
8217 2014-05-21 Pedro Alves <palves@redhat.com>
8219 * windows-nat.c (windows_target): Don't override to_shortname,
8220 to_longname or to_doc.
8222 2014-05-21 Pedro Alves <palves@redhat.com>
8224 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8227 2014-05-21 Pedro Alves <palves@redhat.com>
8229 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8230 to_shortname, to_longname or to_doc.
8232 2014-05-21 Pedro Alves <palves@redhat.com>
8234 * go32-nat.c (go32_target): Don't override to_shortname,
8235 to_longname or to_doc.
8237 2014-05-21 Pedro Alves <palves@redhat.com>
8239 * inf-child.c (inf_child_open): Remove mention of "child".
8240 (inf_child_target): Rename target to "native" instead of "child".
8242 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8244 * Makefile.in (SFILES): Delete "regset.c".
8245 (COMMON_OBS): Delete "regset.o".
8247 * regset.h (regset_alloc): Delete prototype.
8249 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8251 * sparc-linux-tdep.c (sparc32_linux_gregset)
8252 (sparc32_linux_fpregset): New static regset structures.
8253 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8254 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8256 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8257 (sparc64_linux_fpregset): New static regset structures.
8258 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8259 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8260 New static regset structures.
8261 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8262 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8263 New static regset structures.
8264 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8265 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8266 New static regset structures.
8267 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8268 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8269 New static regset structures.
8270 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8272 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8274 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8275 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8276 register maps ("regmaps") from "*regset" to "*regmap". Do this
8277 for all regmap types and variables.
8278 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8279 (sparc32_linux_supply_core_gregset)
8280 (sparc32_linux_collect_core_gregset)
8281 (sparc32_linux_supply_core_fpregset)
8282 (sparc32_linux_collect_core_fpregset): Likewise.
8283 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8284 (sparc_gregmap, sparc_fpregmap): ... these.
8285 (sparc_supply_gregset, sparc_collect_gregset)
8286 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8287 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8288 (_initialize_sparc_nat): Rename regmaps.
8289 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8290 (sparc_gregmap, sparc_fpregmap): ... these.
8291 (sparc_supply_gregset, sparc_collect_gregset)
8292 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8293 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8295 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8296 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8298 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8300 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8301 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8302 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8304 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8305 (sparc32_bsd_fpregset): Rename to...
8306 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8307 (sparc32_bsd_fpregmap): ... these.
8308 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8309 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8310 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8311 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8312 (struct sparc_gregmap, struct sparc_fpregmap)
8313 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8314 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8315 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8316 (sparc32_supply_regset, sparc32_collect_gregset)
8317 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8319 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8320 (sparc64_linux_ptrace_gregmap): ... this.
8321 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8322 (_initialize_sparc64_linux_nat): Rename regmaps.
8323 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8324 (sparc64_linux_core_gregmap): ... this.
8325 (sparc64_linux_supply_core_gregset)
8326 (sparc64_linux_collect_core_gregset)
8327 (sparc64_linux_supply_core_fpregset)
8328 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8329 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8330 (sparc64_sol2_fpregset): Rename to...
8331 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8332 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8333 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8335 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8336 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8337 (sparc64_bsd_fpregset): Rename to...
8338 (struct sparc_gregmap, sparc64_sol2_gregmap)
8339 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8340 (sparc64_bsd_fpregmap): ... these.
8341 (sparc64_supply_gregset, sparc64_collect_gregset)
8342 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8344 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8345 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8346 (sparc64fbsd_gregmap): ... this.
8347 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8348 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8350 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8351 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8352 (sparc64nbsd_collect_fpregset): Likewise.
8353 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8354 (sparc64nbsd_gregmap): ... this.
8355 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8357 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8358 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8359 (sparc64obsd_gregmap): ... this.
8360 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8362 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8363 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8364 (sparc32nbsd_gregmap): ... this.
8365 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8368 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8370 * score-tdep.c (score7_linux_gregset): New static regset
8372 (score7_linux_regset_from_core_section): Remove dynamic regset
8374 (score_gdbarch_init): Drop allocation of tdep structure.
8375 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8377 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8379 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8381 (am33_regset_from_core_section): Remove dynamic regset
8384 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8386 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8387 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8389 (mips_linux_regset_from_core_section): Remove dynamic regset
8391 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8392 'gregset64', 'fpregset', and 'fpregset64'.
8393 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8394 deleted tdep fields.
8396 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8398 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8400 (amd64_regset_from_core_section): Remove dynamic regset
8402 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8404 (amd64obsd_regset_from_core_section): Remove dynamic regset
8406 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8408 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8409 x86-common regset supply function.
8410 * i386-tdep.c (i386_collect_gregset): Make static.
8411 (i386_gregset): New global regset structure.
8412 (i386_fpregset, i386_xstateregset): New static regset structures.
8413 (i386_regset_from_core_section): Remove dynamic regset
8415 (i386_gdbarch_init): Remove initialization of tdep fields
8416 'gregset', 'fpregset', and 'xstateregset'.
8417 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8418 'fpregset', and 'xstateregset'.
8419 (i386_collect_gregset): Remove prototype.
8420 (i386_gregset): New declaration.
8421 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8423 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8426 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8428 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8429 (arm_linux_vfpregset): New static regset structures.
8430 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8432 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8433 and 'vfpregset' fields.
8435 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8437 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8438 (aarch64_linux_fpregset): New static regset structures.
8439 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8440 of regset structures.
8441 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8444 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8446 * regset.h (struct regset): Remove gdbarch field.
8447 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8448 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8449 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8451 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8452 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8453 (ppc32_linux_vsxregset): Likewise.
8454 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8455 via the regcache instead of the regset.
8456 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8457 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8458 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8459 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8462 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8464 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8465 Constify structures.
8466 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8467 (alphanbsd_aout_gregset): Likewise.
8468 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8469 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8471 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8472 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8474 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8475 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8476 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8477 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8478 * m88k-tdep.c (m88k_gregset): Likewise.
8479 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8480 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8481 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8482 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8483 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8484 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8485 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8486 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8487 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8489 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8490 * sh-tdep.h (sh_corefile_gregset): Likewise.
8491 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8492 * vax-tdep.c (vax_gregset): Likewise.
8494 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8496 Fix TLS access for -static -pthread.
8497 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8498 (try_thread_db_load_1): Initialize it.
8499 (thread_db_get_thread_local_address): Call it if LM is zero.
8500 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8501 * target.h (struct target_ops) (to_get_thread_local_address): Add
8502 load_module_addr comment.
8504 2014-05-21 Pedro Alves <palves@redhat.com>
8506 * dcache.c (dcache_read_memory_partial): If reading the cache line
8507 fails, fallback to reading just the memory the caller wanted.
8509 2014-05-20 Doug Evans <dje@google.com>
8511 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8512 instead of get_current_arch.
8514 2014-05-20 Pedro Alves <palves@redhat.com>
8516 * NEWS: Mention that compare-sections now works with all targets.
8518 * remote.c (PACKET_qCRC): New enum value.
8519 (remote_verify_memory): Don't send qCRC if the target has no
8520 execution. Use packet_support/packet_ok. If the target doesn't
8521 support the qCRC packet, fallback to a deep memory copy.
8522 (compare_sections_command): Say "target image" instead of "remote
8524 (_initialize_remote): Add PACKET_qCRC to the list of config
8525 packets that have no associated command. Extend comment.
8526 * target.c (simple_verify_memory, default_verify_memory): New
8528 * target.h (struct target_ops) <to_verify_memory>: Default to
8529 default_verify_memory.
8530 (simple_verify_memory): New declaration.
8531 * target-delegates.c: Regenerate.
8533 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8535 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8537 2014-05-20 Hui Zhu <hui@codesourcery.com>
8538 Yao Qi <yao@codesourcery.com>
8541 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8542 and change address of sp and pc.
8544 2014-05-19 Tom Tromey <tromey@redhat.com>
8546 * gdbtypes.c (rank_function): Use XNEWVEC.
8547 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8549 2014-05-19 Doug Evans <dje@google.com>
8551 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8552 build_type_unit_groups and moved closer to only caller. Remove
8553 arguments. All references updated. Remove outdated .gdb_index
8555 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8556 build_type_psymtabs_1.
8558 2014-05-19 Doug Evans <dje@google.com>
8560 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8561 n_type_unit_groups, all_type_unit_groups. All uses removed.
8562 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8563 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8564 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8565 (add_type_unit_group_to_table): Delete.
8567 2014-05-19 Doug Evans <dje@google.com>
8569 * eval.c (evaluate_subexp_standard): Add some comments.
8571 2014-05-17 Doug Evans <xdje42@gmail.com>
8573 * progspace.c (remove_program_space): Delete, unused.
8574 * progspace.h (remove_program_space): Ditto.
8576 2014-05-17 Doug Evans <xdje42@gmail.com>
8578 * inferior.c (prune_inferiors): Fix comment.
8579 (remove_inferior_command): Call prune_program_spaces.
8581 2014-05-16 Doug Evans <dje@google.com>
8583 New command line option -D.
8585 * main.c (set_gdb_data_directory): New function.
8586 (captured_main): Recognize -D. Flag error for --data-directory "".
8587 Call set_gdb_data_directory.
8588 (print_gdb_help): Print --data-directory, -D.
8589 * main.h (set_gdb_data_directory): Declare.
8590 * top.c (staged_gdb_datadir): New static global.
8591 (set_gdb_datadir): Call set_gdb_data_directory
8592 (show_gdb_datadir): New function.
8593 (init_main): Update init of data-directory parameter.
8595 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8597 Import the "dirfd" gnulib module.
8598 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8599 * gnulib/aclocal.m4: Update.
8600 * gnulib/config.in: Update.
8601 * gnulib/configure: Update.
8602 * gnulib/import/Makefile.am: Update.
8603 * gnulib/import/Makefile.in: Update.
8604 * gnulib/import/dirfd.c: New.
8605 * gnulib/import/m4/dirfd.m4: New.
8606 * gnulib/import/m4/gnulib-cache.m4: Update.
8607 * gnulib/import/m4/gnulib-comp.m4: Update.
8609 2014-05-16 Pierre Muller <muller@sourceware.org>
8610 Yao Qi <yao@codesourcery.com>
8612 * valprint.c (print_wchar): Move the code on checking whether
8613 W is a printable wide char to the default branch of switch
8614 statement below. Call wchar_printable instead of gdb_iswprint.
8616 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8618 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8619 ldr.w and ldrd instructions.
8621 2014-05-15 Doug Evans <dje@google.com>
8623 * dwarf2read.c (read_structure_type): Delete outdated comments.
8625 2014-05-14 Tom Tromey <tromey@redhat.com>
8627 * macrocmd.c (print_macro_definition): Reindent.
8629 2014-05-13 Doug Evans <xdje42@gmail.com>
8631 * python/py-cmd.c (cmdpy_completer): Add comment.
8632 (completers): Make const.
8634 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8636 * infrun.c (resume): Remove should_resume (unused). Move up
8637 declaration of resume_ptid.
8639 2014-05-13 Tom Tromey <tromey@redhat.com>
8641 * language.h (unop_type_check): Remove.
8642 (binop_type_check): Don't declare.
8644 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8646 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8647 call to regcache_raw_collect.
8649 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8651 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8652 mi_console->quote as the quoting character.
8654 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8656 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8658 2014-04-29 Tom Tromey <tromey@redhat.com>
8660 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8661 "show debug varobj".
8663 2014-05-07 Kyle McMartin <kyle@redhat.com>
8665 Pushed by Joel Brobecker <brobecker@adacore.com>.
8666 * aarch64-tdep.c (aarch64_software_single_step): New function.
8667 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8668 with aarch64_software_single_step.
8670 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8674 2014-05-05 Keith Seitz <keiths@redhat.com>
8676 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8677 variable or history value is successfully parsed.
8679 2014-05-05 Yao Qi <yao@codesourcery.com>
8680 Pedro Alves <palves@redhat.com>
8682 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8683 address of blocks that intersects the requested range. Trim
8684 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8686 * ctf.c (ctf_xfer_partial): Likewise.
8688 2014-05-05 Yao Qi <yao@codesourcery.com>
8690 * printcmd.c (display_command): Remove the check to
8691 target_has_execution.
8693 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8695 * ppcobsd-nat.c: Include "obsd-nat.h".
8696 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8698 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8700 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8702 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8703 and 16-bit signed and unsigned arguments. Update comment.
8704 (stap_parse_probe_arguments): Extend code to handle such
8705 arguments. Use warning instead of complaint to notify about
8706 unrecognized bitness.
8708 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8710 PR breakpoints/16889
8711 * stap-probe.c (stap_parse_probe_arguments): Simplify
8712 check for non-prefixed probes (i.e., probes whose
8713 arguments do not start with "N@"). Always set the
8714 argument type to a sane value.
8716 2014-05-01 David Taylor <dtaylor@emc.com>
8718 * remote.c (compare_sections_command): Add -r option to compare
8719 all loadable read-only sections.
8721 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8723 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8724 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8726 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8727 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8728 Remove unused CORE_ADDR argument. Update all callers.
8730 2014-04-29 Pedro Alves <palves@redhat.com>
8732 * remote.c (struct packet_config) <detect>: Extend comment.
8733 (add_packet_config_cmd): Don't set the config's detect or support
8735 (init_all_packet_configs): Also initialize the config's 'detect'
8737 (reset_all_packet_configs_support): New function.
8738 (remote_open_1): Call reset_all_packet_configs_support instead of
8739 init_all_packet_configs.
8740 (_initialize_remote): Initialize all packet configs. Assert that
8741 all packets have an associated command, except a few known
8744 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8746 * dwarf2read.c (read_subrange_type): Handle dynamic
8747 DW_AT_lower_bound attributes.
8749 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8751 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8752 dynamic bounds before computing its upper bound.
8753 (ada_discrete_type_low_bound): Same as above with the lower bound.
8755 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8757 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8758 range types. Adjust the array handling implementation to
8759 take advantage of this change.
8760 (resolve_dynamic_range): New function, mostly extracted from
8761 resolve_dynamic_bounds.
8762 (resolve_dynamic_array): New function, mostly extracted from
8763 resolve_dynamic_bounds.
8764 (resolve_dynamic_bounds): Delete.
8765 (resolve_dynamic_type): Reimplement. Add handling of
8766 TYPE_CODE_RANGE types.
8768 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8770 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8771 handling of parallel ___XA types.
8773 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8775 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8776 unnecessary second call to static_unwrap_type.
8778 2014-04-27 Hui Zhu <hui@codesourcery.com>
8780 * stack.c (print_frame_info): Call do_gdb_disassembly with
8781 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8783 2014-04-26 Doug Evans <xdje42@gmail.com>
8785 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8787 2014-04-25 Pedro Alves <palves@redhat.com>
8790 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8791 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8792 and newline from built string.
8793 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8794 (linux_ptrace_attach_fail_reason): ... this.
8795 * linux-nat.c (linux_nat_attach): Adjust to use
8796 linux_ptrace_attach_fail_reason.
8798 2014-04-25 Pedro Alves <palves@redhat.com>
8800 * remote.c (struct remote_state): Remove multi_process_aware,
8801 non_stop_aware, cond_tracepoints, cond_breakpoints,
8802 breakpoint_commands, fast_tracepoints, static_tracepoints,
8803 install_in_trace, disconnected_tracing,
8804 enable_disable_tracepoints, string_tracing, and
8805 augmented_libraries_svr4_read fields.
8806 (remote_multi_process_p): Move further below in the file.
8807 (struct packet_config): Add comments.
8808 (update_packet_config): Delete function.
8809 (show_packet_config_cmd): Use packet_config_support.
8810 (add_packet_config_cmd): Use NULL as set callback.
8811 (packet_ok): "set remote foo-packet"-style commands no longer
8812 change config->supported -- adjust.
8813 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8814 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8815 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8816 (PACKET_QNonStop, PACKET_multiprocess_feature)
8817 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8818 (PACKET_DisconnectedTracing_feature)
8819 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8820 (set_remote_protocol_packet_cmd): Delete function.
8821 (packet_config_support, packet_support): New functions.
8822 (set_remote_protocol_Z_packet_cmd): Don't call
8823 update_packet_config.
8824 (remote_query_attached, remote_pass_signals)
8825 (remote_program_signals, remote_threads_info)
8826 (remote_threads_extra_info, remote_start_remote): Use
8828 (remote_start_remote): Use packet_config_support and
8830 (init_all_packet_configs): Set all packets to unknown support,
8831 instead of calling update_packet_config.
8832 (remote_check_symbols): Use packet_support.
8833 (remote_supported_packet): Unconditionally set the packet config's
8835 (remote_multi_process_feature, remote_non_stop_feature)
8836 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8837 (remote_breakpoint_commands_feature)
8838 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8839 (remote_install_in_trace_feature)
8840 (remote_disconnected_tracing_feature)
8841 (remote_enable_disable_tracepoint_feature)
8842 (remote_string_tracing_feature)
8843 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8844 (remote_protocol_features): Adjust to use remote_supported_packet
8845 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8846 "ConditionalTracepoints", "ConditionalBreakpoints",
8847 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8848 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8849 "EnableDisableTracepoints", and "tracenz".
8850 (remote_query_supported): Use packet_support.
8851 (remote_open_1): Adjust.
8852 (extended_remote_attach_1): Use packet_support. Switch on the
8853 result of packet_ok instead of checking whether the packet ended
8855 (remote_vcont_resume): Use packet_support.
8856 (remote_resume, remote_stop_ns, fetch_register_using_p)
8857 (remote_prepare_to_store, store_register_using_P)
8858 (check_binary_download, remote_write_bytes): Use packet_support.
8859 (remote_vkill): Use packet_support. Switch on the result of
8860 packet_ok instead of checking whether the packet ended up
8862 (extended_remote_supports_disable_randomization): Use
8864 (extended_remote_run): Switch on the result of packet_ok instead
8865 of checking whether the packet ended up disabled.
8866 (remote_insert_breakpoint, remote_remove_breakpoint)
8867 (remote_insert_watchpoint, remote_remove_watchpoint)
8868 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8870 (remote_search_memory): Use packet_config_support.
8871 (remote_get_thread_local_address, remote_get_tib_address)
8872 (remote_hostio_send_command, remote_can_execute_reverse): Use
8874 (remote_supports_cond_tracepoints)
8875 (remote_supports_cond_breakpoints)
8876 (remote_supports_fast_tracepoints)
8877 (remote_supports_static_tracepoints)
8878 (remote_supports_install_in_trace)
8879 (remote_supports_enable_disable_tracepoint)
8880 (remote_supports_string_tracing)
8881 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8882 the packet config says the feature is enabled or disabled.
8883 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8884 (remote_get_trace_status): Use packet_support.
8885 (remote_set_disconnected_tracing): Adjust to check whether the
8886 feature is enabled with packet_support.
8887 (remote_set_trace_buffer_size, remote_use_agent)
8888 (remote_can_use_agent, remote_supports_btrace): Use
8890 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8891 Use packet_config_support.
8892 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8893 the packet config says the feature is enabled or disabled.
8894 (set_range_stepping): Use packet_support.
8896 2014-04-25 Tom Tromey <tromey@redhat.com>
8898 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8901 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8903 * NEWS: Mention support for C99 variable length arrays.
8905 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8907 * ada-lang.c (standard_exc): Expand introductory comment.
8909 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8910 Walfred Tedeschi <walfred.tedeschi@intel.com>
8912 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8914 (amd64_linux_read_description): Add code to handle AVX512 xstate
8915 mask and return respective tdesc.
8916 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8917 and features/i386/x32-avx512-linux.c.
8918 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8919 (amd64_linux_core_read_description): Add code to handle AVX512
8920 xstate mask and return respective tdesc.
8921 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8922 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8924 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8925 (tdesc_amd64_avx512_linux): New prototype.
8926 (tdesc_x32_avx512_linux): Likewise.
8927 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8928 features/i386/x32-avx512.c.
8929 (amd64_ymm_avx512_names): New register names for pseudo
8931 (amd64_ymmh_avx512_names): New register names for raw registers
8933 (amd64_k_names): New register names for K registers.
8934 (amd64_zmmh_names): New register names for ZMM raw registers.
8935 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8936 (amd64_xmm_avx512_names): New register names for XMM16-31
8938 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8940 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8941 if feature is present.
8942 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8943 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8944 (AMD64_NUM_REGS): Adjust to new number of registers.
8945 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8946 registers supplied via XSTATE by AVX512 registers.
8947 (i386_linux_read_description): Add case for AVX512.
8948 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8949 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8950 (i386_linux_core_read_description): Add case for AVX512.
8951 (i386_linux_init_abi): Install supported register note section
8953 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8955 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8956 registers to be number of zmm7h + 1.
8957 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8958 * i386-tdep.c: Include features/i386/i386-avx512.c.
8959 (i386_zmm_names): Add ZMM pseudo register names array.
8960 (i386_zmmh_names): Add ZMM raw register names array.
8961 (i386_k_names): Add K raw register names array.
8962 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8963 registers. AVX512 has 16 more ZMM registers than there are YMM
8965 (i386_zmmh_regnum_p): Add function to look up register number of
8967 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8968 (i386_k_regnum_p): Likewise for K raw registers.
8969 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8970 registers added by AVX512.
8971 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8972 registers added by AVX512.
8973 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8975 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8976 (i386_pseudo_register_name): Add ZMM pseudo registers.
8977 (i386_zmm_type): Construct and return vector registers type for ZMM
8979 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8980 ZMM0-31 pseudo registers and K registers.
8981 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8982 and YMM16-31 registers from register cache.
8983 (i386_pseudo_register_write): Add code to write K, ZMM and
8985 (i386_register_reggroup_p): Add code to include/exclude AVX512
8986 registers in/from respective register groups.
8987 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8988 registers if feature is present in xcr0.
8989 (i386_gdbarch_init): Add code to initialize AVX512 feature
8990 variables in tdep structure, wire in pseudo registers and call
8991 initialize_tdesc_i386_avx512.
8992 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8994 (i386_regnum): Add AVX512 registers.
8995 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8996 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8997 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8998 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9000 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9001 (i386_ymm_avx512_regnum_p): Likewise.
9002 (i386_k_regnum_p): Likewise.
9003 (i386_zmm_regnum_p): Likewise.
9004 (i386_zmmh_regnum_p): Likewise.
9005 * i387-tdep.c : Update year in copyright notice.
9006 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9008 (XSAVE_YMM_AVX512_ADDR): New macro.
9009 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9011 (XSAVE_XMM_AVX512_ADDR): New macro.
9012 (xsave_avx512_k_offset): New table for K register offsets in
9014 (XSAVE_AVX512_K_ADDR): New macro.
9015 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9017 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9018 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9020 (i387_collect_xsave): Add code to collect AVX512 registers from
9022 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9023 of XMM16-31 registers.
9024 (I387_NUM_K_REGS): New define for number of K registers.
9025 (I387_K0_REGNUM): New define for K0 register number.
9026 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9027 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9028 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9030 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9031 (I387_XMM16_REGNUM): New define for XMM16 register number.
9032 (I387_YMM0_REGNUM): New define for YMM0 register number.
9033 (I387_KEND_REGNUM): New define for last K register number.
9034 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9035 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9037 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9039 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9041 * features/Makefile: Add AVX512 related files.
9042 * features/i386/32bit-avx512.xml: New file.
9043 * features/i386/64bit-avx512.xml: Likewise.
9044 * features/i386/amd64-avx512-linux.c: Likewise.
9045 * features/i386/amd64-avx512-linux.xml: Likewise.
9046 * features/i386/amd64-avx512.c: Likewise.
9047 * features/i386/amd64-avx512.xml: Likewise.
9048 * features/i386/i386-avx512-linux.c: Likewise.
9049 * features/i386/i386-avx512-linux.xml: Likewise.
9050 * features/i386/i386-avx512.c: Likewise.
9051 * features/i386/i386-avx512.xml: Likewise.
9052 * features/i386/x32-avx512-linux.c: Likewise.
9053 * features/i386/x32-avx512-linux.xml: Likewise.
9054 * features/i386/x32-avx512.c: Likewise.
9055 * features/i386/x32-avx512.xml: Likewise.
9056 * regformats/i386/amd64-avx512-linux.dat: New file.
9057 * regformats/i386/amd64-avx512.dat: Likewise.
9058 * regformats/i386/i386-avx512-linux.dat: Likewise.
9059 * regformats/i386/i386-avx512.dat: Likewise.
9060 * regformats/i386/x32-avx512-linux.dat: Likewise.
9061 * regformats/i386/x32-avx512.dat: Likewise.
9062 * NEWS: Add note about new support for AVX512.
9065 2014-04-23 Pedro Alves <palves@redhat.com>
9067 * breakpoint.c (insert_bp_location): Tolerate errors if the
9068 breakpoint is set in a user-loaded objfile.
9069 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9070 location is marked shlib_disabled. If the breakpoint is set in a
9071 user-loaded objfile is a GDB-side memory breakpoint, validate it
9072 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9073 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9075 * mem-break.c (memory_validate_breakpoint): New function.
9076 * objfiles.c (userloaded_objfile_contains_address_p): New
9078 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9079 * target.h (memory_validate_breakpoint): New declaration.
9081 2014-04-23 Pedro Alves <palves@redhat.com>
9083 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9084 the breakpoint is set in a shared library, only suppress
9085 errors for software breakpoints, not hardware breakpoints.
9087 2014-04-22 Pedro Alves <palves@redhat.com>
9089 * infrun.c (schedlock_applies): New function, factored out from
9090 find_thread_needs_step_over.
9091 (find_thread_needs_step_over): Use it.
9092 (switch_back_to_stepped_thread): Always clear trap_expected if the
9093 step over is finished. Return early if scheduler locking applies.
9094 Look for the stepping thread and a potential step-over thread with
9096 (currently_stepping_or_nexting_callback): Delete.
9098 2014-04-22 Nick Clifton <nickc@redhat.com>
9100 * NEWS: Mention that ARM sim now supports tracing.
9102 2014-04-22 Yao Qi <yao@codesourcery.com>
9104 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9106 * tracefile.c (tracefile_fetch_registers): ... it. New
9108 * tracefile.h (tracefile_fetch_registers): Declare.
9109 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9110 tracefile_fetch_registers.
9112 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9115 * windows-nat.c (thread_rec): Don't display a warning when
9116 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9117 fails for any reason, set th->suspended to -1, so that we don't
9118 try to resume such a thread. Also, don't return NULL in these
9119 cases, to avoid completely ruin the session due to "PC register is
9120 not available" error.
9121 (do_windows_fetch_inferior_registers): Check errors in
9122 GetThreadContext call.
9123 (windows_continue): Accept an additional argument KILLED; if not
9124 zero, ignore errors in the SetThreadContext call, since the
9125 inferior was killed and is shutting down.
9126 (windows_resume, get_windows_debug_event)
9127 (windows_create_inferior, windows_mourn_inferior)
9128 (windows_kill_inferior): All callers of windows_continue changed
9129 to adjust to its new calling sequence.
9131 2014-04-19 Yao Qi <yao@codesourcery.com>
9133 * ctf.c (ctf_open): Call post_create_inferior.
9135 2014-04-19 Yao Qi <yao@codesourcery.com>
9137 * ctf.c (handle_id): New static variable.
9138 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9139 value. Get the declaration of event "register" and get length
9140 of field "contents".
9142 2014-04-19 Yao Qi <yao@codesourcery.com>
9144 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9146 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9148 * valops.c (oload_method_static): Remove unnecessary argument
9149 METHOD. Update all callers.
9151 2014-04-18 Pedro alves <palves@redhat.com>
9152 Tom Tromey <tromey@redhat.com>
9155 * frame.c (get_prev_frame_1): Rename to ...
9156 (get_prev_frame_always): ... this, and make extern. Adjust.
9157 (skip_artificial_frames): Use get_prev_frame_always.
9158 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9159 (get_frame_unwind_stop_reason): Adjust to rename.
9160 * frame.h (get_prev_frame_always): Declare.
9161 * inline-frame.c: Include frame.h.
9162 (inline_frame_this_id): Use get_prev_frame_always.
9164 2014-04-18 Tristan Gingold <gingold@adacore.com>
9166 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9167 code by using bfd_mach_o_get_base_address.
9169 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9171 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9172 (spu_ax_pseudo_register_collect): New function.
9173 (spu_ax_pseudo_register_push_stack): Likewise.
9174 (spu_dwarf_reg_to_regnum): Likewise.
9175 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9177 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9179 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9180 Replace FRAME argument with FRAME_ID.
9181 * gdbarch.c, gdbarch.h: Regenerate.
9182 * findvar.c (default_value_from_register): Add GDBARCH argument;
9183 replace FRAME by FRAME_ID. No longer call get_frame_id.
9184 (value_from_register): Update call to gdbarch_value_from_register.
9185 * value.h (default_value_from_register): Update prototype.
9186 * s390-linux-tdep.c (s390_value_from_register): Update interface
9187 and call to default_value_from_register.
9188 * spu-tdep.c (spu_value_from_register): Likewise.
9190 * findvar.c (address_from_register): Remove TYPE argument.
9191 Do not call value_from_register; use gdbarch_value_from_register
9192 with null_frame_id instead.
9193 * value.h (address_from_register): Update prototype.
9194 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9195 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9196 address_from_register interface change.
9198 2014-04-17 Yao Qi <yao@codesourcery.com>
9200 * gdbtypes.h: Update comments to link to types and macros'
9203 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9205 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9207 2014-04-16 Keith Seitz <keiths@redhat.com>
9210 * dwarf2read.c (skip_one_die): Check that all relative-offset
9211 sibling DIEs fall within range of the current reader's buffer.
9212 (read_partial_die): Likewise.
9214 2014-04-16 Keith Seitz <keiths@redhat.com>
9217 * cp-namespace.c (lookup_symbol_file): If the type name of
9218 `this' is NULL, return immediately.
9220 2014-04-14 Keith Seitz <keiths@redhat.com>
9223 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9224 from symbol_matches_domain in symtab.c. All local callers
9225 of symbol_matches_domain updated.
9226 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9227 search STRUCT_DOMAIN.
9228 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9229 independently. standard_lookup will do that automatically.
9230 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9231 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9232 (cp_lookup_symbol_in_namespace): Likewise.
9233 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9234 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9235 may return a STRUCT_DOMAIN match.
9236 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9237 * cp-support.c: Include language.h.
9238 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9240 * psymtab.c (match_partial_symbol): Compare the requested
9241 domain with the symbol's domain directly.
9242 (lookup_partial_symbol): Likewise.
9243 * symtab.c (lookup_symbol_in_language): Explain when/why
9244 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9245 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9246 appropriate languages.
9247 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9248 and moved to ada-lang.c
9249 (lookup_block_symbol): Explain that this function only returns
9250 symbol matching the requested DOMAIN.
9251 Compare the requested domain with the symbol's domain directly.
9252 (iterate_over_symbols): Compare the requested domain with the
9253 symbol's domain directly.
9254 * symtab.h (symbol_matches_domain): Remove.
9256 2014-04-14 Tom Tromey <tromey@redhat.com>
9259 * c-exp.y (type_aggregate_p): New function.
9260 (qualified_name, classify_inner_name): Use it.
9261 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9262 and TYPE_TARGET_TYPE of an enum type.
9263 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9265 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9266 handle TYPE_DECLARED_CLASS.
9267 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9269 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9270 * valops.c (enum_constant_from_type): New function.
9271 (value_aggregate_elt): Use it.
9272 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9275 2014-04-14 Tom Tromey <tromey@redhat.com>
9277 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9278 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9280 * value.h (value_aggregate_elt): Update.
9282 2014-04-14 Tom Tromey <tromey@redhat.com>
9284 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9286 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9288 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9289 (evaluate_subexp_standard): Pass noside argument.
9290 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9291 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9292 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9293 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9294 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9296 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9298 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9299 points to a constant blob.
9301 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9303 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9304 property and store it as the high bound and flag the range accordingly.
9305 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9306 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9307 * gdbtypes.h (enum range_flags): New enum.
9308 (struct range_bounds): Add flags member.
9310 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9312 * c-typeprint.c (c_type_print_varspec_suffix): Added
9313 check for not yet resolved high bound. If unresolved, print
9314 "variable length" string to the console instead of random
9317 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9319 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9321 (ada_template_to_fixed_record_type_1): Likewise.
9322 (ada_to_fixed_type_1): Likewise.
9323 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9324 (cp_print_value): Likewise.
9325 * d-valprint.c (dynamic_array_type): Likewise.
9326 * findvar.c (address_of_variable): Likewise.
9327 * jv-valprint.c (java_value_print): Likewise.
9328 * valops.c (value_ind): Likewise.
9329 * value.c (coerce_ref): Likewise.
9331 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9333 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9334 value and retrieve the dynamic type size.
9336 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9338 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9339 passed to sizeof is dynamic evaluate the argument to compute the length.
9341 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9342 Joel Brobecker <brobecker@adacore.com>
9344 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9345 (dwarf2_evaluate_property): New function.
9346 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9347 * dwarf2read.c (attr_to_dynamic_prop): New function.
9348 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9350 * gdbtypes.c: Include dwarf2loc.h.
9351 (is_dynamic_type): New function.
9352 (resolve_dynamic_type): New function.
9353 (resolve_dynamic_bounds): New function.
9354 (get_type_length): New function.
9355 (check_typedef): Use get_type_length to compute type length.
9356 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9357 (TYPE_LOW_BOUND_KIND): New macro.
9358 (is_dynamic_type): New function prototype.
9359 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9360 to resolve dynamic properties of the type. Update comment.
9361 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9363 2014-04-14 Richard Henderson <rth@redhat.com>
9365 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9367 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9368 Doug Evans <xdje42@gmail.com>
9370 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9371 dereference TYPE_CODE_REF values.
9373 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9375 Revert the following changes due to regressions:
9377 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9378 (dwarf2_evaluate_property): New function.
9379 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9380 * dwarf2read.c (attr_to_dynamic_prop): New function.
9381 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9383 * gdbtypes.c: Include dwarf2loc.h.
9384 (is_dynamic_type): New function.
9385 (resolve_dynamic_type): New function.
9386 (resolve_dynamic_bounds): New function.
9387 (get_type_length): New function.
9388 (check_typedef): Use get_type_length to compute type length.
9389 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9390 (TYPE_LOW_BOUND_KIND): New macro.
9391 (is_dynamic_type): New function prototype.
9392 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9393 to resolve dynamic properties of the type. Update comment.
9394 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9396 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9397 passed to sizeof is dynamic evaluate the argument to compute the length.
9399 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9400 value and retrieve the dynamic type size.
9402 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9403 (ada_template_to_fixed_record_type_1): Likewise.
9404 (ada_to_fixed_type_1): Likewise.
9405 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9406 (cp_print_value): Likewise.
9407 * d-valprint.c (dynamic_array_type): Likewise.
9408 * eval.c (evaluate_subexp_with_coercion): Likewise.
9409 * findvar.c (address_of_variable): Likewise.
9410 * jv-valprint.c (java_value_print): Likewise.
9411 * valops.c (value_ind): Likewise.
9412 * value.c (coerce_ref): Likewise.
9414 * c-typeprint.c (c_type_print_varspec_suffix): Added
9415 check for not yet resolved high bound. If unresolved, print
9416 "variable length" string to the console instead of random
9419 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9420 property and store it as the high bound and flag the range accordingly.
9421 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9422 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9423 * gdbtypes.h (enum range_flags): New enum.
9424 (struct range_bounds): Add flags member.
9426 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9427 points to a constant blob.
9429 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9430 (evaluate_subexp_standard): Pass noside argument.
9431 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9432 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9433 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9434 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9435 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9437 2014-04-11 Keith Seitz <keiths@redhat.com>
9440 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9441 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9444 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9446 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9447 (evaluate_subexp_standard): Pass noside argument.
9448 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9449 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9450 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9451 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9452 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9454 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9456 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9457 points to a constant blob.
9459 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9461 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9462 property and store it as the high bound and flag the range accordingly.
9463 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9464 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9465 * gdbtypes.h (enum range_flags): New enum.
9466 (struct range_bounds): Add flags member.
9468 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9470 * c-typeprint.c (c_type_print_varspec_suffix): Added
9471 check for not yet resolved high bound. If unresolved, print
9472 "variable length" string to the console instead of random
9475 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9477 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9478 (ada_template_to_fixed_record_type_1): Likewise.
9479 (ada_to_fixed_type_1): Likewise.
9480 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9481 (cp_print_value): Likewise.
9482 * d-valprint.c (dynamic_array_type): Likewise.
9483 * eval.c (evaluate_subexp_with_coercion): Likewise.
9484 * findvar.c (address_of_variable): Likewise.
9485 * jv-valprint.c (java_value_print): Likewise.
9486 * valops.c (value_ind): Likewise.
9487 * value.c (coerce_ref): Likewise.
9489 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9491 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9492 value and retrieve the dynamic type size.
9494 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9496 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9497 passed to sizeof is dynamic evaluate the argument to compute the length.
9499 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9501 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9502 (dwarf2_evaluate_property): New function.
9503 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9504 * dwarf2read.c (attr_to_dynamic_prop): New function.
9505 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9507 * gdbtypes.c: Include dwarf2loc.h.
9508 (is_dynamic_type): New function.
9509 (resolve_dynamic_type): New function.
9510 (resolve_dynamic_bounds): New function.
9511 (get_type_length): New function.
9512 (check_typedef): Use get_type_length to compute type length.
9513 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9514 (TYPE_LOW_BOUND_KIND): New macro.
9515 (is_dynamic_type): New function prototype.
9516 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9517 to resolve dynamic properties of the type. Update comment.
9518 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9520 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9522 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9523 declaring high/low bounds and change uses accordingly. Call
9524 create_range_type instead of create_static_range_type.
9525 * gdbtypes.c (create_range_type): New function.
9526 (create_range_type): Convert bounds into struct bound_prop and pass
9527 them to create_range_type.
9528 * gdbtypes.h (struct bound_prop): New struct.
9529 (create_range_type): New function prototype.
9530 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9531 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9532 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9534 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9536 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9538 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9539 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9540 * ada-lang.c: All uses of create_range_type updated.
9541 * coffread.c: All uses of create_range_type updated.
9542 * dwarf2read.c: All uses of create_range_type updated.
9543 * f-exp.y: All uses of create_range_type updated.
9544 * m2-valprint.c: All uses of create_range_type updated.
9545 * mdebugread.c: All uses of create_range_type updated.
9546 * stabsread.c: All uses of create_range_type updated.
9547 * valops.c: All uses of create_range_type updated.
9548 * valprint.c: All uses of create_range_type updated.
9550 2014-04-10 Pedro Alves <palves@redhat.com>
9552 * breakpoint.c (single_step_breakpoints)
9553 (single_step_gdbarch): Move up in the file.
9554 (one_breakpoint_xfer_memory): New function, factored out from ...
9555 (breakpoint_xfer_memory): ... here. Also process single-step
9558 2014-04-09 Tristan Gingold <gingold@adacore.com>
9560 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9562 (darwin_decode_exception_message): Free port only after use.
9564 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9566 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9567 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9568 when setting the size of call_length.
9570 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9572 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9573 dereference TYPE_CODE_REF values.
9575 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9577 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9578 end of warning message.
9580 2014-04-03 Doug Evans <dje@google.com>
9582 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9583 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9585 2014-04-02 Alan Modra <amodra@gmail.com>
9587 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9588 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9589 (struct symbol_file_add_from_memory_args): Add size field.
9590 (find_vdso_size): New function.
9591 (add_vsyscall_page): Attempt to find vdso size.
9593 2014-04-01 Doug Evans <dje@google.com>
9595 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9597 2014-04-01 Tristan Gingold <gingold@adacore.com>
9599 * darwin-nat.c (darwin_encode_reply): Add prototype.
9600 (darwin_decode_exception_message): Reply to unknown inferiors.
9601 (darwin_decode_message): Handle message by id. Ignore message
9602 to unknown inferior.
9603 (darwin_wait): Discard unknown messages, add debug trace.
9605 2014-03-31 Doug Evans <dje@google.com>
9607 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9610 2014-03-31 Doug Evans <dje@google.com>
9612 New option "set print symbol-loading".
9614 * solib.c (solib_read_symbols): Only print symbol loading messages
9616 (solib_add): If symbol loading is in "brief" mode, notify user
9617 symbols are being loaded.
9618 (reload_shared_libraries_1): Ditto.
9619 * symfile.c (print_symbol_loading_off): New static global.
9620 (print_symbol_loading_brief): New static global.
9621 (print_symbol_loading_full): New static global.
9622 (print_symbol_loading_enums): New static global.
9623 (print_symbol_loading): New static global.
9624 (print_symbol_loading_p): New function.
9625 (symbol_file_add_with_addrs): Only print symbol loading messages
9627 (_initialize_symfile): Register "print symbol-loading" set/show
9629 * symfile.h (print_symbol_loading_p): Declare.
9631 2014-03-30 Doug Evans <xdje42@gmail.com>
9633 * infrun.c (set_last_target_status): New function.
9634 (handle_inferior_event): Call it.
9636 2014-03-30 Doug Evans <xdje42@gmail.com>
9638 * inferior.h (enum stop_kind): Improve comment.
9640 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9642 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9643 a reference, strip the reference layer before calling
9644 the lang_ops value_has_mutated callback.
9646 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9648 Remove some globals from our parser.
9649 * language.c (unk_lang_parser): Add "struct parser_state"
9651 * language.h (struct language_defn) <la_parser>: Likewise.
9652 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9653 (initialize_expout): Add "struct parser_state" argument.
9654 Rewrite function to use the parser state.
9655 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9656 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9657 write_exp_elt_longcst, write_exp_elt_dblcst,
9658 write_exp_elt_decfloatcst, write_exp_elt_type,
9659 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9660 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9661 write_dollar_variable): Likewise.
9662 (parse_exp_in_context_1): Use parser state.
9663 (insert_type_address_space): Add "struct parser_state" argument.
9665 (increase_expout_size): New function.
9666 * parser-defs.h: Forward declare "struct language_defn" and
9667 "struct parser_state".
9668 (expout, expout_size, expout_ptr): Remove extern declarations.
9669 (parse_gdbarch, parse_language): Rewrite macro declarations to
9670 accept the parser state.
9671 (struct parser_state): New struct.
9672 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9673 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9674 write_exp_elt_decfloatcst, write_exp_elt_type,
9675 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9676 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9677 write_exp_msymbol, write_dollar_variable,
9678 mark_struct_expression, insert_type_address_space): Add "struct
9679 parser_state" argument.
9680 (increase_expout_size): New function.
9681 * utils.c (do_clear_parser_state): New function.
9682 (make_cleanup_clear_parser_state): Likewise.
9683 * utils.h (make_cleanup_clear_parser_state): New function
9685 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9686 Update calls to write_exp* in order to pass the parser state.
9687 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9688 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9689 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9690 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9691 * stap-probe.c (stap_parse_register_operand): Likewise.
9692 (stap_parse_single_operand): Likewise.
9693 (stap_parse_argument_1): Likewise.
9694 (stap_parse_argument): Use parser state.
9695 * stap-probe.h: Include "parser-defs.h".
9696 (struct stap_parse_info) <pstate>: New field.
9697 * c-exp.y (parse_type): Rewrite to use parser state.
9698 (yyparse): Redefine to c_parse_internal.
9699 (pstate): New global variable.
9700 (parse_number): Add "struct parser_state" argument.
9701 (write_destructor_name): Likewise.
9702 (type_exp): Update calls to write_exp* and similars in order to
9704 (exp1, exp, variable, qualified_name, space_identifier,
9705 typename, typebase): Likewise.
9706 (write_destructor_name, parse_number, lex_one_token,
9707 classify_name, classify_inner_name, c_parse): Add "struct
9708 parser_state" argument. Update function to use parser state.
9709 * c-lang.h: Forward declare "struct parser_state".
9710 (c_parse): Add "struct parser_state" argument.
9711 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9712 (yyparse): Redefine macro to ada_parse_internal.
9713 (pstate): New variable.
9714 (write_int, write_object_renaming, write_var_or_type,
9715 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9716 type_int, type_long, type_long_long, type_float, type_double,
9717 type_long_double, type_char, type_boolean, type_system_address):
9718 Add "struct parser_state" argument.
9719 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9720 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9721 var_or_type, aggregate, aggregate_component_list,
9722 positional_list, others, component_group,
9723 component_associations): Update calls to write_exp* and similar
9724 functions in order to use parser state.
9725 (ada_parse, write_var_from_sym, write_int,
9726 write_exp_op_with_string, write_object_renaming,
9727 find_primitive_type, write_selectors, write_ambiguous_var,
9728 write_var_or_type, write_name_assoc, type_int, type_long,
9729 type_long_long, type_float, type_double, type_long_double,
9730 type_char, type_boolean, type_system_address): Add "struct
9731 parser_state" argument. Adjust function to use parser state.
9732 * ada-lang.c (parse): Likewise.
9733 * ada-lang.h: Forward declare "struct parser_state".
9734 (ada_parse): Add "struct parser_state" argument.
9735 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9736 calls to both functions.
9737 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9739 (yyparse): Redefine macro to f_parse_internal.
9740 (pstate): New variable.
9741 (parse_number): Add "struct parser_state" argument.
9742 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9743 and similars in order to use parser state.
9744 (parse_number): Adjust code to use parser state.
9746 (f_parse): New function.
9747 * f-lang.h: Forward declare "struct parser_state".
9748 (f_parse): Add "struct parser_state" argument.
9749 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9751 (yyparse): Redefine macro for java_parse_internal.
9752 (pstate): New variable.
9753 (push_expression_name, push_expression_name, insert_exp): Add
9754 "struct parser_state" argument.
9755 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9756 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9757 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9758 PostIncrementExpression, PostDecrementExpression,
9759 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9760 UnaryExpressionNotPlusMinus, CastExpression,
9761 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9762 RelationalExpression, EqualityExpression, AndExpression,
9763 ExclusiveOrExpression, InclusiveOrExpression,
9764 ConditionalAndExpression, ConditionalOrExpression,
9765 ConditionalExpression, Assignment, LeftHandSide): Update
9766 calls to write_exp* and similars in order to use parser state.
9767 (parse_number): Ajust code to use parser state.
9769 (java_parse): New function.
9770 (push_variable): Add "struct parser_state" argument. Adjust
9771 code to user parser state.
9772 (push_fieldnames, push_qualified_expression_name,
9773 push_expression_name, insert_exp): Likewise.
9774 * jv-lang.h: Forward declare "struct parser_state".
9775 (java_parse): Add "struct parser_state" argument.
9776 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9778 (yyparse): Redefine macro to m2_parse_internal.
9779 (pstate): New variable.
9780 (type_exp, exp, fblock, variable, type): Update calls to
9781 write_exp* and similars to use parser state.
9783 (m2_parse): New function.
9784 * m2-lang.h: Forward declare "struct parser_state".
9785 (m2_parse): Add "struct parser_state" argument.
9786 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9787 * objc-lang.h: Forward declare "struct parser_state".
9788 (end_msglist): Add "struct parser_state" argument.
9789 * p-exp.y (parse_type): Rewrite macro to use parser state.
9790 (yyparse): Redefine macro to pascal_parse_internal.
9791 (pstate): New variable.
9792 (parse_number): Add "struct parser_state" argument.
9793 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9794 write_exp* and similars in order to use parser state.
9795 (parse_number, yylex): Adjust code to use parser state.
9796 (pascal_parse): New function.
9797 * p-lang.h: Forward declare "struct parser_state".
9798 (pascal_parse): Add "struct parser_state" argument.
9799 * go-exp.y (parse_type): Rewrite macro to use parser state.
9800 (yyparse): Redefine macro to go_parse_internal.
9801 (pstate): New variable.
9802 (parse_number): Add "struct parser_state" argument.
9803 (type_exp, exp1, exp, variable, type): Update calls to
9804 write_exp* and similars in order to use parser state.
9805 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9806 to use parser state.
9807 (go_parse): Likewise.
9808 * go-lang.h: Forward declare "struct parser_state".
9809 (go_parse): Add "struct parser_state" argument.
9811 2014-03-27 Doug Evans <dje@google.com>
9813 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9815 2014-03-27 Doug Evans <dje@google.com>
9817 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9818 Remove argument abbrev_section. All callers updated.
9820 2014-03-27 Doug Evans <dje@google.com>
9822 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9823 addr_base, ranges_base.
9825 2014-03-26 Keith Seitz <keiths@redhat.com>
9827 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9828 types, not VAR_DOMAIN.
9830 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9832 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9834 * features/nios2-linux.c: Regenerated.
9835 * features/nios2.c: Regenerated.
9837 2014-03-25 Pedro Alves <palves@redhat.com>
9839 * cli/cli-script.c (script_from_file): Force the interpreter to
9842 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9844 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9845 small stack allocation.
9847 2014-03-24 Tristan Gingold <gingold@adacore.com>
9849 * darwin-nat.c (exc_server): Remove unused prototype.
9850 (darwin_dump_message): Correctly display data on x86_64.
9851 (darwin_encode_reply): Fix style.
9852 Add comments and fix indentation.
9854 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9856 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9858 2014-03-22 Doug Evans <xdje42@gmail.com>
9860 * infcmd.c: Whitespace fixes.
9861 (interrupt_command): Merge two function comments into one.
9863 2014-03-22 Doug Evans <xdje42@gmail.com>
9865 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9868 2014-03-22 Yao Qi <yao@codesourcery.com>
9870 * remote.c (target_read_live_memory): Remove.
9871 (memory_xfer_live_readonly_partial): Rename it to
9872 remote_xfer_live_readonly_partial. Remove argument 'object'.
9873 All callers updated. Call remote_read_bytes_1
9874 instead of target_read_live_memory.
9875 * tracepoint.c (set_traceframe_number): Remove.
9876 (make_cleanup_restore_traceframe_number): Likewise .
9877 * tracepoint.h (set_traceframe_number): Remove declaration.
9878 (make_cleanup_restore_traceframe_number): Likewise.
9880 2014-03-22 Yao Qi <yao@codesourcery.com>
9882 * remote.c (remote_read_bytes): Move code on reading from the
9884 (remote_read_bytes_1): ... here. New function.
9886 2014-03-22 Yao Qi <yao@codesourcery.com>
9888 * ctf.c (ctf_xfer_partial): Check the return value of
9889 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9890 return TARGET_XFER_UNAVAILABLE.
9891 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9892 * target.c (target_read_live_memory): Move it to remote.c.
9893 (memory_xfer_live_readonly_partial): Likewise.
9894 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9895 * remote.c (target_read_live_memory): Moved from target.c.
9896 (memory_xfer_live_readonly_partial): Likewise.
9897 (remote_read_bytes): Factored out from
9898 memory_xfer_partial_1.
9900 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9902 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9905 2014-03-21 Pedro Alves <palves@redhat.com>
9907 * infrun.c (normal_stop): Extend comment.
9909 2014-03-21 Hui Zhu <hui@codesourcery.com>
9910 Pedro Alves <palves@redhat.com>
9912 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9914 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9915 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9916 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9918 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9920 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9921 `z' formatted output modifier.
9923 2014-03-20 Tom Tromey <tromey@redhat.com>
9924 Sergio Durigan Junior <sergiodj@redhat.com>
9926 * probe.c (parse_probes): Turn assert into an ordinary error.
9927 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9928 exceptions when parsing probes. Rearrange the code for clarity.
9930 2014-03-20 Tom Tromey <tromey@redhat.com>
9933 * top.c (execute_command): Only dispatch events if the command
9936 2014-03-20 Tom Tromey <tromey@redhat.com>
9939 * infcall.c: Include event-top.h.
9940 (run_inferior_call): Call async_disable_stdin if needed.
9942 2014-03-20 Pedro Alves <palves@redhat.com>
9944 * infrun.c (prepare_to_proceed): Delete.
9945 (thread_still_needs_step_over): New function.
9946 (find_thread_needs_step_over): New function.
9947 (proceed): If the current thread needs a step-over, set its
9948 steping_over_breakpoint flag. Adjust to use
9949 find_thread_needs_step_over instead of prepare_to_proceed.
9950 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9951 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9953 (switch_back_to_stepped_thread): Step over breakpoints of all
9954 threads not the stepping thread, before switching back to the
9957 2014-03-20 Pedro Alves <palves@redhat.com>
9959 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9961 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9962 * infrun.c (saved_singlestep_ptid)
9963 (stepping_past_singlestep_breakpoint): Delete.
9964 (resume): Remove stepping_past_singlestep_breakpoint handling.
9965 (proceed): Store the prev_pc of the stepping thread too.
9966 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9968 (enum infwait_states): Delete infwait_thread_hop_state.
9969 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9971 (handle_inferior_event): Adjust.
9972 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9973 handling and the thread-hop code. Before removing single-step
9974 breakpoints, check whether the thread hit a single-step breakpoint
9975 of another thread. If it did, the trap is not a random signal.
9976 (switch_back_to_stepped_thread): If the event thread hit a
9977 single-step breakpoint, unblock it before switching to the
9978 stepping thread. Handle the case of the stepped thread having
9980 (keep_going): Handle the case of the current thread moving past a
9981 single-step breakpoint.
9983 2014-03-20 Pedro Alves <palves@redhat.com>
9986 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9987 are being stepped over.
9988 (breakpoint_address_match): Make extern.
9989 * breakpoint.h (breakpoint_address_match): New declaration.
9990 * inferior.h (stepping_past_instruction_at): New declaration.
9991 * infrun.c (struct step_over_info): New type.
9992 (step_over_info): New global.
9993 (set_step_over_info, clear_step_over_info)
9994 (stepping_past_instruction_at): New functions.
9995 (handle_inferior_event): Clear the step-over info when
9996 trap_expected is cleared.
9997 (resume): Remove now stale comment.
9998 (clear_proceed_status): Clear step-over info.
9999 (proceed): Adjust step-over handling to set or clear the step-over
10000 info instead of removing all breakpoints.
10001 (handle_signal_stop): When setting up a thread-hop, don't remove
10003 (stop_stepping): Clear step-over info.
10004 (keep_going): Adjust step-over handling to set or clear step-over
10005 info and then always inserting breakpoints, instead of removing
10006 all breakpoints when stepping over one.
10008 2014-03-20 Pedro Alves <palves@redhat.com>
10010 * infrun.c (previous_inferior_ptid): Adjust comment.
10011 (deferred_step_ptid): Delete.
10012 (infrun_thread_ptid_changed, prepare_to_proceed)
10013 (init_wait_for_inferior): Adjust.
10014 (handle_signal_stop): Delete deferred_step_ptid handling.
10016 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10019 * defs.h (sync_quit_force_run): New declaration.
10020 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10021 * event-top.c (async_sigterm_handler): New declaration.
10022 (async_sigterm_token): New variable.
10023 (async_init_signals): Create also async_sigterm_token.
10024 (async_sigterm_handler): New function.
10025 (sync_quit_force_run): New variable.
10026 (handle_sigterm): Replace quit_force call by other calls.
10027 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10029 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10031 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10032 offset into SPE pseudo registers.
10034 2014-03-18 Pedro Alves <palves@redhat.com>
10037 * inferior.h (print_stop_event): Declare.
10038 * infrun.c (print_stop_event): New, factored out from ...
10039 (normal_stop): ... this.
10040 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10041 of bpstat_print/print_stack_frame.
10043 2014-03-17 Tom Tromey <tromey@redhat.com>
10045 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10047 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10049 * ada-lang.c (decode_constrained_packed_array): Perform a
10050 minimal coercion for reference with coerce_ref instead of
10053 2014-03-17 Tristan Gingold <gingold@adacore.com>
10055 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10056 (darwin_solib_create_inferior_hook): Emit a warning if version
10059 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10061 * python/py-value.c (get_field_flag): Cast flag_name argument to
10062 PyObject_GetAttrString to support Python 2.4.
10064 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10066 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10067 (Global Maintainers): Remove Jan Kratochvil.
10069 2014-03-14 Pedro Alves <palves@redhat.com>
10071 * inferior.h (terminal_ours_for_output): Rename to ...
10072 (child_terminal_ours_for_output): ... this.
10073 (terminal_save_ours): Rename to ...
10074 (child_terminal_save_ours): ... this.
10075 (terminal_ours): Rename to ...
10076 (child_terminal_ours): ... this.
10077 (terminal_inferior): Rename to ...
10078 (child_terminal_inferior): ... this.
10079 (terminal_init_inferior): Rename to ...
10080 (child_terminal_init_inferior): ... this.
10081 (terminal_init_inferior_with_pgrp): Rename to ...
10082 (child_terminal_init_inferior_with_pgrp): ... this.
10083 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10084 (child_terminal_init_with_pgrp): ... this.
10085 (terminal_save_ours): Rename to ...
10086 (child_terminal_save_ours): ... this.
10087 (terminal_init_inferior): Rename to ...
10088 (child_terminal_init): ... this. Adjust.
10089 (terminal_inferior): Rename to ...
10090 (child_terminal_inferior): ... this.
10091 (terminal_ours_for_output): Rename to ...
10092 (child_terminal_ours_for_output): ... this. Adjust.
10093 (terminal_ours): Rename to ...
10094 (child_terminal_ours): ... this.
10095 (terminal_ours_1): Rename to ...
10096 (child_terminal_ours_1): ... this. Adjust.
10097 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10098 * windows-nat.c (do_initial_windows_stuff): Adjust.
10099 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10100 (gnu_terminal_init): ... this. Adjust.
10101 (gnu_target): Adjust.
10102 * inf-child.c (inf_child_target): Adjust.
10104 2014-03-13 Doug Evans <xdje42@gmail.com>
10107 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10110 2014-03-13 Doug Evans <xdje42@gmail.com>
10112 * value.c (record_latest_value): Call release_value_or_incref
10113 instead of release_value.
10115 2014-03-13 Pedro Alves <palves@redhat.com>
10117 * procfs.c (procfs_target): Don't override to_shortname,
10118 to_longname or to_doc.
10120 2014-03-13 Pedro Alves <palves@redhat.com>
10122 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10123 Unix in user visible strings.
10125 2014-03-12 Stan Shebs <stan@codesourcery.com>
10127 * gdbtypes.h: Annotate comments for Doxygen, add a page
10128 block comment with some general info.
10130 2014-03-12 Pedro Alves <palves@redhat.com>
10132 * infcmd.c (prepare_execution_command): New function, factored out
10133 from several execution commands.
10134 (run_command_1, continue_command, step_1, jump_command)
10135 (signal_command, until_command, advance_command, finish_command)
10136 (attach_command): Use prepare_execution_command.
10138 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10140 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10141 (MAX_BPTS): Define.
10142 (MAX_WPTS): Define.
10143 (struct arm_linux_thread_points): Removed.
10144 (struct arm_linux_process_info): New.
10145 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10146 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10147 (arm_linux_find_breakpoints_by_tid): Removed.
10148 (struct arch_lwp_info): New.
10149 (arm_linux_find_process_pid): New functions.
10150 (arm_linux_add_process): New functions.
10151 (arm_linux_process_info_get): New functions.
10152 (arm_linux_forget_process): New function.
10153 (arm_linux_get_debug_reg_state): New function.
10154 (struct update_registers_data): New.
10155 (update_registers_callback): New function.
10156 (arm_linux_insert_hw_breakpoint1): Updated.
10157 (arm_linux_remove_hw_breakpoint1): Updated.
10158 (arm_linux_insert_hw_breakpoint): Updated.
10159 (arm_linux_remove_hw_breakpoint): Updated.
10160 (arm_linux_insert_watchpoint): Updated.
10161 (arm_linux_remove_watchpoint): Updated.
10162 (arm_linux_new_thread): Updated.
10163 (arm_linux_prepare_to_resume): New function.
10164 (arm_linux_new_fork): New function.
10165 (_initialize_arm_linux_nat): Updated.
10167 2014-03-12 Pedro Alves <palves@redhat.com>
10169 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10171 2014-03-12 Tom Tromey <tromey@redhat.com>
10173 * inf-child.c (return_zero): New function.
10174 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10175 * aix-thread.c (aix_thread_inferior_created): New function.
10176 (aix_thread_attach): Remove.
10177 (init_aix_thread_ops): Don't set to_attach.
10178 (_initialize_aix_thread): Register inferior_created observer.
10179 * corelow.c (init_core_ops): Don't set to_attach or
10180 to_create_inferior.
10181 * exec.c (init_exec_ops): Don't set to_attach or
10182 to_create_inferior.
10183 * infcmd.c (run_command_1): Use find_run_target. Make direct
10185 (attach_command): Use find_attach_target. Make direct target
10187 * record-btrace.c (init_record_btrace_ops): Don't set
10188 to_create_inferior.
10189 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10191 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10192 set to_create_inferior.
10193 * target.c (complete_target_initialization): Add assertion.
10194 (target_create_inferior): Remove.
10195 (find_default_attach, find_default_create_inferior): Remove.
10196 (find_attach_target, find_run_target): New functions.
10197 (find_default_is_async_p, find_default_can_async_p)
10198 (target_supports_non_stop, target_attach): Remove.
10199 (init_dummy_target): Don't set to_create_inferior or
10200 to_supports_non_stop.
10201 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10202 TARGET_DEFAULT_FUNC.
10203 <to_create_inferior>: Add comment.
10204 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10205 TARGET_DEFAULT_RETURN.
10206 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10207 (find_attach_target, find_run_target): Declare.
10208 (target_create_inferior): Remove.
10209 (target_has_execution_1): Update comment.
10210 (target_supports_non_stop): Remove.
10211 * target-delegates.c: Rebuild.
10213 2014-03-12 Pedro Alves <palves@redhat.com>
10215 * inf-child.h: Update comment to not mention Unix.
10217 2014-03-12 Pedro Alves <palves@redhat.com>
10219 * inf-child.c: Update top comment to not mention Unix. Add
10220 generic comment describing how this target is meant to be used.
10221 (inf_child_post_attach, inf_child_post_startup_inferior)
10222 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10225 2014-03-12 Pedro Alves <palves@redhat.com>
10227 * nto-procfs.c: Include inf-child.h.
10228 (procfs_ops): Delete global.
10229 (procfs_can_run): Delete method.
10230 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10231 target pointer instead of referencing procfs_ops.
10232 (procfs_prepare_to_store): Delete.
10233 (init_procfs_ops): Delete function.
10234 (procfs_target): New function, based on init_procfs_ops, but
10235 inherit inf_child_target.
10236 (_initialize_procfs): Use procfs_target.
10238 2014-03-12 Pedro Alves <palves@redhat.com>
10240 * windows-nat.c: Include inf-child.h.
10241 (windows_ops): Delete global.
10242 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10244 (init_windows_ops): Delete function.
10245 (windows_target): New function, based on init_windows_ops, but
10246 inherit inf_child_target.
10247 (_initialize_windows_nat): Use windows_target. Install x86
10248 specific target methods here.
10250 2014-03-10 Doug Evans <xdje42@gmail.com>
10252 * guile/guile.c (call_initialize_gdb_module): New function.
10253 (initialize_guile): Replace call to scm_init_guile with call to
10256 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10258 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10259 in call to TYPE_CODE macro.
10261 2014-03-10 Jerome Guitton <guitton@adacore.com>
10263 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10264 Resolve tagged types to full view.
10266 2014-03-10 Hui Zhu <hui@codesourcery.com>
10268 * target.h (target_insert_breakpoint): Remove "hardware" from its
10271 2014-03-07 Doug Evans <dje@google.com>
10273 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10275 2014-03-07 Doug Evans <dje@google.com>
10277 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10278 Remove unused local comp_dir_attr. Assert exactly one of
10279 stub_comp_unit_die, stub_comp_dir is non-NULL.
10281 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10283 * target.h (complete_target_initialization, add_target):
10286 2014-03-07 Pedro Alves <palves@redhat.com>
10288 * go32-nat.c: Include inf-child.h.
10289 (go32_ops): Delete global.
10290 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10292 (go32_create_inferior): Push the passed in target pointer instead
10293 of referencing go32_ops.
10294 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10295 (go32_target): New function, based on init_go32_ops, but inherit
10297 (_initialize_go32_nat): Use go32_target. Move parts of
10298 init_go32_ops here.
10300 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10302 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10303 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10304 SYMBOL_VALUE_ADDRESS.
10305 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10307 2014-03-06 Yao Qi <yao@codesourcery.com>
10309 * breakpoint.c (get_tracepoint_by_number): Remove argument
10310 optional_p. All callers updated. Adjust comments. Update
10312 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10314 2014-03-06 Yao Qi <yao@codesourcery.com>
10316 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10317 early if get_number returns zero. Use 'p' instead of 'args'.
10319 2014-03-06 Yao Qi <yao@codesourcery.com>
10321 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10324 2014-03-06 Yao Qi <yao@codesourcery.com>
10326 PR breakpoints/16508
10327 * tracepoint.c (check_trace_running): New function.
10328 (trace_find_command): Move code to check_trace_running and
10329 call check_trace_running.
10330 (trace_find_pc_command): Likewise.
10331 (trace_find_tracepoint_command): Likewise.
10332 (trace_find_line_command): Likewise.
10333 (trace_find_range_command): Likewise.
10334 * tracepoint.h (check_trace_running): Likewise.
10335 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10337 2014-03-06 Yao Qi <yao@codesourcery.com>
10339 * target.h (struct target_ops) <to_traceframe_info>: Use
10340 TARGET_DEFAULT_NORETURN (tcomplain ()).
10341 * target-delegates.c: Regenerated.
10343 2014-03-05 Pedro Alves <palves@redhat.com>
10346 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10347 void. Update comment.
10348 (dcache_xfer_memory): Delete.
10349 (dcache_read_memory_partial): New, based on the read bits of
10350 dcache_xfer_memory.
10351 (dcache_update): Add status parameter. Use ULONGEST for len, and
10352 adjust. Discard cache lines if the reason for the update was
10354 * dcache.h (dcache_xfer_memory): Delete declaration.
10355 (dcache_read_memory_partial): New declaration.
10356 (dcache_update): Update prototype.
10357 * target.c (raw_memory_xfer_partial): Update the dcache here.
10358 (memory_xfer_partial_1): Don't handle dcache writes here.
10360 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10362 * remote-sim.c (gdbsim_load): Add const to prog.
10364 2014-03-03 Tom Tromey <tromey@redhat.com>
10366 * elfread.c (probe_key): Change to bfd_data.
10367 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10368 now per-BFD, not per-objfile.
10369 * stap-probe.c (stap_probe_destroy): Update comment.
10370 (handle_stap_probe): Allocate on the per-BFD obstack.
10372 2014-03-03 Tom Tromey <tromey@redhat.com>
10374 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10375 * breakpoint.c (create_longjmp_master_breakpoint): Use
10377 (add_location_to_breakpoint, bkpt_probe_insert_location)
10378 (bkpt_probe_remove_location): Update.
10379 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10380 * elfread.c (elf_symfile_relocate_probe): Remove.
10381 (elf_probe_fns): Update.
10382 (insert_exception_resume_breakpoint): Change type of "probe"
10383 parameter to bound_probe.
10384 (check_exception_resume): Update.
10385 * objfiles.c (objfile_relocate1): Don't relocate probes.
10386 * probe.c (bound_probe_s): New typedef.
10387 (parse_probes): Use get_probe_address. Set sal's objfile.
10388 (find_probe_by_pc): Return a bound_probe.
10389 (collect_probes): Return a VEC(bound_probe_s).
10390 (compare_probes): Update.
10391 (gen_ui_out_table_header_info): Change type of "probes"
10393 (info_probes_for_ops): Update.
10394 (get_probe_address): New function.
10395 (probe_safe_evaluate_at_pc): Update.
10396 * probe.h (struct probe_ops) <get_probe_address>: New field.
10397 <set_semaphore, clear_semaphore>: Add objfile parameter.
10398 (struct probe) <objfile>: Remove field.
10400 <address>: Update comment.
10401 (struct bound_probe): New.
10402 (find_probe_by_pc): Return a bound_probe.
10403 (get_probe_address): Declare.
10404 * solib-svr4.c (struct probe_and_action) <address>: New field.
10405 (hash_probe_and_action, equal_probe_and_action): Update.
10406 (register_solib_event_probe): Add address parameter.
10407 (solib_event_probe_at): Update.
10408 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10410 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10411 (stap_get_probe_address): New function.
10412 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10413 (compile_probe_arg): Update.
10414 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10416 (handle_stap_probe): Don't relocate the probe.
10417 (stap_relocate): Remove.
10418 (stap_gen_info_probes_table_values): Update.
10419 (stap_probe_ops): Remove stap_relocate.
10420 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10421 (debug_sym_probe_fns): Update.
10422 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10423 * symtab.c (init_sal): Use memset.
10424 * symtab.h (struct symtab_and_line) <objfile>: New field.
10425 * tracepoint.c (start_tracing, stop_tracing): Update.
10427 2014-03-03 Tom Tromey <tromey@redhat.com>
10429 * probe.h (parse_probes, find_probe_by_pc)
10430 (find_probes_in_objfile): Fix comments.
10432 2014-03-02 Doug Evans <xdje42@gmail.com>
10434 * infrun.c (handle_signal_stop): Replace test for
10435 TARGET_WAITKIND_STOPPED with an assert.
10437 2014-03-02 Doug Evans <xdje42@gmail.com>
10439 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10441 2014-03-02 Doug Evans <xdje42@gmail.com>
10443 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10445 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10447 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10449 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10451 * i386obsd-nat.c: Include "obsd-nat.h".
10452 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10454 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10456 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10458 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10460 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10462 * mips64obsd-nat.c: Include "obsd-nath".
10463 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10465 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10467 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10469 * amd64obsd-nat.c: Include "obsd-nat,h.
10470 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10472 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10474 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10476 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10477 (find_overload_match): Update call to find_oload_champ.
10478 (find_oload_champ_namespace_loop): Likewise
10480 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10482 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10484 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10485 * config/sparc/obsd64.mh: New file.
10486 * sparc64obsd-nat.c: New file.
10488 * obsd-nat.h: New file.
10489 * obsd-nat.c: New file.
10490 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10491 (ALLDEPFILES): Add obsd-nat.c.
10493 2014-02-28 Tom Tromey <tromey@redhat.com>
10495 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10496 * cli-out.h (cli_ui_out_impl): Now const.
10497 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10498 * ui-out.c (struct ui_out) <impl>: Now const.
10499 (default_ui_out_impl): Now const.
10500 (ui_out_new): Make 'impl' parameter const.
10501 * ui-out.h (ui_out_new): Update.
10503 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10505 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10507 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10509 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10511 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10513 Additional PR 8882 fix.
10514 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10516 2014-02-27 Pedro Alves <palves@redhat.com>
10518 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10521 2014-02-27 Pedro Alves <palves@redhat.com>
10524 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10525 * nat/linux-waitpid.c: Include string.h.
10526 (status_to_str): Moved here and made extern.
10527 * nat/linux-waitpid.h (status_to_str): New declaration.
10529 2014-02-27 Hui Zhu <hui@codesourcery.com>
10532 * infrun.c (ptid_match): Move ...
10533 * common/ptid.c (ptid_match): ... here.
10534 * inferior.h (ptid_match): Move ...
10535 * common/ptid.h (ptid_match): ... here.
10537 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10539 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10540 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10543 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10545 * obsd-tdep.c (obsd_auxv_parse): New function.
10546 (obsd_init_abi): Set auxv_parse.
10548 * gdbarch.sh (auxv_parse): New.
10549 * gdbarch.h: Regenerated.
10550 * gdbarch.c: Regenerated.
10551 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10553 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10555 * guile/scm-value.c (gdbscm_history_append_x): New function.
10556 (value_functions): Add it.
10558 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10560 * dwarf2read.c (attr_value_as_address): New function.
10561 (dwarf2_find_base_address, read_call_site_scope): Use
10562 attr_value_as_address in place of DW_ADDR.
10563 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10564 the low and high addresses. Slight rework of the handling
10565 of the high pc being a constant form, and limit it to
10566 DWARF verson 4 or higher.
10567 (dwarf2_record_block_ranges): Likewise.
10568 (read_partial_die): Likewise.
10569 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10571 2014-02-26 Tom Tromey <tromey@redhat.com>
10573 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10575 2014-02-26 Tom Tromey <tromey@redhat.com>
10577 * elfread.c (elf_read_minimal_symbols): Return early if
10578 minimal symbols have already been read. Add "ei" parameter.
10579 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10580 * minsyms.c (prim_record_minimal_symbol_full): Update.
10581 * objfiles.h (struct objstats) <n_minsyms>: Move...
10582 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10583 * symmisc.c (print_objfile_statistics): Update.
10585 2014-02-26 Tom Tromey <tromey@redhat.com>
10587 * elfread.c (elf_read_minimal_symbols): New function, from
10589 (elf_symfile_read): Call it.
10591 2014-02-26 Tom Tromey <tromey@redhat.com>
10593 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10594 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10595 (lookup_minimal_symbol_solib_trampoline)
10596 (lookup_minimal_symbol_by_pc_section_1)
10597 (lookup_minimal_symbol_and_objfile): Update.
10598 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10599 Don't allocate a minimal symbol if minsyms have already been read.
10600 (build_minimal_symbol_hash_tables): Update.
10601 (install_minimal_symbols): Do nothing if minsyms already read.
10602 Use the per-BFD obstack.
10603 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10604 * objfiles.c (allocate_objfile): Call
10605 terminate_minimal_symbol_table later.
10606 (have_minimal_symbols): Update.
10607 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10608 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10609 Move from struct objfile.
10610 <minsyms_read>: New field.
10611 (struct objfile) <msymbols, minimal_symbol_count,
10612 msymbol_hash, msymbol_demangled_hash>: Move.
10613 (ALL_OBJFILE_MSYMBOLS): Update.
10614 * symfile.c (read_symbols): Set minsyms_read.
10615 (reread_symbols): Update.
10616 * symmisc.c (dump_objfile, dump_msymbols): Update.
10618 2014-02-26 Tom Tromey <tromey@redhat.com>
10620 * minsyms.c (msymbols_sort): Remove.
10621 * minsyms.h (msymbols_sort): Remove.
10622 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10623 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10624 * elfread.c (elf_symtab_read): Don't add section offsets.
10625 * xcoffread.c (record_minimal_symbol): Don't add section offset
10626 to minimal symbol address.
10627 * somread.c (text_offset, data_offset): Remove.
10628 (som_symtab_read): Don't add section offsets to minimal symbol
10630 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10631 Don't add section offsets to minimal symbols.
10632 * coffread.c (coff_symtab_read): Don't add section offsets
10633 to minimal symbol addresses.
10634 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10635 to minimal symbol addresses.
10636 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10637 section offset to minimal symbol addresses.
10638 * mdebugread.c (parse_partial_symbols): Don't add section
10639 offset to minimal symbol addresses.
10640 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10641 offset to minimal symbol addresses.
10643 2014-02-26 Tom Tromey <tromey@redhat.com>
10645 * ada-lang.c (ada_main_name): Update.
10646 (ada_add_standard_exceptions): Update.
10647 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10648 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10649 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10650 * auxv.c (ld_so_xfer_auxv): Update.
10651 * avr-tdep.c (avr_scan_prologue): Update.
10652 * ax-gdb.c (gen_var_ref): Update.
10653 * blockframe.c (get_pc_function_start)
10654 (find_pc_partial_function_gnu_ifunc): Update.
10655 * breakpoint.c (create_overlay_event_breakpoint)
10656 (create_longjmp_master_breakpoint)
10657 (create_std_terminate_master_breakpoint)
10658 (create_exception_master_breakpoint): Update.
10659 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10660 * c-valprint.c (c_val_print): Update.
10661 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10662 * common/agent.c (agent_look_up_symbols): Update.
10663 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10664 * dwarf2loc.c (call_site_to_target_addr): Update.
10665 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10666 * elfread.c (elf_gnu_ifunc_record_cache)
10667 (elf_gnu_ifunc_resolve_by_got): Update.
10668 * findvar.c (default_read_var_value): Update.
10669 * frame.c (inside_main_func): Update.
10670 * frv-tdep.c (frv_frame_this_id): Update.
10671 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10672 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10674 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10675 (hppa_hpux_find_dummy_bpaddr): Update.
10676 * hppa-tdep.c (hppa_symbol_address): Update.
10677 * infcmd.c (until_next_command): Update.
10678 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10680 * linespec.c (minsym_found, add_minsym): Update.
10681 * linux-nat.c (get_signo): Update.
10682 * linux-thread-db.c (inferior_has_bug): Update.
10683 * m32c-tdep.c (m32c_return_value)
10684 (m32c_m16c_address_to_pointer): Update.
10685 * m32r-tdep.c (m32r_frame_this_id): Update.
10686 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10687 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10688 * maint.c (maintenance_translate_address): Update.
10689 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10690 (frob_address): New function.
10691 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10692 frob_address. Rename parameter to "pc_in".
10693 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10695 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10697 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10698 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10699 * objc-lang.c (find_objc_msgsend): Update.
10700 * objfiles.c (objfile_relocate1): Update.
10701 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10702 * p-valprint.c (pascal_val_print): Update.
10703 * parse.c (write_exp_msymbol): Update.
10704 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10705 (ppc_elfv2_skip_entrypoint): Update.
10706 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10707 * printcmd.c (build_address_symbolic, msym_info)
10708 (address_info): Update.
10709 * proc-service.c (ps_pglobal_lookup): Update.
10710 * psymtab.c (find_pc_sect_psymtab_closer)
10711 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10712 Change msymbol parameter to bound_minimal_symbol.
10713 * ravenscar-thread.c (get_running_thread_id): Update.
10714 * remote.c (remote_check_symbols): Update.
10715 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10717 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10718 * solib-dsbt.c (lm_base): Update.
10719 * solib-frv.c (lm_base, main_got): Update.
10720 * solib-irix.c (locate_base): Update.
10721 * solib-som.c (som_solib_create_inferior_hook)
10722 (link_map_start): Update.
10723 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10724 * solib-svr4.c (elf_locate_base, enable_break): Update.
10725 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10726 (flush_ea_cache): Update.
10727 * stabsread.c (define_symbol, scan_file_globals): Update.
10728 * stack.c (find_frame_funname): Update.
10729 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10730 (debug_qf_find_pc_sect_symtab): Update.
10731 * symfile.c (simple_read_overlay_table)
10732 (simple_overlay_update): Update.
10733 * symfile.h (struct quick_symbol_functions)
10734 <find_pc_sect_symtab>: Change type of msymbol to
10735 bound_minimal_symbol.
10736 * symmisc.c (dump_msymbols): Update.
10737 * symtab.c (find_pc_sect_symtab_via_partial)
10738 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10739 (search_symbols, print_msymbol_info): Update.
10740 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10741 (MSYMBOL_VALUE_ADDRESS): Redefine.
10742 (BMSYMBOL_VALUE_ADDRESS): New macro.
10743 * tracepoint.c (scope_info): Update.
10744 * tui/tui-disasm.c (tui_find_disassembly_address)
10745 (tui_get_begin_asm_address): Update.
10746 * valops.c (find_function_in_inferior): Update.
10747 * value.c (value_static_field, value_fn_field): Update.
10749 2014-02-26 Tom Tromey <tromey@redhat.com>
10751 * ada-lang.c (ada_update_initial_language): Update.
10752 (ada_main_name, ada_has_this_exception_support): Update.
10753 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10754 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10755 * arm-tdep.c (arm_skip_stub): Update.
10756 * auxv.c (ld_so_xfer_auxv): Update.
10757 * avr-tdep.c (avr_scan_prologue): Update.
10758 * ax-gdb.c (gen_var_ref): Update.
10759 * breakpoint.c (struct breakpoint_objfile_data)
10760 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10761 type to bound_minimal_symbol.
10762 (create_overlay_event_breakpoint)
10763 (create_longjmp_master_breakpoint)
10764 (create_std_terminate_master_breakpoint)
10765 (create_exception_master_breakpoint): Update.
10766 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10767 * c-exp.y (classify_name): Update.
10768 * coffread.c (coff_symfile_read): Update.
10769 * common/agent.c (agent_look_up_symbols): Update.
10770 * d-lang.c (d_main_name): Update.
10771 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10772 * dec-thread.c (enable_dec_thread): Update.
10773 * dwarf2loc.c (call_site_to_target_addr): Update.
10774 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10775 * eval.c (evaluate_subexp_standard): Update.
10776 * findvar.c (struct minsym_lookup_data) <result>: Change type
10777 to bound_minimal_symbol.
10779 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10780 * frame.c (inside_main_func): Update.
10781 * frv-tdep.c (frv_frame_this_id): Update.
10782 * gcore.c (call_target_sbrk): Update.
10783 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10784 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10786 * go-lang.c (go_main_name): Update.
10787 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10788 (hppa_hpux_find_import_stub_for_addr): Update.
10789 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10790 Update. Change return type.
10791 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10793 * jit.c (jit_breakpoint_re_set_internal): Update.
10794 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10796 * linux-nat.c (get_signo): Update.
10797 * linux-thread-db.c (inferior_has_bug): Update
10798 * m32c-tdep.c (m32c_return_value)
10799 (m32c_m16c_address_to_pointer): Update.
10800 * m32r-tdep.c (m32r_frame_this_id): Update.
10801 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10802 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10803 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10804 lookup_minimal_symbol. Change return type.
10805 (lookup_minimal_symbol): Remove.
10806 (lookup_bound_minimal_symbol): Update.
10807 (lookup_minimal_symbol_text): Change return type.
10808 (lookup_minimal_symbol_solib_trampoline): Change return type.
10809 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10810 (lookup_minimal_symbol_solib_trampoline): Change return type.
10811 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10812 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10813 (value_nsstring, find_imps): Update.
10814 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10815 * p-lang.c (pascal_main_name): Update.
10816 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10817 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10818 * proc-service.c (ps_pglobal_lookup): Update.
10819 * ravenscar-thread.c (get_running_thread_msymbol): Change
10821 (has_ravenscar_runtime, get_running_thread_id): Update.
10822 * remote.c (remote_check_symbols): Update.
10823 * sol-thread.c (ps_pglobal_lookup): Update.
10824 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10825 * solib-dsbt.c (lm_base): Update.
10826 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10828 * solib-irix.c (locate_base): Update.
10829 * solib-som.c (som_solib_create_inferior_hook)
10830 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10832 * solib-spu.c (spu_enable_break): Update.
10833 * solib-svr4.c (elf_locate_base, enable_break): Update.
10834 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10835 (flush_ea_cache): Update.
10836 * stabsread.c (define_symbol): Update.
10837 * symfile.c (simple_read_overlay_table): Update.
10838 * symtab.c (find_pc_sect_line): Update.
10839 * tracepoint.c (scope_info): Update.
10840 * tui-disasm.c (tui_get_begin_asm_address): Update.
10841 * value.c (value_static_field): Update.
10843 2014-02-26 Tom Tromey <tromey@redhat.com>
10845 * minsyms.c (prim_record_minimal_symbol_full): Use
10846 SET_MSYMBOL_VALUE_ADDRESS.
10847 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10848 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10849 SET_MSYMBOL_VALUE_ADDRESS.
10850 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10851 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10853 2014-02-26 Tom Tromey <tromey@redhat.com>
10855 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10856 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10857 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10858 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10859 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10860 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10861 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10862 * ada-lang.c (ada_main_name): Update.
10863 (ada_lookup_simple_minsym): Update.
10864 (ada_make_symbol_completion_list): Update.
10865 (ada_add_standard_exceptions): Update.
10866 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10867 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10868 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10869 * arm-tdep.c (skip_prologue_function): Update.
10870 (arm_skip_stack_protector, arm_skip_stub): Update.
10871 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10872 (arm_wince_skip_main_prologue): Update.
10873 * auxv.c (ld_so_xfer_auxv): Update.
10874 * avr-tdep.c (avr_scan_prologue): Update.
10875 * ax-gdb.c (gen_var_ref): Update.
10876 * block.c (call_site_for_pc): Update.
10877 * blockframe.c (get_pc_function_start): Update.
10878 (find_pc_partial_function_gnu_ifunc): Update.
10879 * breakpoint.c (create_overlay_event_breakpoint): Update.
10880 (create_longjmp_master_breakpoint): Update.
10881 (create_std_terminate_master_breakpoint): Update.
10882 (create_exception_master_breakpoint): Update.
10883 (resolve_sal_pc): Update.
10884 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10885 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10887 * c-valprint.c (c_val_print): Update.
10888 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10889 * coffread.c (coff_symfile_read): Update.
10890 * common/agent.c (agent_look_up_symbols): Update.
10891 * dbxread.c (find_stab_function_addr): Update.
10892 (end_psymtab): Update.
10893 * dwarf2loc.c (call_site_to_target_addr): Update.
10894 (func_verify_no_selftailcall): Update.
10895 (tailcall_dump): Update.
10896 (call_site_find_chain_1): Update.
10897 (dwarf_expr_reg_to_entry_parameter): Update.
10898 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10899 (elf_gnu_ifunc_resolve_by_got): Update.
10900 * f-valprint.c (info_common_command): Update.
10901 * findvar.c (read_var_value): Update.
10902 * frame.c (get_prev_frame_1): Update.
10903 (inside_main_func): Update.
10904 * frv-tdep.c (frv_skip_main_prologue): Update.
10905 (frv_frame_this_id): Update.
10906 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10907 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10908 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10909 (gnuv3_skip_trampoline): Update.
10910 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10911 (hppa64_hpux_in_solib_call_trampoline): Update.
10912 (hppa_hpux_skip_trampoline_code): Update.
10913 (hppa64_hpux_search_dummy_call_sequence): Update.
10914 (hppa_hpux_find_import_stub_for_addr): Update.
10915 (hppa_hpux_find_dummy_bpaddr): Update.
10916 * hppa-tdep.c (hppa_symbol_address)
10917 (hppa_lookup_stub_minimal_symbol): Update.
10918 * i386-tdep.c (i386_skip_main_prologue): Update.
10919 (i386_pe_skip_trampoline_code): Update.
10920 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10921 * infcall.c (get_function_name): Update.
10922 * infcmd.c (until_next_command): Update.
10923 * jit.c (jit_breakpoint_re_set_internal): Update.
10924 (jit_inferior_init): Update.
10925 * linespec.c (minsym_found): Update.
10926 (add_minsym): Update.
10927 * linux-fork.c (info_checkpoints_command): Update.
10928 * linux-nat.c (get_signo): Update.
10929 * linux-thread-db.c (inferior_has_bug): Update.
10930 * m32c-tdep.c (m32c_return_value): Update.
10931 (m32c_m16c_address_to_pointer): Update.
10932 (m32c_m16c_pointer_to_address): Update.
10933 * m32r-tdep.c (m32r_frame_this_id): Update.
10934 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10935 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10936 * maint.c (maintenance_translate_address): Update.
10937 * minsyms.c (add_minsym_to_hash_table): Update.
10938 (add_minsym_to_demangled_hash_table): Update.
10939 (msymbol_objfile): Update.
10940 (lookup_minimal_symbol): Update.
10941 (iterate_over_minimal_symbols): Update.
10942 (lookup_minimal_symbol_text): Update.
10943 (lookup_minimal_symbol_by_pc_name): Update.
10944 (lookup_minimal_symbol_solib_trampoline): Update.
10945 (lookup_minimal_symbol_by_pc_section_1): Update.
10946 (lookup_minimal_symbol_and_objfile): Update.
10947 (prim_record_minimal_symbol_full): Update.
10948 (compare_minimal_symbols): Update.
10949 (compact_minimal_symbols): Update.
10950 (build_minimal_symbol_hash_tables): Update.
10951 (install_minimal_symbols): Update.
10952 (terminate_minimal_symbol_table): Update.
10953 (find_solib_trampoline_target): Update.
10954 (minimal_symbol_upper_bound): Update.
10955 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10956 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10957 (mips_skip_pic_trampoline_code): Update.
10958 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10959 * objc-lang.c (selectors_info): Update.
10960 (classes_info): Update.
10961 (find_methods): Update.
10962 (find_imps): Update.
10963 (find_objc_msgsend): Update.
10964 * objfiles.c (objfile_relocate1): Update.
10965 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10966 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10967 * p-valprint.c (pascal_val_print): Update.
10968 * parse.c (write_exp_msymbol): Update.
10969 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10970 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10971 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10972 * printcmd.c (build_address_symbolic): Update.
10973 (sym_info): Update.
10974 (address_info): Update.
10975 * proc-service.c (ps_pglobal_lookup): Update.
10976 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10977 (find_pc_sect_psymtab): Update.
10978 * python/py-framefilter.c (py_print_frame): Update.
10979 * ravenscar-thread.c (get_running_thread_id): Update.
10980 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10982 * remote.c (remote_check_symbols): Update.
10983 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10984 (rs6000_skip_trampoline_code): Update.
10985 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10986 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10987 * solib-dsbt.c (lm_base): Update.
10988 * solib-frv.c (lm_base): Update.
10989 (main_got): Update.
10990 * solib-irix.c (locate_base): Update.
10991 * solib-som.c (som_solib_create_inferior_hook): Update.
10992 (som_solib_desire_dynamic_linker_symbols): Update.
10993 (link_map_start): Update.
10994 * solib-spu.c (spu_enable_break): Update.
10995 (ocl_enable_break): Update.
10996 * solib-svr4.c (elf_locate_base): Update.
10997 (enable_break): Update.
10998 * spu-tdep.c (spu_get_overlay_table): Update.
10999 (spu_catch_start): Update.
11000 (flush_ea_cache): Update.
11001 * stabsread.c (define_symbol): Update.
11002 (scan_file_globals): Update.
11003 * stack.c (find_frame_funname): Update.
11004 (frame_info): Update.
11005 * symfile.c (simple_read_overlay_table): Update.
11006 (simple_overlay_update): Update.
11007 * symmisc.c (dump_msymbols): Update.
11008 * symtab.c (fixup_section): Update.
11009 (find_pc_sect_line): Update.
11010 (skip_prologue_sal): Update.
11011 (search_symbols): Update.
11012 (print_msymbol_info): Update.
11013 (rbreak_command): Update.
11014 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11015 (completion_list_objc_symbol): Update.
11016 (default_make_symbol_completion_list_break_on): Update.
11017 * tracepoint.c (scope_info): Update.
11018 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11019 (tui_get_begin_asm_address): Update.
11020 * valops.c (find_function_in_inferior): Update.
11021 * value.c (value_static_field): Update.
11022 (value_fn_field): Update.
11024 2014-02-26 Tom Tromey <tromey@redhat.com>
11026 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11027 bound minimal symbols. Move code that knows about minsym
11029 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11031 * minsyms.h (minimal_symbol_upper_bound): Declare.
11032 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11033 minimal_symbol_upper_bound.
11035 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11037 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11038 Use the type's name if its basic type does not have a tag.
11040 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11042 * dwarf2read.c (read_subrange_type): Add comment.
11044 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11046 * dwarf2read.c (update_enumeration_type_from_children): New
11047 function, mostly extracted from process_structure_scope.
11048 (read_enumeration_type): Call update_enumeration_type_from_children.
11049 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11050 and flag_flag_enum fields.
11052 2014-02-26 Pedro Alves <palves@redhat.com>
11054 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11055 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11056 to_xfer_partial method.
11058 2014-02-26 Pedro Alves <palves@redhat.com>
11060 * target.c (complete_target_initialization): Don't install
11061 default_xfer_partial as to_xfer_partial hook.
11062 (nomemory): Delete.
11063 (update_current_target): Don't INHERIT nor de_fault
11064 deprecated_xfer_memory. Delete de_fault macro.
11065 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11066 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11067 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11070 2014-02-26 Pedro Alves <palves@redhat.com>
11072 * go32-nat.c (my_write_child): New function.
11073 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11074 (go32_xfer_partial): New function.
11075 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11076 Instead install a to_xfer_partial hook.
11078 2014-02-26 Pedro Alves <palves@redhat.com>
11080 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11081 to_xfer_partial helper. Rewrite.
11082 (procfs_xfer_partial): New function.
11083 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11084 Install a to_xfer_partial hook.
11086 2014-02-26 Pedro Alves <palves@redhat.com>
11088 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11089 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11090 (m32r_xfer_partial): New function.
11091 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11092 Install a to_xfer_partial hook.
11094 2014-02-26 Pedro Alves <palves@redhat.com>
11096 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11098 (mips_xfer_partial): New function.
11099 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11100 hook. Install a to_xfer_partial hook.
11102 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11104 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11105 * gdbtypes.c (create_array_type_with_stride): New function,
11106 renaming create_array_type, but with an added parameter
11107 called "bit_stride".
11108 (create_array_type): Re-implement using
11109 create_array_type_with_stride.
11110 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11111 and DW_AT_bit_stride attributes.
11113 2014-02-26 Pedro Alves <palves@redhat.com>
11115 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11116 task-specific breakpoints.
11118 2014-02-25 Pedro Alves <palves@redhat.com>
11120 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11121 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11123 2014-02-25 Stan Shebs <stan@codesourcery.com>
11125 * defs.h: Annotate comments for Doxygen.
11127 2014-02-25 Tom Tromey <tromey@redhat.com>
11129 * target.h (target_ignore): Don't declare.
11130 * target.c (target_ignore): Remove.
11132 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11135 * auto-load.c (auto_load_objfile_script_1): Change filename to
11138 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11140 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11141 documentation. Adjust prototype to match the target_ops
11142 to_xfer_partial method. Adjust implementation accordingly.
11144 2014-02-25 Hui Zhu <hui@codesourcery.com>
11146 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11147 to_traceframe_info.
11149 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11151 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11152 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11153 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11154 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11155 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11156 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11157 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11158 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11160 (rl78_register_type): Use a data pointer type for SP and
11161 new pseudo registers mentioned above. Use a 16 bit integer
11162 type for all other register pairs.
11163 (rl78_register_name, rl78_g10_register_name): Update for
11164 new pseudo registers.
11165 (rl78_pseudo_register_read): Likewise.
11166 (rl78_pseudo_register_write): Likewise.
11167 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11168 to the newly added pseudo registers.
11170 2014-02-24 Doug Evans <dje@google.com>
11172 * value.c (record_latest_value): Fix comment.
11173 * printcmd.c (print_command_1): Remove code to handle -1 return from
11174 record_latest_value.
11176 2014-02-24 Pedro Alves <palves@redhat.com>
11178 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11179 deprecated_xfer_memory hook.
11180 (procfs_xfer_partial): Call procfs_xfer_memory instead
11181 of the deprecated_xfer_memory target hook.
11182 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11185 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11187 * windows-nat.c (windows_xfer_shared_libraries): Return
11188 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11189 requested object is TARGET_OBJECT_LIBRARIES.
11191 2014-02-24 Yao Qi <yao@codesourcery.com>
11193 * target.h (enum target_xfer_status)
11194 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11195 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11197 * corefile.c (memory_error_message): User updated.
11198 * exec.c (section_table_read_available_memory): Likewise.
11199 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11200 * target.c (target_xfer_status_to_string): Likewise.
11201 (raw_memory_xfer_partial): Likewise.
11202 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11203 * valops.c (read_value_memory): Likewise.
11204 * exec.h: Update comments.
11206 2014-02-24 Yao Qi <yao@codesourcery.com>
11208 * target.c (target_xfer_status_to_string): Rename argument err
11210 * target.h (target_xfer_status_to_string): Update declaration.
11211 Replace target_xfer_error_to_string with
11212 target_xfer_status_to_string in comment.
11214 2014-02-24 Yao Qi <yao@codesourcery.com>
11216 * mips-linux-nat.c (super_close): Update its type.
11217 (mips_linux_close): Pass 'self' to super_close.
11219 2014-02-24 Yao Qi <yao@codesourcery.com>
11221 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11222 * corefile.c (read_memory): Adjusted.
11223 * target.c (target_write_with_progress): Adjusted.
11225 2014-02-23 Yao Qi <yao@codesourcery.com>
11227 Revert two patches:
11229 2013-10-25 Yao Qi <yao@codesourcery.com>
11231 * remote.c (remote_traceframe_info): Return early if
11232 traceframe is not selected.
11234 2013-07-19 Yao Qi <yao@codesourcery.com>
11236 * target.c (update_current_target): Change the default action
11237 of 'to_traceframe_info' from tcomplain to return_zero.
11238 * target.h (struct target_ops) <to_traceframe_info>: Add more
11241 2014-02-23 Yao Qi <yao@codesourcery.com>
11243 * valops.c (read_value_memory): Rewrite it. Call
11244 target_xfer_partial in a loop.
11245 * exec.h (section_table_available_memory): Remove declaration.
11246 Move comments to ...
11247 * exec.c (section_table_available_memory): ... here. Make it
11250 2014-02-23 Yao Qi <yao@codesourcery.com>
11252 * exec.c (section_table_read_available_memory): New function.
11253 * exec.h (section_table_read_available_memory): Declare.
11254 * ctf.c (ctf_xfer_partial): Call
11255 section_table_read_available_memory.
11256 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11258 2014-02-23 Yao Qi <yao@codesourcery.com>
11260 * ctf.c (ctf_xfer_partial): Move code to ...
11261 * exec.c (exec_read_partial_read_only): ... it. New function.
11262 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11263 * tracefile.c: Include "exec.h".
11264 * exec.h (exec_read_partial_read_only): Declare.
11266 2014-02-23 Yao Qi <yao@codesourcery.com>
11268 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11269 (tfile_has_memory): Remove.
11270 (init_tfile_ops): Don't set fields to_has_all_memory and
11271 to_has_memory of tfile_ops.
11272 * tracefile.c (tracefile_has_all_memory): New function.
11273 (tracefile_has_memory): New function.
11274 (init_tracefile_ops): Initialize fields to_has_all_memory and
11275 to_has_memory of 'ops'.
11277 2014-02-23 Yao Qi <yao@codesourcery.com>
11279 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11280 (ctf_thread_alive, ctf_get_trace_status): Remove.
11281 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11282 init_tracefile_ops.
11283 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11284 (tfile_has_stack, tfile_has_registers): Remove.
11285 (tfile_thread_alive): Remove.
11286 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11287 init_tracefile_ops.
11288 * tracefile.c (tracefile_has_stack): New function.
11289 (tracefile_has_registers): New function.
11290 (tracefile_thread_alive): New function.
11291 (tracefile_get_trace_status): New function.
11292 (init_tracefile_ops): New function.
11293 * tracefile.h (init_tracefile_ops): Declare.
11295 2014-02-23 Yao Qi <yao@codesourcery.com>
11297 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11298 (O_LARGEFILE): Likewise.
11299 (tfile_ops): Likewise.
11300 (TRACE_HEADER_SIZE): Likewise.
11301 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11302 (cur_data_size): Likewise.
11303 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11304 (tfile_close, tfile_files_info): Likewise.
11305 (tfile_get_trace_status): Likewise.
11306 (tfile_get_tracepoint_status): Likewise.
11307 (tfile_get_traceframe_address): Likewise.
11308 (tfile_trace_find, match_blocktype): Likewise.
11309 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11310 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11311 (tfile_get_trace_state_variable_value): Likewise.
11312 (tfile_has_all_memory, tfile_has_memory): Likewise.
11313 (tfile_has_stack, tfile_has_registers): Likewise.
11314 (tfile_thread_alive, build_traceframe_info): Likewise.
11315 (tfile_traceframe_info, init_tfile_ops): Likewise.
11316 (_initialize_tracepoint): Don't call init_tfile_ops
11317 and add_target_with_completer.
11318 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11319 exec.h, completer.h and filenames.h.
11320 (_initialize_tracefile_tfile): New function.
11322 2014-02-23 Yao Qi <yao@codesourcery.com>
11324 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11326 (HFILES_NO_SRCDIR): Add tracefile.h.
11327 * ctf.c: Include "tracefile.h".
11328 * tracefile.h: New file.
11329 * tracefile.c: New file
11330 * tracefile-tfile.c: New file.
11331 * tracepoint.c: Include "tracefile.h".
11332 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11333 (stop_reason_names): Add const.
11334 (trace_file_writer_xfree): Move it to tracefile.c.
11335 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11336 (trace_save_ctf): Likewise.
11337 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11338 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11339 (tfile_write_header, tfile_write_regblock_type): Likewise.
11340 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11341 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11342 (tfile_write_raw_data, tfile_end): Likewise.
11343 (tfile_trace_file_writer_new): Likewise.
11344 (free_uploaded_tp): Make it extern.
11345 (free_uploaded_tsv): Make it extern.
11346 (_initialize_tracepoint): Move code to register command 'tsave'
11348 * tracepoint.h (stop_reason_names): Declare.
11349 (struct trace_frame_write_ops): Move it to tracefile.h.
11350 (struct trace_file_write_ops): Likewise.
11351 (struct trace_file_writer): Likewise.
11352 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11354 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11357 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11359 (get_cores_used_by_process): New parameter num_cores, use it.
11360 (linux_xfer_osdata_processes): Pass num_cores to it.
11361 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11364 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11366 * target.c (memory_xfer_partial): Fix length arg in call to
11367 breakpoint_xfer_memory.
11369 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11372 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11373 number comes after the + or - signs. Adjust length of register
11374 name to be extracted.
11376 2014-02-20 Tom Tromey <tromey@redhat.com>
11378 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11379 (ada_varobj_ops): Mark "extern".
11381 2014-02-20 Tom Tromey <tromey@redhat.com>
11383 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11385 2014-02-20 Doug Evans <xdje42@gmail.com>
11387 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11388 All callers updated.
11389 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11390 All callers updated.
11391 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11392 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11394 2014-02-20 lin zuojian <manjian2006@gmail.com>
11395 Joel Brobecker <brobecker@adacore.com>
11396 Doug Evans <xdje42@gmail.com>
11399 * dwarf2read.c (struct die_info): New member in_process.
11400 (reset_die_in_process): New function.
11401 (process_die): Set it at the start, reset when returning.
11402 (inherit_abstract_dies): Only call process_die if origin_child_die
11403 not already being processed.
11405 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11407 * windows-nat.c (handle_unload_dll): Add function documentation.
11408 (do_initial_windows_stuff): Add comment explaining why we wait
11409 until after inferior initialization has finished before
11410 processing all DLLs.
11412 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11414 * windows-nat.c (get_module_name): Delete.
11415 (windows_get_exec_module_filename): New function, mostly
11416 inspired from get_module_name.
11417 (windows_pid_to_exec_file): Replace call to get_module_name
11418 by call to windows_get_exec_module_filename.
11420 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11422 * windows-nat.c (handle_load_dll): Rewrite this function's
11423 introductory comment. Remove code using get_module_name
11424 to get the DLL's name.
11426 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11428 * windows-nat.c (get_windows_debug_event): Ignore
11429 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11430 if windows_initialization_done == 0.
11431 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11432 Adjust implementation to always load all DLLs.
11433 (do_initial_windows_stuff): Replace call to
11434 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11436 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11438 * windows-nat.c (_initialize_windows_nat): Deprecate the
11439 "dll-symbols" command. Turn the "add-shared-symbol-files"
11440 and "assf" aliases into commands, and deprecate them as well.
11441 * NEWS: Add entry explaining that "dll-symbols" and its two
11442 aliases are now deprecated.
11444 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11446 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11447 new-line in debug string. Remove trailing spaces.
11449 2014-02-19 Stan Shebs <stan@codesourcery.com>
11451 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11453 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11455 * NEWS: Add entry for the new feature
11456 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11459 2014-02-19 Stan Shebs <stan@codesourcery.com>
11461 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11463 2014-02-19 Pedro Alves <palves@redhat.com>
11465 * common/ptid.h (struct ptid): Mention that process_stratum
11466 targets should prefer ptid.lwp.
11468 2014-02-19 Pedro Alves <palves@redhat.com>
11470 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11471 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11472 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11473 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11474 store remote thread ids rather than ptid.tid.
11475 (_initialize_remote): Adjust.
11477 2014-02-19 Tom Tromey <tromey@redhat.com>
11479 * target.c (target_get_unwinder): Rewrite.
11480 (target_get_tailcall_unwinder): Rewrite.
11481 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11482 (record_btrace_to_get_tailcall_unwinder): New function.
11483 (init_record_btrace_ops): Update.
11484 * target.h (struct target_ops) <to_get_unwinder,
11485 to_get_tailcall_unwinder>: Now function pointers. Use
11486 TARGET_DEFAULT_RETURN.
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11490 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11492 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11496 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11498 * target-delegates.c: Rebuild.
11499 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11500 TARGET_DEFAULT_FUNC.
11501 * target.c (default_target_decr_pc_after_break): Rename from
11502 forward_target_decr_pc_after_break. Simplify.
11503 (target_decr_pc_after_break): Rely on delegation.
11505 2014-02-19 Tom Tromey <tromey@redhat.com>
11507 * target.c (update_current_target): Do not INHERIT to_doc or
11508 to_magic. Do not de_fault to_open or to_close.
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11512 * gcore.h (objfile_find_memory_regions): Declare.
11513 * gcore.c (objfile_find_memory_regions): No longer static. Add
11515 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11516 * exec.c: Include gcore.h.
11517 (exec_set_find_memory_regions): Remove.
11518 (exec_find_memory_regions): Remove.
11519 (exec_do_find_memory_regions): Remove.
11520 (init_exec_ops): Update.
11521 * defs.h (exec_set_find_memory_regions): Remove.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * target-delegates.c: Rebuild.
11526 * target.h (struct target_ops) <to_extra_thread_info,
11527 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11528 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11529 not 0, in TARGET_DEFAULT_RETURN.
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * target.c (complete_target_initialization): Remove casts. Use
11534 return_zero_has_execution.
11535 (return_zero): Add "ignore" argument.
11536 (return_zero_has_execution): New function.
11537 (init_dummy_target): Remove casts. Use
11538 return_zero_has_execution.
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11542 * target.c (update_current_target): Update comments. Do not
11543 INHERIT to_stratum.
11545 2014-02-19 Tom Tromey <tromey@redhat.com>
11547 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11549 * corelow.c (core_read_description): Delegate when needed.
11550 * remote.c (remote_read_description): Delegate when needed.
11551 * target-delegates.c: Rebuild.
11552 * target.c (target_read_description): Rewrite.
11553 * target.h (struct target_ops) <to_read_description>: Update
11554 comment. Use TARGET_DEFAULT_RETURN.
11556 2014-02-19 Tom Tromey <tromey@redhat.com>
11558 * target-delegates.c: Rebuild.
11559 * target.c (update_current_target): Don't inherit or default
11561 (find_default_run_target): Check against delegate_can_run.
11562 * target.h (struct target_ops) <to_can_run>: Use
11563 TARGET_DEFAULT_RETURN.
11565 2014-02-19 Tom Tromey <tromey@redhat.com>
11567 * target-delegates.c: Rebuild.
11568 * target.c (target_disconnect): Unconditionally delegate.
11569 * target.h (struct target_ops) <to_disconnect>: Use
11570 TARGET_DEFAULT_NORETURN.
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11574 * record.c (record_stop): Unconditionally delegate.
11575 * target-delegates.c: Rebuild.
11576 * target.c (target_stop_recording): Unconditionally delegate.
11577 * target.h (struct target_ops) <to_stop_recording>: Use
11578 TARGET_DEFAULT_IGNORE.
11580 2014-02-19 Tom Tromey <tromey@redhat.com>
11582 * target-delegates.c: Rebuild.
11583 * target.c (target_enable_btrace): Unconditionally delegate.
11584 * target.h (struct target_ops) <to_enable_btrace>: Use
11585 TARGET_DEFAULT_NORETURN.
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11589 * target-delegates.c: Rebuild.
11590 * target.c (target_read_btrace): Unconditionally delegate.
11591 * target.h (struct target_ops) <to_read_btrace>: Use
11592 TARGET_DEFAULT_NORETURN.
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11596 * target-delegates.c: Rebuild.
11597 * target.c (target_teardown_btrace): Unconditionally delegate.
11598 * target.h (struct target_ops) <to_teardown_btrace>: Use
11599 TARGET_DEFAULT_NORETURN.
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11603 * target-delegates.c: Rebuild.
11604 * target.c (target_disable_btrace): Unconditionally delegate.
11605 * target.h (struct target_ops) <to_disable_btrace>: Use
11606 TARGET_DEFAULT_NORETURN.
11608 2014-02-19 Tom Tromey <tromey@redhat.com>
11610 * target-delegates.c: Rebuild.
11611 * target.c (default_search_memory): New function.
11612 (simple_search_memory): Update comment.
11613 (target_search_memory): Unconditionally delegate.
11614 * target.h (struct target_ops) <to_search_memory>: Use
11615 TARGET_DEFAULT_FUNC.
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11619 * auxv.c (default_auxv_parse): No longer static.
11620 (target_auxv_parse): Unconditionally delegate.
11621 * auxv.h (default_auxv_parse): Declare.
11622 * target-delegates.c: Rebuild.
11623 * target.c: Include auxv.h.
11624 * target.h (struct target_ops) <to_auxv_parse>: Use
11625 TARGET_DEFAULT_FUNC.
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11629 * target-delegates.c: Rebuild.
11630 * target.c (target_memory_map): Unconditionally delegate.
11631 * target.h (struct target_ops) <to_memory_map>: Use
11632 TARGET_DEFAULT_RETURN.
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11636 * target-delegates.c: Rebuild.
11637 * target.c (target_thread_alive): Unconditionally delegate.
11638 * target.h (struct target_ops) <to_thread_alive>: Use
11639 TARGET_DEFAULT_RETURN.
11641 2014-02-19 Tom Tromey <tromey@redhat.com>
11643 * target-delegates.c: Rebuild.
11644 * target.c (target_save_record): Unconditionally delegate.
11645 * target.h (struct target_ops) <to_save_record>: Use
11646 TARGET_DEFAULT_NORETURN.
11648 2014-02-19 Tom Tromey <tromey@redhat.com>
11650 * target-delegates.c: Rebuild.
11651 * target.c (target_delete_record): Unconditionally delegate.
11652 * target.h (struct target_ops) <to_delete_record>: Use
11653 TARGET_DEFAULT_NORETURN.
11655 2014-02-19 Tom Tromey <tromey@redhat.com>
11657 * target-delegates.c: Rebuild.
11658 * target.c (target_record_is_replaying): Unconditionally
11660 * target.h (struct target_ops) <to_record_is_replaying>: Use
11661 TARGET_DEFAULT_RETURN.
11663 2014-02-19 Tom Tromey <tromey@redhat.com>
11665 * target-delegates.c: Rebuild.
11666 * target.c (target_goto_record_begin): Unconditionally delegate.
11667 * target.h (struct target_ops) <to_goto_record_begin>: Use
11668 TARGET_DEFAULT_NORETURN.
11670 2014-02-19 Tom Tromey <tromey@redhat.com>
11672 * target-delegates.c: Rebuild.
11673 * target.c (target_goto_record_end): Unconditionally delegate.
11674 * target.h (struct target_ops) <to_goto_record_end>: Use
11675 TARGET_DEFAULT_NORETURN.
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11679 * target-delegates.c: Rebuild.
11680 * target.c (target_goto_record): Unconditionally delegate.
11681 * target.h (struct target_ops) <to_goto_record>: Use
11682 TARGET_DEFAULT_NORETURN.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * target-delegates.c: Rebuild.
11687 * target.c (target_insn_history): Unconditionally delegate.
11688 * target.h (struct target_ops) <to_insn_history>: Use
11689 TARGET_DEFAULT_NORETURN.
11691 2014-02-19 Tom Tromey <tromey@redhat.com>
11693 * target-delegates.c: Rebuild.
11694 * target.c (target_insn_history_from): Unconditionally delegate.
11695 * target.h (struct target_ops) <to_insn_history_from>: Use
11696 TARGET_DEFAULT_NORETURN.
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target-delegates.c: Rebuild.
11701 * target.c (target_insn_history_range): Unconditionally delegate.
11702 * target.h (struct target_ops) <to_insn_history_range>: Use
11703 TARGET_DEFAULT_NORETURN.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target-delegates.c: Rebuild.
11708 * target.c (target_call_history): Unconditionally delegate.
11709 * target.h (struct target_ops) <to_call_history>: Use
11710 TARGET_DEFAULT_NORETURN.
11712 2014-02-19 Tom Tromey <tromey@redhat.com>
11714 * target-delegates.c: Rebuild.
11715 * target.c (target_call_history_from): Unconditionally delegate.
11716 * target.h (struct target_ops) <to_call_history_from>: Use
11717 TARGET_DEFAULT_NORETURN.
11719 2014-02-19 Tom Tromey <tromey@redhat.com>
11721 * target-delegates.c: Rebuild.
11722 * target.c (target_call_history_range): Unconditionally delegate.
11723 * target.h (struct target_ops) <to_call_history_range>: Use
11724 TARGET_DEFAULT_NORETURN.
11726 2014-02-19 Tom Tromey <tromey@redhat.com>
11728 * target-delegates.c: Rebuild.
11729 * target.c (target_verify_memory): Unconditionally delegate.
11730 * target.h (struct target_ops) <to_verify_memory>: Use
11731 TARGET_DEFAULT_NORETURN.
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11735 * target-delegates.c: Rebuild.
11736 * target.c (target_core_of_thread): Unconditionally delegate.
11737 * target.h (struct target_ops) <to_core_of_thread>: Use
11738 TARGET_DEFAULT_RETURN.
11740 2014-02-19 Tom Tromey <tromey@redhat.com>
11742 * target-delegates.c: Rebuild.
11743 * target.c (target_flash_done): Unconditionally delegate.
11744 * target.h (struct target_ops) <to_flash_done>: Use
11745 TARGET_DEFAULT_NORETURN.
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11749 * target-delegates.c: Rebuild.
11750 * target.c (target_flash_erase): Unconditionally delegate.
11751 * target.h (struct target_ops) <to_flash_erase>: Use
11752 TARGET_DEFAULT_NORETURN.
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11756 * target-delegates.c: Rebuild.
11757 * target.c (target_get_section_table): Unconditionally delegate.
11758 * target.h (struct target_ops) <to_get_section_table>: Use
11759 TARGET_DEFAULT_RETURN.
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11763 * target-delegates.c: Rebuild.
11764 * target.c (target_pid_to_str): Unconditionally delegate.
11765 (init_dummy_target): Don't initialize to_pid_to_str.
11766 (default_pid_to_str): Rename from dummy_pid_to_str.
11767 * target.h (struct target_ops) <to_pid_to_str>: Use
11768 TARGET_DEFAULT_FUNC.
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11772 * target-delegates.c: Rebuild.
11773 * target.c (target_find_new_threads): Unconditionally delegate.
11774 * target.h (struct target_ops) <to_find_new_threads>: Use
11775 TARGET_DEFAULT_RETURN.
11777 2014-02-19 Tom Tromey <tromey@redhat.com>
11779 * target-delegates.c: Rebuild.
11780 * target.c (target_program_signals): Unconditionally delegate.
11781 * target.h (struct target_ops) <to_program_signals>: Use
11782 TARGET_DEFAULT_IGNORE.
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11786 * target-delegates.c: Rebuild.
11787 * target.c (target_pass_signals): Unconditionally delegate.
11788 * target.h (struct target_ops) <to_pass_signals>: Use
11789 TARGET_DEFAULT_IGNORE.
11791 2014-02-19 Tom Tromey <tromey@redhat.com>
11793 * target-delegates.c: Rebuild.
11794 * target.c (default_mourn_inferior): New function.
11795 (target_mourn_inferior): Unconditionally delegate.
11796 * target.h (struct target_ops) <to_mourn_inferior>: Use
11797 TARGET_DEFAULT_FUNC.
11799 2014-02-19 Tom Tromey <tromey@redhat.com>
11801 * target-delegates.c: Rebuild.
11802 * target.c (default_follow_fork): New function.
11803 (target_follow_fork): Unconditionally delegate.
11804 * target.h (struct target_ops) <to_follow_fork>: Use
11805 TARGET_DEFAULT_FUNC.
11807 2014-02-19 Tom Tromey <tromey@redhat.com>
11809 * target-delegates.c: Rebuild.
11810 * target.c (target_kill): Unconditionally delegate.
11811 * target.h (struct target_ops) <to_kill>: Use
11812 TARGET_DEFAULT_NORETURN.
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11816 * target-delegates.c: Rebuild.
11817 * target.c (target_masked_watch_num_registers): Unconditionally
11819 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11820 Use TARGET_DEFAULT_RETURN.
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11824 * target-delegates.c: Rebuild.
11825 * target.c (target_remove_mask_watchpoint): Unconditionally
11827 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11828 TARGET_DEFAULT_RETURN.
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11832 * target-delegates.c: Rebuild.
11833 * target.c (target_insert_mask_watchpoint): Unconditionally
11835 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11836 TARGET_DEFAULT_RETURN.
11838 2014-02-19 Tom Tromey <tromey@redhat.com>
11840 * target-delegates.c: Rebuild.
11841 * target.c (target_ranged_break_num_registers): Unconditionally
11843 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11844 Use TARGET_DEFAULT_RETURN.
11846 2014-02-19 Tom Tromey <tromey@redhat.com>
11848 * target-delegates.c: Rebuild.
11849 * target.c (target_fetch_registers): Unconditionally delegate.
11850 * target.h (struct target_ops) <to_fetch_registers>: Use
11851 TARGET_DEFAULT_NORETURN.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target-delegates.c: Rebuild.
11856 * target.c (update_current_target): Don't inherit or default
11858 * target.h (struct target_ops) <to_stop>: Use
11859 TARGET_DEFAULT_IGNORE.
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * target-delegates.c: Rebuild.
11864 * target.c (update_current_target): Don't inherit or default
11865 to_can_run_breakpoint_commands.
11866 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11867 Use TARGET_DEFAULT_RETURN.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * target-delegates.c: Rebuild.
11872 * target.c (update_current_target): Don't inherit or default
11873 to_supports_evaluation_of_breakpoint_conditions.
11874 * target.h (struct target_ops)
11875 <to_supports_evaluation_of_breakpoint_conditions>: Use
11876 TARGET_DEFAULT_RETURN.
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11880 * target-delegates.c: Rebuild.
11881 * target.c (update_current_target): Don't inherit or default
11882 to_augmented_libraries_svr4_read.
11883 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11884 Use TARGET_DEFAULT_RETURN.
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11888 * target-delegates.c: Rebuild.
11889 * target.c (update_current_target): Don't inherit or default
11891 * target.h (struct target_ops) <to_can_use_agent>: Use
11892 TARGET_DEFAULT_RETURN.
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11896 * target-delegates.c: Rebuild.
11897 * target.c (update_current_target): Don't inherit or default
11899 * target.h (struct target_ops) <to_use_agent>: Use
11900 TARGET_DEFAULT_NORETURN.
11902 2014-02-19 Tom Tromey <tromey@redhat.com>
11904 * target-delegates.c: Rebuild.
11905 * target.c (update_current_target): Don't inherit or default
11906 to_traceframe_info.
11907 (return_null): Remove.
11908 * target.h (struct target_ops) <to_traceframe_info>: Use
11909 TARGET_DEFAULT_RETURN.
11911 2014-02-19 Tom Tromey <tromey@redhat.com>
11913 * target-delegates.c: Rebuild.
11914 * target.c (update_current_target): Don't inherit or default
11915 to_static_tracepoint_markers_by_strid.
11916 * target.h (struct target_ops)
11917 <to_static_tracepoint_markers_by_strid>: Use
11918 TARGET_DEFAULT_NORETURN.
11920 2014-02-19 Tom Tromey <tromey@redhat.com>
11922 * target-delegates.c: Rebuild.
11923 * target.c (update_current_target): Don't inherit or default
11924 to_static_tracepoint_marker_at.
11925 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11926 Use TARGET_DEFAULT_RETURN.
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11930 * target-delegates.c: Rebuild.
11931 * target.c (update_current_target): Don't inherit or default
11932 to_set_permissions.
11933 * target.h (struct target_ops) <to_set_permissions>: Use
11934 TARGET_DEFAULT_IGNORE.
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * target-delegates.c: Rebuild.
11939 * target.c (update_current_target): Don't inherit or default
11940 to_get_tib_address.
11941 * target.h (struct target_ops) <to_get_tib_address>: Use
11942 TARGET_DEFAULT_NORETURN.
11944 2014-02-19 Tom Tromey <tromey@redhat.com>
11946 * target-delegates.c: Rebuild.
11947 * target.c (update_current_target): Don't inherit or default
11948 to_set_trace_notes.
11949 * target.h (struct target_ops) <to_set_trace_notes>: Use
11950 TARGET_DEFAULT_RETURN.
11952 2014-02-19 Tom Tromey <tromey@redhat.com>
11954 * target-delegates.c: Rebuild.
11955 * target.c (update_current_target): Don't initialize
11956 to_set_trace_buffer_size.
11957 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11958 TARGET_DEFAULT_IGNORE.
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11962 * target-delegates.c: Rebuild.
11963 * target.c (update_current_target): Don't inherit or default
11964 to_set_circular_trace_buffer.
11965 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11966 TARGET_DEFAULT_IGNORE.
11968 2014-02-19 Tom Tromey <tromey@redhat.com>
11970 * target-delegates.c: Rebuild.
11971 * target.c (update_current_target): Don't inherit or default
11972 to_set_disconnected_tracing.
11973 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11974 TARGET_DEFAULT_IGNORE.
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11978 * target-delegates.c: Rebuild.
11979 * target.c (update_current_target): Don't inherit or default
11980 to_get_min_fast_tracepoint_insn_len.
11981 (return_minus_one): Remove.
11982 * target.h (struct target_ops)
11983 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11985 2014-02-19 Tom Tromey <tromey@redhat.com>
11987 * target-delegates.c: Rebuild.
11988 * target.c (update_current_target): Don't inherit or default
11989 to_get_raw_trace_data.
11990 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11991 TARGET_DEFAULT_NORETURN.
11993 2014-02-19 Tom Tromey <tromey@redhat.com>
11995 * target-delegates.c: Rebuild.
11996 * target.c (update_current_target): Don't inherit or default
11997 to_upload_trace_state_variables.
11998 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11999 Use TARGET_DEFAULT_RETURN.
12001 2014-02-19 Tom Tromey <tromey@redhat.com>
12003 * target-delegates.c: Rebuild.
12004 * target.c (update_current_target): Don't inherit or default
12005 to_upload_tracepoints.
12006 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12007 TARGET_DEFAULT_RETURN.
12009 2014-02-19 Tom Tromey <tromey@redhat.com>
12011 * target-delegates.c: Rebuild.
12012 * target.c (update_current_target): Don't inherit or default
12013 to_save_trace_data.
12014 * target.h (struct target_ops) <to_save_trace_data>: Use
12015 TARGET_DEFAULT_NORETURN.
12017 2014-02-19 Tom Tromey <tromey@redhat.com>
12019 * target-delegates.c: Rebuild.
12020 * target.c (update_current_target): Don't inherit or default
12021 to_get_trace_state_variable_value.
12022 * target.h (struct target_ops)
12023 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12027 * target-delegates.c: Rebuild.
12028 * target.c (update_current_target): Don't inherit or default
12030 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12034 * target-delegates.c: Rebuild.
12035 * target.c (update_current_target): Don't inherit or default
12037 * target.h (struct target_ops) <to_trace_stop>: Use
12038 TARGET_DEFAULT_NORETURN.
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12042 * target-delegates.c: Rebuild.
12043 * target.c (update_current_target): Don't inherit or default
12044 to_get_tracepoint_status.
12045 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12046 TARGET_DEFAULT_NORETURN.
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12050 * target-delegates.c: Rebuild.
12051 * target.c (update_current_target): Don't inherit or default
12052 to_get_trace_status.
12053 * target.h (struct target_ops) <to_get_trace_status>: Use
12054 TARGET_DEFAULT_RETURN.
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12058 * target-delegates.c: Rebuild.
12059 * target.c (update_current_target): Don't inherit or default
12061 * target.h (struct target_ops) <to_trace_start>: Use
12062 TARGET_DEFAULT_NORETURN.
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12066 * target-delegates.c: Rebuild.
12067 * target.c (update_current_target): Don't inherit or default
12068 to_trace_set_readonly_regions.
12069 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12070 Use TARGET_DEFAULT_NORETURN.
12072 2014-02-19 Tom Tromey <tromey@redhat.com>
12074 * target-delegates.c: Rebuild.
12075 * target.c (update_current_target): Don't inherit or default
12076 to_disable_tracepoint.
12077 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12078 TARGET_DEFAULT_NORETURN.
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12082 * target-delegates.c: Rebuild.
12083 * target.c (update_current_target): Don't inherit or default
12084 to_enable_tracepoint.
12085 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12086 TARGET_DEFAULT_NORETURN.
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12090 * target-delegates.c: Rebuild.
12091 * target.c (update_current_target): Don't inherit or default
12092 to_download_trace_state_variable.
12093 * target.h (struct target_ops) <to_download_trace_state_variable>:
12094 Use TARGET_DEFAULT_NORETURN.
12096 2014-02-19 Tom Tromey <tromey@redhat.com>
12098 * target-delegates.c: Rebuild.
12099 * target.c (update_current_target): Don't inherit or default
12100 to_can_download_tracepoint.
12101 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12102 TARGET_DEFAULT_RETURN.
12104 2014-02-19 Tom Tromey <tromey@redhat.com>
12106 * target-delegates.c: Rebuild.
12107 * target.c (update_current_target): Don't inherit or default
12108 to_download_tracepoint.
12109 * target.h (struct target_ops) <to_download_tracepoint>: Use
12110 TARGET_DEFAULT_NORETURN.
12112 2014-02-19 Tom Tromey <tromey@redhat.com>
12114 * target-delegates.c: Rebuild.
12115 * target.c (update_current_target): Don't inherit or default
12117 * target.h (struct target_ops) <to_trace_init>: Use
12118 TARGET_DEFAULT_RETURN.
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target-delegates.c: Rebuild.
12123 * target.c (update_current_target): Don't inherit or default
12124 to_supports_string_tracing.
12125 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12126 TARGET_DEFAULT_RETURN.
12128 2014-02-19 Tom Tromey <tromey@redhat.com>
12130 * target-delegates.c: Rebuild.
12131 * target.c (update_current_target): Don't inherit or default
12132 to_supports_enable_disable_tracepoint.
12133 * target.h (struct target_ops)
12134 <to_supports_enable_disable_tracepoint>: Use
12135 TARGET_DEFAULT_RETURN.
12137 2014-02-19 Tom Tromey <tromey@redhat.com>
12139 * target-delegates.c: Rebuild.
12140 * target.c (update_current_target): Don't inherit or default
12141 to_supports_multi_process.
12142 * target.h (struct target_ops) <to_supports_multi_process>: Use
12143 TARGET_DEFAULT_RETURN.
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12147 * target-delegates.c: Rebuild.
12148 * target.c (update_current_target): Don't inherit or default
12149 to_get_ada_task_ptid.
12150 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12151 TARGET_DEFAULT_FUNC.
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12155 * target-delegates.c: Rebuild.
12156 * target.c (update_current_target): Don't inherit or default
12157 to_thread_architecture.
12158 * target.h (struct target_ops) <to_thread_architecture>: Use
12159 TARGET_DEFAULT_FUNC.
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_execution_direction.
12166 * target.h (struct target_ops) <to_execution_direction>: Use
12167 TARGET_DEFAULT_FUNC.
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12171 * target-delegates.c: Rebuild.
12172 * target.c (update_current_target): Don't inherit or default
12173 to_can_execute_reverse.
12174 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12175 TARGET_DEFAULT_RETURN.
12176 (target_can_execute_reverse): Unconditionally delegate.
12178 2014-02-19 Tom Tromey <tromey@redhat.com>
12180 * target-delegates.c: Rebuild.
12181 * target.c (update_current_target): Don't inherit or default
12183 (dummy_goto_bookmark): Remove.
12184 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12185 * target.h (struct target_ops) <to_goto_bookmark>: Use
12186 TARGET_DEFAULT_NORETURN.
12188 2014-02-19 Tom Tromey <tromey@redhat.com>
12190 * target-delegates.c: Rebuild.
12191 * target.c (update_current_target): Don't inherit or default
12193 (dummy_get_bookmark): Remove.
12194 (init_dummy_target): Don't inherit or default to_get_bookmark.
12195 * target.h (struct target_ops) <to_get_bookmark>: Use
12196 TARGET_DEFAULT_NORETURN
12198 2014-02-19 Tom Tromey <tromey@redhat.com>
12200 * target-delegates.c: Rebuild.
12201 * target.c (update_current_target): Don't inherit or default
12202 to_make_corefile_notes.
12203 (init_dummy_target): Don't initialize to_make_corefile_notes.
12204 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12205 TARGET_DEFAULT_FUNC.
12207 2014-02-19 Tom Tromey <tromey@redhat.com>
12209 * target-delegates.c: Rebuild.
12210 * target.c (update_current_target): Don't inherit or default
12211 to_find_memory_regions.
12212 (init_dummy_target): Don't initialize to_find_memory_regions.
12213 * target.h (struct target_ops) <to_find_memory_regions>: Use
12214 TARGET_DEFAULT_FUNC.
12216 2014-02-19 Tom Tromey <tromey@redhat.com>
12218 * target-delegates.c: Rebuild.
12219 * target.c (update_current_target): Don't inherit or default
12221 * target.h (struct target_ops) <to_log_command>: Use
12222 TARGET_DEFAULT_IGNORE.
12223 (target_log_command): Unconditionally delegate.
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12227 * target-delegates.c: Rebuild.
12228 * target.c (update_current_target): Don't inherit or default
12229 to_pid_to_exec_file.
12230 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12231 TARGET_DEFAULT_RETURN.
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12235 * target-delegates.c: Rebuild.
12236 * target.c (update_current_target): Don't inherit or default
12238 (target_thread_name): Unconditionally delegate.
12239 * target.h (struct target_ops) <to_thread_name>: Use
12240 TARGET_DEFAULT_RETURN.
12242 2014-02-19 Tom Tromey <tromey@redhat.com>
12244 * target-delegates.c: Rebuild.
12245 * target.c (update_current_target): Don't inherit or default
12246 to_extra_thread_info.
12247 * target.h (struct target_ops) <to_extra_thread_info>: Use
12248 TARGET_DEFAULT_RETURN.
12250 2014-02-19 Tom Tromey <tromey@redhat.com>
12252 * target-delegates.c: Rebuild.
12253 * target.c (update_current_target): Don't inherit or default
12255 * target.h (struct target_ops) <to_has_exited>: Use
12256 TARGET_DEFAULT_RETURN..
12258 2014-02-19 Tom Tromey <tromey@redhat.com>
12260 * target-delegates.c: Rebuild.
12261 * target.c (update_current_target): Don't inherit or default
12262 to_set_syscall_catchpoint.
12263 (return_one): Remove.
12264 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12265 TARGET_DEFAULT_RETURN.
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12269 * target-delegates.c: Rebuild.
12270 * target.c (update_current_target): Don't inherit or default
12271 to_insert_exec_catchpoint.
12272 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12273 TARGET_DEFAULT_RETURN.
12275 2014-01-08 Tom Tromey <tromey@redhat.com>
12277 * target-delegates.c: Rebuild.
12278 * target.c (update_current_target): Don't inherit or default
12279 to_insert_exec_catchpoint.
12280 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12281 TARGET_DEFAULT_RETURN.
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12285 * target-delegates.c: Rebuild.
12286 * target.c (update_current_target): Don't inherit or default
12287 to_remove_vfork_catchpoint.
12288 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12289 TARGET_DEFAULT_RETURN.
12291 2014-02-19 Tom Tromey <tromey@redhat.com>
12293 * target-delegates.c: Rebuild.
12294 * target.c (update_current_target): Don't inherit or default
12295 to_insert_vfork_catchpoint.
12296 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12297 TARGET_DEFAULT_RETURN.
12299 2014-02-19 Tom Tromey <tromey@redhat.com>
12301 * target-delegates.c: Rebuild.
12302 * target.c (update_current_target): Don't inherit or default
12303 to_remove_fork_catchpoint.
12304 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12305 TARGET_DEFAULT_RETURN.
12307 2014-02-19 Tom Tromey <tromey@redhat.com>
12309 * target-delegates.c: Rebuild.
12310 * target.c (update_current_target): Don't inherit or default
12311 to_insert_fork_catchpoint.
12312 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12313 TARGET_DEFAULT_RETURN.
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12317 * target-delegates.c: Rebuild.
12318 * target.c (update_current_target): Don't inherit or default
12319 to_post_startup_inferior.
12320 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12321 TARGET_DEFAULT_IGNORE.
12323 2014-02-19 Tom Tromey <tromey@redhat.com>
12325 * target-delegates.c: Rebuild.
12326 * target.c (update_current_target): Don't inherit or default
12328 * target.h (struct target_ops) <to_load>: Use
12329 TARGET_DEFAULT_NORETURN.
12331 2014-02-19 Tom Tromey <tromey@redhat.com>
12333 * target-delegates.c: Rebuild.
12334 * target.c (update_current_target): Don't inherit or default
12336 * target.h (struct target_ops) <to_terminal_info>: Use
12337 TARGET_DEFAULT_FUNC.
12339 2014-02-19 Tom Tromey <tromey@redhat.com>
12341 * target-delegates.c: Rebuild.
12342 * target.c (update_current_target): Don't inherit or default
12343 to_terminal_save_ours.
12344 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12345 TARGET_DEFAULT_IGNORE.
12347 2014-02-19 Tom Tromey <tromey@redhat.com>
12349 * target-delegates.c: Rebuild.
12350 * target.c (update_current_target): Don't inherit or default
12352 * target.h (struct target_ops) <to_terminal_ours>: Use
12353 TARGET_DEFAULT_IGNORE.
12355 2014-02-19 Tom Tromey <tromey@redhat.com>
12357 * target-delegates.c: Rebuild.
12358 * target.c (update_current_target): Don't inherit or default
12359 to_terminal_ours_for_output.
12360 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12361 TARGET_DEFAULT_IGNORE.
12363 2014-02-19 Tom Tromey <tromey@redhat.com>
12365 * target-delegates.c: Rebuild.
12366 * target.c (update_current_target): Don't inherit or default
12367 to_terminal_inferior.
12368 * target.h (struct target_ops) <to_terminal_inferior>: Use
12369 TARGET_DEFAULT_IGNORE.
12371 2014-02-19 Tom Tromey <tromey@redhat.com>
12373 * target-delegates.c: Rebuild.
12374 * target.c (update_current_target): Don't inherit or default
12376 * target.h (struct target_ops) <to_terminal_init>: Use
12377 TARGET_DEFAULT_IGNORE.
12379 2014-02-19 Tom Tromey <tromey@redhat.com>
12381 * target-delegates.c: Rebuild.
12382 * target.c (update_current_target): Don't inherit or default
12383 to_can_accel_watchpoint_condition.
12384 * target.h (struct target_ops)
12385 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12387 2014-02-19 Tom Tromey <tromey@redhat.com>
12389 * target-delegates.c: Rebuild.
12390 * target.c (update_current_target): Don't inherit or default
12391 to_region_ok_for_hw_watchpoint.
12392 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12393 Use TARGET_DEFAULT_FUNC.
12395 2014-02-19 Tom Tromey <tromey@redhat.com>
12397 * target-delegates.c: Rebuild.
12398 * target.c (update_current_target): Don't inherit or default
12399 to_watchpoint_addr_within_range.
12400 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12401 Use TARGET_DEFAULT_FUNC.
12403 2014-02-19 Tom Tromey <tromey@redhat.com>
12405 * target-delegates.c: Rebuild.
12406 * target.c (update_current_target): Don't inherit or default
12407 to_remove_watchpoint.
12408 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12409 TARGET_DEFAULT_NORETURN.
12411 2014-02-19 Tom Tromey <tromey@redhat.com>
12413 * target-delegates.c: Rebuild.
12414 * target.c (update_current_target): Don't inherit or default
12415 to_insert_watchpoint.
12416 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12417 TARGET_DEFAULT_RETURN.
12419 2014-02-19 Tom Tromey <tromey@redhat.com>
12421 * target-delegates.c: Rebuild.
12422 * target.c (update_current_target): Don't inherit or default
12423 to_remove_hw_breakpoint.
12424 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12425 TARGET_DEFAULT_RETURN.
12427 2014-02-19 Tom Tromey <tromey@redhat.com>
12429 * target-delegates.c: Rebuild.
12430 * target.c (update_current_target): Don't inherit or default
12431 to_insert_hw_breakpoint.
12432 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12433 TARGET_DEFAULT_RETURN.
12435 2014-02-19 Tom Tromey <tromey@redhat.com>
12437 * target-delegates.c: Rebuild.
12438 * target.c (update_current_target): Don't inherit or default
12439 to_can_use_hw_breakpoint.
12440 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12441 TARGET_DEFAULT_RETURN.
12443 2014-02-19 Tom Tromey <tromey@redhat.com>
12445 * target-delegates.c: Rebuild.
12446 * target.c (update_current_target): Don't inherit or default
12448 * target.h (struct target_ops) <to_files_info>: Use
12449 TARGET_DEFAULT_IGNORE.
12451 2014-02-19 Tom Tromey <tromey@redhat.com>
12453 * target-delegates.c: Rebuild.
12454 * target.c (update_current_target): Don't inherit or default
12456 * target.h (struct target_ops) <to_store>: Use
12457 TARGET_DEFAULT_NORETURN.
12459 2014-02-19 Tom Tromey <tromey@redhat.com>
12461 * target-delegates.c: Rebuild.
12462 * target.c (update_current_target): Don't inherit or default
12464 * target.h (struct target_ops) <to_post_attach>: Use
12465 TARGET_DEFAULT_IGNORE.
12467 2014-02-19 Tom Tromey <tromey@redhat.com>
12469 * target-delegates.c: Rebuild.
12470 * target.c (update_current_target): Don't inherit or default
12472 (default_rcmd): New function.
12473 (do_monitor_command): Unconditionally delegate.
12474 * target.h (struct target_ops) <to_rmcd>: Use
12475 TARGET_DEFAULT_FUNC.
12477 2014-02-19 Tom Tromey <tromey@redhat.com>
12479 * target-delegates.c: Rebuild.
12480 * target.c (init_dummy_target): Don't initialize to_attach.
12481 (target_attach): Unconditionally delegate.
12482 * target.h (struct target_ops) <to_attach>: Use
12483 TARGET_DEFAULT_FUNC.
12485 2014-02-19 Tom Tromey <tromey@redhat.com>
12487 * target-delegates.c: Rebuild.
12488 * target.c (target_detach): Unconditionally delegate.
12489 (init_dummy_target): Don't initialize to_detach.
12490 * target.h (struct target_ops) <to_detach>: Use
12491 TARGET_DEFAULT_IGNORE.
12493 2014-02-19 Tom Tromey <tromey@redhat.com>
12495 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12497 (target_augmented_libraries_svr4_read): Add argument.
12498 * target.c (update_current_target): Update.
12499 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12502 2014-02-19 Tom Tromey <tromey@redhat.com>
12504 * target.h (struct target_ops) <to_call_history_range>: Add
12506 * target.c (target_call_history_range): Add argument.
12507 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12509 (record_btrace_call_history_from): Update.
12511 2014-02-19 Tom Tromey <tromey@redhat.com>
12513 * target.h (struct target_ops) <to_call_history_from>: Add
12515 * target.c (target_call_history_from): Add argument.
12516 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12521 * target.h (struct target_ops) <to_call_history>: Add argument.
12522 * target.c (target_call_history): Add argument.
12523 * record-btrace.c (record_btrace_call_history): Add 'self'
12526 2014-02-19 Tom Tromey <tromey@redhat.com>
12528 * target.h (struct target_ops) <to_insn_history_range>: Add
12530 * target.c (target_insn_history_range): Add argument.
12531 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12533 (record_btrace_insn_history_from): Update.
12535 2014-02-19 Tom Tromey <tromey@redhat.com>
12537 * target.h (struct target_ops) <to_insn_history_from>: Add
12539 * target.c (target_insn_history_from): Add argument.
12540 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12543 2014-02-19 Tom Tromey <tromey@redhat.com>
12545 * target.h (struct target_ops) <to_insn_history>: Add argument.
12546 * target.c (target_insn_history): Add argument.
12547 * record-btrace.c (record_btrace_insn_history): Add 'self'
12550 2014-02-19 Tom Tromey <tromey@redhat.com>
12552 * target.h (struct target_ops) <to_goto_record>: Add argument.
12553 * target.c (target_goto_record): Add argument.
12554 * record-full.c (record_full_goto): Add 'self' argument.
12555 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12557 2014-02-19 Tom Tromey <tromey@redhat.com>
12559 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12560 * target.c (target_goto_record_end): Add argument.
12561 * record-full.c (record_full_goto_end): Add 'self' argument.
12562 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12566 * target.h (struct target_ops) <to_goto_record_begin>: Add
12568 * target.c (target_goto_record_begin): Add argument.
12569 * record-full.c (record_full_goto_begin): Add 'self' argument.
12570 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12573 2014-02-19 Tom Tromey <tromey@redhat.com>
12575 * target.h (struct target_ops) <to_record_is_replaying>: Add
12577 * target.c (target_record_is_replaying): Add argument.
12578 * record-full.c (record_full_is_replaying): Add 'self' argument.
12579 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12581 (record_btrace_xfer_partial, record_btrace_store_registers)
12582 (record_btrace_prepare_to_store, record_btrace_resume)
12583 (record_btrace_wait, record_btrace_decr_pc_after_break)
12584 (record_btrace_find_new_threads, record_btrace_thread_alive):
12587 2014-02-19 Tom Tromey <tromey@redhat.com>
12589 * target.h (struct target_ops) <to_delete_record>: Add argument.
12590 * target.c (target_delete_record): Add argument.
12591 * record-full.c (record_full_delete): Add 'self' argument.
12593 2014-02-19 Tom Tromey <tromey@redhat.com>
12595 * target.h (struct target_ops) <to_save_record>: Add argument.
12596 * target.c (target_save_record): Add argument.
12597 * record-full.c (record_full_save): Add 'self' argument.
12598 (record_full_save): Add 'self' argument.
12600 2014-02-19 Tom Tromey <tromey@redhat.com>
12602 * target.h (struct target_ops) <to_info_record>: Add argument.
12603 * target.c (target_info_record): Add argument.
12604 * record.c (info_record_command): Add argument.
12605 * record-full.c (record_full_info): Add 'self' argument.
12606 * record-btrace.c (record_btrace_info): Add 'self' argument.
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12610 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12611 * target.c (target_stop_recording): Add argument.
12612 * record.c (record_stop): Add argument.
12613 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12616 2014-02-19 Tom Tromey <tromey@redhat.com>
12618 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12619 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12620 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12622 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12623 (_initialize_amd64_linux_nat): Use it.
12624 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12625 (_initialize_i386_linux_nat): Use it.
12627 2014-02-19 Tom Tromey <tromey@redhat.com>
12629 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12630 * target.c (target_teardown_btrace): Add argument.
12631 * remote.c (remote_teardown_btrace): Add 'self' argument.
12632 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12634 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12637 2014-02-19 Tom Tromey <tromey@redhat.com>
12639 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12640 * target.c (target_disable_btrace): Add argument.
12641 * remote.c (remote_disable_btrace): Add 'self' argument.
12642 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12644 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12649 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12650 * target.c (target_enable_btrace): Add argument.
12651 * remote.c (remote_enable_btrace): Add 'self' argument.
12652 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12654 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12657 2014-02-19 Tom Tromey <tromey@redhat.com>
12659 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12660 (target_can_use_agent): Add argument.
12661 * target.c (update_current_target): Update.
12662 * remote.c (remote_can_use_agent): Add 'self' argument.
12663 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12665 2014-02-19 Tom Tromey <tromey@redhat.com>
12667 * target.h (struct target_ops) <to_use_agent>: Add argument.
12668 (target_use_agent): Add argument.
12669 * target.c (update_current_target): Update.
12670 * remote.c (remote_use_agent): Add 'self' argument.
12671 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12673 2014-02-19 Tom Tromey <tromey@redhat.com>
12675 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12676 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12677 (target_traceframe_info): Add argument.
12678 * target.c (update_current_target): Update.
12679 * remote.c (remote_traceframe_info): Add 'self' argument.
12680 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12682 2014-02-19 Tom Tromey <tromey@redhat.com>
12684 * target.h (target_static_tracepoint_markers_by_strid): Add
12686 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12688 * target.c (update_current_target): Update.
12689 * remote.c (struct target_ops)
12690 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12691 * linux-nat.c (struct target_ops)
12692 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12694 2014-02-19 Tom Tromey <tromey@redhat.com>
12696 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12698 (target_static_tracepoint_marker_at): Add argument.
12699 * target.c (update_current_target): Update.
12700 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12703 2014-02-19 Tom Tromey <tromey@redhat.com>
12705 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12706 (target_set_permissions): Add argument.
12707 * target.c (update_current_target): Update.
12708 * remote.c (remote_set_permissions): Add 'self' argument.
12709 (remote_start_remote): Update.
12711 2014-02-19 Tom Tromey <tromey@redhat.com>
12713 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12714 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12715 (target_get_tib_address): Add argument.
12716 * target.c (update_current_target): Update.
12717 * remote.c (remote_get_tib_address): Add 'self' argument.
12719 2014-02-19 Tom Tromey <tromey@redhat.com>
12721 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12722 (target_set_trace_notes): Add argument.
12723 * target.c (update_current_target): Update.
12724 * remote.c (remote_set_trace_notes): Add 'self' argument.
12726 2014-02-19 Tom Tromey <tromey@redhat.com>
12728 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12730 (target_set_trace_buffer_size): Add argument.
12731 * target.c (update_current_target): Update.
12732 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12734 2014-02-19 Tom Tromey <tromey@redhat.com>
12736 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12738 (target_set_circular_trace_buffer): Add argument.
12739 * target.c (update_current_target): Update.
12740 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12743 2014-02-19 Tom Tromey <tromey@redhat.com>
12745 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12747 (target_set_disconnected_tracing): Add argument.
12748 * target.c (update_current_target): Update.
12749 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12751 2014-02-19 Tom Tromey <tromey@redhat.com>
12753 * target.h (struct target_ops)
12754 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12755 (target_get_min_fast_tracepoint_insn_len): Add argument.
12756 * target.c (update_current_target): Update.
12757 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12760 2014-02-19 Tom Tromey <tromey@redhat.com>
12762 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12764 (target_get_raw_trace_data): Add argument.
12765 * target.c (update_current_target): Update.
12766 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12768 2014-02-19 Tom Tromey <tromey@redhat.com>
12770 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12772 (target_upload_trace_state_variables): Add argument.
12773 * target.c (update_current_target): Update.
12774 * remote.c (remote_upload_trace_state_variables): Add 'self'
12776 (remote_start_remote): Update.
12778 2014-02-19 Tom Tromey <tromey@redhat.com>
12780 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12782 (target_upload_tracepoints): Add argument.
12783 * target.c (update_current_target): Update.
12784 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12785 (remote_start_remote): Update.
12787 2014-02-19 Tom Tromey <tromey@redhat.com>
12789 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12790 (target_save_trace_data): Add argument.
12791 * target.c (update_current_target): Update.
12792 * remote.c (remote_save_trace_data): Add 'self' argument.
12794 2014-02-19 Tom Tromey <tromey@redhat.com>
12796 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12798 * target.h (struct target_ops)
12799 <to_get_trace_state_variable_value>: Add argument.
12800 (target_get_trace_state_variable_value): Add argument.
12801 * target.c (update_current_target): Update.
12802 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12804 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12806 2014-02-19 Tom Tromey <tromey@redhat.com>
12808 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12809 * target.h (struct target_ops) <to_trace_find>: Add argument.
12810 (target_trace_find): Add argument.
12811 * target.c (update_current_target): Update.
12812 * remote.c (remote_trace_find): Add 'self' argument.
12813 * ctf.c (ctf_trace_find): Add 'self' argument.
12815 2014-02-19 Tom Tromey <tromey@redhat.com>
12817 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12818 (target_trace_stop): Add argument.
12819 * target.c (update_current_target): Update.
12820 * remote.c (remote_trace_stop): Add 'self' argument.
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12824 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12825 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12827 (target_get_tracepoint_status): Add argument.
12828 * target.c (update_current_target): Update.
12829 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12831 2014-02-19 Tom Tromey <tromey@redhat.com>
12833 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12834 * target.h (struct target_ops) <to_get_trace_status>: Add
12836 (target_get_trace_status): Add argument.
12837 * target.c (update_current_target): Update.
12838 * remote.c (remote_get_trace_status): Add 'self' argument.
12839 (remote_start_remote, remote_can_download_tracepoint): Update.
12840 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12842 2014-02-19 Tom Tromey <tromey@redhat.com>
12844 * target.h (struct target_ops) <to_trace_start>: Add argument.
12845 (target_trace_start): Add argument.
12846 * target.c (update_current_target): Update.
12847 * remote.c (remote_trace_start): Add 'self' argument.
12849 2014-02-19 Tom Tromey <tromey@redhat.com>
12851 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12853 (target_trace_set_readonly_regions): Add argument.
12854 * target.c (update_current_target): Update.
12855 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12858 2014-02-19 Tom Tromey <tromey@redhat.com>
12860 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12862 (target_disable_tracepoint): Add argument.
12863 * target.c (update_current_target): Update.
12864 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12866 2014-02-19 Tom Tromey <tromey@redhat.com>
12868 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12870 (target_enable_tracepoint): Add argument.
12871 * target.c (update_current_target): Update.
12872 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12874 2014-02-19 Tom Tromey <tromey@redhat.com>
12876 * target.h (struct target_ops) <to_download_trace_state_variable>:
12878 (target_download_trace_state_variable): Add argument.
12879 * target.c (update_current_target): Update.
12880 * remote.c (remote_download_trace_state_variable): Add 'self'
12883 2014-02-19 Tom Tromey <tromey@redhat.com>
12885 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12887 (target_can_download_tracepoint): Add argument.
12888 * target.c (update_current_target): Update.
12889 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12891 2014-02-19 Tom Tromey <tromey@redhat.com>
12893 * target.h (struct target_ops) <to_download_tracepoint>: Add
12895 (target_download_tracepoint): Add argument.
12896 * target.c (update_current_target): Update.
12897 * remote.c (remote_download_tracepoint): Add 'self' argument.
12899 2014-02-19 Tom Tromey <tromey@redhat.com>
12901 * target.h (struct target_ops) <to_trace_init>: Add argument.
12902 (target_trace_init): Add argument.
12903 * target.c (update_current_target): Update.
12904 * remote.c (remote_trace_init): Add 'self' argument.
12906 2014-02-19 Tom Tromey <tromey@redhat.com>
12908 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12909 * target.c (target_fileio_readlink): Add argument.
12910 * remote.c (remote_hostio_readlink): Add 'self' argument.
12911 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12913 2014-02-19 Tom Tromey <tromey@redhat.com>
12915 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12916 * target.c (target_fileio_unlink): Add argument.
12917 * remote.c (remote_hostio_unlink): Add 'self' argument.
12918 (remote_file_delete): Update.
12919 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12921 2014-02-19 Tom Tromey <tromey@redhat.com>
12923 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12924 * target.c (target_fileio_close): Add argument.
12925 * remote.c (remote_hostio_close): Add 'self' argument.
12926 (remote_hostio_close_cleanup): Update.
12927 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12929 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12931 2014-02-19 Tom Tromey <tromey@redhat.com>
12933 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12934 * target.c (target_fileio_pread): Add argument.
12935 * remote.c (remote_hostio_pread): Add 'self' argument.
12936 (remote_bfd_iovec_pread, remote_file_get): Update.
12937 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12939 2014-02-19 Tom Tromey <tromey@redhat.com>
12941 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12942 * target.c (target_fileio_pwrite): Add argument.
12943 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12944 (remote_file_put): Update.
12945 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12947 2014-02-19 Tom Tromey <tromey@redhat.com>
12949 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12950 * target.c (target_fileio_open): Add argument.
12951 * remote.c (remote_hostio_open): Add 'self' argument.
12952 (remote_bfd_iovec_open): Add 'self' argument.
12953 (remote_file_put): Add 'self' argument.
12954 (remote_file_get): Add 'self' argument.
12955 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12957 2014-02-19 Tom Tromey <tromey@redhat.com>
12959 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12961 (target_can_run_breakpoint_commands): Add argument.
12962 * target.c (update_current_target): Update.
12963 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12965 (remote_insert_breakpoint): Add 'self' argument.
12966 (remote_insert_hw_breakpoint): Add 'self' argument.
12967 (remote_can_run_breakpoint_commands): Add 'self' argument.
12969 2014-02-19 Tom Tromey <tromey@redhat.com>
12971 * target.h (struct target_ops)
12972 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12973 (target_supports_evaluation_of_breakpoint_conditions): Add
12975 * target.c (update_current_target): Update.
12976 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12978 (remote_insert_breakpoint): Add 'self' argument.
12979 (remote_insert_hw_breakpoint): Add 'self' argument.
12980 (remote_supports_cond_breakpoints): Add 'self' argument.
12982 2014-02-19 Tom Tromey <tromey@redhat.com>
12984 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12986 (target_supports_string_tracing): Add argument.
12987 * target.c (update_current_target): Update.
12988 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12990 2014-02-19 Tom Tromey <tromey@redhat.com>
12992 * target.h (struct target_ops)
12993 <to_supports_disable_randomization>: Add argument.
12994 * target.c (find_default_supports_disable_randomization): Add
12996 (target_supports_disable_randomization): Add argument.
12997 (find_default_supports_disable_randomization): Add 'self'
12999 * remote.c (extended_remote_supports_disable_randomization): Add
13001 (remote_supports_disable_randomization): Add 'self' argument.
13002 (extended_remote_create_inferior): Update.
13003 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13006 2014-02-19 Tom Tromey <tromey@redhat.com>
13008 * target.h (struct target_ops)
13009 <to_supports_enable_disable_tracepoint>: Add argument.
13010 (target_supports_enable_disable_tracepoint): Add argument.
13011 * target.c (update_current_target): Update.
13012 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13015 2014-02-19 Tom Tromey <tromey@redhat.com>
13017 * target.h (struct target_ops) <to_supports_multi_process>: Add
13019 (target_supports_multi_process): Add argument.
13020 * target.c (update_current_target): Update.
13021 * remote.c (remote_supports_multi_process): Add 'self' argument.
13022 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13024 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13027 2014-02-19 Tom Tromey <tromey@redhat.com>
13029 * target.h (struct target_ops) <to_execution_direction>: Add
13031 (target_execution_direction): Add argument.
13032 * target.c (default_execution_direction): Add 'self' argument.
13033 * record-full.c (record_full_execution_direction): Add 'self'
13036 2014-02-19 Tom Tromey <tromey@redhat.com>
13038 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13040 (target_can_execute_reverse): Add argument.
13041 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13042 * record-full.c (record_full_can_execute_reverse): Add 'self'
13044 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13047 2014-02-19 Tom Tromey <tromey@redhat.com>
13049 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13050 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13052 (target_get_ada_task_ptid): Add argument.
13053 * target.c (update_current_target): Update.
13054 (default_get_ada_task_ptid): Add 'self' argument.
13055 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13056 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13057 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13059 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13061 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13063 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13065 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13066 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13069 2014-02-19 Tom Tromey <tromey@redhat.com>
13071 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13072 (target_goto_bookmark): Add argument.
13073 * target.c (dummy_goto_bookmark): Add 'self' argument.
13074 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13076 2014-02-19 Tom Tromey <tromey@redhat.com>
13078 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13079 (target_get_bookmark): Add argument.
13080 * target.c (dummy_get_bookmark): Add 'self' argument.
13081 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13083 2014-02-19 Tom Tromey <tromey@redhat.com>
13085 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13087 (target_make_corefile_notes): Add argument.
13088 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13089 * procfs.c (procfs_make_note_section): Add 'self' argument.
13090 (procfs_make_note_section): Add 'self' argument.
13091 (procfs_make_note_section): Add 'self' argument.
13092 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13094 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13095 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13096 * exec.c (exec_make_note_section): Add 'self' argument.
13097 (exec_make_note_section): Add 'self' argument.
13099 2014-02-19 Tom Tromey <tromey@redhat.com>
13101 * target.h (struct target_ops) <to_find_memory_regions>: Add
13103 (target_find_memory_regions): Add argument.
13104 * target.c (dummy_find_memory_regions): Add 'self' argument.
13105 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13106 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13107 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13108 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13109 * exec. (exec_do_find_memory_regions): New global.
13110 (exec_set_find_memory_regions): Rewrite.
13111 (exec_find_memory_regions): New function.
13112 (init_exec_ops): Use exec_find_memory_regions.
13114 2014-02-19 Tom Tromey <tromey@redhat.com>
13116 * target.h (struct target_ops) <to_supports_non_stop>: Add
13118 * target.c (find_default_supports_non_stop): Add argument.
13119 (target_supports_non_stop): Add argument.
13120 (find_default_supports_non_stop): Add 'self' argument.
13121 * remote.c (remote_supports_non_stop): Add 'self' argument.
13122 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13124 2014-02-19 Tom Tromey <tromey@redhat.com>
13126 * target.h (struct target_ops) <to_log_command>: Add argument.
13127 (target_log_command): Add argument.
13128 * serial.h (serial_log_command): Add 'self' argument.
13129 * serial.c (serial_log_command): Add 'self' argument.
13131 2014-02-19 Tom Tromey <tromey@redhat.com>
13133 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13134 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13136 (target_pid_to_exec_file): Add argument.
13137 * target.c (debug_to_pid_to_exec_file): Add argument.
13138 (update_current_target): Update.
13139 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13140 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13141 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13142 (linux_handle_extended_wait): Update.
13143 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13144 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13145 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13146 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13148 2014-02-19 Tom Tromey <tromey@redhat.com>
13150 * target.h (struct target_ops) <to_rcmd>: Add argument.
13151 (target_rcmd): Add argument.
13152 * target.c (debug_to_rcmd): Add argument.
13153 (update_current_target, do_monitor_command): Update.
13154 * remote.c (remote_rcmd): Add 'self' argument.
13155 * monitor.c (monitor_rcmd): Add 'self' argument.
13157 2014-02-19 Tom Tromey <tromey@redhat.com>
13159 * windows-nat.c (windows_stop): Add 'self' argument.
13160 * target.h (struct target_ops) <to_stop>: Add argument.
13161 * target.c (target_stop): Add argument.
13162 (debug_to_stop): Add argument.
13163 (update_current_target): Update.
13164 * remote.c (remote_stop): Add 'self' argument.
13165 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13166 (gdbsim_cntrl_c): Update.
13167 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13168 * procfs.c (procfs_stop): Add 'self' argument.
13169 * nto-procfs.c (procfs_stop): Add 'self' argument.
13170 * monitor.c (monitor_stop): Add 'self' argument.
13171 (monitor_open): Update.
13172 * linux-nat.c (linux_nat_stop): Add argument.
13173 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13174 * gnu-nat.c (gnu_stop): Add 'self' argument.
13175 * darwin-nat.c (darwin_stop): Add 'self' argument.
13177 2014-02-19 Tom Tromey <tromey@redhat.com>
13179 * target.h (struct target_ops) <to_thread_name>: Add argument.
13180 * target.c (target_thread_name): Add argument.
13181 (update_current_target): Update.
13182 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13184 2014-02-19 Tom Tromey <tromey@redhat.com>
13186 * target.h (struct target_ops) <to_extra_thread_info>: Add
13188 (target_extra_thread_info): Add argument.
13189 * target.c (update_current_target): Update.
13190 * remote.c (remote_threads_extra_info): Add 'self' argument.
13191 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13193 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13194 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13195 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13197 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13199 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13201 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13204 2014-02-19 Tom Tromey <tromey@redhat.com>
13206 * target.h (struct target_ops) <to_program_signals>: Add argument.
13207 * target.c (target_program_signals): Add argument.
13208 * remote.c (remote_program_signals): Add 'self' argument.
13210 2014-02-19 Tom Tromey <tromey@redhat.com>
13212 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13213 * target.c (target_pass_signals): Add argument.
13214 * remote.c (remote_pass_signals): Add 'self' argument.
13215 (remote_start_remote): Update.
13216 * procfs.c (procfs_pass_signals): Add 'self' argument.
13217 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13218 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13219 (linux_nat_create_inferior, linux_nat_attach): Update.
13221 2014-02-19 Tom Tromey <tromey@redhat.com>
13223 * windows-nat.c (windows_can_run): Add 'self' argument.
13224 * target.h (struct target_ops) <to_can_run>: Add argument.
13225 (target_can_run): Add argument.
13226 * target.c (debug_to_can_run): Add argument.
13227 (update_current_target): Update.
13228 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13229 * inf-child.c (inf_child_can_run): Add 'self' argument.
13230 * go32-nat.c (go32_can_run): Add 'self' argument.
13232 2014-02-19 Tom Tromey <tromey@redhat.com>
13234 * target.h (struct target_ops) <to_has_exited>: Add argument.
13235 (target_has_exited): Add argument.
13236 * target.c (debug_to_has_exited): Add argument.
13237 (update_current_target): Update.
13239 2014-02-19 Tom Tromey <tromey@redhat.com>
13241 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13243 (target_set_syscall_catchpoint): Add argument.
13244 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13246 * target.c (update_current_target): Update.
13248 2014-02-19 Tom Tromey <tromey@redhat.com>
13250 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13252 (target_remove_exec_catchpoint): Add argument.
13253 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13254 (update_current_target): Update.
13255 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13258 2014-02-19 Tom Tromey <tromey@redhat.com>
13260 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13262 (target_insert_exec_catchpoint): Add argument.
13263 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13264 (update_current_target): Update.
13265 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13268 2014-02-19 Tom Tromey <tromey@redhat.com>
13270 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13272 (target_remove_vfork_catchpoint): Add argument.
13273 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13274 (update_current_target): Update.
13275 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13278 2014-02-19 Tom Tromey <tromey@redhat.com>
13280 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13282 (target_insert_vfork_catchpoint): Add argument.
13283 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13284 (update_current_target): Update.
13285 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13288 2014-02-19 Tom Tromey <tromey@redhat.com>
13290 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13292 (target_remove_fork_catchpoint): Add argument.
13293 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13294 (update_current_target): Update.
13295 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13298 2014-02-19 Tom Tromey <tromey@redhat.com>
13300 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13302 (target_insert_fork_catchpoint): Add argument.
13303 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13304 (update_current_target): Update.
13305 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13308 2014-02-19 Tom Tromey <tromey@redhat.com>
13310 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13312 (target_post_startup_inferior): Add argument.
13313 * target.c (debug_to_post_startup_inferior): Add argument.
13314 (update_current_target): Update.
13315 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13317 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13319 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13321 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13323 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13325 (super_post_startup_inferior): Likewise.
13326 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13328 (super_post_startup_inferior): Likewise.
13329 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13330 Add 'self' argument.
13331 (super_post_startup_inferior): Likewise.
13333 2014-02-19 Tom Tromey <tromey@redhat.com>
13335 * target.h (struct target_ops) <to_load>: Add argument.
13336 * target.c (target_load): Add argument.
13337 (debug_to_load): Add argument.
13338 (update_current_target): Update.
13339 * remote.c (remote_load): Add 'self' argument.
13340 * remote-sim.c (gdbsim_load): Add 'self' argument.
13341 * remote-mips.c (mips_load): Add 'self' argument.
13342 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13343 * monitor.c (monitor_load): Add 'self' argument.
13344 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13346 2014-02-19 Tom Tromey <tromey@redhat.com>
13348 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13349 (target_terminal_info): Add argument.
13350 * target.c (debug_to_terminal_info): Add argument.
13351 (default_terminal_info): Likewise.
13352 * inflow.c (child_terminal_info): Add 'self' argument.
13353 * inferior.h (child_terminal_info): Add 'self' argument.
13354 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13356 2014-02-19 Tom Tromey <tromey@redhat.com>
13358 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13360 (target_terminal_save_ours): Add argument.
13361 * target.c (debug_to_terminal_save_ours): Add argument.
13362 (update_current_target): Update.
13363 * inflow.c (terminal_save_ours): Add 'self' argument.
13364 * inferior.h (terminal_save_ours): Add 'self' argument.
13366 2014-02-19 Tom Tromey <tromey@redhat.com>
13368 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13369 (target_terminal_ours): Add argument.
13370 * target.c (debug_to_terminal_ours): Add argument.
13371 (update_current_target): Update.
13372 * remote.c (remote_terminal_ours): Add 'self' argument.
13373 (remote_close): Update.
13374 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13375 * inflow.c (terminal_ours): Add 'self' argument.
13376 * inferior.h (terminal_ours): Add 'self' argument.
13377 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13379 2014-02-19 Pedro Alves <palves@redhat.com>
13380 Tom Tromey <tromey@redhat.com>
13382 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13384 (target_terminal_ours_for_output): Add argument.
13385 * target.c (debug_to_terminal_ours_for_output): Add argument.
13386 (update_current_target): Update.
13387 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13388 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13389 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13391 2014-02-19 Tom Tromey <tromey@redhat.com>
13393 * target.h (struct target_ops) <to_terminal_inferior>: Add
13395 * target.c (target_terminal_inferior): Add argument.
13396 (update_current_target): Update.
13397 * remote.c (remote_terminal_inferior): Add 'self' argument.
13398 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13399 * inflow.c (terminal_inferior): Add 'self' argument.
13400 * inferior.h (terminal_inferior): Add 'self' argument.
13401 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13402 (go32_terminal_inferior): Add 'self' argument.
13404 2014-02-19 Tom Tromey <tromey@redhat.com>
13406 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13407 (target_terminal_init): Add argument.
13408 * target.c (debug_to_terminal_init): Add argument.
13409 (update_current_target): Update.
13410 * inflow.c (terminal_init_inferior): Add 'self' argument.
13411 * inferior.h (terminal_init_inferior): Add 'self' argument.
13412 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13413 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13415 2014-02-19 Tom Tromey <tromey@redhat.com>
13417 * target.h (struct target_ops)
13418 <to_can_accel_watchpoint_condition>: Add argument.
13419 (target_can_accel_watchpoint_condition): Add argument.
13420 * target.c (debug_to_can_accel_watchpoint_condition): Add
13422 (update_current_target): Update.
13423 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13426 2014-02-19 Tom Tromey <tromey@redhat.com>
13428 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13430 (target_region_ok_for_hw_watchpoint): Add argument.
13431 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13432 (default_region_ok_for_hw_watchpoint): Add argument.
13433 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13434 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13436 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13438 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13440 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13442 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13444 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13446 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13447 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13449 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13450 Add 'self' argument.
13452 2014-02-19 Tom Tromey <tromey@redhat.com>
13454 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13456 (target_insert_watchpoint): Add argument.
13457 * target.c (debug_to_insert_watchpoint): Add argument.
13458 (update_current_target): Update.
13459 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13460 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13461 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13462 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13463 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13464 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13466 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13467 (procfs_insert_hw_watchpoint): Add 'self' argument.
13468 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13470 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13472 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13474 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13475 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13477 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13480 2014-02-19 Tom Tromey <tromey@redhat.com>
13482 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13484 (target_remove_watchpoint): Add argument.
13485 * target.c (debug_to_remove_watchpoint): Add argument.
13486 (update_current_target): Update.
13487 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13488 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13489 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13490 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13491 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13492 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13494 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13495 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13497 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13499 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13501 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13502 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13504 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13507 2014-02-19 Tom Tromey <tromey@redhat.com>
13509 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13511 (target_remove_hw_breakpoint): Add argument.
13512 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13513 (update_current_target): Update.
13514 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13515 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13517 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13518 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13520 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13523 2014-02-19 Tom Tromey <tromey@redhat.com>
13525 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13527 (target_insert_hw_breakpoint): Add argument.
13528 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13529 (update_current_target): Update.
13530 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13531 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13533 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13534 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13535 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13537 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13540 2014-02-19 Tom Tromey <tromey@redhat.com>
13542 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13544 (target_can_use_hardware_watchpoint): Add argument.
13545 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13546 (update_current_target): Update.
13547 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13549 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13551 * remote.c (remote_check_watch_resources): Add 'self' argument.
13552 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13553 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13555 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13556 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13558 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13560 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13562 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13564 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13566 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13568 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13569 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13571 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13574 2014-02-19 Tom Tromey <tromey@redhat.com>
13576 * target.h (struct target_ops) <to_post_attach>: Add argument.
13577 (target_post_attach): Add argument.
13578 * target.c (debug_to_post_attach): Add argument.
13579 (update_current_target): Update.
13580 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13581 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13582 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13583 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13584 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13586 2014-02-19 Tom Tromey <tromey@redhat.com>
13588 * windows-nat.c (windows_close): Add 'self' argument.
13589 * tracepoint.c (tfile_close): Add 'self' argument.
13590 * target.h (struct target_ops) <to_close>: Add argument.
13591 * target.c (target_close): Add argument.
13592 (update_current_target): Update.
13593 * remote.c (remote_close): Add 'self' argument.
13594 * remote-sim.c (gdbsim_close): Add 'self' argument.
13595 * remote-mips.c (mips_close): Add 'self' argument.
13596 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13597 * record-full.c (record_full_close): Add 'self' argument.
13598 * record-btrace.c (record_btrace_close): Add 'self' argument.
13599 * monitor.h (monitor_close): Add 'self' argument.
13600 * monitor.c (monitor_close): Add 'self' argument.
13601 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13602 * linux-nat.c (linux_nat_close): Add argument.
13603 * go32-nat.c (go32_close): Add 'self' argument.
13604 * exec.c (exec_close_1): Add 'self' argument.
13605 * ctf.c (ctf_close): Add 'self' argument.
13606 * corelow.c (core_close): Add 'self' argument.
13607 (core_close_cleanup): Update.
13608 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13609 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13611 2014-02-19 Tom Tromey <tromey@redhat.com>
13613 * remote.c (remote_load): New function.
13614 (init_remote_ops): Use it.
13616 2014-02-19 Tom Tromey <tromey@redhat.com>
13618 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13620 * common/linux-btrace.h (linux_supports_btrace): Update.
13621 * remote.c (remote_supports_btrace): Add "self" argument.
13622 * target-delegates.c: Rebuild.
13623 * target.c (target_supports_btrace): Remove.
13624 * target.h (struct target_ops) <to_supports_btrace>: Add
13625 target_ops argument.
13626 (target_supports_btrace): New define.
13628 2014-02-19 Tom Tromey <tromey@redhat.com>
13630 * record-full.c (record_full_beneath_to_resume_ops)
13631 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13632 (record_full_beneath_to_wait)
13633 (record_full_beneath_to_store_registers_ops)
13634 (record_full_beneath_to_store_registers)
13635 (record_full_beneath_to_xfer_partial_ops)
13636 (record_full_beneath_to_xfer_partial)
13637 (record_full_beneath_to_insert_breakpoint_ops)
13638 (record_full_beneath_to_insert_breakpoint)
13639 (record_full_beneath_to_remove_breakpoint_ops)
13640 (record_full_beneath_to_remove_breakpoint)
13641 (record_full_beneath_to_stopped_by_watchpoint)
13642 (record_full_beneath_to_stopped_data_address)
13643 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13644 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13645 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13646 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13647 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13648 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13649 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13650 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13651 (record_full_resume, record_full_wait_1)
13652 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13653 (record_full_store_registers, record_full_xfer_partial)
13654 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13655 (record_full_async, record_full_core_xfer_partial): Use target
13657 * target-delegates.c: Rebuild.
13658 * target.c (current_xfer_partial): Remove.
13659 (update_current_target): Do not INHERIT or de_fault
13660 to_insert_breakpoint, to_remove_breakpoint,
13661 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13662 to_is_async_p, to_async. Do not set to_xfer_partial field.
13663 (default_xfer_partial): Simplify.
13664 (current_xfer_partial): Remove.
13665 (target_wait, target_resume): Simplify.
13666 (find_default_can_async_p, find_default_is_async_p): Update.
13667 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13668 to_xfer_partial, to_stopped_by_watchpoint,
13669 to_stopped_data_address.
13670 (target_store_registers): Simplify.
13671 (forward_target_remove_breakpoint)
13672 (forward_target_insert_breakpoint): Remove.
13673 (target_remove_breakpoint, target_insert_breakpoint)
13674 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13675 * target.h (struct target_ops) <to_resume, to_wait,
13676 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13677 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13678 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13680 (forward_target_remove_breakpoint)
13681 (forward_target_insert_breakpoint): Remove.
13682 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13684 (record_btrace_insert_breakpoint): Delegate directly.
13686 2014-02-19 Tom Tromey <tromey@redhat.com>
13689 * target-delegates.c: New file.
13690 * target.c: Include target-delegates.c.
13691 (init_dummy_target): Call install_dummy_methods.
13692 (complete_target_initialization): Call install_delegators.
13693 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13694 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13695 * make-target-delegates: New file.
13697 2014-02-19 Tom Tromey <tromey@redhat.com>
13699 * record.c (find_record_target): Use find_target_at.
13700 * target.c (find_target_at): New function.
13701 * target.h (find_target_at): Declare.
13703 2014-02-19 Tom Tromey <tromey@redhat.com>
13705 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13706 Add 'ops' argument.
13707 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13709 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13710 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13712 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13714 * linux-nat.c (save_sigtrap): Update.
13715 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13716 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13717 (linux_nat_close): Update.
13718 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13720 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13722 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13723 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13724 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13725 (tmp_to_async): Add 'ops' argument.
13726 (record_full_stopped_by_watchpoint, record_full_async)
13727 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13729 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13730 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13731 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13732 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13733 (remote_is_async_p, remote_async): Add 'ops' argument.
13734 (remote_stopped_data_address): Update.
13735 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13736 * target.c (update_current_target)
13737 (find_default_can_async_p, find_default_is_async_p): Update.
13738 (init_dummy_target): Update.
13739 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13740 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13741 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13742 (target_can_async_p, target_is_async_p, target_async)
13743 (target_stopped_by_watchpoint): Update.
13745 2014-02-19 Yao Qi <yao@codesourcery.com>
13748 * gdbarch.sh: Remove startup_gdbarch.
13749 * gdbarch.c: Regenerated.
13750 * gdbarch.h: Likewise.
13752 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13754 * rl78-tdep.c (rl78_g10_register_name): New function.
13755 (rl78_return_value): Add g10 support.
13756 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13759 2014-02-17 Doug Evans <xdje42@gmail.com>
13761 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13762 (SUBDIR_GUILE_SRCS): Ditto.
13763 (scm-gsmob.o): Ditto.
13765 2014-02-17 Yao Qi <yao@codesourcery.com>
13767 * gnu-nat.c (ILL_RPC): Declare defined function.
13769 2014-02-17 Yao Qi <yao@codesourcery.com>
13771 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13772 mach_msg_type_number_t.
13773 (gnu_write_inferior): Likewise.
13775 2014-02-17 Yao Qi <yao@codesourcery.com>
13777 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13779 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13780 (inf_validate_procs, inf_signal): Likewise.
13781 (S_exception_raise_request): Likewise.
13782 (do_mach_notify_dead_name): Likewise.
13783 (steal_exc_port): Likewise.
13784 (gnu_read_inferior): Change 'copy_count''s type to
13785 mach_msg_type_number_t.
13786 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13789 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13791 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13792 flag. Adjust all users; in particular...
13793 (gnu_wait): ..., don't decrement its value in here...
13794 (gnu_create_inferior): ..., and instead set the flag in here,
13795 around the startup_inferior call, and call that one with
13796 START_INFERIOR_TRAPS_EXPECTED.
13798 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13799 (ILL_RPC): ... new macro.
13800 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13801 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13802 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13803 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13804 functions with ILL_RPC macro.
13805 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13806 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13807 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13808 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13809 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13810 (S_proc_getlogin_reply, S_proc_getsid_reply)
13811 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13812 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13813 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13814 (S_proc_getnports_reply, S_proc_is_important_reply)
13815 (S_proc_get_code_reply): New stub functions, generated with
13818 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13819 collected the type check structures.
13821 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13823 2014-02-14 Doug Evans <dje@google.com>
13825 * target.c (target_write_partial): Fix result type.
13827 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13829 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13830 the proper offsets to access fpregset_t.
13832 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13834 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13835 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13836 * h8300-tdep.c (setmachinelist): Remove global.
13837 * hppa-tdep.c (hppa_sigtramp): Remove global.
13838 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13839 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13840 * ravenscar-thread.c (update_target_observer): Remove global.
13841 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13843 2014-02-12 Tom Tromey <tromey@redhat.com>
13845 * common/rsp-low.c: Update comments.
13846 * common/rsp-low.h: Update comments.
13848 2014-02-12 Tom Tromey <tromey@redhat.com>
13850 * common/rsp-low.c (convert_ascii_to_int): Remove.
13851 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13853 2014-02-12 Tom Tromey <tromey@redhat.com>
13855 * common/rsp-low.h (unhexify): Don't declare.
13856 * common/rsp-low.c (unhexify): Remove.
13858 2014-02-12 Tom Tromey <tromey@redhat.com>
13860 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13861 * common/rsp-low.c (convert_int_to_ascii): Remove.
13863 2014-02-12 Tom Tromey <tromey@redhat.com>
13865 * common/rsp-low.h (hexify): Don't declare.
13866 * common/rsp-low.c (hexify): Remove.
13868 2014-02-12 Tom Tromey <tromey@redhat.com>
13870 * common/rsp-low.c (hexify): Never take strlen of argument.
13872 2014-02-12 Tom Tromey <tromey@redhat.com>
13874 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13875 * remote.c (extended_remote_run, remote_rcmd)
13876 (remote_download_trace_state_variable, remote_save_trace_data)
13877 (remote_set_trace_notes): Update.
13878 * tracepoint.c (encode_source_string, tfile_write_status)
13879 (tfile_write_uploaded_tsv): Update.
13881 2014-02-12 Tom Tromey <tromey@redhat.com>
13883 * tracepoint.c: Include rsp-low.h.
13884 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13885 * remote.c: Include rsp-low.h.
13886 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13887 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13888 (remote_unescape_input): Move to common/rsp-low.c.
13889 * common/rsp-low.h: New file.
13890 * common/rsp-low.c: New file.
13891 * Makefile.in (SFILES): Add common/rsp-low.c.
13892 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13893 (COMMON_OBS): Add rsp-low.o.
13894 (rsp-low.o): New target.
13896 2014-02-12 Tom Tromey <tromey@redhat.com>
13898 * utils.h: Include print-utils.h.
13899 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13900 (int_string, core_addr_to_string, core_addr_to_string_nz)
13901 (hex_string, hex_string_custom): Don't declare.
13902 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13903 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13904 (hex_string_custom, int_string, core_addr_to_string)
13905 (core_addr_to_string_nz, host_address_to_string): Move to
13906 common/print-utils.c.
13907 * common/print-utils.h: New file.
13908 * common/print-utils.c: New file
13909 * Makefile.in (SFILES): Add common/print-utils.c.
13910 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13911 (COMMON_OBS): Add print-utils.o.
13912 (print-utils.o): New target.
13914 2014-02-12 Tom Tromey <tromey@redhat.com>
13916 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13918 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13920 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13922 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13924 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13925 if a PT_IO ptrace request returns sucessfully but indicates that 0
13926 bytes were transferred.
13928 2014-02-12 Pedro Alves <palves@redhat.com>
13929 Kevin Buettner <kevinb@redhat.com>
13931 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13932 TYPE_INSTANCE_FLAG_CODE_SPACE.
13934 2014-02-12 Pedro Alves <palves@redhat.com>
13936 * h8300-tdep.c (pseudo_from_raw_register)
13937 (raw_from_pseudo_register): New functions.
13938 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13941 2014-02-12 Pedro Alves <palves@redhat.com>
13943 * h8300-tdep.c (h8300_register_sim_regno): New function.
13944 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13945 gdbarch_register_sim_regno hook.
13947 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13949 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13951 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13953 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13955 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13957 * obsd-tdep.h (obsd_init_abi): New prototype.
13958 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13959 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13960 (obsd_init_abi): New functions.
13961 * i386obsd-tdep.c: Include "obsd-tdep.h".
13962 (i386obsd_init_abi): Call obsd_init_abi.
13963 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13964 (amd64obsd_init_abi): Call obsd_init_abi.
13965 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13966 obsd-tdep.c to gdb_target_obs.
13968 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13970 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13971 double float arguments to 16-byte in the argument slots.
13973 2014-02-11 Doug Evans <xdje42@gmail.com>
13975 * configure.ac: Don't crash if pkg-config is not found and guile
13976 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13978 * configure: Regenerate.
13980 2014-02-11 Yao Qi <yao@codesourcery.com>
13982 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13983 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13984 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13985 * gnu-nat.c (gnu_xfer_memory): Likewise.
13986 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13987 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13988 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13989 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13991 2014-02-11 Yao Qi <yao@codesourcery.com>
13993 * target.h (enum target_xfer_error): Rename to ...
13994 (enum target_xfer_status): ... it. New. All users updated.
13995 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13997 (TARGET_XFER_STATUS_ERROR_P): New macro.
13998 (target_xfer_error_to_string): Remove declaration.
13999 (target_xfer_status_to_string): Declare.
14000 (target_xfer_partial_ftype): Adjust it.
14001 (struct target_ops) <to_xfer_partial>: Return
14002 target_xfer_status. Add argument xfered_len. Update
14004 * target.c (target_xfer_error_to_string): Rename to ...
14005 (target_xfer_status_to_string): ... it. New. All callers
14007 (target_read_live_memory): Likewise. Call target_xfer_partial
14008 instead of target_read.
14009 (memory_xfer_live_readonly_partial): Return
14010 target_xfer_status. Add argument xfered_len.
14011 (raw_memory_xfer_partial): Likewise.
14012 (memory_xfer_partial_1): Likewise.
14013 (memory_xfer_partial): Likewise.
14014 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14015 properly. Update debug message.
14016 (default_xfer_partial, current_xfer_partial): Likewise.
14017 (target_write_partial): Likewise.
14018 (target_read_partial): Likewise. All callers updated.
14019 (read_whatever_is_readable): Likewise.
14020 (target_write_with_progress): Likewise.
14021 (target_read_alloc_1): Likewise.
14023 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14024 * auxv.c (procfs_xfer_auxv): Likewise.
14025 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14026 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14027 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14028 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14029 * corefile.c (read_memory): Adjust.
14030 * corelow.c (core_xfer_partial): Likewise.
14031 * ctf.c (ctf_xfer_partial): Likewise.
14032 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14034 (darwin_xfer_partial): Likewise.
14035 * exec.c (section_table_xfer_memory_partial): Likewise. All
14037 (exec_xfer_partial): Likewise.
14038 * exec.h (section_table_xfer_memory_partial): Update
14040 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14042 (gnu_xfer_partial): Likewise.
14043 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14044 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14045 (ia64_hpux_xfer_solib_got): Likewise.
14046 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14047 type of 'partial_len' to ULONGEST.
14048 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14049 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14050 (linux_nat_xfer_partial): Likewise.
14051 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14052 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14053 * monitor.c (monitor_xfer_memory): Likewise.
14054 (monitor_xfer_partial): Likewise.
14055 * procfs.c (procfs_xfer_partial): Likewise.
14056 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14057 * record-full.c (record_full_xfer_partial): Likewise.
14058 (record_full_core_xfer_partial): Likewise.
14059 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14060 (gdbsim_xfer_partial): Likewise.
14061 * remote.c (remote_write_bytes_aux): Likewise. All callers
14063 (remote_write_bytes, remote_read_bytes): Likewise. All
14065 (remote_flash_erase): Likewise. All callers updated.
14066 (remote_write_qxfer): Likewise. All callers updated.
14067 (remote_read_qxfer): Likewise. All callers updated.
14068 (remote_xfer_partial): Likewise.
14069 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14070 (rs6000_xfer_shared_libraries): Likewise.
14071 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14072 (sol_thread_xfer_partial): Likewise.
14073 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14074 (sparc_xfer_partial): Likewise.
14075 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14077 (spu_xfer_partial): Likewise.
14078 * spu-multiarch.c (spu_xfer_partial): Likewise.
14079 * tracepoint.c (tfile_xfer_partial): Likewise.
14080 * windows-nat.c (windows_xfer_memory): Likewise.
14081 (windows_xfer_shared_libraries): Likewise.
14082 (windows_xfer_partial): Likewise.
14083 * valprint.c: Replace 'target_xfer_error' with
14084 'target_xfer_status' in comments.
14086 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14088 Checked in by Joel Brobecker <brobecker@adacore.com>.
14089 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14091 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14093 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14094 function parameters.
14096 2014-02-10 Will Newton <will.newton@linaro.org>
14098 * elfread.c (elf_rel_plt_read): Look for a .got section if
14099 looking up .got.plt fails.
14100 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14101 on address passed to elf_gnu_ifunc_record_cache.
14102 (elf_gnu_ifunc_resolve_addr): Likewise.
14103 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14105 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14107 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14108 (X_RETTURN): New macro.
14109 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14111 * sparc64-tdep.c (sparc64_init_abi): Hook
14112 sparc_in_function_epilogue_p.
14114 2014-02-10 Gary Benson <gbenson@redhat.com>
14116 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14117 Rename name_matcher to symbol_matcher.
14119 2014-02-10 Gary Benson <gbenson@redhat.com>
14121 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14122 Use expand_symtabs_file_matcher_ftype and
14123 expand_symtabs_symbol_matcher_ftype.
14125 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14127 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14128 (struct ada_symbol_cache): New.
14129 (ada_free_symbol_cache): Forward declare.
14130 (struct ada_pspace_data): New.
14131 (ada_pspace_data_handle): New static global.
14132 (get_ada_pspace_data, ada_pspace_data_cleanup)
14133 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14134 (cache_space, cache): Delete, now folded inside struct
14136 (ada_get_symbol_cache): New function.
14137 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14139 (_initialize_ada_language): Remove initialization of cache_space.
14140 Move call to observer_attach_inferior_exit up, grouping it
14141 with the other observer registrations inside this function.
14142 Rename command to be more general. Add call to
14143 register_program_space_data_with_cleanup.
14145 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14147 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14148 ada_new_objfile_observer.
14149 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14150 (_initialize_tasks): Update uses of ada_new_objfile_observer
14151 and ada_tasks_normal_stop_observer.
14153 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14155 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14156 returned by the 'Length attribute to integer.
14158 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14160 * ada-lang.c (_initialize_ada_language): Initialize
14161 cache_space obstack.
14163 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14165 * ada-lang.c (HASH_SIZE): New macro.
14166 (struct cache_entry): New type.
14167 (cache_space, cache): New static globals.
14168 (ada_clear_symbol_cache, find_entry): New functions.
14169 (lookup_cached_symbol, cache_symbol): Implement.
14170 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14171 (_initialize_ada_language): Attach ada_new_objfile_observer
14172 and ada_free_objfile_observer.
14174 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14176 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14177 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14178 struct block * parameter.
14179 (ada_lookup_symbol_list_worker): Constify local variable "block".
14180 Remove cast which is no longer necessary.
14182 2014-02-10 Doug Evans <xdje42@gmail.com>
14184 Add Guile as an extension language.
14185 * NEWS: Mention Guile scripting.
14186 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14187 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14188 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14189 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14190 (CLIBS): Add GUILE_LIBS.
14191 (install-guile): New rule.
14192 (guile.o): New rule.
14193 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14194 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14195 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14196 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14197 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14198 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14199 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14200 * configure.ac: New option --with-guile.
14201 * configure: Regenerate.
14202 * config.in: Regenerate.
14203 * auto-load.c: Remove #include "python/python.h". Add #include
14204 "gdb/section-scripts.h".
14205 (source_section_scripts): Handle Guile scripts.
14206 (_initialize_auto_load): Add name of Guile objfile script to
14207 scripts-directory help text.
14208 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14209 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14210 (struct breakpoint): New member scm_bp_object.
14211 * defs.h (enum command_control_type): New value guile_control.
14212 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14214 (show_user): Update comment.
14215 (_initialize_cli_cmds): Update help text for "show user". Update help
14216 text for max-user-call-depth.
14217 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14219 (multi_line_command_p): Add guile_control.
14220 (print_command_lines): Handle guile_control.
14221 (execute_control_command, recurse_read_control_structure): Ditto.
14222 (process_next_line): Recognize "guile" commands.
14223 * disasm.c (gdb_disassemble_info): Make non-static.
14224 * disasm.h: #include "dis-asm.h".
14225 (struct gdbarch): Add forward decl.
14226 (gdb_disassemble_info): Declare.
14227 * extension.c: #include "guile/guile.h".
14228 (extension_languages): Add guile.
14229 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14230 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14231 * gdbtypes.c (get_unsigned_type_max): New function.
14232 (get_signed_type_minmax): New function.
14233 * gdbtypes.h (get_unsigned_type_max): Declare.
14234 (get_signed_type_minmax): Declare.
14235 * guile/README: New file.
14236 * guile/guile-internal.h: New file.
14237 * guile/guile.c: New file.
14238 * guile/guile.h: New file.
14239 * guile/scm-arch.c: New file.
14240 * guile/scm-auto-load.c: New file.
14241 * guile/scm-block.c: New file.
14242 * guile/scm-breakpoint.c: New file.
14243 * guile/scm-disasm.c: New file.
14244 * guile/scm-exception.c: New file.
14245 * guile/scm-frame.c: New file.
14246 * guile/scm-gsmob.c: New file.
14247 * guile/scm-iterator.c: New file.
14248 * guile/scm-lazy-string.c: New file.
14249 * guile/scm-math.c: New file.
14250 * guile/scm-objfile.c: New file.
14251 * guile/scm-ports.c: New file.
14252 * guile/scm-pretty-print.c: New file.
14253 * guile/scm-safe-call.c: New file.
14254 * guile/scm-string.c: New file.
14255 * guile/scm-symbol.c: New file.
14256 * guile/scm-symtab.c: New file.
14257 * guile/scm-type.c: New file.
14258 * guile/scm-utils.c: New file.
14259 * guile/scm-value.c: New file.
14260 * guile/lib/gdb.scm: New file.
14261 * guile/lib/gdb/boot.scm: New file.
14262 * guile/lib/gdb/experimental.scm: New file.
14263 * guile/lib/gdb/init.scm: New file.
14264 * guile/lib/gdb/iterator.scm: New file.
14265 * guile/lib/gdb/printing.scm: New file.
14266 * guile/lib/gdb/types.scm: New file.
14267 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14268 (VPATH): Add $(GUILE_SRCDIR).
14269 (GUILE_DIR): New variable.
14270 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14271 (all): Add stamp-guile dependency.
14272 (stamp-guile): New rule.
14273 (clean-guile, install-guile, uninstall-guile): New rules.
14274 (install-only): Add install-guile dependency.
14275 (uninstall): Add uninstall-guile dependency.
14276 (clean): Add clean-guile dependency.
14278 2014-02-09 Doug Evans <xdje42@gmail.com>
14280 Revert this patch (which I approved, mea culpa).
14282 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14284 * Makefile.in (all-lib): Remove.
14285 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14287 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14289 Fix Python stack corruption.
14290 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14293 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14295 * Makefile.in (all-lib): Remove.
14296 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14298 2014-02-07 Doug Evans <dje@google.com>
14300 * extension-priv.h (extension_language_script_ops): Add comment.
14301 (extension_language_ops): Add comment.
14302 (active_ext_lang_state): Fix typo in comment.
14304 2014-02-07 Pedro Alves <palves@redhat.com>
14306 PR breakpoints/16292
14307 * infrun.c (handle_signal_stop) <signal arrives while stepping
14308 over a breakpoint>: Switch back to the stepping thread.
14310 2014-02-07 Yao Qi <yao@codesourcery.com>
14312 * target.c (target_xfer_partial): Return zero if LEN is zero.
14314 2014-02-07 Yao Qi <yao@codesourcery.com>
14316 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14317 (ld_so_xfer_auxv): Likewise.
14318 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14319 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14320 * corelow.c (core_xfer_partial): Likewise.
14321 * ctf.c (ctf_xfer_partial): Likewise.
14322 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14323 (darwin_xfer_partial): Likewise.
14324 * exec.c (exec_xfer_partial): Likewise.
14325 * gnu-nat.c (gnu_xfer_partial): Likewise.
14326 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14327 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14328 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14329 * linux-nat.c (linux_xfer_siginfo): Likewise.
14330 (linux_proc_xfer_spu): Likewise.
14331 * procfs.c (procfs_xfer_partial): Likewise.
14332 * record-full.c (record_full_xfer_partial): Likewise.
14333 (record_full_core_xfer_partial): Likewise.
14334 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14335 * remote.c (remote_write_qxfer): Likewise.
14336 (remote_write_qxfer, remote_read_qxfer): Likewise.
14337 (remote_xfer_partial): Likewise.
14338 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14339 (rs6000_xfer_shared_libraries): Likewise.
14340 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14341 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14342 (spu_xfer_partial): Likewise.
14343 * target.c (memory_xfer_partial_1): Likewise.
14344 * tracepoint.c (tfile_xfer_partial): Likewise.
14345 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14346 (windows_xfer_partial): Likewise.
14348 2014-02-07 Yao Qi <yao@codesourcery.com>
14350 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14352 (core_xfer_shared_libraries_aix): Likewise.
14353 * gdbarch.c, gdbarch.h: Regenerated.
14354 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14355 ULONGEST. Change 'len_avail' type to ULONGEST.
14356 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14357 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14359 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14361 2014-02-07 Yao Qi <yao@codesourcery.com>
14363 * corefile.c (memory_error): Get 'exception' from ERR and pass
14364 'exception' to throw_error.
14366 2014-02-06 Doug Evans <xdje42@gmail.com>
14368 * configure.ac (libpython checking): Remove all but python.o from
14369 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14370 * configure: Regenerate.
14372 * Makefile.in (SFILES): Add extension.c.
14373 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14374 (COMMON_OBS): Add extension.o.
14375 * extension.h: New file.
14376 * extension-priv.h: New file.
14377 * extension.c: New file.
14379 * python/python-internal.h: #include "extension.h".
14380 (gdbpy_auto_load_enabled): Declare.
14381 (gdbpy_apply_val_pretty_printer): Declare.
14382 (gdbpy_apply_frame_filter): Declare.
14383 (gdbpy_preserve_values): Declare.
14384 (gdbpy_breakpoint_cond_says_stop): Declare.
14385 (gdbpy_breakpoint_has_cond): Declare.
14386 (void source_python_script_for_objfile): Delete.
14387 * python/python.c: #include "extension-priv.h".
14388 Delete inclusion of "observer.h".
14389 (extension_language_python): Moved here and renamed from
14390 script_language_python in py-auto-load.c.
14391 Redefined to be of type extension_language_defn.
14392 (python_extension_script_ops): New global.
14393 (python_extension_ops): New global.
14394 (struct python_env): New member previous_active.
14395 (restore_python_env): Call restore_active_ext_lang.
14396 (ensure_python_env): Call set_active_ext_lang.
14397 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14399 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14401 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14403 (gdbpy_eval_from_control_command): Renamed from
14404 eval_python_from_control_command, made static. New arg extlang.
14405 (gdbpy_source_script) Renamed from source_python_script, made static.
14407 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14408 result to int. New arg extlang.
14409 (gdbpy_source_objfile_script): Renamed from
14410 source_python_script_for_objfile, made static. New arg extlang.
14411 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14412 static. New args extlang, extlang_printers. Change result type to
14414 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14415 static. New arg extlang. Rename arg printers to extlang_printers
14416 and change type to ext_lang_type_printers *.
14417 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14418 static. Replace argument arg with extlang, extlang_printers.
14419 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14420 (!HAVE_PYTHON, source_python_script): Delete.
14421 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14422 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14423 (!HAVE_PYTHON, start_type_printers): Delete.
14424 (!HAVE_PYTHON, apply_type_printers): Delete.
14425 (!HAVE_PYTHON, free_type_printers): Delete.
14426 (_initialize_python): Delete call to observer_attach_before_prompt.
14427 (finalize_python): Set/restore active extension language.
14428 (gdbpy_finish_initialization) Renamed from
14429 finish_python_initialization, made static. New arg extlang.
14430 (gdbpy_initialized): New function.
14431 * python/python.h: #include "extension.h". Delete #include
14432 "value.h", "mi/mi-cmds.h".
14433 (extension_language_python): Declare.
14434 (GDBPY_AUTO_FILE_NAME): Delete.
14435 (enum py_bt_status): Moved to extension.h and renamed to
14436 ext_lang_bt_status.
14437 (enum frame_filter_flags): Moved to extension.h.
14438 (enum py_frame_args): Moved to extension.h and renamed to
14439 ext_lang_frame_args.
14440 (finish_python_initialization): Delete.
14441 (eval_python_from_control_command): Delete.
14442 (source_python_script): Delete.
14443 (apply_val_pretty_printer): Delete.
14444 (apply_frame_filter): Delete.
14445 (preserve_python_values): Delete.
14446 (gdbpy_script_language_defn): Delete.
14447 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14448 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14450 * auto-load.c: #include "extension.h".
14451 (GDB_AUTO_FILE_NAME): Delete.
14452 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14453 (script_language_gdb): Delete, moved to extension.c and renamed to
14454 extension_language_gdb.
14455 (source_gdb_script_for_objfile): Delete.
14456 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14457 (loaded_script): Change type of language member to
14458 struct extension_language_defn *.
14459 (init_loaded_scripts_info): Initialize
14460 unsupported_script_warning_printed.
14461 (maybe_add_script): Make static. Change type of language arg to
14462 struct extension_language_defn *.
14463 (clear_section_scripts): Reset unsupported_script_warning_printed.
14464 (auto_load_objfile_script_1): Rewrite to use extension language API.
14465 (auto_load_objfile_script): Make public. Remove support-compiled-in
14466 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14467 (source_section_scripts): Rewrite to use extension language API.
14468 (load_auto_scripts_for_objfile): Rewrite to use
14469 auto_load_scripts_for_objfile.
14470 (collect_matching_scripts_data): Change type of language member to
14471 struct extension_language_defn *.
14472 (auto_load_info_scripts): Change type of language arg to
14473 struct extension_language_defn *.
14474 (unsupported_script_warning_print): New function.
14475 (script_not_found_warning_print): Make static.
14476 (_initialize_auto_load): Rewrite construction of scripts-directory
14478 * auto-load.h (struct objfile): Add forward decl.
14479 (struct script_language): Delete.
14480 (struct auto_load_pspace_info): Add forward decl.
14481 (struct extension_language_defn): Add forward decl.
14482 (maybe_add_script): Delete.
14483 (auto_load_objfile_script): Declare.
14484 (script_not_found_warning_print): Delete.
14485 (auto_load_info_scripts): Update prototype.
14486 (auto_load_gdb_scripts_enabled): Declare.
14487 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14488 auto_load_python_scripts_enabled and made public.
14489 (script_language_python): Delete, moved to python.c.
14490 (gdbpy_script_language_defn): Delete.
14491 (info_auto_load_python_scripts): Update to use
14492 extension_language_python.
14494 * breakpoint.c (condition_command): Replace call to
14495 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14496 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14497 with call to breakpoint_ext_lang_cond_says_stop.
14498 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14499 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14500 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14501 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14503 (local_setattro): Print name of extension language with existing
14506 * valprint.c (val_print, value_print): Update to call
14507 apply_ext_lang_val_pretty_printer.
14508 * cp-valprint.c (cp_print_value): Update call to
14509 apply_ext_lang_val_pretty_printer.
14510 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14511 (gdbpy_apply_val_pretty_printer): Renamed from
14512 apply_val_pretty_printer. New arg extlang.
14513 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14515 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14516 extension language API.
14517 * cli/cli-script.c (execute_control_command): Update to call
14518 eval_ext_lang_from_control_command.
14520 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14521 enum ext_lang_bt_status values. Update call to
14522 apply_ext_lang_frame_filter.
14523 (mi_cmd_stack_list_locals): Ditto.
14524 (mi_cmd_stack_list_args): Ditto.
14525 (mi_cmd_stack_list_variables): Ditto.
14526 * mi/mi-main.c: Delete #include "python/python-internal.h".
14527 Add #include "extension.h".
14528 (mi_cmd_list_features): Replace reference to python internal variable
14529 gdb_python_initialized with call to ext_lang_initialized_p.
14531 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14532 Update to use enum ext_lang_frame_args. Update to call
14533 apply_ext_lang_frame_filter.
14534 * python/py-framefilter.c (extract_sym): Update to use enum
14535 ext_lang_bt_status.
14536 (extract_value, py_print_type, py_print_value): Ditto.
14537 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14538 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14539 (py_print_frame): Ditto.
14540 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14541 New arg extlang. Update to use enum ext_lang_bt_status.
14543 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14544 finish_python_initialization. Replace with call to
14545 finish_ext_lang_initialization.
14547 * typeprint.c (do_free_global_table): Update to call
14548 free_ext_lang_type_printers.
14549 (create_global_typedef_table): Update to call
14550 start_ext_lang_type_printers.
14551 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14552 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14553 (type_print_options): Change type of global_printers from "void *"
14554 to "struct ext_lang_type_printers *".
14556 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14557 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14558 (gdbpy_preserve_values): Renamed from preserve_python_values.
14560 (!HAVE_PYTHON, preserve_python_values): Delete.
14562 * utils.c (quit_flag): Delete, moved to extension.c.
14563 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14566 * eval.c: Delete #include "python/python.h".
14567 * main.c: Delete #include "python/python.h".
14569 * defs.h: Update comment.
14571 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14575 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14577 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14580 2014-02-05 Yao Qi <yao@codesourcery.com>
14582 * remote.c (remote_pass_signals): Remove local 'buf' and use
14584 (remote_program_signals): Likewise.
14586 2014-02-05 Yao Qi <yao@codesourcery.com>
14588 * ctf.c: Include "inferior.h" and "gdbthread.h".
14589 (CTF_PID): A new macro.
14590 (ctf_open): Call inferior_appeared and add_thread_silent.
14591 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14592 (ctf_thread_alive): New function.
14593 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14595 2014-02-05 Yao Qi <yao@codesourcery.com>
14599 2013-05-24 Yao Qi <yao@codesourcery.com>
14601 * tracepoint.c (TFILE_PID): Remove.
14602 (tfile_open): Don't add thread and inferior.
14603 (tfile_close): Don't set 'inferior_ptid'. Don't call
14604 exit_inferior_silent.
14605 (tfile_thread_alive): Remove.
14606 (init_tfile_ops): Don't set field 'to_thread_alive' of
14609 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14611 * remote.c (remote_start_remote): Call remote_check_symbols even
14612 if only symbol-file (not file) has been given.
14614 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14616 * gdbarch.sh (skip_entrypoint): New callback.
14617 * gdbarch.c, gdbarch.h: Regenerate.
14618 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14619 * infrun.c (fill_in_stop_func): Likewise.
14620 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14621 (ppc_elfv2_elf_make_msymbol_special): New function.
14622 (ppc_elfv2_skip_entrypoint): Likewise.
14623 (ppc_linux_init_abi): Install them for ELFv2.
14625 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14627 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14628 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14629 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14630 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14631 structures returned in GPRs.
14633 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14635 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14636 offset to the stack parameter list for the ELFv2 ABI.
14638 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14640 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14641 set_gdbarch_convert_from_func_ptr_addr and
14642 set_gdbarch_elf_make_msymbol_special for ELFv1.
14643 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14644 function descriptors on ELFv1.
14645 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14646 set up r12 at function entry.
14648 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14650 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14651 (struct gdbarch_tdep): New member elf_abi.
14653 * rs6000-tdep.c: Include "elf/ppc64.h".
14654 (rs6000_gdbarch_init): Detect ELF ABI version.
14656 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14658 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14659 within a register pair holding a DFP 128-bit value on little-endian.
14660 (ppc64_sysv_abi_return_value_base): Likewise.
14661 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14662 (dfp_pseudo_register_write): Likewise.
14664 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14666 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14667 offset on little-endian when passing _Decimal32.
14668 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14670 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14672 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14673 of the overlapped FP register within the VSX register on little-
14675 (efpr_pseudo_register_write): Likewise.
14677 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14679 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14680 offset on little-endian when passing small structures.
14682 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14684 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14685 (struct ppc64_sysv_argpos): New data structure.
14686 (ppc64_sysv_abi_push_float): Remove.
14687 (ppc64_sysv_abi_push_val): New function.
14688 (ppc64_sysv_abi_push_integer): Likewise.
14689 (ppc64_sysv_abi_push_freg): Likewise.
14690 (ppc64_sysv_abi_push_vreg): Likewise.
14691 (ppc64_sysv_abi_push_param): Likewise.
14692 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14693 (ppc64_sysv_abi_return_value_base): New function.
14694 (ppc64_sysv_abi_return_value): Refactor to use it.
14696 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14698 * NEWS: Document new target powerpc64le-*-linux*.
14700 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14702 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14703 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14705 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14706 register set used in ELF core dumps. Add floating-point register set.
14708 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14710 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14711 dwarf2_to_gdb[] table using symbolic constants. Adjust
14712 penultimate entry from number representing the PC register
14713 to symbolic constant representing the MDR register. Add
14714 constant for the PC register to the end of the table.
14716 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14718 * bsd-kvm.c: Include <sys/param.h>
14720 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14722 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14724 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14726 * ada-lang.h (clear_ada_sym_cache): Delete.
14728 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14730 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14732 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14734 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14735 the sigreturn register save area only if the syscall is
14738 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14740 * valops.c (value_slice): Minor reformatting.
14742 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14744 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14746 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14748 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14749 New static globals.
14750 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14751 (ada_ignore_descriptive_types_p): New static global.
14752 (find_parallel_type_by_descriptive_type): Return immediately
14753 if ada_ignore_descriptive_types_p is set.
14754 (_initialize_ada_language): Register new commands "maintenance
14755 set ada", "maintenance show ada", "maintenance set ada
14756 ignore-descriptive-types" and "maintenance show ada
14757 ignore-descriptive-types".
14758 * NEWS: Add entry for new "maint ada set/show
14759 ignore-descriptive-types" commands.
14761 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14763 * record-btrace.c (record_btrace_close): Call btrace_teardown
14766 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14768 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14771 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14773 * ada-typeprint (type_is_full_subrange_of_target_type):
14775 (print_range): Add parameter bounds_prefered_p. If not set,
14776 try printing range types using the name of their base type.
14777 (print_range_type): Add parameter bounds_prefered_p.
14778 Use it in call to print_range.
14779 (print_array_type, ada_print_type): Update calls to print_range
14780 and print_range_type.
14782 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14784 * ada-typeprint.c (print_array_type, print_choices, print_range)
14785 (print_range_bound, print_dynamic_range_bound, print_range_type):
14786 Remove declaration.
14788 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14790 * ada-typeprint.c (print_range): Add missing empty line
14791 after local declaration.
14793 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14795 * ada-valprint.c (print_optional_low_bound): Get index_type's
14796 target type for as long as it is a TYPE_CODE_RANGE.
14798 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14800 * procfs.c (procfs_make_note_section): Remove assertion and
14801 associated comment.
14803 2014-01-24 Yao Qi <yao@codesourcery.com>
14805 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14806 * corelow.c (get_core_siginfo): Likewise.
14808 2014-01-24 Yao Qi <yao@codesourcery.com>
14810 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14811 ULONGEST. Don't check 'len' is negative.
14812 (remote_write_bytes): Change type of 'len' to ULONGEST.
14814 2014-01-23 Tom Tromey <tromey@redhat.com>
14817 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14818 Handle exception from frame.block.
14819 (FrameVars.fetch_frame_locals): Likewise.
14821 2014-01-23 Tom Tromey <tromey@redhat.com>
14824 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14825 on a NULL pointer. Move "goto error" to correct place.
14827 2014-01-23 Tom Tromey <tromey@redhat.com>
14830 * python/py-framefilter.c (apply_frame_filter): Call
14831 ensure_python_env after computing gdbarch.
14833 2014-01-23 Yao Qi <yao@codesourcery.com>
14835 * target.c (raw_memory_xfer_partial): Change argument type
14836 from void * to gdb_byte *.
14837 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14839 2014-01-22 Doug Evans <dje@google.com>
14841 New gdbserver option --debug-format=timestamp.
14842 * NEWS: Mention it.
14844 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14846 * syscalls/s390x-linux.xml: New file.
14847 * syscalls/s390-linux.xml: New file.
14848 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14849 (XML_SYSCALL_FILENAME_S390X): Likewise.
14850 (op_svc): New enum value for SVC opcode.
14851 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14852 (s390_linux_get_syscall_number): New function.
14853 (s390_gdbarch_init): Register '*get_syscall_number' and the
14854 syscall xml file name.
14855 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14856 "s390-linux.xml" and "s390x-linux.xml".
14857 * NEWS: Announce new feature.
14859 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14861 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14863 2014-01-22 Pedro Alves <palves@redhat.com>
14865 * xtensa-config.c: Include defs.h.
14867 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14869 * common/common-utils.h: Add "ARI:" comment beside __func__
14872 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14874 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14875 documentation a bit.
14877 2014-01-21 Roland McGrath <mcgrathr@google.com>
14879 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14880 * configure: Regenerate.
14881 * aclocal.m4: Regenerate.
14882 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14883 New substituted variables.
14884 (install-strip): New target.
14885 (INSTALL_SCRIPT): New substituted variable.
14886 (FLAGS_TO_PASS): Add it.
14887 (install-only): Use $(INSTALL_SCRIPT) rather than
14888 $(INSTALL_PROGRAM) for gcore.
14890 2014-01-20 Tom Tromey <tromey@redhat.com>
14892 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14895 2014-01-20 Tom Tromey <tromey@redhat.com>
14897 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14898 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14899 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14900 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14901 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14902 (struct cmd_list_element) <flags>: Remove.
14903 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14904 doc_allocated>: New fields.
14905 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14907 * maint.c (maintenance_do_deprecate): Update.
14908 * top.c (execute_command): Update.
14910 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14912 * xtensa-linux-nat.c: Include asm/ptrace.h.
14914 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14916 * Makefile.in (SFILES): Add d-support.c.
14917 (COMMON_OBS): Add d-support.o.
14918 * d-lang.h (d_parse_symbol): Add comment, now defined in
14920 * d-lang.c (parse_call_convention)
14921 (parse_attributes, parse_function_types)
14922 (parse_function_args, parse_type, parse_identifier)
14923 (call_convention_p, d_parse_symbol): Move functions to ...
14924 * d-support.c: ... New file.
14926 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14928 * d-lang.h (d_parse_symbol): Add declaration.
14929 * d-lang.c (extract_identifiers)
14930 (extract_type_info): Remove functions.
14931 (parse_call_convention, parse_attributes)
14932 (parse_function_types, parse_function_args)
14933 (parse_type, parse_identifier, call_convention_p)
14934 (d_parse_symbol): New functions.
14935 (d_demangle): Use d_parse_symbol to demangle D symbols.
14937 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14939 * d-lang.h (struct builtin_d_type): New data type.
14940 (builtin_d_type): Add declaration.
14941 * d-lang.c (d_language_arch_info, build_d_types)
14942 (builtin_d_type): New functions.
14943 (enum d_primitive_types): New data type.
14944 (d_language_defn): Change c_language_arch_info to
14945 d_language_arch_info.
14946 (d_type_data): New static variable.
14947 (_initialize_d_language): Initialize d_type_data.
14949 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14951 * d-lang.h (d_main_name): Add declaration.
14952 * d-lang.c (d_main_name): New function.
14953 * symtab.c (find_main_name): Add call to d_main_name.
14955 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14957 * d-lang.c (d_language_defn): Change macro_expansion_c to
14958 macro_expansion_no.
14960 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14962 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14964 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14966 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14967 gdb_exception" declaration.
14968 * remote.c (getpkt_or_notif_sane): Likewise.
14970 2014-01-17 Doug Evans <dje@google.com>
14972 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14973 function, contents of dirnames_to_char_ptr_vec_append moved here.
14974 (delim_string_to_char_ptr_vec): New function.
14975 (dirnames_to_char_ptr_vec_append): Rewrite.
14976 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14978 2014-01-17 Doug Evans <dje@google.com>
14980 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14982 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14983 #include "common-utils.h".
14984 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14985 * common/vec.h (VEC_ASSERT_PASS): Update.
14986 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14987 (MACH_CHECK_ERROR): Update.
14989 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14991 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14993 * gdbarch.h: Regenerate.
14995 2014-01-16 Tom Tromey <tromey@redhat.com>
14997 * value.c (struct value) <regnum>: Move earlier.
14999 2014-01-16 Tom Tromey <tromey@redhat.com>
15001 * remote.c (extended_remote_create_inferior): Rename from
15002 extended_remote_create_inferior_1. Add "ops" argument. Remove
15003 old implementation.
15005 2014-01-16 Pedro Alves <palves@redhat.com>
15007 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15008 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15011 2014-01-16 Doug Evans <dje@google.com>
15013 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15017 * btrace.h (btrace_thread_flag): New.
15018 (struct btrace_thread_info) <flags>: New.
15019 * record-btrace.c (record_btrace_resume_thread)
15020 (record_btrace_find_thread_to_move, btrace_step_no_history)
15021 (btrace_step_stopped, record_btrace_start_replaying)
15022 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15023 (record_btrace_find_resume_thread): New.
15024 (record_btrace_resume, record_btrace_wait): Extend.
15025 (record_btrace_can_execute_reverse): New.
15026 (record_btrace_open): Fail in non-stop mode.
15027 (record_btrace_set_replay): Split into this, ...
15028 (record_btrace_stop_replaying): ... this, ...
15029 (record_btrace_clear_histories): ... and this.
15030 (init_record_btrace_ops): Init to_can_execute_reverse.
15031 * NEWS: Announce it.
15033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15035 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15036 (forward_target_decr_pc_after_break)
15037 (target_decr_pc_after_break): New.
15038 * target.c (forward_target_decr_pc_after_break)
15039 (target_decr_pc_after_break): New.
15040 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15041 instead of gdbarch_decr_pc_after_break.
15042 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15043 instead of gdbarch_decr_pc_after_break.
15044 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15045 instead of gdbarch_decr_pc_after_break.
15046 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15047 instead of gdbarch_decr_pc_after_break.
15048 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15049 instead of gdbarch_decr_pc_after_break.
15050 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15051 instead of gdbarch_decr_pc_after_break.
15053 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15055 * btrace.c: Include regcache.h.
15056 (btrace_add_pc): New.
15057 (btrace_enable): Call btrace_add_pc.
15058 (btrace_is_empty): New.
15059 * btrace.h (btrace_is_empty): New.
15060 * record-btrace.c (require_btrace, record_btrace_info): Call
15063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15065 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15066 Support delta reads.
15067 (linux_disable_btrace): Change return type.
15068 * common/linux-btrace.h (linux_read_btrace): Change parameters
15069 and return type to allow error reporting. Update users.
15070 (linux_disable_btrace): Change return type. Update users.
15071 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15073 (btrace_error): New.
15074 (btrace_block) <begin>: Comment on BEGIN == 0.
15075 * btrace.c (btrace_compute_ftrace): Start from the end of
15077 (btrace_stitch_trace, btrace_clear_history): New.
15078 (btrace_fetch): Read delta trace, return if replaying.
15079 (btrace_clear): Move clear history code to btrace_clear_history.
15080 (parse_xml_btrace): Throw an error if parsing failed.
15081 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15082 and return type to allow error reporting.
15083 (target_read_btrace): Change parameters and return type to allow
15085 * target.c (target_read_btrace): Update.
15086 * remote.c (remote_read_btrace): Support delta reads. Pass
15088 * NEWS: Announce it.
15090 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15092 * record.h (record_btrace_frame_unwind)
15093 (record_btrace_tailcall_frame_unwind): New declarations.
15094 * dwarf2-frame: Include record.h
15095 (dwarf2_frame_cfa): Throw an error for btrace frames.
15096 * record-btrace.c: Include hashtab.h.
15097 (btrace_get_bfun_name): New.
15098 (btrace_call_history): Call btrace_get_bfun_name.
15099 (struct btrace_frame_cache): New.
15101 (bfcache_hash, bfcache_eq, bfcache_new): New.
15102 (btrace_get_frame_function): New.
15103 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15104 (record_btrace_frame_this_id): Compute own id.
15105 (record_btrace_frame_prev_register): Provide PC, throw_error
15106 for all other registers.
15107 (record_btrace_frame_sniffer): Detect btrace frames.
15108 (record_btrace_tailcall_frame_sniffer): New.
15109 (record_btrace_frame_dealloc_cache): New.
15110 (record_btrace_frame_unwind): Add new functions.
15111 (record_btrace_tailcall_frame_unwind): New.
15112 (_initialize_record_btrace): Allocate cache.
15113 * btrace.c (btrace_clear): Call reinit_frame_cache.
15114 * NEWS: Announce it.
15116 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15118 * record-btrace.c (record_btrace_set_replay)
15119 (record_btrace_goto_begin, record_btrace_goto_end)
15120 (record_btrace_goto): New.
15121 (init_record_btrace_ops): Initialize them.
15122 * NEWS: Announce it.
15124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15126 * record-btrace.c (record_btrace_find_new_threads)
15127 (record_btrace_thread_alive): New.
15128 (init_record_btrace_ops): Initialize to_find_new_threads and
15131 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15133 * record-btrace.c (record_btrace_resume): New.
15134 (record_btrace_wait): New.
15135 (init_record_btrace_ops): Initialize to_wait and to_resume.
15137 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15139 * record-btrace.c (record_btrace_xfer_partial)
15140 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15141 (record_btrace_allow_memory_access): New.
15142 (init_record_btrace_ops): Initialize new methods.
15143 * target.c (raw_memory_xfer_partial): Bail out if target reports
15144 that this memory is not available.
15146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15148 * target.h (target_ops) <to_insert_breakpoint>
15149 <to_remove_breakpoint>: Add target_ops parameter.
15150 (forward_target_insert_breakpoint): New.
15151 (forward_target_remove_breakpoint): New.
15152 (memory_remove_breakpoint, memory_insert_breakpoint):
15153 Add target_ops parameter.
15154 * target.c (target_insert_breakpoint): Split into this and ...
15155 (forward_target_insert_breakpoint): ... this.
15156 (target_remove_breakpoint): Split into this and ...
15157 (forward_target_remove_breakpoint): ... this.
15158 (debug_to_insert_breakpoint): Add target_ops parameter.
15159 Call forward_target_insert_breakpoint.
15160 (debug_to_remove_breakpoint): Add target_ops parameter.
15161 Call forward_target_remove_breakpoint.
15162 (update_current_target): Do not inherit or default to_insert_breakpoint
15163 and to_remove_breakpoint.
15164 * corelow.c (ignore): Add target_ops parameter.
15165 * exec.c (ignore): Add target_ops parameter.
15166 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15167 Add target_ops parameter.
15168 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15169 Add target_ops parameter.
15170 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15171 Add target_ops parameter.
15172 * record-full.c (record_full_beneath_to_insert_breakpoint)
15173 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15174 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15175 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15176 (record_full_core_remove_breakpoint): Add target_ops parameter.
15178 (record_full_beneath_to_insert_breakpoint_ops)
15179 (record_full_beneath_to_remove_breakpoint_ops)
15180 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15181 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15182 tmp_to_remove_breakpoint_ops,
15183 record_full_beneath_to_insert_breakpoint_ops, and
15184 record_full_beneath_to_remove_breakpoint_ops.
15185 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15186 (m32r_remove_breakpoint): Add target_ops parameter.
15187 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15188 Add target_ops parameter.
15189 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15190 Add target_ops parameter.
15192 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15193 Markus Metzger <markus.t.metzger@intel.com>
15195 * record-btrace.c: Include frame-unwind.h.
15196 (record_btrace_frame_unwind_stop_reason)
15197 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15198 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15200 (init_record_btrace_ops): Install it.
15202 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15204 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15207 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15209 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15212 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15214 * frame-unwind.c: Include target.h.
15215 (frame_unwind_try_unwinder): New function with code from ...
15216 (frame_unwind_find_by_frame): ... here. New variable
15217 unwinder_from_target, call also target_get_unwinder)
15218 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15219 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15220 * target.h (struct target_ops): New fields to_get_unwinder and
15221 to_get_tailcall_unwinder.
15222 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15224 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15226 * record-btrace.c (record_btrace_fetch_registers)
15227 (record_btrace_store_registers)
15228 (record_btrace_to_prepare_to_store): New.
15229 (init_record_btrace_ops): Add the above.
15231 2014-01-16 Tom Tromey <tromey@redhat.com>
15233 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15234 * target.h (struct target_ops) <to_prepare_to_store>: Add
15236 (target_prepare_to_store): Add argument.
15237 * target.c (debug_to_prepare_to_store): Add argument.
15238 (update_current_target): Update.
15239 * remote.c (remote_prepare_to_store): Add 'self' argument.
15240 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15241 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15242 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15243 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15245 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15246 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15247 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15248 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15249 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15253 * btrace.h (replay) <replay>: New.
15254 (btrace_is_replaying): New.
15255 * btrace.c (btrace_clear): Free replay iterator.
15256 (btrace_is_replaying): New.
15257 * record-btrace.c (record_btrace_is_replaying): New.
15258 (record_btrace_info): Print insn number if replaying.
15259 (record_btrace_insn_history): Start at replay position.
15260 (record_btrace_call_history): Start at replay position.
15261 (init_record_btrace_ops): Init to_record_is_replaying.
15263 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15265 * record-btrace.c (record_btrace_insn_history_range): Include
15267 (record_btrace_insn_history_from): Adjust range.
15268 (record_btrace_call_history_range): Include
15270 (record_btrace_call_history_from): Adjust range.
15271 * NEWS: Announce changes.
15273 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15275 * record.h (enum record_print_flag)
15276 <record_print_indent_calls>: New.
15277 * record.c (get_call_history_modifiers): Recognize /c modifier.
15278 (_initialize_record): Document /c modifier.
15279 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15280 Reorder fields. Optionally indent the function name. Update
15282 * NEWS: Announce changes.
15284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15286 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15288 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15290 * btrace.c (ftrace_new_function): Start counting at one.
15291 * record-btrace.c (record_btrace_info): Adjust number of calls
15293 * NEWS: Announce it.
15295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15297 * record-btrace.c (btrace_call_history_insn_range): Print
15298 insn range as [begin, end].
15300 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15302 * btrace.h (struct btrace_func_link): New.
15303 (enum btrace_function_flag): New.
15304 (struct btrace_inst): Rename to ...
15305 (struct btrace_insn): ...this. Update all users.
15306 (struct btrace_func) <ibegin, iend>: Remove.
15307 (struct btrace_func_link): New.
15308 (struct btrace_func): Rename to ...
15309 (struct btrace_function): ...this. Update all users.
15310 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15311 (number, level, flags>: New.
15312 (struct btrace_insn_iterator): Rename to ...
15313 (struct btrace_insn_history): ...this.
15315 (struct btrace_insn_iterator, btrace_call_iterator): New.
15316 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15317 (struct btrace_target_info) <begin, end, level>
15318 <insn_history, call_history>: New.
15319 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15320 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15321 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15322 (btrace_call_number, btrace_call_begin, btrace_call_end)
15323 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15324 (btrace_find_function_by_number, btrace_set_insn_history)
15325 (btrace_set_call_history): New.
15326 * btrace.c (btrace_init_insn_iterator)
15327 (btrace_init_func_iterator, compute_itrace): Remove.
15328 (ftrace_print_function_name, ftrace_print_filename)
15329 (ftrace_skip_file): Change
15330 parameter to const.
15331 (ftrace_init_func): Remove.
15332 (ftrace_debug): Use new btrace_function fields.
15333 (ftrace_function_switched): Also consider gaining and
15334 losing symbol information).
15335 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15336 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15337 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15339 (ftrace_new_function): Move. Remove debug print.
15340 (ftrace_update_lines, ftrace_update_insns): New.
15341 (ftrace_update_function): Check for call, ret, and jump.
15342 (compute_ftrace): Renamed to ...
15343 (btrace_compute_ftrace): ...this. Rewritten to compute call
15345 (btrace_fetch, btrace_clear): Updated.
15346 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15347 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15348 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15349 (btrace_call_number, btrace_call_begin, btrace_call_end)
15350 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15351 (btrace_find_function_by_number, btrace_set_insn_history)
15352 (btrace_set_call_history): New.
15353 * record-btrace.c (require_btrace): Use new btrace thread
15355 (record_btrace_info, btrace_insn_history)
15356 (record_btrace_insn_history, record_btrace_insn_history_range):
15357 Use new btrace thread info fields and new iterator.
15358 (btrace_func_history_src_line): Rename to ...
15359 (btrace_call_history_src_line): ...this. Use new btrace
15360 thread info fields.
15361 (btrace_func_history): Rename to ...
15362 (btrace_call_history): ...this. Use new btrace thread info
15363 fields and new iterator.
15364 (record_btrace_call_history, record_btrace_call_history_range):
15365 Use new btrace thread info fields and new iterator.
15367 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15369 * frame.h (frame_id_build_unavailable_stack_special): New.
15370 * frame.c (frame_id_build_unavailable_stack_special): New.
15372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15374 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15375 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15376 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15378 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15379 (i386_insn_is_jump, i386_jmp_p): New.
15380 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15381 insn_is_jump to gdbarch.
15382 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15383 * gdbarch.h: Regenerated.
15384 * gdbarch.c: Regenerated.
15385 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15386 (default_insn_is_jump): New.
15387 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15388 (default_insn_is_jump): New.
15390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15392 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15394 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15395 (btrace_read_type) <btrace_read_new>: Change to ...
15396 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15398 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15400 * common/linux-btrace.c (linux_read_btrace): Free trace from
15401 previous iteration.
15403 2014-01-15 Doug Evans <dje@google.com>
15405 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15408 2014-01-15 Tom Tromey <tromey@redhat.com>
15410 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15411 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15412 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15413 (set_objfile_main_name): New function.
15414 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15415 language_of_main>: New fields.
15416 (set_objfile_main_name): Declare.
15417 * symtab.c (find_main_name): Loop over objfiles to find the main
15419 (set_main_name): Now static.
15420 (get_main_info): Add comment.
15421 * symtab.h (set_main_name): Don't declare.
15423 2014-01-15 Tom Tromey <tromey@redhat.com>
15425 * symtab.c (main_progspace_key): New global.
15426 (struct main_info): New.
15427 (name_of_main, language_of_main): Remove.
15428 (get_main_info, main_info_cleanup): New function.
15429 (set_main_name, main_name, main_language): Use get_main_info.
15430 (_initialize_symtab): Initialize main_progspace_key.
15432 2014-01-15 Tom Tromey <tromey@redhat.com>
15434 * dbxread.c (process_one_symbol): Update.
15435 * dwarf2read.c (read_partial_die): Update.
15436 * symfile.c (set_initial_language): Call main_language.
15437 * symtab.c (language_of_main): Now static.
15438 (set_main_name): Add 'lang' parameter.
15439 (find_main_name): Update.
15440 (main_language): New function.
15441 (symtab_observer_executable_changed): Update.
15442 * symtab.h (set_main_name): Update.
15443 (language_of_main): Remove.
15444 (main_language): Declare.
15446 2014-01-15 Tom Tromey <tromey@redhat.com>
15448 * symfile.c (init_entry_point_info): Use new "initialized" field.
15450 * objfiles.h (struct entry_point) <initialized>: New field.
15451 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15452 (struct objfile) <ei>: ...here. Remove.
15453 * objfiles.c (entry_point_address_query): Update.
15455 2014-01-15 Tom Tromey <tromey@redhat.com>
15457 * objfiles.c (entry_point_address_query): Relocate entry point
15459 (objfile_relocate1): Do not relocate entry point address.
15460 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15461 <the_bfd_section_index>: New field.
15462 * symfile.c (init_entry_point_info): Find the entry point's
15465 2014-01-15 Tom Tromey <tromey@redhat.com>
15467 * solib-frv.c (enable_break): Use entry_point_address_query.
15469 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15471 * NEWS: Add note on improved process record-replay on
15472 arm*-linux* targets.
15474 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15476 * arm-tdep.c (enum arm_record_result): New enum.
15477 (arm_record_unsupported_insn): New function.
15478 (arm_record_coproc_data_proc): Removed.
15479 (thumb2_record_ld_st_multiple): New function.
15480 (thumb2_record_ld_st_dual_ex_tbb): New function.
15481 (thumb2_record_data_proc_sreg_mimm): New function.
15482 (thumb2_record_ps_dest_generic): New function.
15483 (thumb2_record_branch_misc_cntrl): New function.
15484 (thumb2_record_str_single_data): New function.
15485 (thumb2_record_ld_mem_hints): New function.
15486 (thumb2_record_ld_word): New function.
15487 (thumb2_record_lmul_lmla_div): New function.
15488 (thumb2_record_decode_insn_handler): New function.
15489 (decode_insn): Add thumb32 instruction handlers.
15491 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15493 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15494 (struct arm_linux_record_tdep): Declare.
15495 (arm_canonicalize_syscall): New function.
15496 (arm_all_but_pc_registers_record): New function.
15497 (arm_linux_syscall_record): New function.
15498 (arm_linux_init_abi): Add syscall recording constructs.
15499 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15500 decoding. (arm_record_coproc_data_proc): Update arm syscall
15502 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15503 <arm_syscall_record>: New field.
15504 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15507 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15509 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15510 register for push instruction recording.
15512 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15514 * arm-tdep.c (thumb_record_misc): Update to correct logical
15515 error while recording ldm, ldmia and pop instructions.
15517 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15519 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15521 2014-01-15 Pedro Alves <palves@redhat.com>
15523 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15524 (go32_resume, go32_fetch_registers, store_register)
15525 (go32_store_registers, go32_prepare_to_store)
15526 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15527 (go32_create_inferior, go32_can_run, go32_terminal_init)
15528 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15531 2014-01-15 Tom Tromey <tromey@redhat.com>
15533 * target.h (async_callback_ftype): New typedef.
15534 (struct target_ops) <to_async>: Use it.
15536 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15538 * python/py-value.c (get_field_type): Remove unnecessary curly
15539 braces for single-statement if block.
15541 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15543 * python/py-type.c (convert_field): Add missing empty line
15544 after declarations.
15546 2014-01-14 Doug Evans <dje@google.com>
15548 * symfile.h (expand_symtabs_matching): Renamed from
15549 expand_partial_symbol_names. Update prototype.
15550 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15551 * symfile.c (expand_symtabs_matching): Renamed from
15552 expand_partial_symbol_names. New args file_matcher, kind.
15553 Rename arg fun to symbol_matcher.
15554 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15555 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15556 ada_expand_partial_symbol_name.
15557 (ada_make_symbol_completion_list): Update to call
15558 expand_symtabs_matching.
15559 (ada_add_global_exceptions): Call expand_symtabs_matching.
15560 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15561 call map_symbol_filenames.
15562 * symtab.c (sources_info): Update to call map_symbol_filenames.
15563 (search_symbols): Call expand_symtabs_matching.
15564 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15565 (default_make_symbol_completion_list_break_on): Update to call
15566 expand_symtabs_matching.
15567 (make_source_files_completion_list): Update to call
15568 map_symbol_filenames.
15570 2014-01-14 Doug Evans <dje@google.com>
15572 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15573 (expand_symtabs_symbol_matcher_ftype): New typedef.
15574 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15575 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15576 * symfile.c (expand_partial_symbol_names): Update to use
15577 expand_symtabs_symbol_matcher_ftype.
15578 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15579 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15580 Arg name_matcher renamed to symbol_matcher.
15581 * psymtab.c (recursively_search_psymtabs): Update to use
15582 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15584 (expand_symtabs_matching_via_partial): Update to use
15585 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15586 Arg name_matcher renamed to symbol_matcher.
15588 2014-01-14 Doug Evans <dje@google.com>
15590 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15591 (map_partial_symbol_filenames): Ditto.
15592 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15593 (map_partial_symbol_filenames): Ditto.
15594 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15595 (map_partial_symbol_filenames): Ditto.
15596 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15597 (map_partial_symbol_filenames): Ditto.
15598 * symtab.c: Delete #include "psymtab.h".
15600 2014-01-14 Pedro Alves <palves@redhat.com>
15601 Tom Tromey <tromey@redhat.com>
15603 * infrun.c (use_displaced_stepping): Use find_record_target
15604 instead of RECORD_IS_USED.
15605 (adjust_pc_after_break): Use record_full_is_used instead of
15607 * record-btrace.c (record_btrace_open): Call record_preopen
15608 instead of checking RECORD_IS_USED.
15609 * record-full.c (record_full_shortname)
15610 (record_full_core_shortname): New globals.
15611 (record_full_is_used): New function.
15612 (find_full_open): Call record_preopen instead of checking
15614 (init_record_full_ops): Set the target's shortname to
15615 record_full_shortname.
15616 (init_record_full_core_ops): Set the target's shortname to
15617 record_full_core_shortname.
15618 * record-full.h (record_full_is_used): Declare.
15619 * record.c (find_record_target): Make extern.
15620 (record_preopen): New function.
15621 * record.h (RECORD_IS_USED): Delete macro.
15622 (find_record_target, record_preopen): Declare functions.
15624 2014-01-14 Yao Qi <yao@codesourcery.com>
15626 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15627 'len''s type to ULONGEST.
15628 (core_xfer_shared_libraries_aix): Likewise.
15629 * gdbarch.c, gdbarch.h: Regenerated.
15630 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15631 Change type of 'len' to ULONGEST.
15632 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15633 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15635 2014-01-14 Yao Qi <yao@codesourcery.com>
15637 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15638 type of 'len' to ULONGEST.
15639 (linux_xfer_osdata_processgroups): Likewise.
15640 (linux_xfer_osdata_threads): Likewise.
15641 (linux_xfer_osdata_fds): Likewise.
15642 (linux_xfer_osdata_isockets): Likewise.
15643 (linux_xfer_osdata_shm): Likewise.
15644 (linux_xfer_osdata_sem): Likewise.
15645 (linux_xfer_osdata_msg): Likewise.
15646 (linux_common_xfer_osdata): Likewise.
15647 (struct osdata_type) <getter>: Likewise.
15648 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15651 2014-01-14 Yao Qi <yao@codesourcery.com>
15653 * target.h (target_xfer_partial_ftype): Update.
15654 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15656 * aix-thread.c (aix_thread_xfer_partial): Change type of
15657 argument 'len' to ULONGEST.
15658 * auxv.c (procfs_xfer_auxv): Likewise.
15659 (ld_so_xfer_auxv): Likewise.
15660 (memory_xfer_auxv): Likewise.
15661 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15662 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15663 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15664 * corelow.c (core_xfer_partial): Likewise.
15665 * ctf.c (ctf_xfer_partial): Likewise.
15666 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15668 (darwin_read_dyld_info): Likewise.
15669 (darwin_xfer_partial): Likewise.
15670 * exec.c (section_table_xfer_memory_partial): Likewise.
15671 (exec_xfer_partial): Likewise.
15672 * exec.h (section_table_xfer_memory_partial): Update
15674 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15675 instead of plongest.
15676 (gnu_xfer_partial): Likewise.
15677 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15678 (ia64_hpux_xfer_solib_got): Likewise.
15679 (ia64_hpux_xfer_partial): Likewise.
15680 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15681 * inf-ptrace.c (inf_ptrace_xfer_partial):
15682 * inf-ttrace.c (inf_ttrace_xfer_partial):
15683 * linux-nat.c (linux_xfer_siginfo): Likewise.
15684 (linux_nat_xfer_partial): Likewise.
15685 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15686 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15687 * monitor.c (monitor_xfer_memory): Likewise.
15688 (monitor_xfer_partial): Likewise.
15689 * procfs.c (procfs_xfer_partial): Likewise.
15690 * record-full.c (record_full_xfer_partial): Likewise.
15691 (record_full_core_xfer_partial): Likewise.
15692 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15693 instead of plongest.
15694 (gdbsim_xfer_partial): Likewise.
15695 * remote.c (remote_xfer_partial): Likewise.
15696 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15697 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15699 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15700 (rs6000_xfer_shared_libraries): Likewise.
15701 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15702 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15703 (sparc_xfer_partial): Likewise.
15704 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15705 (spu_xfer_partial): Likewise.
15706 * spu-multiarch.c (spu_xfer_partial): Likewise.
15707 * target.c (target_read_live_memory): Likewise.
15708 (memory_xfer_live_readonly_partial): Likewise.
15709 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15710 (target_xfer_partial, default_xfer_partial): Likewise.
15711 (current_xfer_partial): Likewise.
15712 * tracepoint.c (tfile_xfer_partial): Likewise.
15713 * windows-nat.c (windows_xfer_memory): Likewise. Call
15714 pulongest instead of plongest.
15715 (windows_xfer_partial): Likewise.
15716 (windows_xfer_shared_libraries): Likewise.
15718 2014-01-14 Yao Qi <yao@codesourcery.com>
15720 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15721 target_xfer_partial_ftype.
15723 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15727 * valops.c (value_struct_elt_bitpos): New function
15728 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15729 object to 'None' if the field name is an empty string ("").
15730 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15731 attribute to look for a field when 'name' is 'None'.
15732 (get_field_type): New function
15734 2014-01-13 Doug Evans <dje@google.com>
15737 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15738 (try_open_dwop_file): Ditto.
15739 * gdb_bfd.c: #include "vec.h".
15740 (bfdp): New typedef.
15741 (struct gdb_bfd_data): New member included_bfds.
15742 (gdb_bfd_unref): Unref all included bfds.
15743 (gdb_bfd_record_inclusion): New function.
15744 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15746 2014-01-13 Tom Tromey <tromey@redhat.com>
15748 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15750 2014-01-13 Tom Tromey <tromey@redhat.com>
15752 * defs.h (use_windows): Remove.
15753 * gdb.c (main): Update.
15754 * main.c (captured_main, gdb_main): Update.
15755 * main.h (struct captured_main_args) <use_windows>: Remove.
15756 * top.c (use_windows): Remove.
15758 2014-01-13 Tom Tromey <tromey@redhat.com>
15760 * defs.h (deprecated_flush_hook): Remove.
15762 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15765 * linux-thread-db.c (try_thread_db_load): Add parameter
15766 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15767 (try_thread_db_load_from_pdir_1): Move it there from here.
15768 (try_thread_db_load_from_sdir): Update caller.
15769 (try_thread_db_load_from_dir): Move it there from here.
15771 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15773 * regformats/regdat.sh: Always rewrite the register file.
15775 2014-01-13 Pedro Alves <palves@redhat.com>
15777 * Makefile.in (CHECK_HEADERS): New variable.
15778 (check-headers:): New rule.
15780 2014-01-13 Tom Tromey <tromey@redhat.com>
15782 * cli/cli-setshow.c (do_set_command): Update.
15783 * defs.h (deprecated_set_hook): Remove.
15784 * top.c (deprecated_set_hook): Remove.
15786 2014-01-13 Pedro Alves <palves@redhat.com>
15788 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15789 the tracepoint if the PC is a pseudo-register.
15791 2014-01-13 Tom Tromey <tromey@redhat.com>
15793 * defs.h (XCALLOC): Remove.
15794 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15795 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15796 * dwarf2loc.c (allocate_piece_closure): Likewise.
15797 * elfread.c (elf_symfile_segments): Likewise.
15798 (elf_symfile_segments): Likewise.
15799 * gdbtypes.c (copy_type_recursive): Likewise.
15800 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15801 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15802 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15804 * mt-tdep.c (mt_gdbarch_init): Likewise.
15805 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15807 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15808 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15809 * registry.c (registry_alloc_data): Likewise.
15810 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15811 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15812 * serial.c (serial_fdopen_ops): Likewise.
15813 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15815 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15816 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15819 2014-01-13 Tom Tromey <tromey@redhat.com>
15821 * defs.h (XMALLOC): Remove.
15822 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15823 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15824 * cli-out.c (struct ui_out *): Likewise.
15825 * cli/cli-dump.c (add_dump_command): Likewise.
15826 (add_dump_command): Likewise.
15827 * complaints.c (get_complaints): Likewise.
15828 (find_complaint): Likewise.
15829 * dwarf2-frame.c (execute_cfa_program): Likewise.
15830 * dwarf2read.c (abbrev_table_read_table): Likewise.
15831 * gdbarch.sh: Likewise.
15832 * gdbarch.c: Rebuild.
15833 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15834 * interps.c (interp_new): Likewise.
15835 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15836 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15837 * mi/mi-console.c (mi_console_file_new): Likewise.
15838 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15839 * mi/mi-out.c (mi_out_new): Likewise.
15840 * mi/mi-parse.c (mi_parse): Likewise.
15841 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15842 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15843 * observer.c (xalloc_observer_list_node): Likewise.
15844 * regcache.c (regcache_xmalloc_1): Likewise.
15845 * reggroups.c (reggroup_new): Likewise.
15846 (_initialize_reggroup): Likewise.
15847 * registry.c (register_data_with_cleanup): Likewise.
15848 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15849 * ser-base.c (serial_ttystate): Likewise.
15850 * ser-mingw.c (make_pipe_state): Likewise.
15851 * ser-pipe.c (pipe_open): Likewise.
15852 * serial.c (serial_open): Likewise.
15853 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15854 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15855 (tui_alloc_win_info): Likewise.
15856 (tui_add_content_elements): Likewise.
15857 * tui/tui-file.c (tui_file_new): Likewise.
15858 * tui/tui-out.c (tui_out_new): Likewise.
15859 * ui-file.c (mem_file_new): Likewise.
15860 * ui-out.c (push_level): Likewise.
15861 (make_cleanup_ui_out_end): Likewise.
15862 (append_header_to_list): Likewise.
15863 (ui_out_new): Likewise.
15864 * user-regs.c (user_reg_add_builtin): Likewise.
15866 2014-01-13 Tom Tromey <tromey@redhat.com>
15868 * defs.h (XZALLOC): Remove.
15869 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15870 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15871 (get_ada_tasks_inferior_data): Likewise.
15872 * auto-load.c (get_auto_load_pspace_data): Likewise.
15873 * auxv.c (get_auxv_inferior_data): Likewise.
15874 * bfd-target.c (target_bfd_reopen): Likewise.
15875 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15876 (deprecated_insert_raw_breakpoint): Likewise.
15877 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15878 * corelow.c (core_open): Likewise.
15879 * darwin-nat.c (darwin_check_new_threads): Likewise.
15880 (darwin_attach_pid): Likewise.
15881 * dummy-frame.c (dummy_frame_push): Likewise.
15882 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15883 * dwarf2loc.c (allocate_piece_closure): Likewise.
15884 * elfread.c (elf_symfile_segments): Likewise.
15885 * eval.c (ptrmath_type_p): Likewise.
15886 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15887 * gdbtypes.c (alloc_type_arch): Likewise.
15888 (alloc_type_instance): Likewise.
15889 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15890 * inf-child.c (inf_child_can_use_agent): Likewise.
15891 * inflow.c (get_inflow_inferior_data): Likewise.
15892 * infrun.c (save_infcall_suspend_state): Likewise.
15893 * jit.c (jit_reader_load): Likewise.
15894 (get_jit_objfile_data): Likewise.
15895 (get_jit_program_space_data): Likewise.
15896 (jit_object_open_impl): Likewise.
15897 (jit_symtab_open_impl): Likewise.
15898 (jit_block_open_impl): Likewise.
15899 (jit_frame_sniffer): Likewise.
15900 * linux-fork.c (add_fork): Likewise.
15901 * maint.c (make_command_stats_cleanup): Likewise.
15902 * objfiles.c (get_objfile_pspace_data): Likewise.
15903 * opencl-lang.c (struct lval_closure): Likewise.
15904 * osdata.c (osdata_start_osdata): Likewise.
15905 * progspace.c (new_address_space): Likewise.
15906 (add_program_space): Likewise.
15907 * remote-sim.c (get_sim_inferior_data): Likewise.
15908 * sh-tdep.c (sh_gdbarch_init): Likewise.
15909 * skip.c (Ignore): Likewise.
15910 (skip_delete_command): Likewise.
15911 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15912 (library_list_start_library): Likewise.
15913 (solib_aix_current_sos): Likewise.
15914 * solib-darwin.c (get_darwin_info): Likewise.
15915 (darwin_current_sos): Likewise.
15916 * solib-dsbt.c (get_dsbt_info): Likewise.
15917 * solib-ia64-hpux.c (new_so_list): Likewise.
15918 (ia64_hpux_get_solib_linkage_addr): Likewise.
15919 * solib-spu.c (append_ocl_sos): Likewise.
15920 (spu_current_sos): Likewise.
15921 * solib-svr4.c (get_svr4_info): Likewise.
15922 (svr4_keep_data_in_core): Likewise.
15923 (library_list_start_library): Likewise.
15924 (svr4_default_sos): Likewise.
15925 (svr4_read_so_list): Likewise.
15926 * solib-target.c (library_list_start_library): Likewise.
15927 (solib_target_current_sos): Likewise.
15928 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15929 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15930 * symfile.c (default_symfile_segments): Likewise.
15931 * target-descriptions.c (tdesc_data_init): Likewise.
15932 (tdesc_create_reg): Likewise.
15933 (struct tdesc_type *): Likewise.
15934 (tdesc_create_vector): Likewise.
15935 (tdesc_set_struct_size): Likewise.
15936 (struct tdesc_type *): Likewise.
15937 (tdesc_free_feature): Likewise.
15938 (tdesc_create_feature): Likewise.
15939 * windows-nat.c (windows_add_thread): Likewise.
15940 (windows_make_so): Likewise.
15941 * xml-support.c (gdb_xml_body_text): Likewise.
15942 (gdb_xml_create_parser_and_cleanup): Likewise.
15943 (xml_process_xincludes): Likewise.
15944 * xml-syscall.c (allocate_syscalls_info): Likewise.
15945 (syscall_create_syscall_desc): Likewise.
15947 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15949 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15950 function, with code from i386_stap_parse_special_token.
15951 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15952 (i386_stap_parse_special_token): Move code to the two functions
15953 above; simplify it.
15955 2014-01-09 Pedro Alves <palves@redhat.com>
15956 Hui Zhu <hui@codesourcery.com>
15959 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15960 bp_err_string. Don't mark the location shlib_disabled if the
15961 error thrown wasn't a generic or memory error. Catch errors
15962 thrown while inserting breakpoints in overlayed code. Output
15963 error message of software breakpoints.
15964 * remote.c (remote_insert_breakpoint): If this breakpoint has
15965 target-side commands but this stub doesn't support Z0 packets,
15966 throw NOT_SUPPORTED_ERROR error.
15967 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15968 * target.h (target_insert_breakpoint): Extend comment.
15969 (target_insert_hw_breakpoint): Add comment.
15971 2014-01-08 Pedro Alves <palves@redhat.com>
15973 * remote.c (remote_add_thread): Add threads silently if starting
15975 (remote_notice_new_inferior): If in all-stop, and starting up,
15976 don't call notice_new_inferior.
15977 (get_current_thread): New function, factored out from ...
15978 (add_current_inferior_and_thread): ... this. Adjust.
15979 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15980 found any thread, then select the remote's current thread as GDB's
15981 current thread too.
15983 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15985 * NEWS: Create a new section for the next release branch.
15986 Rename the section of the current branch, now that it has
15989 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15991 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15992 * version.in: Bump version to 7.7.50.DATE-cvs.
15994 2014-01-08 Yao Qi <yao@codesourcery.com>
15996 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15997 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15998 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16000 2014-01-08 Yao Qi <yao@codesourcery.com>
16002 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16003 return value of bfd_get_filename to symbol_file_add_from_bfd.
16005 2014-01-08 Pierre Muller <muller@sourceware.org>
16008 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16009 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16010 to prim_record_mininal_symbol_and_info.
16011 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16012 in call to prim_record_minimal_symbol_and_info.
16013 (read_pe_exported_syms): Set index field of section_data.
16015 2014-01-07 Andrew Pinski <apinski@cavium.com>
16017 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16018 * features/aarch64.c: Regenerate.
16020 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16022 * target.c (return_null): Define.
16023 (update_current_target): Use it instead of return_zero for
16024 functions that return a pointer.
16026 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16028 * source.c (add_path): Fix check for duplicated paths in the previously
16031 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16033 * ada-lang.c: Remove duplicated include statements.
16034 * alphabsd-nat.c: Ditto.
16035 * amd64-darwin-tdep.c: Ditto.
16036 * amd64fbsd-nat.c: Ditto.
16037 * auto-load.c: Ditto.
16039 * breakpoint.c: Ditto.
16040 * dbxread.c: Ditto.
16041 * fork-child.c: Ditto.
16042 * gdb_usleep.c: Ditto.
16043 * i386-darwin-tdep.c: Ditto.
16044 * i386fbsd-nat.c: Ditto.
16046 * inferior.c: Ditto.
16047 * jv-lang.c: Ditto.
16048 * linux-nat.c: Ditto.
16049 * linux-tdep.c: Ditto.
16050 * m68kbsd-nat.c: Ditto.
16051 * m68klinux-nat.c: Ditto.
16052 * microblaze-tdep.c: Ditto.
16053 * mips-linux-tdep.c: Ditto.
16054 * mn10300-tdep.c: Ditto.
16055 * nto-tdep.c: Ditto.
16056 * opencl-lang.c: Ditto.
16058 * printcmd.c: Ditto.
16059 * regcache.c: Ditto.
16060 * remote-m32r-sdi.c: Ditto.
16062 * symfile.c: Ditto.
16064 * tilegx-linux-nat.c: Ditto.
16065 * tilegx-tdep.c: Ditto.
16066 * tracepoint.c: Ditto.
16068 * vaxbsd-nat.c: Ditto.
16069 * windows-nat.c: Ditto.
16070 * xtensa-tdep.c: Ditto.
16072 2014-01-07 Yao Qi <yao@codesourcery.com>
16074 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16076 2014-01-07 Yao Qi <yao@codesourcery.com>
16077 Joel Brobecker <brobecker@adacore.com>
16079 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16080 (pdc_write_regs): Likewise.
16081 (fetch_regs_kernel_thread): Likewise.
16082 (store_regs_kernel_thread): Likewise.
16084 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16086 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16087 tagged type objects to their actual type.
16089 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16091 * ada-valprint.c (print_field_values): Add "language" parameter.
16092 Update calls to print_field_values and print_variant_part.
16093 Pass new parameter "language" in call to val_print instead
16094 of "current_language". Replace call to ada_val_print by call
16096 (print_variant_part): Add "language" parameter.
16097 (ada_val_print_struct_union): Update call to print_field_values.
16099 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16101 * ada-valprint.c (ui_memcpy): Delete.
16102 (ada_print_floating): Update documentation. Add empty line
16103 between between function documentation and implementation.
16104 Delete variable "buffer". Use ui_file_xstrdup in place of
16105 ui_file_put. Minor adjustments following this change.
16107 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16109 * ada-valprint.c (ada_val_print_string): New function,
16110 extracted from ada_val_print_array.
16111 (ada_val_print_array): Replace extracted code by call
16112 to ada_val_print_string followed by a return. Move
16113 "else" branch to the function's top block.
16115 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16117 * ada-valprint.c (ada_val_print_array): Move implementation
16118 down. Rename parameter "offset" and "val" into "offset_aligned"
16119 and "original_value" respectively. Add parameter "offset".
16121 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16123 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16124 re-organizing the code. Change the "???" message printed
16125 when target type is a TYPE_CODE_UNDEF into
16126 "<ref to undefined type>".
16128 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16130 * ada-valprint.c (print_record): Delete, implementation inlined...
16131 (ada_val_print_struct_union): ... here. Remove call to
16132 ada_check_typedef in inlined implementation.
16134 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16136 * ada-valprint.c (ada_val_print_gnat_array): New function,
16137 extracted from ada_val_print_1;
16138 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16139 (ada_val_print_flt, ada_val_print_struct_union)
16140 (ada_val_print_ref): Likewise.
16141 (ada_val_print_1): Delete variables i and elttype.
16142 Replace extracted-out code by call to corresponding
16145 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16147 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16149 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16151 * ada-valprint.c (ada_val_print_1): Replace calls to
16152 ada_val_print_1 by calls to val_print.
16154 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16156 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16157 Update calls to self accordingly. Replace calls to c_val_print
16158 by calls to val_print.
16160 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16162 * ada-valprint.c (print_record): Delete declaration.
16163 (adjust_type_signedness, ada_val_print_1): Likewise.
16164 (ada_val_print): Move function implementation down.
16165 (print_variant_part, print_field_values, print_record):
16166 Move function implementation up.
16168 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16170 * python/py-type.c (typy_get_name): New function.
16171 (type_object_getset): Add entry for attribute "name".
16172 * NEWS: Add entry mentioning this new attribute.
16174 2014-01-07 Yao Qi <yao@codesourcery.com>
16176 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16179 2014-01-07 Yao Qi <yao@codesourcery.com>
16181 * gnu-nat.c (info_port_rights): Add qualifier const to
16184 2014-01-07 Yao Qi <yao@codesourcery.com>
16186 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16188 2014-01-07 Yao Qi <yao@codesourcery.com>
16190 * gnu-nat.c (make_inf) Update declaration.
16191 (make_inf): Make it static.
16192 (inf_set_traced): Likewise.
16193 (inf_port_to_thread, inf_task_died_status): Likewise.
16195 2014-01-07 Yao Qi <yao@codesourcery.com>
16197 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16199 2014-01-07 Yao Qi <yao@codesourcery.com>
16201 * gnu-nat.c (_initialize_gnu_nat): Declare.
16203 2014-01-07 Yao Qi <yao@codesourcery.com>
16205 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16207 (struct gdbarch_info) <byte_order>: Change type to
16209 <byte_order_for_code>: Likewise.
16210 * gdbarch.c, gdbarch.h: Regenerated.
16212 2014-01-06 Sasha Smundak <asmundak@google.com>
16214 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16216 2014-01-06 Tom Tromey <tromey@redhat.com>
16218 * doublest.c (convert_doublest_to_floatformat): Use const, not
16220 * somread.c (som_symtab_read): Likewise.
16222 2014-01-07 Hui Zhu <hui@codesourcery.com>
16224 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16225 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16226 (gdb_bfd_fopen): Ditto.
16227 (gdb_bfd_openr): Ditto.
16228 (gdb_bfd_openw): Ditto.
16229 (gdb_bfd_openr_iovec): Ditto.
16230 (gdb_bfd_fdopenr): Ditto.
16231 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16232 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16234 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16236 * symfile-mem.c (symbol_file_add_from_memory): Removed
16237 gdb_bfd_stash_filename.
16239 2014-01-03 Doug Evans <dje@google.com>
16241 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16244 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16246 Update year range in copyright notice of all files.
16248 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16250 * top.c (print_gdb_version): Set copyright year to 2014.
16252 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16254 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16256 For older changes see ChangeLog-2013.
16262 version-control: never