1 2014-12-12 Doug Evans <xdje42@gmail.com>
3 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
4 All callers updated. Rename arg "namespace" to "symbol_name".
6 2014-12-12 Doug Evans <xdje42@gmail.com>
8 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
9 partial_map_symtabs_matching_filename. All uses updated.
10 (psym_find_pc_sect_compunit_symtab): Renamed from
11 find_pc_sect_compunit_symtab_from_partial. All uses updated.
13 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
14 All uses updated. Add function comment.
15 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
17 (psym_find_last_source_symtab): Renamed from
18 find_last_source_symtab_from_partial. All uses updated.
20 (psym_forget_cached_source_info): Renamed from
21 forget_cached_source_info_partial. All uses updated.
23 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
24 All uses updated. Add function comment.
25 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
26 updated. Add function comment.
27 (psym_expand_symtabs_for_function): Renamed from
28 read_symtabs_for_function. All uses updated. Update function comment.
29 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
30 All uses updated. Add function comment.
31 (psym_expand_symtabs_with_fullname): Renamed from
32 read_psymtabs_with_fullname. All uses updated. Add function comment.
33 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
34 All uses updated. Add function comment.
35 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
37 (psym_expand_symtabs_matching): Renamed from
38 expand_symtabs_matching_via_partial. All uses updated.
40 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
43 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
44 Jan Kratochvil <jan.kratochvil@redhat.com>
45 Tom Tromey <tromey@redhat.com>
48 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
50 * p-lang.c (pascal_language_defn): Update.
51 * opencl-lang.c (opencl_language_defn): Update.
52 * objc-lang.c (objc_language_defn): Update.
53 * m2-lang.c (m2_language_defn): Update.
54 * language.h (struct language_defn) <la_get_compile_instance,
55 la_compute_program>: New fields.
56 * language.c (unknown_language_defn, auto_language_defn)
57 (local_language_defn): Update.
58 * jv-lang.c (java_language_defn): Update.
59 * go-lang.c (go_language_defn): Update.
60 * f-lang.c (f_language_defn): Update.
61 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
62 * dwarf2loc.c (dwarf2_compile_property_to_c)
63 (locexpr_generate_c_location, loclist_generate_c_location): New
65 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
66 * defs.h (enum compile_i_scope_types): New.
67 (enum command_control_type) <compile_control>: New constant.
68 (struct command_line) <control_u>: New field.
69 * d-lang.c (d_language_defn): Update.
70 * compile/compile.c: New file.
71 * compile/compile-c-support.c: New file.
72 * compile/compile-c-symbols.c: New file.
73 * compile/compile-c-types.c: New file.
74 * compile/compile.h: New file.
75 * compile/compile-internal.h: New file.
76 * compile/compile-loc2c.c: New file.
77 * compile/compile-object-load.c: New file.
78 * compile/compile-object-load.h: New file.
79 * compile/compile-object-run.c: New file.
80 * compile/compile-object-run.h: New file.
81 * cli/cli-script.c (multi_line_command_p, print_command_lines)
82 (execute_control_command, process_next_line)
83 (recurse_read_control_structure): Handle compile_control.
84 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
85 * c-lang.c (c_language_defn, cplus_language_defn)
86 (asm_language_defn, minimal_language_defn): Update.
87 * ada-lang.c (ada_language_defn): Update.
88 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
90 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
91 (HFILES_NO_SRCDIR): Add compile.h.
92 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
93 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
94 (compile.o, compile-c-types.o, compile-c-symbols.o)
95 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
96 (compile-c-support.o): New targets.
98 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
100 * s390-linux-tdep.c (s390_gcc_target_options): New function.
101 (s390_gdbarch_init): Add it to gdbarch.
103 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
105 * linux-tdep.c: Include objfiles.h and infcall.h.
106 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
108 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
110 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
112 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
113 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
114 translate_register. Now public.
115 (dwarf2_compile_expr_to_ax): Update.
117 2014-12-12 Tom Tromey <tromey@redhat.com>
118 Jan Kratochvil <jan.kratochvil@redhat.com>
120 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
121 (dwarf_expr_frame_base): Update caller.
122 (dwarf_expr_frame_base_1): Rename to ...
123 (func_get_frame_base_dwarf_block): ... this and make it public.
124 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
126 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
128 2014-12-12 Tom Tromey <tromey@redhat.com>
130 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
132 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
133 dwarf2_compile_cfa_to_ax.
134 (dwarf2_compile_cfa_to_ax): Remove.
135 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
136 (dwarf2_compile_cfa_to_ax): Remove.
138 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
140 * infcall.h (call_function_by_hand_dummy): Declare.
141 * infcall.c (call_function_by_hand): Use
142 call_function_by_hand_dummy.
143 (call_function_by_hand_dummy): Rename from call_function_by_hand.
144 Add arguments. Register a destructor.
146 2014-12-12 Tom Tromey <tromey@redhat.com>
147 Jan Kratochvil <jan.kratochvil@redhat.com>
149 * osabi.h (osabi_triplet_regexp): Declare.
150 * osabi.c (struct osabi_names): New.
151 (gdb_osabi_names): Change type to struct osabi_names. Update
153 (gdbarch_osabi_name): Update.
154 (osabi_triplet_regexp): New function.
155 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
156 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
157 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
158 set_gdbarch_gnu_triplet_regexp.
159 * gdbarch.sh (gnu_triplet_regexp): New method.
160 * gdbarch.c, gdbarch.h: Rebuild.
161 * arch-utils.h (default_gnu_triplet_regexp): Declare.
162 * arch-utils.c (default_gnu_triplet_regexp): New function.
164 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
166 * arch-utils.c (default_infcall_mmap)
167 (default_gcc_target_options): New functions.
168 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
169 (GDB_MMAP_PROT_EXEC): Define.
170 (default_infcall_mmap, default_gcc_target_options): Declare.
171 * gdbarch.h: Rebuild.
172 * gdbarch.c: Rebuild.
173 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
175 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
177 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
179 (pop_dummy_frame): Call the destructor if it exists.
180 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
182 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
183 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
185 2014-12-12 Tom Tromey <tromey@redhat.com>
187 * gdbtypes.h (make_unqualified_type): Declare.
188 * gdbtypes.c (make_unqualified_type): New function.
190 2014-12-12 Tom Tromey <tromey@redhat.com>
192 * ui-file.h (ui_file_write_for_put): Declare.
193 * ui-file.c (ui_file_write_for_put): New function.
194 * mi/mi-out.c (do_write): Remove.
195 (mi_out_put): Use ui_file_write_for_put.
197 2014-12-12 Doug Evans <dje@google.com>
199 * NEWS: Mention gdb.lookup_objfile.
200 * python/python.c (GdbMethods): Add lookup_objfile.
201 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
202 * python/py-objfile.c: #include "symtab.h".
203 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
204 (objfpy_lookup_objfile_by_name): New function.
205 (objfpy_lookup_objfile_by_build_id): New function.
206 (gdbpy_lookup_objfile): New function.
208 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
210 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
211 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
212 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
214 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
217 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
219 * completer.c: Include "target.h", "reggroups.h", and
221 (reg_or_group_completer): New.
222 * completer.h (reg_or_group_completer): Declare.
223 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
224 the "info registers" and "info all-registers" commands and the
225 dbx-mode "lr" command.
227 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
229 * user-regs.c: Include "arch-utils.h", "command.h", and
231 (maintenance_print_user_registers): New.
232 (_initialize_user_regs): Register new "maint print user-registers"
234 * NEWS: Mention new GDB command "maint print user-registers".
236 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
237 Maciej W. Rozycki <macro@mips.com>
238 Pedro Alves <pedro@codesourcery.com>
240 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
241 remove `predefault' and `invalid_p' initializers.
242 (make_symbol_special): New architecture method.
243 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
244 (objfile, symbol): New declarations.
245 * arch-utils.h (default_elf_make_msymbol_special): Remove
247 (default_make_symbol_special): New prototype.
248 (default_adjust_dwarf2_addr): Likewise.
249 (default_adjust_dwarf2_line): Likewise.
250 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
251 * arch-utils.c (default_elf_make_msymbol_special): Remove
253 (default_make_symbol_special): New function.
254 (default_adjust_dwarf2_addr): Likewise.
255 (default_adjust_dwarf2_line): Likewise.
256 * dwarf2-frame.c (decode_frame_entry_1): Call
257 `gdbarch_adjust_dwarf2_addr'.
258 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
259 * dwarf2read.c (create_addrmap_from_index): Likewise.
260 (process_psymtab_comp_unit_reader): Likewise.
261 (add_partial_symbol): Likewise.
262 (add_partial_subprogram): Likewise.
263 (process_full_comp_unit): Likewise.
264 (read_file_scope): Likewise.
265 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
266 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
267 (read_call_site_scope): Likewise.
268 (dwarf2_ranges_read): Likewise.
269 (dwarf2_record_block_ranges): Likewise.
270 (read_attribute_value): Likewise.
271 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
272 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
273 * elfread.c (elf_symtab_read): Don't call
274 `gdbarch_elf_make_msymbol_special' if unset.
275 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
276 the ISA bit from the PC.
277 * mips-tdep.c (mips_unmake_compact_addr): New function.
278 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
279 address appropriately.
280 (mips_make_symbol_special): New function.
281 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
282 (mips_pc_is_mips16): Likewise.
283 (mips_pc_is_micromips): Likewise.
284 (mips_pc_isa): Likewise.
285 (mips_adjust_dwarf2_addr): New function.
286 (mips_adjust_dwarf2_line): Likewise.
287 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
288 (mips_addr_bits_remove): Likewise.
289 (mips_skip_trampoline_code): Likewise.
290 (mips_write_pc): Don't set the ISA bit.
291 (mips_eabi_push_dummy_call): Likewise.
292 (mips_o64_push_dummy_call): Likewise.
293 (mips_gdbarch_init): Install `mips_make_symbol_special',
294 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
296 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
297 target-specific symbol address adjustments.
298 * gdbarch.h: Regenerate.
299 * gdbarch.c: Regenerate.
301 2014-12-12 Yao Qi <yao@codesourcery.com>
304 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
305 'skip_pc'. Remove code skipping prologue instructions, use
306 arm_analyze_prologue instead.
307 (arm_analyze_prologue): Stop the scanning for unrecognized
308 instruction when skipping prologue.
310 2014-12-12 Yao Qi <yao@codesourcery.com>
312 * arm-tdep.c (arm_instruction_restores_sp): New function.
313 (arm_analyze_prologue): Call arm_instruction_restores_sp.
314 (arm_in_function_epilogue_p): Move code to
315 arm_instruction_restores_sp.
317 2014-12-11 Doug Evans <xdje42@gmail.com>
319 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
321 2014-12-11 Doug Evans <xdje42@gmail.com>
323 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
324 (symbol *lookup_symbol_via_quick_fns): Ditto.
325 (lookup_symbol_in_objfile): Add forward decl.
326 (lookup_global_symbol_from_objfile): Simplify, call
327 lookup_symbol_in_objfile.
329 2014-12-11 Doug Evans <xdje42@gmail.com>
331 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
333 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
336 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
337 it is marked as persistent.
339 2014-12-10 Doug Evans <xdje42@gmail.com>
341 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
342 closer to its subroutines.
344 2014-12-10 Doug Evans <xdje42@gmail.com>
346 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
348 2014-12-10 Doug Evans <xdje42@gmail.com>
350 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
351 * cp-support.c (cp_lookup_symbol_imports): Delete.
353 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
356 * target.c (cleanup_restore_target_terminal): New function.
357 (make_cleanup_restore_target_terminal): New function.
358 * target.h (make_cleanup_restore_target_terminal): New declaration.
359 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
361 2014-12-08 Doug Evans <dje@google.com>
363 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
365 2014-12-08 Doug Evans <dje@google.com>
367 * NEWS: Mention gdb.Objfile.owner.
368 * python/py-objfile.c (objfpy_get_owner): New function.
369 (objfile_getset): Add "owner".
371 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
373 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
374 (lookup_global_symbol_from_objfile): Call it.
376 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
378 Remove const from struct objfile *.
379 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
380 symtab.c, symtab.h: In these files.
382 2014-12-05 Andreas From <andreas.from@ericsson.com>
384 * MAINTAINERS (Write After Approval): Add "Andreas From"
386 2014-12-05 Doug Evans <xdje42@gmail.com>
390 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
392 2014-12-04 Doug Evans <dje@google.com>
394 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
395 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
396 (objfile_getset): Add "add_separate_debug_file".
398 2014-12-04 Doug Evans <dje@google.com>
400 * NEWS: Mention gdb.Objfile.build_id.
401 * build-id.c (build_id_bfd_get): Make non-static.
402 * build-id.h (build_id_bfd_get): Add declaration.
403 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
404 (OBJFPY_REQUIRE_VALID): New macro.
405 (objfpy_get_build_id): New function.
406 (objfile_getset): Add "build_id".
407 * utils.c (make_hex_string): New function.
408 * utils.h (make_hex_string): Add declaration.
410 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
412 * block.c (block_lookup_symbol_primary): New function.
413 * block.h (block_lookup_symbol_primary): New declaration.
414 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
415 Call block_lookup_symbol_primary.
417 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
419 * tramp-frame.h (tramp_frame): Add `validate' member.
420 * tramp-frame.c (tramp_frame_start): Validate trampoline before
422 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
423 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
424 (mips_linux_o32_sigframe): Initialize `validate' member.
425 (mips_linux_o32_rt_sigframe): Likewise.
426 (mips_linux_n32_rt_sigframe): Likewise.
427 (mips_linux_n64_rt_sigframe): Likewise.
428 (micromips_linux_o32_sigframe): New variable.
429 (micromips_linux_o32_rt_sigframe): Likewise.
430 (micromips_linux_n32_rt_sigframe): Likewise.
431 (micromips_linux_n64_rt_sigframe): Likewise.
432 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
433 (mips_linux_n32n64_sigframe_init): Likewise.
434 (mips_linux_sigframe_validate): New function.
435 (micromips_linux_sigframe_validate): Likewise.
436 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
438 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
440 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
441 * sparc-sol2-tdep.c: Include "regset.h".
442 (sparc32_sol2_supply_core_gregset): New function.
443 (sparc32_sol2_collect_core_gregset): Likewise.
444 (sparc32_sol2_supply_core_fpregset): Likewise.
445 (sparc32_sol2_collect_core_fpregset): Likewise.
446 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
447 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
448 tdep->fpregset/sizeof_fpregset.
449 * sparc64-sol2-tdep.c: Include "regset.h".
450 (sparc64_sol2_supply_core_gregset): New function.
451 (sparc64_sol2_collect_core_gregset): Likewise.
452 (sparc64_sol2_supply_core_fpregset): Likewise.
453 (sparc64_sol2_collect_core_fpregset): Likewise.
454 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
455 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
456 tdep->fpregset/sizeof_fpregset.
458 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
460 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
463 2014-12-02 Doug Evans <dje@google.com>
465 * symtab.c (symbol_init_cplus_specific): Delete.
466 (symbol_set_demangled_name): Remove special c++ support.
467 (symbol_get_demangled_name, symbol_set_language): Ditto.
468 * symtab.h (struct cplus_specific): Delete.
469 (struct general_symbol_info) <language_specific>: Remove
472 2014-12-02 Doug Evans <dje@google.com>
475 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
477 2014-12-02 Doug Evans <dje@google.com>
480 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
483 2014-12-02 Doug Evans <dje@google.com>
485 * dwarf2read.c (peek_die_abbrev): Improve error message text.
487 2014-12-02 Doug Evans <dje@google.com>
489 * valops.c (do_search_struct_field): Remove remnant of Chill support.
490 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
492 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
494 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
496 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
498 * NEWS: Mention new Python events.
499 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
500 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
501 (py-infevents.o): New rule.
502 * doc/observer.texi (inferior_call_pre, inferior_call_post)
503 (memory_changed, register_changed): New observers.
504 * infcall.c (call_function_by_hand): Notify observer before and
506 * python/py-event.h (inferior_call_kind): New enum.
507 (emit_inferior_call_event): New prototype.
508 (emit_register_changed_event): New prototype.
509 (emit_memory_changed_event): New prototype.
510 * python/py-events.h (events_object): New registries
511 inferior_call, memory_changed and register_changed.
512 * python/py-evts.c (gdbpy_initialize_py_events): Add the
513 inferior_call, memory_changed and register_changed registries.
514 * python/py-infevents.c: New.
515 * python/py-inferior.c (python_on_inferior_call_pre)
516 (python_on_inferior_call_post, python_on_register_change)
517 (python_on_memory_change): New functions.
518 (gdbpy_initialize_inferior): Attach python handler to new
520 * python/py-infthread.c(gdbpy_create_ptid_object): New.
521 (thpy_get_ptid) Use gdbpy_create_ptid_object.
522 * python/python-internal.h:
523 (gdbpy_create_ptid_object)
524 (gdbpy_initialize_inferior_call_pre_event)
525 (gdbpy_initialize_inferior_call_post_event)
526 (gdbpy_initialize_register_changed_event)
527 (gdbpy_initialize_memory_changed_event): New prototypes.
528 * python/python.c (_initialize_python): Initialize new events.
529 * valops.c (value_assign): Notify register_changed observer.
531 2014-12-02 Doug Evans <dje@google.com>
533 * python/py-infthread.c: Whitespace fixes.
535 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
537 * features/Makefile (s390-te-linux64-expedite): Replace
538 non-existant r14 and r15 by r14l and r15l, respectively.
539 * regformats/s390-te-linux64.dat: Regenerate.
541 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
543 * objfiles.c (allocate_objfile): Remove duplicate comment.
545 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
547 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
548 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
549 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
550 (supply_gregset, supply_fpregset): Remove.
551 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
552 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
555 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
557 Add add-auto-load-scripts-directory.
558 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
559 * auto-load.c (add_auto_load_dir): New function.
560 (_initialize_auto_load): Install it.
562 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
564 Pushed by Joel Brobecker <brobecker@adacore.com>.
565 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
567 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
569 * eval.c (evaluate_subexp): Check that the thread stack temporaries
570 are not already enabled before enabling them.
572 2014-11-29 Yao Qi <yao@codesourcery.com>
574 * arm-tdep.c (arm_analyze_prologue): Move local variables
575 'framereg' and 'framesize' to inner block. Move code to
578 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
580 * eval.c: Include gdbthread.h.
581 (evaluate_subexp): Enable thread stack temporaries before
582 evaluating a complete expression and clean them up after the
583 evaluation is complete.
584 * gdbthread.h: Include common/vec.h.
585 (value_ptr): New typedef.
586 (VEC (value_ptr)): New vector type.
587 (value_vec): New typedef.
588 (struct thread_info): Add new fields stack_temporaries_enabled
589 and stack_temporaries.
590 (enable_thread_stack_temporaries)
591 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
592 (get_last_thread_stack_temporary)
593 (value_in_thread_stack_temporaries): Declare.
594 * gdbtypes.c (class_or_union_p): New function.
595 * gdbtypes.h (class_or_union_p): Declare.
596 * infcall.c (call_function_by_hand): Store return values of class
597 type as temporaries on stack.
598 * thread.c (enable_thread_stack_temporaries): New function.
599 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
600 (get_last_thread_stack_temporary): Likewise.
601 (value_in_thread_stack_temporaries): Likewise.
602 * value.c (value_force_lval): New function.
603 * value.h (value_force_lval): Declare.
605 2014-11-28 Pierre Muller <muller@sourceware.org>
607 Pushed by Joel Brobecker <brobecker@adacore.com>.
608 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
611 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
613 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
614 * config/sparc/linux.mh (NATDEPFILES): Likewise.
615 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
616 * m68klinux-nat.c (fetch_core_registers): Remove.
617 (linux_elf_core_fns): Remove.
618 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
620 2014-11-28 Joel Brobecker <brobecker@adacore.com>
622 * utils.c (gdb_realpath): Rework comment about handling on
625 2014-11-28 Yao Qi <yao@codesourcery.com>
627 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
629 * gnulib/aclocal.m4: Re-generated.
630 * gnulib/config.in: Re-generated.
631 * gnulib/configure: Re-generated.
632 * gnulib/import/Makefile.am: Re-generated.
633 * gnulib/import/Makefile.in: Re-generated.
634 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
635 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
636 * import/basename-lgpl.c: New file.
637 * import/dirname-lgpl.c: New file.
638 * import/dirname.h: New file.
639 * import/m4/dirname.m4: New file.
640 * import/m4/malloc.m4: New file.
641 * import/m4/rename.m4: New file.
642 * import/m4/rmdir.m4: New file.
643 * import/m4/stdio_h.m4: New file.
644 * import/malloc.c: New file.
645 * import/rename.c: New file.
646 * import/rmdir.c: New file.
647 * import/same-inode.h: New file.
648 * import/stdio.c: New file.
649 * import/stdio.in.h: New file.
650 * import/stripslash.c: New file.
652 2014-11-28 Yao Qi <yao@codesourcery.com>
654 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
656 * config.in: Re-generated.
657 * configure: Re-generated.
658 * utils.c (gdb_realpath): Remove code calling realpath,
659 canonicalize_file_name and pathconf.
660 [!_WIN32]: Call canonicalize_file_name.
662 2014-11-28 Yao Qi <yao@codesourcery.com>
664 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
666 * aclocal.m4: Re-generated.
667 * config.in: Re-generated.
668 * configure: Re-generated.
669 * import/Makefile.am: Re-generated.
670 * import/Makefile.in: Re-generated.
671 * import/m4/gnulib-cache.m4: Re-generated.
672 * import/m4/gnulib-comp.m4: Re-generated.
673 * import/canonicalize-lgpl.c: New file.
674 * import/extra/snippet/_Noreturn.h: New file.
675 * import/m4/canonicalize.m4: New file.
676 * import/m4/double-slash-root.m4: New file.
677 * import/m4/eealloc.m4: New file.
678 * import/m4/malloca.m4: New file.
679 * import/m4/nocrash.m4: New file.
680 * import/m4/stdlib_h.m4: New file.
681 * import/malloca.c: New file.
682 * import/malloca.h: New file.
683 * import/malloca.valgrind: New file.
685 2014-11-28 Yao Qi <yao@codesourcery.com>
687 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
688 * config.in, configure: Regenerate.
689 * symfile.c (find_separate_debug_file_by_debuglink): Remove
690 code checking HAVE_LSTAT is defined.
692 2014-11-28 Yao Qi <yao@codesourcery.com>
694 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
696 * gnulib/aclocal.m4: Re-generated.
697 * gnulib/config.in: Re-generated.
698 * gnulib/configure: Re-generated.
699 * gnulib/import/Makefile.am: Re-generated.
700 * gnulib/import/Makefile.in: Re-generated.
701 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
702 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
703 * gnulib/import/lstat.c: New file.
704 * gnulib/import/m4/lstat.m4: New file.
706 2014-11-28 Yao Qi <yao@codesourcery.com>
708 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
709 * config.in, configure: Re-generate.
710 * inf-child.c (inf_child_fileio_readlink): Don't check
711 HAVE_READLINK is defined.
713 2014-11-28 Yao Qi <yao@codesourcery.com>
715 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
716 * gnulib/aclocal.m4: Re-generated.
717 * gnulib/config.in: Likewise.
718 * gnulib/configure: Likewise.
719 * gnulib/import/Makefile.am: Likewise.
720 * gnulib/import/Makefile.in: Likewise.
721 * gnulib/import/m4/gnulib-cache.m4: Likewise.
722 * gnulib/import/m4/gnulib-comp.m4: Likewise.
723 * gnulib/import/dosname.h: New file
724 * gnulib/import/m4/largefile.m4: New file.
725 * gnulib/import/m4/readlink.m4: New file.
726 * gnulib/import/m4/stat.m4: New file.
727 * gnulib/import/readlink.c: New file.
728 * gnulib/import/stat.c: New file.
730 2014-11-26 Mark Wielaard <mjw@redhat.com>
732 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
733 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
735 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
737 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
738 that there can be only one stack adjustment in the prologue
739 with tests to detect specific disallowed stack adjustments.
741 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
743 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
746 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
748 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
749 the instruction as well as reading it from memory.
750 (nios2_match_add): New.
751 (nios2_match_sub): New.
752 (nios2_match_addi): New.
753 (nios2_match_orhi): New.
754 (nios2_match_stw): New.
755 (nios2_match_ldw): New.
756 (nios2_match_rdctl): New.
757 (enum branch_condition): New.
758 (nios2_match_branch): New.
759 (nios2_match_jmpi): New.
760 (nios2_match_calli): New.
761 (nios2_match_jmpr): New.
762 (nios2_match_callr): New.
763 (nios2_match_break): New.
764 (nios2_match_trap): New.
765 (nios2_in_epilogue_p): Rewrite to use new functions.
766 (nios2_analyze_prologue): Likewise.
767 (nios2_skip_prologue): Delete unused local limit_pc.
768 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
769 (nios2_get_next_pc): Rewrite to use new functions.
771 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
773 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
775 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
777 Pushed by Joel Brobecker <brobecker@adacore.com>
778 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
779 elements pi_len by the size of the elements before calling
781 (inf_validate_task_sc): Likewise, and properly deallocate the
784 2014-11-23 Doug Evans <xdje42@gmail.com>
786 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
787 number and name if present. All callers updated.
788 (dump_fn_fieldlists): Fix indentation of args.
790 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
792 * MAINTAINERS (Write After Approval): Add myself.
794 2014-11-23 Joel Brobecker <brobecker@adacore.com>
796 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
797 to a bp_call_dummy breakpoint type.
799 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
801 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
802 registering the signal handler.
804 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
806 * event-top.h (call_stdin_event_handler_again_p): Declare.
807 * event-top.c (call_stdin_event_handler_again_p): Define.
808 (stdin_event_handler): Use it.
809 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
810 handler again if there is pending input following a
813 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
815 Pushed by Joel Brobecker <brobecker@adacore.com>
816 * linux-fork.c (checkpoint_command): Print index of new
817 checkpoint in response message.
819 2014-11-23 Yao Qi <yao@codesourcery.com>
821 * valprint.c (read_string): Move local variables 'found_nul',
822 'chunksize' and 'limit' to inner scope. Update comments.
824 2014-11-22 Doug Evans <xdje42@gmail.com>
826 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
828 (search_symbols): Fix comments and whitespace.
830 2014-11-22 Doug Evans <xdje42@gmail.com>
832 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
834 2014-11-21 Doug Evans <dje@google.com>
836 * psymtab.c (psymtab_search_name): Fix whitespace.
838 2014-11-21 Yao Qi <yao@codesourcery.com>
840 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
842 * gnulib/import/Makefile.am: Re-generated.
843 * gnulib/import/Makefile.in: Likewise.
844 * gnulib/import/m4/gnulib-cache.m4: Likewise.
846 2014-11-21 Yao Qi <yao@codesourcery.com>
848 * gdb_wchar.h: Include wchar.h and wctype.h.
849 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
850 include wchar.h and wctype.h.
851 Don't check HAVE_WCHAR_H.
853 2014-11-21 Yao Qi <yao@codesourcery.com>
855 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
857 * gnulib/import/Makefile.am: Re-generated.
858 * gnulib/import/Makefile.in: Likewise.
859 * gnulib/import/m4/gnulib-cache.m4: Likewise.
861 2014-11-21 Yao Qi <yao@codesourcery.com>
863 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
865 * gnulib/import/Makefile.am: Re-generated.
866 * gnulib/import/Makefile.in: Likewise.
867 * gnulib/import/m4/gnulib-cache.m4: Likewise.
869 2014-11-21 Yao Qi <yao@codesourcery.com>
871 * common/common-defs.h: Include alloca.h
872 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
873 * configure: Re-generated.
874 * defs.h: Remove code handling alloca.
875 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
878 2014-11-21 Yao Qi <yao@codesourcery.com>
880 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
882 * gnulib/import/Makefile.am: Re-generated.
883 * gnulib/import/Makefile.in: Likewise..
884 * gnulib/import/m4/gnulib-cache.m4: Likewise.
886 2014-11-21 Yao Qi <yao@codesourcery.com>
888 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
891 2014-11-21 Joel Brobecker <brobecker@adacore.com>
893 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
894 flag_unsigned if HIGH_BOUND is constant and negative.
896 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
899 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
900 modifier from "struct gdbarch" when compiling without Expat (XML)
902 (get_syscall_by_number): Likewise.
903 (get_syscall_by_name): Likewise.
904 (get_syscall_names): Likewise.
906 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
909 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
910 set_xml_syscall_file_name to provide gdbarch.
911 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
912 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
913 * breakpoint.c (print_it_catch_syscall): Adjust call to
914 get_syscall_by_number to provide gdbarch.
915 (print_one_catch_syscall): Likewise.
916 (print_mention_catch_syscall): Likewise.
917 (print_recreate_catch_syscall): Likewise.
918 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
919 and get_syscall_by_name to provide gdbarch.
920 (catch_syscall_completer): Adjust call to get_syscall_names to
922 * gdbarch.c: Regenerate.
923 * gdbarch.h: Likewise.
924 * gdbarch.sh: Forward declare "struct syscalls_info".
925 (xml_syscall_file): New variable.
926 (syscalls_info): Likewise.
927 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
928 set_xml_syscall_file_name to provide gdbarch.
929 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
930 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
931 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
932 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
933 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
934 * xml-syscall.c: Include gdbarch.h.
935 (set_xml_syscall_file_name): Accept gdbarch parameter.
936 (get_syscall_by_number): Likewise.
937 (get_syscall_by_name): Likewise.
938 (get_syscall_names): Likewise.
939 (my_gdb_datadir): Delete global variable.
940 (struct syscalls_info) <my_gdb_datadir>: New variable.
941 (struct syscalls_info) <sysinfo>: Rename variable to
943 (sysinfo): Delete global variable.
944 (have_initialized_sysinfo): Likewise.
945 (xml_syscall_file): Likewise.
946 (sysinfo_free_syscalls_desc): Rename to...
947 (syscalls_info_free_syscalls_desc): ... this.
948 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
949 code to the new layout of "struct syscalls_info".
950 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
952 (syscall_create_syscall_desc): Likewise.
953 (syscall_start_syscall): Likewise.
954 (syscall_parse_xml): Likewise.
955 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
956 (init_sysinfo): Rename to...
957 (init_syscalls_info): ...this. Add gdbarch as a parameter.
958 Adjust function to deal with gdbarch.
959 (xml_get_syscall_number): Delete parameter sysinfo. Accept
960 gdbarch as a parameter. Adjust code.
961 (xml_get_syscall_name): Likewise.
962 (xml_list_of_syscalls): Likewise.
963 (set_xml_syscall_file_name): Accept gdbarch as parameter.
964 (get_syscall_by_number): Likewise.
965 (get_syscall_by_name): Likewise.
966 (get_syscall_names): Likewise.
967 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
968 (get_syscall_by_number): Likewise.
969 (get_syscall_by_name): Likewise.
970 (get_syscall_names): Likewise.
972 2014-11-20 Doug Evans <xdje42@gmail.com>
974 Split struct symtab into two: struct symtab and compunit_symtab.
975 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
976 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
977 to "struct compunit_symtab *". All callers updated.
978 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
979 "struct symtab *" argument to "struct compunit_symtab *".
981 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
982 result to "struct compunit_symtab *". All callers updated.
983 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
984 Change result to "struct compunit_symtab *". All callers updated.
985 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
986 hange type to "struct compunit_symtab *". All uses updated.
987 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
988 Change type to "struct compunit_symtab *". All uses updated.
989 * buildsym.c (struct buildsym_compunit): New struct.
990 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
991 (buildsym_compunit): New static global.
992 (finish_block_internal): Update to fetch objfile from
994 (make_blockvector): Delete objfile argument.
995 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
996 debugformat, producer.
997 (start_buildsym_compunit): New function.
998 (free_buildsym_compunit): Renamed from free_subfiles_list.
1000 (patch_subfile_names): Rewrite to use buildsym_compunit.
1001 (get_compunit_symtab): New function.
1002 (get_macro_table): Delete argument comp_dir. All callers updated.
1003 (start_symtab): Change result to "struct compunit_symtab *".
1004 All callers updated. Create the subfile of the main source file.
1005 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1006 (reset_symtab_globals): Update.
1007 (end_symtab_get_static_block): Update to use buildsym_compunit.
1008 (end_symtab_without_blockvector): Rewrite.
1009 (end_symtab_with_blockvector): Change result to
1010 "struct compunit_symtab *". All callers updated.
1011 Update to use buildsym_compunit. Don't set symtab->dirname,
1012 instead set it in the compunit.
1013 Explicitly make sure main symtab is first in its list.
1014 Set debugformat, producer, blockvector, block_line_section, and
1015 macrotable in the compunit.
1016 (end_symtab_from_static_block): Change result to
1017 "struct compunit_symtab *". All callers updated.
1018 (end_symtab, end_expandable_symtab): Ditto.
1019 (set_missing_symtab): Change symtab argument to
1020 "struct compunit_symtab *". All callers updated.
1021 (augment_type_symtab): Ditto.
1022 (record_debugformat): Update to use buildsym_compunit.
1023 (record_producer): Update to use buildsym_compunit.
1024 * buildsym.h (struct subfile) <dirname>: Delete.
1025 <producer, debugformat>: Delete.
1026 <buildsym_compunit>: New member.
1027 (get_compunit_symtab): Declare.
1028 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1029 from primary_symtab. Change type to "struct compunit_symtab *".
1031 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1032 All callers updated.
1033 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1034 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1035 symtab. Change type to "struct compunit_symtab *". All uses updated.
1036 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1037 All callers updated.
1038 (dw2_find_last_source_symtab): Ditto.
1039 (dw2_lookup_symbol): Ditto.
1040 (recursively_find_pc_sect_compunit_symtab): Renamed from
1041 recursively_find_pc_sect_symtab. Change result to
1042 "struct compunit_symtab *". All callers updated.
1043 (dw2_find_pc_sect_compunit_symtab): Renamed from
1044 dw2_find_pc_sect_symtab. Change result to
1045 "struct compunit_symtab *". All callers updated.
1046 (get_compunit_symtab): Renamed from get_symtab. Change result to
1047 "struct compunit_symtab *". All callers updated.
1048 (recursively_compute_inclusions): Change type of immediate_parent
1049 argument to "struct compunit_symtab *". All callers updated.
1050 (compute_compunit_symtab_includes): Renamed from
1051 compute_symtab_includes. All callers updated. Rewrite to compute
1052 includes of compunit_symtabs and not symtabs.
1053 (process_full_comp_unit): Update to work with struct compunit_symtab.
1054 (process_full_type_unit): Ditto.
1055 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1056 (dwarf_decode_lines): Remove special case handling of main subfile.
1057 (macro_start_file): Delete argument comp_dir. All callers updated.
1058 (dwarf_decode_macro_bytes): Ditto.
1059 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1060 use struct compunit_symtab.
1061 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1062 * jit.c (finalize_symtab): Build compunit_symtab.
1063 * jv-lang.c (get_java_class_symtab): Change result to
1064 "struct compunit_symtab *". All callers updated.
1065 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1066 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1067 comp_dir. Change type to "struct compunit_symtab *".
1069 (new_macro_table): Change comp_dir argument to cust,
1070 "struct compunit_symtab *". All callers updated.
1071 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1072 nr_primary_symtabs. All uses updated.
1073 (count_symtabs_and_blocks): Update to handle compunits.
1074 (report_command_stats): Update output, "primary symtabs" renamed to
1076 * mdebugread.c (new_symtab): Change result to
1077 "struct compunit_symtab *". All callers updated.
1078 (parse_procedure): Change type of search_symtab argument to
1079 "struct compunit_symtab *". All callers updated.
1080 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1082 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1083 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1084 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1086 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1088 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1089 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1090 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1091 symtab. Change type to "struct compunit_symtab *". All uses updated.
1092 * psymtab.c (psymtab_to_symtab): Change result type to
1093 "struct compunit_symtab *". All callers updated.
1094 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1095 find_pc_sect_symtab_from_partial. Change result type to
1096 "struct compunit_symtab *". All callers updated.
1097 (lookup_symbol_aux_psymtabs): Change result type to
1098 "struct compunit_symtab *". All callers updated.
1099 (find_last_source_symtab_from_partial): Ditto.
1100 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1101 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1102 and macro_table from compunit.
1103 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1104 type to "struct compunit_symtab *". All callers updated.
1105 (debug_qf_lookup_symbol): Ditto.
1106 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1107 debug_qf_find_pc_sect_symtab, change result type to
1108 "struct compunit_symtab *". All callers updated.
1109 * symfile.c (allocate_symtab): Delete objfile argument.
1111 (allocate_compunit_symtab): New function.
1112 (add_compunit_symtab_to_objfile): New function.
1113 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1114 Change result type to "struct compunit_symtab *". All uses updated.
1115 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1116 Change result type to "struct compunit_symtab *". All uses updated.
1117 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1119 (dump_symtab_1): Update test for primary source symtab.
1120 (maintenance_info_symtabs): Update to handle compunit symtabs.
1121 (maintenance_check_symtabs): Ditto.
1122 * symtab.c (set_primary_symtab): Delete.
1123 (compunit_primary_filetab): New function.
1124 (compunit_language): New function.
1125 (iterate_over_some_symtabs): Change type of arguments "first",
1126 "after_last" to "struct compunit_symtab *". All callers updated.
1127 Update to loop over symtabs in each compunit.
1128 (error_in_psymtab_expansion): Rename symtab argument to cust,
1129 and change type to "struct compunit_symtab *". All callers updated.
1130 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1131 Change result type to "struct compunit_symtab *". All callers updated.
1132 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1133 Change result type to "struct compunit_symtab *". All callers updated.
1134 (find_pc_sect_line): Only loop over symtabs within selected compunit
1135 instead of all symtabs in the objfile.
1136 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1137 <compunit_symtab> New member.
1138 <block_line_section>: Moved to compunit_symtab.
1139 <locations_valid>: Ditto.
1140 <epilogue_unwind_valid>: Ditto.
1141 <macro_table>: Ditto.
1143 <debugformat>: Ditto.
1146 <call_site_htab>: Ditto.
1150 (SYMTAB_COMPUNIT): New macro.
1151 (SYMTAB_BLOCKVECTOR): Update definition.
1152 (SYMTAB_OBJFILE): Update definition.
1153 (SYMTAB_DIRNAME): Update definition.
1154 (struct compunit_symtab): New type. Common members among all source
1155 symtabs within a compilation unit moved here. All uses updated.
1156 (COMPUNIT_OBJFILE): New macro.
1157 (COMPUNIT_FILETABS): New macro.
1158 (COMPUNIT_DEBUGFORMAT): New macro.
1159 (COMPUNIT_PRODUCER): New macro.
1160 (COMPUNIT_DIRNAME): New macro.
1161 (COMPUNIT_BLOCKVECTOR): New macro.
1162 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1163 (COMPUNIT_LOCATIONS_VALID): New macro.
1164 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1165 (COMPUNIT_CALL_SITE_HTAB): New macro.
1166 (COMPUNIT_MACRO_TABLE): New macro.
1167 (ALL_COMPUNIT_FILETABS): New macro.
1168 (compunit_symtab_ptr): New typedef.
1169 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1171 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1173 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1174 if the TYPE_CODE of range_type's base type does not match
1175 the TYPE_CODE of encoding_type's base type.
1177 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1179 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1182 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1184 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1185 (ada_is_redundant_index_type_desc): New function.
1186 (to_fixed_array_type): Ignore parallel XA type if redundant.
1188 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1190 * ada-lang.c (constrained_packed_array_type): Set the length
1191 of the return array as if both bounds where zero if that
1192 returned array's index type is dynamic.
1194 2014-11-19 Yao Qi <yao@codesourcery.com>
1196 * config/i386/go32.mh (CC): Remove.
1198 2014-11-18 Doug Evans <xdje42@gmail.com>
1200 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1203 2014-11-18 Doug Evans <xdje42@gmail.com>
1205 * buildsym.c (buildsym_objfile): New static global.
1206 (buildsym_comp_dir): New static global.
1207 (finish_block_internal): Delete arg objfile. All callers updated.
1208 (finish_block): Delete arg objfile. All callers updated.
1209 (start_subfile): Delete arg dirname. All callers updated.
1210 (patch_subfile_names): Update buildsym_comp_dir.
1211 (get_macro_table): Delete arg objfile. All callers updated.
1212 (start_symtab): New arg objfile. All callers updated.
1213 Rename arg dirname to comp_dir.
1214 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1215 (end_symtab_get_static_block): Delete arg objfile. All callers
1217 (end_symtab_without_blockvector): Ditto.
1218 (end_symtab_with_blockvector): Ditto.
1219 (end_symtab_from_static_block): Ditto.
1220 (end_symtab): Ditto.
1221 (end_expandable_symtab): Ditto.
1222 (augment_type_symtab): Ditto.
1223 * coffread.c (coff_start_symtab): New arg objfile. All callers
1226 2014-11-18 Doug Evans <xdje42@gmail.com>
1228 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1231 2014-11-18 Doug Evans <xdje42@gmail.com>
1233 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1234 symtab.dirname updated to use it.
1236 2014-11-18 Doug Evans <xdje42@gmail.com>
1238 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1239 symtab.objfile updated to use it.
1241 2014-11-18 Doug Evans <xdje42@gmail.com>
1243 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1245 2014-11-18 Doug Evans <xdje42@gmail.com>
1247 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1249 * findvar.c (default_read_var_value): Ditto.
1250 * jv-lang.c (add_class_symtab_symbol): Ditto.
1251 * parse.c (operator_check_standard): Ditto.
1252 * printcmd.c (address_info): Ditto.
1253 * symtab.c (fixup_symbol_section): Ditto.
1254 (skip_prologue_sal): Ditto.
1255 * tracepoint.c (scope_info): Ditto.
1256 * valops.c (find_function_in_inferior): Ditto.
1257 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1258 * python/py-symbol.c (set_symbol): Ditto.
1260 2014-11-18 Doug Evans <xdje42@gmail.com>
1262 * buildsym.c (main_subfile): New static global.
1263 (free_subfiles_list): New function.
1264 (start_symtab): Set main_subfile.
1265 (restart_symtab): Replace init of subfiles, current_subfile with
1266 call to free_subfiles_list.
1267 (watch_main_source_file_lossage): Use main_subfile.
1268 (reset_symtab_globals): Replace init of current_subfile with call
1269 to free_subfiles_list.
1270 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1271 functions, split out from ...
1272 (end_symtab_from_static_block): ... here. Rewrite to call them.
1274 2014-11-18 Doug Evans <xdje42@gmail.com>
1276 The result of symtab expansion is always a primary symtab.
1277 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1278 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1279 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1280 (psymtab_to_symtab): Add comment and assert.
1281 (map_matching_symbols_psymtab): Remove unnecessary test for
1284 2014-11-15 Doug Evans <xdje42@gmail.com>
1287 * symtab.c (find_pc_line_symtab): New function.
1288 * symtab.h (find_pc_line_symtab): Declare.
1289 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1291 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1292 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1293 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1294 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1295 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1296 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1298 2014-11-15 Doug Evans <xdje42@gmail.com>
1300 * symtab.c (expand_symtab_containing_pc): Renamed from
1301 find_pc_sect_symtab_via_partial. All callers updated.
1303 2014-11-15 Yao Qi <yao@codesourcery.com>
1305 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1307 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1309 * common/common-defs.h: Move <stdarg.h> #include ahead of
1312 2014-11-14 Pedro Alves <palves@redhat.com>
1314 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1315 [!PHONY_ICONV] (gdb_iconv): New function.
1316 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1318 2014-11-13 Doug Evans <dje@google.com>
1321 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1322 "(anonymous namespace)".
1324 2014-11-13 Doug Evans <dje@google.com>
1326 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1329 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1331 * NEWS (maint set target-async): Fix typo.
1333 2014-11-12 Pedro Alves <palves@redhat.com>
1335 * infrun.c (enum infwait_states, infwait_state): Delete.
1337 2014-11-12 Pedro Alves <palves@redhat.com>
1339 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1340 Rewrite stepping over a permanent breakpoint.
1341 (thread_still_needs_step_over, proceed): Don't set
1342 stepping_over_breakpoint for permanent breakpoints.
1343 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1344 single-step breakpoints out of the target on hardware step
1346 (process_event_stop_test): If stepping a permanent breakpoint
1347 doesn't hit the step-resume breakpoint, delete the step-resume
1349 (switch_back_to_stepped_thread): Also check if the stepped thread
1350 has advanced already on hardware step targets.
1351 (currently_stepping): Return true if the thread stepped a
1354 2014-11-12 Pedro Alves <palves@redhat.com>
1356 Mark locations as permanent, not the whole breakpoint.
1357 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1358 (mark_breakpoints_out): Don't mark permanent breakpoints as
1360 (breakpoint_init_inferior): Use mark_breakpoints_out.
1361 (breakpoint_here_p): Adjust.
1362 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1363 of permanent breakpoints.
1364 (make_breakpoint_permanent): Mark each location as permanent,
1365 instead of marking the breakpoint.
1366 (add_location_to_breakpoint): If the location is permanent, mark
1367 it as such, and as inserted.
1368 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1369 (bp_location_compare, update_global_location_list): Adjust.
1370 (update_breakpoint_locations): Don't make the breakpoint permanent
1372 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1374 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1375 (struct bp_location) <permanent>: New field.
1376 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1377 reference to bp_permanent.
1379 2014-11-12 Pedro Alves <palves@redhat.com>
1381 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1382 * arch-utils.h (default_skip_permanent_breakpoint): New
1384 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1385 Install default_skip_permanent_breakpoint as default method.
1386 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1387 (i386_gdbarch_init): Don't install it.
1388 * infrun.c (resume): Assume there's always a
1389 gdbarch_skip_permanent_breakpoint implementation.
1390 * gdbarch.h, gdbarch.c: Regenerate.
1392 2014-11-11 Daniel Colascione <dancol@dancol.org>
1394 Warn about cross-PID-namespace debugging.
1395 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1396 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1397 * linux-thread-db.c (check_pid_namespace_match): New function.
1398 (thread_db_inferior_created): Call it.
1400 2014-11-10 Doug Evans <xdje42@gmail.com>
1402 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1403 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1405 2014-11-10 Doug Evans <xdje42@gmail.com>
1407 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1409 2014-11-10 Doug Evans <xdje42@gmail.com>
1412 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1413 (lookup_static_symbol): Move definition to new location and rewrite.
1414 (lookup_symbol_in_objfile): New function.
1415 (lookup_symbol_global_iterator_cb): Call it.
1417 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1419 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1421 2014-11-07 Pedro Alves <palves@redhat.com>
1423 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1424 check if we did a "nexti" inside a prologue.
1425 * symtab.c (in_prologue): Delete function.
1426 * symtab.h (in_prologue): Delete declaration.
1428 2014-11-06 Doug Evans <xdje42@gmail.com>
1430 * symtab.h (lookup_global_symbol): Improve function comment.
1432 2014-11-06 Doug Evans <xdje42@gmail.com>
1434 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1435 All callers updated.
1436 * symtab.h (lookup_global_symbol): Update decl.
1437 (lookup_static_symbol): Move decl to better location.
1439 2014-11-06 Doug Evans <xdje42@gmail.com>
1441 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1443 2014-11-06 Doug Evans <xdje42@gmail.com>
1445 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1446 All callers updated.
1447 (lookup_symbol_in_all_objfiles): Renamed from
1448 lookup_symbol_aux_symtabs. All callers updated.
1449 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1450 All callers updated.
1451 (lookup_symbol_in_objfile_symtabs): Renamed from
1452 lookup_symbol_aux_objfile. All callers updated.
1454 2014-11-06 Doug Evans <xdje42@gmail.com>
1456 * symtab.c (lookup_symbol_in_block): Renamed from
1457 lookup_symbol_aux_block. All callers updated.
1459 2014-11-06 Doug Evans <xdje42@gmail.com>
1461 * symtab.c (lookup_static_symbol): Renamed from
1462 lookup_static_symbol_aux. All callers updated.
1463 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1464 All callers updated.
1466 2014-11-06 Doug Evans <xdje42@gmail.com>
1468 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1469 * block.c (block_lookup_symbol): Use it.
1470 * cp-support.c (make_symbol_overload_list_block): Use it.
1471 * symtab.c (iterate_over_symbols): Use it.
1473 2014-11-06 Doug Evans <xdje42@gmail.com>
1475 * symtab.c (lookup_block_symbol): Moved to ...
1476 * block.c (block_lookup_symbol): ... here and renamed.
1477 All callers updated.
1478 * block.h (block_lookup_symbol): Declare.
1479 * symtab.h (lookup_block_symbol): Delete.
1481 2014-11-06 Doug Evans <xdje42@gmail.com>
1483 * ada-lang.c (ada_make_symbol_completion_list): Use
1484 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1485 * symtab.c (lookup_objfile_from_block): Ditto.
1487 2014-11-06 Doug Evans <xdje42@gmail.com>
1489 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1492 2014-11-06 Doug Evans <xdje42@gmail.com>
1494 * objfiles.c (get_objfile_arch): Constify.
1495 * objfiles.h (get_objfile_arch): Update prototype.
1496 * solib.c (solib_global_lookup): Fetch arch from objfile,
1499 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1501 * nios2-tdep.c (wild_insn): Delete.
1502 (profiler_insn, irqentry_insn): Delete.
1503 (nios2_match_sequence): Delete.
1504 (nios2_analyze_prologue): Update comments. Remove matching
1505 of obsolete profiler_insn and irqentry_insn sequences.
1507 2014-11-05 Alan Modra <amodra@gmail.com>
1509 * charset.c (convert_between_encodings): Shrink obstack using
1511 * minsyms.c (install_minimal_symbols): Likewise.
1512 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1513 to char* before doing pointer arithmetic.
1515 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1517 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1519 2014-11-04 Pedro Alves <palves@redhat.com>
1521 * breakpoint.c (breakpoint_thread_match): Delete function.
1522 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1524 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1527 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1528 the method args also under EVAL_SKIP when evaluating method
1529 calls under EVAL_SKIP.
1531 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1533 * dwarf2loc.c (read_pieced_value): Do big endian
1534 processing only if gdb_regnum is not -1.
1535 (write_pieced_value): Ditto.
1537 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1539 * arm-linux-tdep.c (arm_linux_init_abi): Use
1540 info.byte_order_for_code to choose endianity of breakpoint
1541 instructions snippets.
1543 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1545 * arm-tdep.c (extract_arm_insn): Use
1546 gdbarch_byte_order_for_code to read arm instruction.
1548 2014-11-02 Doug Evans <xdje42@gmail.com>
1550 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1552 2014-11-02 Doug Evans <xdje42@gmail.com>
1554 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1555 main_subfile before returning.
1557 2014-10-31 Doug Evans <xdje42@gmail.com>
1559 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1560 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1562 2014-10-31 Doug Evans <xdje42@gmail.com>
1564 * valops.c (value_cast_pointers): Fix whitespace.
1565 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1568 2014-10-30 Doug Evans <dje@google.com>
1570 * NEWS: Mention ability add attributes to gdb.Objfile and
1571 gdb.Progspace objects.
1572 * python/py-objfile.c (objfile_object): New member dict.
1573 (objfpy_dealloc): Py_XDECREF dict.
1574 (objfpy_initialize): Initialize dict.
1575 (objfile_getset): Add __dict__.
1576 (objfile_object_type): Set tp_dictoffset member.
1577 * python/py-progspace.c (progspace_object): New member dict.
1578 (pspy_dealloc): Py_XDECREF dict.
1579 (pspy_initialize): Initialize dict.
1580 (pspace_getset): Add __dict__.
1581 (pspace_object_type): Set tp_dictoffset member.
1583 2014-10-30 Yao Qi <yao@codesourcery.com>
1585 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1586 replace '\\' with '\\\\'.
1588 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1592 2014-10-29 Pedro Alves <palves@redhat.com>
1595 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1596 instead of assuming a thread with a stepping range is always
1599 2014-10-29 Pedro Alves <palves@redhat.com>
1602 * event-top.c (change_line_handler): Call
1603 gdb_rl_callback_handler_remove instead of
1604 rl_callback_handler_remove.
1605 (callback_handler_installed): New global.
1606 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1607 (gdb_rl_callback_handler_reinstall): New functions.
1608 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1609 gdb_rl_callback_handler_install instead of
1610 rl_callback_handler_remove and rl_callback_handler_install.
1611 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1612 instead of rl_callback_handler_remove.
1613 * event-top.h (gdb_rl_callback_handler_remove)
1614 (gdb_rl_callback_handler_install)
1615 (gdb_rl_callback_handler_reinstall): New declarations.
1616 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1618 (fetch_inferior_event): Install it.
1619 * top.c (gdb_readline_wrapper_line) Call
1620 gdb_rl_callback_handler_remove instead of
1621 rl_callback_handler_remove.
1622 (gdb_readline_wrapper_cleanup): Don't call
1623 rl_callback_handler_install.
1625 2014-10-29 Pedro Alves <palves@redhat.com>
1627 * event-top.c (command_line_handler): Clear the first byte of
1628 linebuffer, when it is first allocated.
1630 2014-10-29 Pedro Alves <palves@redhat.com>
1632 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1635 2014-10-29 Pedro Alves <palves@redhat.com>
1639 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1640 (tui_allowed_p): Delete function.
1641 * tui/tui.c: Include "interps.h".
1642 (tui_enable): Don't use tui_allowed_p. Error out here with
1643 detailed error messages if the TUI is the top level interpreter,
1644 or if output is not a terminal. Use newterm instead of initscr,
1645 and error out if initializing the terminal fails. Also error out if
1646 the terminal doesn't support cursor addressing.
1647 * tui/tui.h (tui_allowed_p): Delete declaration.
1649 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1651 * arm-tdep.c (arm_skip_stack_protector): Return early if
1652 address loaded by first "ldr" instruction does not have
1653 a corresponding minimal symbol. Update comment.
1655 2014-10-29 Yao Qi <yao@codesourcery.com>
1657 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1658 loaded address correctly of ldr instruction.
1660 2014-10-28 Pedro Alves <palves@redhat.com>
1663 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1665 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1666 thread's stepped_breakpoint field. Skip if reverse debugging.
1668 (init_thread_stepping_state, handle_signal_stop): Clear the
1669 thread's stepped_breakpoint field.
1671 2014-10-27 Pedro Alves <palves@redhat.com>
1673 * remote.c (remote_thread_alive): New, factored out from ...
1674 (remote_thread_alive): ... this.
1675 (remote_update_thread_list): Bail out before deleting threads if
1676 the target returned an empty list, and, the current thread has a
1679 2014-10-27 Pedro Alves <palves@redhat.com>
1681 * infrun.c (handle_signal_stop): Also skip handlers when a random
1682 signal arrives while handling a "stepi" or a "nexti". Set the
1683 thread's 'step_after_step_resume_breakpoint' flag.
1685 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1687 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1688 (arm_record_ld_st_imm_offset): Reimplement to cover all
1689 load/store cases for ARM opcode 010.
1690 (arm_record_ld_st_multiple): Reimplement to cover all
1691 load/store cases for ARM opcode 100.
1693 2014-10-26 Doug Evans <xdje42@gmail.com>
1695 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1697 2014-10-26 Doug Evans <xdje42@gmail.com>
1699 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1700 parameter "kind" to "block_index".
1701 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1703 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1705 2014-10-26 Doug Evans <xdje42@gmail.com>
1707 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1709 2014-10-26 Doug Evans <xdje42@gmail.com>
1711 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1714 2014-10-26 Doug Evans <xdje42@gmail.com>
1716 * parser-defs.h (block_found): Move decl from here ...
1717 * symtab.h (block_found): ... to here.
1719 2014-10-26 Doug Evans <xdje42@gmail.com>
1721 * symtab.h (struct field_of_this_result): Fix typo in comment.
1722 (lookup_symbol_in_language): Move function comment here.
1723 (lookup_symbol): Improve function comment.
1724 (basic_lookup_symbol_nonlocal): Ditto.
1725 (lookup_symbol_static, lookup_symbol_global): Ditto.
1726 (lookup_symbol_aux_block): Ditto.
1727 (lookup_language_this): Add function comment.
1728 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1730 (lookup_block_symbol): Improve function comment.
1731 (lookup_struct): Fix capitalization in function comment.
1732 (lookup_transparent_type): Add function comment.
1733 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1734 Improve function comment.
1735 (lookup_objfile_from_block): Add function comment.
1736 * symtab.c (lookup_symbol_in_language): Update function comment.
1737 (lookup_symbol, lookup_language_this): Ditto.
1738 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1739 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1740 (basic_lookup_symbol_nonlocal): Ditto.
1741 (lookup_symbol_static, lookup_symbol_global): Ditto.
1742 (lookup_transparent_type, lookup_block_symbol): Ditto.
1744 2014-10-25 Doug Evans <xdje42@gmail.com>
1746 * symtab.c (types_info): Delete forward decl.
1747 (functions_info, variables_info, sources_info): Ditto.
1748 (_initialize_symtab): Rewrite forward decl to use
1749 initialize_file_ftype.
1751 2014-10-25 Doug Evans <xdje42@gmail.com>
1753 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1755 2014-10-25 Doug Evans <xdje42@gmail.com>
1757 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1758 of local var child_die.
1760 2014-10-24 Don Breazeal <donb@codesourcery.com>
1762 * infrun.c (follow_fork_inferior): Update fork message printing
1763 to use target_terminal_ours_for_output instead of
1764 target_terminal_ours, to use _() for all format strings, to print
1765 "vfork" instead of "fork" for vforks, and to add a detach message.
1766 (handle_vfork_child_exec_or_exit): Update message printing to use
1767 target_terminal_ours_for_output instead of target_terminal_ours, to
1768 use _() for all format strings, and to fix some formatting.
1770 2014-10-24 Pedro Alves <palves@redhat.com>
1772 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1773 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1774 * config/vax/vax.mh: Delete.
1775 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1776 obsolete configurations section.
1777 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1778 * vax-nat.c: Delete file.
1780 2014-10-24 Pedro Alves <palves@redhat.com>
1782 * NEWS (Removed targets): Add OS/arch column.
1784 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1786 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1787 on the arg type of a constructor only if it is of reference type.
1789 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1791 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1792 accessors and constants from nios2 opcodes update.
1793 (nios2_get_next_pc): Likewise.
1795 2014-10-19 Doug Evans <xdje42@gmail.com>
1797 * gdbthread.h (set_running): Fix comment.
1798 (set_executing, finish_thread_state): Fix comment.
1800 2014-10-18 Doug Evans <xdje42@gmail.com>
1802 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1804 2014-10-17 Doug Evans <dje@google.com>
1806 * NEWS: Mention new event gdb.clear_objfiles.
1807 * python/py-event.h (emit_clear_objfiles_event): Clear
1808 * python/py-events.h (events_object): New member clear_objfiles.
1809 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1811 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1812 emit clear_objfiles event.
1813 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1815 (emit_clear_objfiles_event): New function.
1816 (clear_objfiles): New event.
1817 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1819 * python/python.c (_initialize_python): Call
1820 gdbpy_initialize_clear_objfiles_event.
1822 2014-10-17 Doug Evans <dje@google.com>
1824 * NEWS: Mention new gdb.Objfile.progspace attribute.
1825 * python/py-objfile.c (objfpy_get_progspace): New function.
1826 (objfile_getset): New entry for "progspace".
1828 2014-10-17 Pedro Alves <palves@redhat.com>
1831 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1832 returns a copy of the input.
1833 (run_command_1, continue_command, step_1, jump_command)
1834 (signal_command, until_command, advance_command, finish_command)
1835 (attach_command): Adjust and install a cleanup to free the
1838 2014-10-17 Pedro Alves <palves@redhat.com>
1841 * infcmd.c (continue_1): If continuing all threads in the
1842 foreground, make sure the inferior's terminal settings are put in
1845 2014-10-17 Pedro Alves <palves@redhat.com>
1848 * annotate.c (annotate_breakpoints_invalid): Use
1849 target_terminal_our_for_output instead of target_terminal_ours.
1850 Give back the terminal to the target.
1851 (annotate_frames_invalid): Likewise.
1853 2014-10-17 Pedro Alves <palves@redhat.com>
1855 * target.c (enum terminal_state): New enum.
1856 (terminal_state): New global.
1857 (target_terminal_init): New function.
1858 (target_terminal_inferior): Skip if inferior already owns the
1860 (target_terminal_ours, target_terminal_ours_for_output): New
1862 * target.h (target_terminal_init): Convert to function prototype.
1863 (target_terminal_ours_for_output): Convert to function prototype
1865 (target_terminal_ours): Convert to function prototype and tweak
1867 * windows-nat.c (do_initial_windows_stuff): Call
1868 target_terminal_init instead of child_terminal_init_with_pgrp.
1870 2014-10-17 Pedro Alves <palves@redhat.com>
1872 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1873 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1874 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1876 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1877 * ada-lang.h [__alpha__ && __osf__]
1878 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1879 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1880 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1882 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1884 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1885 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1886 * configure: Regenerate.
1887 * configure.ac: Remove references to osf.
1888 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1889 section. Remove all other references to osf.
1890 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1891 Remove all other references to osf.
1892 * dec-thread.c: Delete file.
1893 * defs.h (GDB_OSABI_OSF1): Delete.
1894 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1896 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1897 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1899 (unconditionally_kill_inferior)
1900 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1901 * solib-osf.c: Delete file.
1903 2014-10-17 Pedro Alves <palves@redhat.com>
1905 * remote.c (clear_threads_listing_context): Move higher up, out of
1906 the HAVE_LIBEXPAT guard.
1908 2014-10-16 Tristan Gingold <gingold@adacore.com>
1910 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1911 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1914 2014-10-15 Pedro Alves <palves@redhat.com>
1916 * dec-thread.c (dec_thread_count_gdb_threads)
1917 (dec_thread_add_gdb_thread): Delete.
1918 (dec_thread_update_thread_list): Delete.
1919 (dec_thread_find_new_threads): Rename to ...
1920 (dec_thread_update_thread_list): ... this. Delete GDB-size
1921 threads that are no longer found in dec_thread_list.
1922 (resync_thread_list): Delete.
1923 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1926 2014-10-15 Pedro Alves <palves@redhat.com>
1928 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1929 * remote.c (remote_update_thread_list): Skip calling prune_threads
1930 if any thread listing method is supported, and instead walk over
1931 the set of remote threads listed, deleting those that are not
1932 found in GDB's thread list.
1934 2014-10-15 Pedro Alves <palves@redhat.com>
1936 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1937 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1938 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1939 (bsd_uthread_target): Adjust.
1940 * corelow.c (core_open): Adjust.
1941 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1942 (dec_thread_update_thread_list): New function.
1943 (init_dec_thread_ops): Adjust.
1944 * gdbthread.h (prune_threads): New declaration.
1945 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1946 (thread_db_update_thread_list): ... this. Call prune_threads.
1947 (init_thread_db_ops): Adjust.
1948 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1949 (procfs_update_thread_list): ... this. Call prune_threads.
1950 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1952 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1953 (obsd_update_thread_list): ... this. Call prune_threads.
1954 (obsd_add_target): Adjust.
1955 * procfs.c (procfs_target): Adjust.
1956 (procfs_notice_thread): Update comment.
1957 (procfs_find_new_threads): Rename to ...
1958 (procfs_update_thread_list): ... this. Call prune_threads.
1959 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1961 (ravenscar_wait): Adjust.
1962 (ravenscar_find_new_threads): Rename to ...
1963 (ravenscar_update_thread_list): ... this. Call prune_threads.
1964 (init_ravenscar_thread_ops): Adjust.
1965 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1966 (record_btrace_update_thread_list): ... this. Adjust comment.
1967 (init_record_btrace_ops): Adjust.
1968 * remote.c (remote_threads_info): Rename to ...
1969 (remote_update_thread_list): ... this. Call prune_threads.
1970 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1972 * sol-thread.c (check_for_thread_db): Adjust.
1973 (sol_find_new_threads_callback): Rename to ...
1974 (sol_update_thread_list_callback): ... this.
1975 (sol_find_new_threads): Rename to ...
1976 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1977 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1978 * target-delegates.c: Regenerate.
1979 * target.c (target_find_new_threads): Rename to ...
1980 (target_update_thread_list): ... this.
1981 * target.h (struct target_ops): Rename to_find_new_threads field
1982 to to_update_thread_list.
1983 (target_find_new_threads): Rename to ...
1984 (target_update_thread_list): ... this.
1985 * thread.c (prune_threads): Make extern.
1986 (update_thread_list): Adjust.
1988 2014-10-15 Pedro Alves <palves@redhat.com>
1990 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1991 Add describing comment. Return -1 if the qL packet is not
1993 (struct thread_item, thread_item_t): Move higher up in
1994 the file. Add comments.
1995 (struct threads_parsing_context): Move higher up in
1996 the file, add comments, and remote to ...
1997 (struct threads_listing_context): ... this.
1998 (remote_newthread_step): Don't add the thread to GDB's thread
1999 database here. Instead push it to the thread_listing_context
2001 (remote_find_new_threads): Rename to ...
2002 (remote_get_threads_with_ql): ... this. Add target_ops and
2003 targets_listing_context parameters. Pass down context.
2004 (start_thread): Adjust.
2005 (clear_threads_parsing_context): Rename to ...
2006 (clear_threads_listing_context): ... this.
2007 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2008 remote_threads_info.
2009 (remote_get_threads_with_qthreadinfo): Ditto.
2010 (remote_threads_info): Reimplement.
2012 2014-10-15 Pedro Alves <palves@redhat.com>
2014 * infrun.c (resume): Don't force displaced-stepping for all
2015 single-steps on software single-stepping archs.
2017 2014-10-15 Pedro Alves <palves@redhat.com>
2019 * breakpoint.c (single_step_breakpoints): Delete global.
2020 (insert_single_step_breakpoint): Adjust to store the breakpoint
2021 pointer in the current thread.
2022 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2023 (cancel_single_step_breakpoints): Delete functions.
2024 (breakpoint_has_location_inserted_here): Make extern.
2025 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2027 * breakpoint.h (breakpoint_has_location_inserted_here): New
2029 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2030 (cancel_single_step_breakpoints): Remove declarations.
2031 * gdbthread.h (struct thread_control_state)
2032 <single_step_breakpoints>: New field.
2033 (delete_single_step_breakpoints)
2034 (thread_has_single_step_breakpoints_set)
2035 (thread_has_single_step_breakpoint_here): New declarations.
2036 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2037 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2038 (singlestep_pc): Delete globals.
2039 (infrun_thread_ptid_changed): Remove references to removed
2041 (resume_cleanups): Delete the current thread's single-step
2043 (maybe_software_singlestep): Remove references to removed globals.
2044 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2045 delete_single_step_breakpoints.
2046 (init_wait_for_inferior): Remove references to removed globals.
2047 (delete_thread_infrun_breakpoints): Delete the thread's
2048 single-step breakpoints too.
2049 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2050 single-step breakpoints here.
2051 (delete_stopped_threads_single_step_breakpoints): New function.
2052 (adjust_pc_after_break): Adjust to use
2053 thread_has_single_step_breakpoints_set.
2054 (handle_inferior_event): Remove references to removed globals.
2055 Use delete_stopped_threads_single_step_breakpoints.
2056 (handle_signal_stop): Adjust to per-thread single-step
2057 breakpoints. Swap test order to do cheaper tests first.
2058 (switch_back_to_stepped_thread): Extend debug output. Remove
2059 references to removed globals.
2060 * record-full.c (record_full_wait_1): Adjust to per-thread
2061 single-step breakpoints.
2062 * thread.c (delete_single_step_breakpoints)
2063 (thread_has_single_step_breakpoints_set)
2064 (thread_has_single_step_breakpoint_here): New functions.
2065 (clear_thread_inferior_resources): Also delete the thread's
2066 single-step breakpoints.
2068 2014-10-15 Pedro Alves <palves@redhat.com>
2070 * thread.c (delete_thread_breakpoint): New function.
2071 (delete_step_resume_breakpoint)
2072 (delete_exception_resume_breakpoint): Use it.
2073 (delete_at_next_stop): New function.
2074 (clear_thread_inferior_resources): Use delete_at_next_stop.
2076 2014-10-15 Pedro Alves <palves@redhat.com>
2078 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2079 (breakpoint_inserted_here_p): ... here. Remove special case for
2080 software single-step breakpoints.
2081 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2082 (software_breakpoint_inserted_here_p): ... here. Remove special
2083 case for software single-step breakpoints.
2084 (bp_target_info_copy_insertion_state)
2085 (deprecated_insert_raw_breakpoint)
2086 (deprecated_remove_raw_breakpoint): Delete functions.
2087 * breakpoint.h (deprecated_insert_raw_breakpoint)
2088 (deprecated_remove_raw_breakpoint): Remove declarations.
2090 2014-10-15 Pedro Alves <palves@redhat.com>
2093 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2094 Delete array globals.
2095 (single_step_breakpoints): New global.
2096 (breakpoint_xfer_memory): Remove special handling for single-step
2098 (update_breakpoints_after_exec): Delete bp_single_step
2100 (detach_breakpoints): Remove special handling for single-step
2102 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2103 (bpstat_stop_status): Add comment.
2104 (bpstat_what, bptype_string, print_one_breakpoint_location)
2105 (adjust_breakpoint_address, init_bp_location): Handle
2107 (new_single_step_breakpoint): New function.
2108 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2109 handling for single-step breakpoints.
2110 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2111 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2113 (detach_single_step_breakpoints, find_single_step_breakpoint):
2115 (breakpoint_has_location_inserted_here): New function.
2116 (single_step_breakpoint_inserted_here_p): Rewrite.
2117 * breakpoint.h: Remove FIXME.
2118 (enum bptype) <bp_single_step>: New enum value.
2119 (insert_single_step_breakpoint): Update comment.
2120 * infrun.c (resume_cleanups)
2121 (delete_step_thread_step_resume_breakpoint): Remove single-step
2123 (fetch_inferior_event): Install a cleanup that removes infrun
2125 (switch_back_to_stepped_thread) <expect thread advanced also>:
2126 Clear step-over info.
2128 2014-10-15 Pedro Alves <palves@redhat.com>
2130 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2131 (delete_thread_infrun_breakpoints): New function, with parts
2132 salvaged from delete_step_resume_breakpoint_callback.
2133 (delete_step_thread_step_resume_breakpoint): Delete.
2134 (for_each_just_stopped_thread_callback_func): New typedef.
2135 (for_each_just_stopped_thread): New function.
2136 (delete_just_stopped_threads_infrun_breakpoints): New function.
2137 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2138 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2140 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2142 2014-10-15 Pedro Alves <palves@redhat.com>
2144 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2145 trying to step past a non-steppable watchpoint.
2146 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2148 * infrun.c (struct step_over_info): Add new field
2149 'nonsteppable_watchpoint_p' and adjust comments.
2150 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2152 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2153 (stepping_past_nonsteppable_watchpoint): New function.
2154 (step_over_info_valid_p): Also return true if stepping past a
2155 nonsteppable watchpoint.
2156 (proceed): Adjust call to set_step_over_info. Remove reference to
2158 (init_wait_for_inferior): Remove reference to init_infwait_state.
2159 (waiton_ptid): Delete global.
2160 (struct execution_control_state)
2161 <stepped_after_stopped_by_watchpoint>: Delete field.
2162 (wait_for_inferior, fetch_inferior_event): Always pass
2163 minus_one_ptid to target_wait.
2164 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2166 (init_infwait_state): Delete function.
2167 (handle_inferior_event): Remove infwait_state handling.
2168 (handle_signal_stop) <watchpoints handling>: Adjust after
2169 stepped_after_stopped_by_watchpoint removal. Don't remove
2170 breakpoints here nor set infwait_state. Set the thread's
2171 stepping_over_watchpoint flag, and call keep_going instead.
2172 (keep_going): Handle stepping_over_watchpoint. Adjust
2173 set_step_over_info calls.
2174 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2177 2014-10-15 Pedro Alves <palves@redhat.com>
2179 * infrun.c (step_over_info_valid_p): New function.
2180 (resume): Use step_over_info_valid_p instead of checking the
2181 threads's trap_expected flag.
2183 2014-10-15 Doug Evans <dje@google.com>
2184 Walfred Tedeschi <walfred.tedeschi@intel.com>
2187 * python/lib/gdb/__init__.py (packages): Add "printer".
2188 * python/lib/gdb/command/bound_registers.py: Moved to ...
2189 * python/lib/gdb/printer/bound_registers.py: ... here.
2190 Add printer to global set of builtin printers. Rename printer from
2191 "bound" to "mpx_bound128".
2192 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2193 registered as global "builtin" printer.
2194 (add_builtin_pretty_printer): New function.
2195 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2196 gdb/printer/__init__.py.
2198 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2200 * Makefile.in (SFILES): Remove d-support.c.
2201 (COMMON_OBS): Remove d-support.o.
2202 * d-lang.h (d_parse_symbol): Remove declaration.
2203 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2204 * d-support.c: Remove file.
2206 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2208 * gdb/infrun.c (process_event_stop_test): Apply
2209 gdbarch_addr_bits_remove to longjmp resume address.
2211 2014-10-15 Pedro Alves <palves@redhat.com>
2213 * regformats/microblaze.dat: Delete file.
2215 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2217 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2218 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2220 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2222 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2225 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2229 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2230 with qualified args.
2232 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2234 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2235 of the case where the second operand is a pointer.
2236 <BINOP_SUB>: Likewise.
2238 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2240 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2241 only if it is not NULL.
2242 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2243 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2244 (struct probe_ops) <clear_semaphore>: Likewise.
2245 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2247 (stop_tracing): Likewise, for clear_semaphore.
2249 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2251 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2252 using language_c, instead of current_language.
2254 2014-10-13 Doug Evans <dje@google.com>
2256 * python/py-objfile.c (objfpy_initialize): New function.
2257 (objfpy_new, objfile_to_objfile_object): Call it.
2258 * python/py-progspace.c (pspy_initialize): New function.
2259 (pspy_new, pspace_to_pspace_object): Call it.
2261 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2262 Jan Kratochvil <jan.kratochvil@redhat.com>
2264 Fix "save breakpoints" for "catch" command.
2265 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2268 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2270 Fix "save breakpoints" for "disable $bpnum" command.
2271 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2273 2014-10-10 Pedro Alves <palves@redhat.com>
2275 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2276 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2277 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2278 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2280 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2281 * configure.ac: Remove references to IRIX.
2282 * configure.host: Add *-*-irix* to the obsolete hosts section.
2283 Remove all other references to irix.
2284 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2287 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2289 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2290 isn't valid, release the tdesc arch data and return NULL.
2292 2014-10-10 Pedro Alves <palves@redhat.com>
2294 * linux-tdep.c: Include observer.h.
2295 (linux_inferior_data): New global.
2296 (struct linux_info): New structure.
2297 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2298 (get_linux_inferior_data): New functions.
2299 (linux_vsyscall_range): Rename to ...
2300 (linux_vsyscall_range_raw): ... this.
2301 (linux_vsyscall_range): New function; handles caching.
2302 (_initialize_linux_tdep): Register linux_inferior_data. Install
2303 inferior_exit and inferior_appeared observers.
2305 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2306 Pedro Alves <palves@redhat.com>
2309 * solib-svr4.c (svr4_read_so_list): Rename to ...
2310 (svr4_current_sos_1): ... this and change the function comment.
2311 (svr4_current_sos): New function.
2313 2014-10-10 Pedro Alves <palves@redhat.com>
2315 * arch-utils.c (default_vsyscall_range): New function.
2316 * arch-utils.h (default_vsyscall_range): New declaration.
2317 * gdbarch.sh (vsyscall_range): New hook.
2318 * gdbarch.h, gdbarch.c: Regenerate.
2319 * linux-tdep.c (linux_vsyscall_range): New function.
2320 (linux_init_abi): Install linux_vsyscall_range as
2321 vsyscall_range gdbarch hook.
2322 * memrange.c (address_in_mem_range): New function.
2323 * memrange.h (address_in_mem_range): New declaration.
2324 * symfile-mem.c (find_vdso_size): Delete function.
2325 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2327 2014-10-10 Pedro Alves <palves@redhat.com>
2329 * infrun.c (normal_stop): Fix typo in comment.
2331 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2334 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2335 typo when using logical AND to determine instruction type.
2337 2014-10-09 Yao Qi <yao@codesourcery.com>
2339 * infrun.c (handle_signal_stop): Remove local variable
2342 2014-10-08 Stan Shebs <stan@codesourcery.com>
2344 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2346 2014-10-08 Gary Benson <gbenson@redhat.com>
2348 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2350 2014-10-08 Gary Benson <gbenson@redhat.com>
2352 * common/common-defs.h: Include common-exceptions.h.
2353 * exceptions.h: Do not include common-exceptions.h.
2355 2014-10-08 Gary Benson <gbenson@redhat.com>
2357 * common/common-defs.h: Include cleanups.h.
2358 * common/common-exceptions.c: Do not include cleanups.h.
2359 * utils.h: Likewise.
2361 2014-10-08 Gary Benson <gbenson@redhat.com>
2363 * ada-lang.c: Do not include exceptions.h.
2364 * ada-valprint.c: Likewise.
2365 * amd64-tdep.c: Likewise.
2366 * auto-load.c: Likewise.
2367 * block.c: Likewise.
2368 * break-catch-throw.c: Likewise.
2369 * breakpoint.c: Likewise.
2370 * btrace.c: Likewise.
2371 * c-lang.c: Likewise.
2372 * cli/cli-cmds.c: Likewise.
2373 * cli/cli-interp.c: Likewise.
2374 * cli/cli-script.c: Likewise.
2375 * completer.c: Likewise.
2376 * corefile.c: Likewise.
2377 * corelow.c: Likewise.
2378 * cp-abi.c: Likewise.
2379 * cp-support.c: Likewise.
2380 * cp-valprint.c: Likewise.
2381 * darwin-nat.c: Likewise.
2382 * dwarf2-frame-tailcall.c: Likewise.
2383 * dwarf2-frame.c: Likewise.
2384 * dwarf2loc.c: Likewise.
2385 * dwarf2read.c: Likewise.
2387 * event-loop.c: Likewise.
2388 * event-top.c: Likewise.
2389 * f-valprint.c: Likewise.
2390 * frame-unwind.c: Likewise.
2391 * frame.c: Likewise.
2392 * gdbtypes.c: Likewise.
2393 * gnu-v2-abi.c: Likewise.
2394 * gnu-v3-abi.c: Likewise.
2395 * guile/scm-auto-load.c: Likewise.
2396 * guile/scm-breakpoint.c: Likewise.
2397 * guile/scm-cmd.c: Likewise.
2398 * guile/scm-frame.c: Likewise.
2399 * guile/scm-lazy-string.c: Likewise.
2400 * guile/scm-param.c: Likewise.
2401 * guile/scm-symbol.c: Likewise.
2402 * guile/scm-type.c: Likewise.
2403 * hppa-hpux-tdep.c: Likewise.
2404 * i386-tdep.c: Likewise.
2405 * inf-loop.c: Likewise.
2406 * infcall.c: Likewise.
2407 * infcmd.c: Likewise.
2408 * infrun.c: Likewise.
2409 * interps.c: Likewise.
2410 * interps.h: Likewise.
2412 * linespec.c: Likewise.
2413 * linux-nat.c: Likewise.
2414 * linux-thread-db.c: Likewise.
2415 * m32r-rom.c: Likewise.
2417 * memory-map.c: Likewise.
2418 * mi/mi-cmd-break.c: Likewise.
2419 * mi/mi-cmd-stack.c: Likewise.
2420 * mi/mi-interp.c: Likewise.
2421 * mi/mi-main.c: Likewise.
2422 * monitor.c: Likewise.
2423 * nto-procfs.c: Likewise.
2424 * objc-lang.c: Likewise.
2425 * p-valprint.c: Likewise.
2426 * parse.c: Likewise.
2427 * ppc-linux-tdep.c: Likewise.
2428 * printcmd.c: Likewise.
2429 * probe.c: Likewise.
2430 * python/py-auto-load.c: Likewise.
2431 * python/py-breakpoint.c: Likewise.
2432 * python/py-cmd.c: Likewise.
2433 * python/py-finishbreakpoint.c: Likewise.
2434 * python/py-frame.c: Likewise.
2435 * python/py-framefilter.c: Likewise.
2436 * python/py-function.c: Likewise.
2437 * python/py-gdb-readline.c: Likewise.
2438 * python/py-inferior.c: Likewise.
2439 * python/py-infthread.c: Likewise.
2440 * python/py-lazy-string.c: Likewise.
2441 * python/py-linetable.c: Likewise.
2442 * python/py-param.c: Likewise.
2443 * python/py-prettyprint.c: Likewise.
2444 * python/py-symbol.c: Likewise.
2445 * python/py-type.c: Likewise.
2446 * python/py-value.c: Likewise.
2447 * python/python-internal.h: Likewise.
2448 * python/python.c: Likewise.
2449 * record-btrace.c: Likewise.
2450 * record-full.c: Likewise.
2451 * regcache.c: Likewise.
2452 * remote-fileio.c: Likewise.
2453 * remote-mips.c: Likewise.
2454 * remote.c: Likewise.
2455 * rs6000-aix-tdep.c: Likewise.
2456 * rs6000-nat.c: Likewise.
2458 * solib-darwin.c: Likewise.
2459 * solib-dsbt.c: Likewise.
2460 * solib-frv.c: Likewise.
2461 * solib-ia64-hpux.c: Likewise.
2462 * solib-spu.c: Likewise.
2463 * solib-svr4.c: Likewise.
2464 * solib.c: Likewise.
2465 * spu-tdep.c: Likewise.
2466 * stack.c: Likewise.
2467 * stap-probe.c: Likewise.
2468 * symfile-mem.c: Likewise.
2469 * symmisc.c: Likewise.
2470 * target.c: Likewise.
2471 * thread.c: Likewise.
2473 * tracepoint.c: Likewise.
2474 * tui/tui-interp.c: Likewise.
2475 * typeprint.c: Likewise.
2476 * utils.c: Likewise.
2477 * valarith.c: Likewise.
2478 * valops.c: Likewise.
2479 * valprint.c: Likewise.
2480 * value.c: Likewise.
2481 * varobj.c: Likewise.
2482 * windows-nat.c: Likewise.
2483 * xml-support.c: Likewise.
2485 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2487 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2489 (extended_mips16_next_pc): Update accordingly.
2491 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2493 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2495 (micromips_instruction_is_compact_branch): Likewise.
2496 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2497 or a compact jump, reaching a jump delay slot, or seeing a
2498 second non-prologue instruction.
2499 (micromips_scan_prologue): Also terminate scanning upon seeing a
2500 compact branch or jump, or reaching a branch or jump delay slot.
2501 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2502 or jump delay slot, or seeing a second non-prologue instruction.
2503 (mips32_instruction_has_delay_slot): Retain instruction
2504 examination code only, update arguments accordingly and move
2505 instruction fetch pieces to...
2506 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2507 (micromips_instruction_has_delay_slot): Likewise and to...
2508 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2509 (mips16_instruction_has_delay_slot): Likewise and to...
2510 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2511 (mips_single_step_through_delay): Update accordingly.
2512 (mips_adjust_breakpoint_address): Likewise.
2514 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2516 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2517 !mustbe32 also return 1 for 32-bit instructions.
2518 (mips16_instruction_has_delay_slot): Likewise. Add an
2519 explanatory comment.
2521 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2523 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2526 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2528 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2530 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2531 for the breakpoint's address. Don't preinitialize `placed_size'.
2532 (insert_bp_location): Set `reqstd_address' rather than
2534 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2535 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2537 (bkpt_remove_location): Likewise.
2538 (deprecated_insert_raw_breakpoint): Likewise.
2539 (deprecated_remove_raw_breakpoint): Likewise.
2540 (find_single_step_breakpoint): Likewise.
2541 * mem-break.c (default_memory_insert_breakpoint): Use
2542 `reqstd_address' for the breakpoint's address. Don't set
2543 `placed_address' or `placed_size' if breakpoint contents couldn't
2544 have been determined.
2545 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2546 the breakpoint's address.
2547 (remote_insert_hw_breakpoint): Likewise. Don't set
2548 `placed_address' or `placed_size' if breakpoint couldn't have been
2550 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2551 `reqstd_address' for the breakpoint's address.
2552 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2553 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2554 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2555 * microblaze-linux-tdep.c
2556 (microblaze_linux_memory_remove_breakpoint): Likewise.
2557 * monitor.c (monitor_insert_breakpoint): Likewise.
2558 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2559 (procfs_insert_hw_breakpoint): Likewise.
2560 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2561 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2562 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2563 * remote-mips.c (mips_insert_breakpoint): Likewise.
2564 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2566 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2568 * valops.c (value_assign): Check for bit field assignments
2569 before calling architecture-specific register value
2570 conversion functions.
2572 2014-10-03 Pierre Muller <muller@sourceware.org>
2574 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2576 2014-10-02 Pedro Alves <palves@redhat.com>
2578 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2579 threads_are_executing.
2580 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2582 * gdbthread.h (threads_are_executing): Declare.
2583 (handle_signal_stop) <random signals>: Don't print about the
2584 signal here if stopping.
2585 (end_stepping_range): Don't notify observers here.
2586 (normal_stop): Update the thread list. If stopped by a random
2587 signal or a stepping range ended, notify observers.
2588 * thread.c (threads_executing): New global.
2589 (init_thread_list): Clear 'threads_executing'.
2590 (set_executing): Set or clear 'threads_executing'.
2591 (threads_are_executing): New function.
2592 (update_threads_executing): New function.
2593 (update_thread_list): Use it.
2595 2014-10-02 Pedro Alves <palves@redhat.com>
2597 PR breakpoints/17431
2598 * breakpoint.c (update_breakpoints_after_exec): Don't create
2599 overlay, longjmp, std terminate nor exception breakpoints here.
2601 2014-10-02 Pedro Alves <palves@redhat.com>
2603 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2605 * inferior.c (find_inferior_for_program_space): Give preference to
2606 the current inferior.
2607 * inferior.h (find_inferior_for_program_space): Update comment.
2608 * progspace.c (switch_to_program_space_and_thread): Prefer the
2609 current inferior if it's bound to the program space requested. If
2610 the inferior found doesn't have a PID yet, don't bother looking up
2612 * progspace.h (switch_to_program_space_and_thread): Adjust
2614 * thread.c (any_thread_of_process, any_live_thread_of_process):
2615 Give preference to the current thread.
2617 2014-10-01 Pedro Alves <palves@redhat.com>
2619 * breakpoint.c (insert_bp_location): Error out if inserting a
2620 software breakpoint at a read-only address.
2621 * target.c (memory_xfer_check_region): New function, factored out
2623 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2625 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2626 against the memory region attributes.
2628 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2630 * NEWS: Announce new exit-code field in -list-thread-groups
2632 * inferior.c (exit_inferior_1): Don't clear exit code.
2633 (inferior_appeared): Clear exit code.
2634 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2637 2014-10-01 Pedro Alves <palves@redhat.com>
2639 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2640 GENERATED" along with emacs/vi read-only markers.
2641 * regformats/aarch64.dat: Regenerate.
2642 * regformats/arm-with-iwmmxt.dat: Regenerate.
2643 * regformats/arm-with-neon.dat: Regenerate.
2644 * regformats/arm-with-vfpv2.dat: Regenerate.
2645 * regformats/arm-with-vfpv3.dat: Regenerate.
2646 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2647 * regformats/i386/amd64-avx.dat: Regenerate.
2648 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2649 * regformats/i386/amd64-avx512.dat: Regenerate.
2650 * regformats/i386/amd64-linux.dat: Regenerate.
2651 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2652 * regformats/i386/amd64-mpx.dat: Regenerate.
2653 * regformats/i386/amd64.dat: Regenerate.
2654 * regformats/i386/i386-avx-linux.dat: Regenerate.
2655 * regformats/i386/i386-avx.dat: Regenerate.
2656 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2657 * regformats/i386/i386-avx512.dat: Regenerate.
2658 * regformats/i386/i386-linux.dat: Regenerate.
2659 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2660 * regformats/i386/i386-mmx.dat: Regenerate.
2661 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2662 * regformats/i386/i386-mpx.dat: Regenerate.
2663 * regformats/i386/i386.dat: Regenerate.
2664 * regformats/i386/x32-avx-linux.dat: Regenerate.
2665 * regformats/i386/x32-avx.dat: Regenerate.
2666 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2667 * regformats/i386/x32-avx512.dat: Regenerate.
2668 * regformats/i386/x32-linux.dat: Regenerate.
2669 * regformats/i386/x32.dat: Regenerate.
2670 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2671 * regformats/mips-dsp-linux.dat: Regenerate.
2672 * regformats/mips-linux.dat: Regenerate.
2673 * regformats/mips64-dsp-linux.dat: Regenerate.
2674 * regformats/mips64-linux.dat: Regenerate.
2675 * regformats/nios2-linux.dat: Regenerate.
2676 * regformats/rs6000/powerpc-32.dat: Regenerate.
2677 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2678 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2679 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2680 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2681 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2682 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2683 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2684 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2685 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2686 * regformats/s390-linux32.dat: Regenerate.
2687 * regformats/s390-linux32v1.dat: Regenerate.
2688 * regformats/s390-linux32v2.dat: Regenerate.
2689 * regformats/s390-linux64.dat: Regenerate.
2690 * regformats/s390-linux64v1.dat: Regenerate.
2691 * regformats/s390-linux64v2.dat: Regenerate.
2692 * regformats/s390-te-linux64.dat: Regenerate.
2693 * regformats/s390x-linux64.dat: Regenerate.
2694 * regformats/s390x-linux64v1.dat: Regenerate.
2695 * regformats/s390x-linux64v2.dat: Regenerate.
2696 * regformats/s390x-te-linux64.dat: Regenerate.
2697 * regformats/tic6x-c62x-linux.dat: Regenerate.
2698 * regformats/tic6x-c62x.dat: Regenerate.
2699 * regformats/tic6x-c64x-linux.dat: Regenerate.
2700 * regformats/tic6x-c64x.dat: Regenerate.
2701 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2702 * regformats/tic6x-c64xp.dat: Regenerate.
2704 2014-10-01 Pedro Alves <palves@redhat.com>
2706 * features/Makefile: Update comments.
2707 (XMLTOC): List all xml files we build C files from.
2708 (clean-cfiles): New rule.
2710 2014-10-01 Pedro Alves <palves@redhat.com>
2712 * features/i386/amd64-avx512-linux.c: Regenerate.
2713 * features/i386/amd64-avx512.c: Regenerate.
2714 * features/i386/x32-avx512-linux.c: Regenerate.
2715 * features/i386/x32-avx512.c: Regenerate.
2717 2014-10-01 Pedro Alves <palves@redhat.com>
2719 * features/Makefile (WHICH): Remove arm-with-m,
2720 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2722 2014-10-01 Pedro Alves <palves@redhat.com>
2724 * features/Makefile (clean): New rule.
2726 2014-10-01 Pedro Alves <palves@redhat.com>
2728 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2729 (zmm14h): Add missing end quotes.
2731 2014-10-01 Pedro Alves <palves@redhat.com>
2733 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2734 * features/aarch64.c: Regenerate.
2736 2014-09-30 Don Breazeal <donb@codesourcery.com>
2738 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2739 code so as to work with follow_fork_inferior.
2740 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2741 (inf_ttrace_create_inferior): Remove reference to
2742 inf_ttrace_vfork_ppid.
2743 (inf_ttrace_attach): Ditto.
2744 (inf_ttrace_detach): Ditto.
2745 (inf_ttrace_kill): Use current_inferior instead of
2746 inf_ttrace_vfork_ppid.
2747 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2748 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2749 inferior away from the parent.
2750 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2752 (follow_fork_inferior): New function.
2753 (follow_inferior_reset_breakpoints): Make function static.
2754 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2755 * linux-nat.c (linux_child_follow_fork): Move target-independent
2756 code to infrun.c:follow_fork_inferior.
2758 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2760 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2761 * gdbarch.c: Regenerate.
2762 * gdbarch.h: Likewise.
2763 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2764 gdbarch method 'regset_from_core_section'.
2765 (get_core_register_section): Remove handling for the case that
2766 regset == NULL and regset_from_core_section is defined.
2767 (get_core_registers): Drop check for deleted method.
2768 * procfs.c (procfs_do_thread_registers): Adjust comment.
2770 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2772 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2773 (linux_nat_make_corefile_notes): Remove.
2774 (linux_target_install_ops): Do not set target method
2775 'make_corefile_notes'.
2776 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2778 (linux_corefile_thread_callback): Instead of args->collect, call
2779 linux_collect_thread_registers.
2780 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2781 NULL unless there is a regset iterator.
2782 (linux_make_corefile_notes_1): Remove.
2783 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2784 by linux_make_corefile_notes.
2785 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2787 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2789 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2790 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2792 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2794 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2796 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2797 (xtensa_iterate_over_regset_sections): New.
2798 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2800 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2802 * vax-tdep.c (vax_regset_from_core_section): Remove.
2803 (vax_iterate_over_regset_sections): New.
2804 (vax_gdbarch_init): Adjust gdbarch initialization.
2806 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2808 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2809 (tilegx_regset_from_core_section): Remove.
2810 (tilegx_iterate_over_regset_sections): New.
2811 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2813 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2815 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2816 (sparc_iterate_over_regset_sections): New.
2817 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2818 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2820 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2821 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2822 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2823 target method 'make_corefile_notes'.
2825 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2827 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2828 'sizeof_gregset' and 'sizeof_fpregset'.
2829 * sh-tdep.c (sh_regset_from_core_section): Remove.
2830 (sh_iterate_over_regset_sections): New.
2831 (sh_gdbarch_init): Adjust gdbarch initialization.
2832 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2834 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2837 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2839 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2840 (score7_linux_iterate_over_regset_sections): New.
2841 (score_gdbarch_init): Adjust gdbarch initialization.
2843 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2845 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2847 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2848 method 'make_corefile_notes'.
2849 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2850 (ppcfbsd_regset_from_core_section): Remove.
2851 (ppcfbsd_iterate_over_regset_sections): New.
2852 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2854 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2855 (ppcnbsd_iterate_over_regset_sections): New.
2856 (ppcnbsd_init_abi): Adjust.
2857 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2858 (ppcobsd_iterate_over_regset_sections): New.
2859 (ppcobsd_init_abi): Adjust.
2860 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2861 (rs6000_aix_iterate_over_regset_sections): New.
2862 (rs6000_aix_init_osabi): Adjust.
2864 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2866 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2867 (nios2_regset_from_core_section): Remove.
2868 (nios2_iterate_over_regset_sections): New.
2869 (nios2_linux_init_abi): Adjust gdbarch initialization.
2871 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2873 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2874 (am33_iterate_over_regset_sections): New.
2875 (am33_linux_init_osabi): Adjust gdbarch initialization.
2877 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2879 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2880 (mips_linux_iterate_over_regset_sections): New.
2881 (mips_linux_init_abi): Adjust gdbarch initialization.
2882 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2883 (mips64obsd_iterate_over_regset_sections): New.
2884 (mips64obsd_init_abi): Adjust.
2885 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2886 (mipsnbsd_iterate_over_regset_sections): New.
2887 (mipsnbsd_init_abi): Adjust.
2889 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2891 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2892 (m88k_iterate_over_regset_sections): New.
2893 (m88k_gdbarch_init): Adjust gdbarch initialization.
2895 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2897 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2898 (ia64_linux_iterate_over_regset_sections): New.
2899 (ia64_linux_init_abi): Adjust gdbarch initialization.
2901 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2903 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2904 (m68kbsd_iterate_over_regset_sections): New.
2905 (m68kbsd_init_abi): Adjust gdbarch initialization.
2906 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2907 (m68k_linux_iterate_over_regset_sections): New.
2908 (m68k_linux_init_abi): Adjust gdbarch initialization.
2910 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2912 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2913 (m32r_linux_regset_from_core_section): Remove.
2914 (m32r_linux_iterate_over_regset_sections): New.
2915 (m32r_linux_init_abi): Adjust gdbarch initialization.
2917 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2919 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2920 (amd64obsd_iterate_over_regset_sections): New.
2921 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2922 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2924 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2925 regset_from_core_section initialization.
2926 * i386-tdep.c (i386_regset_from_core_section): Remove.
2927 (i386_iterate_over_regset_sections): New.
2928 (i386_gdbarch_init): Adjust gdbarch initialization.
2929 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2930 (i386_iterate_over_regset_sections): New prototype.
2931 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2933 (i386obsd_aout_iterate_over_regset_sections): New.
2934 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2935 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2937 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2938 (amd64fbsd_init_abi): Call fbsd_init_abi.
2939 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2940 (i386fbsd4_init_abi): Call fbsd_init_abi.
2941 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2942 target method 'make_corefile_notes'.
2943 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2945 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2947 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2948 (hppa_hpux_iterate_over_regset_sections): New.
2949 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2950 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2951 (hppa_linux_iterate_over_regset_sections): New.
2952 (hppa_linux_init_abi): Adjust.
2953 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2954 (hppanbsd_iterate_over_regset_sections): New.
2955 (hppanbsd_init_abi): Adjust.
2956 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2957 (hppaobsd_iterate_over_regset_sections): New.
2958 (hppaobsd_init_abi): Adjust.
2960 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2962 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2963 (frv_linux_iterate_over_regset_sections): New.
2964 (frv_linux_init_abi): Adjust gdbarch initialization.
2966 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2968 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2969 (armbsd_iterate_over_regset_sections): New prototype.
2970 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2971 (armbsd_iterate_over_regset_sections): New.
2972 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2975 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2977 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2978 (alpha_linux_iterate_over_regset_sections): New.
2979 (alpha_linux_init_abi): Adjust gdbarch initialization.
2980 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2982 (alphanbsd_iterate_over_regset_sections): New prototype.
2984 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2986 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2988 (aarch64_linux_iterate_over_regset_sections): New.
2989 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2991 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2993 * fbsd-tdep.c: New file.
2994 * fbsd-tdep.h: New file.
2995 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2996 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2997 (ALLDEPFILES): Add fbsd-tdep.c.
2999 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3001 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3003 * gdbarch.h: Regenerate.
3004 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3006 (get_core_register_section): Add parameter 'regset' and use it, if
3007 set. Add parameter 'min_size' and verify the bfd section size
3009 (get_core_registers_cb): Add parameter 'regset' and pass it to
3010 get_core_register section. For the "standard" register sections
3011 ".reg" and ".reg2", set an appropriate default for human_name.
3012 (get_core_registers): Don't abort when the gdbarch has an iterator
3013 but no regset_from_core_section. Add NULL/0 for parameters
3014 'regset'/'min_size' in calls to get_core_register_section.
3015 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3016 'regset' and use it instead of calling the
3017 regset_from_core_section gdbarch method.
3018 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3019 * i386-tdep.c (i386_supply_xstateregset)
3020 (i386_collect_xstateregset, i386_xstateregset): Moved to
3022 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3024 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3025 core file support only if the regset iterator hasn't been set.
3026 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3027 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3028 Moved from i386-tdep.c and renamed to *_linux*.
3029 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3030 each callback invocation. Allow any .reg-xstate size when reading
3032 * amd64-tdep.c (amd64_supply_xstateregset)
3033 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3035 (amd64_regset_from_core_section): Remove.
3036 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3037 install an amd64-specific regset_from_core_section gdbarch method.
3038 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3039 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3040 Moved from amd64-tdep.c and renamed to *_linux*.
3041 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3042 to each callback invocation. Allow any .reg-xstate size when
3043 reading from a core file.
3044 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3045 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3046 each callback invocation.
3047 (arm_linux_init_abi): No longer set the regset_from_core_section
3049 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3050 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3051 each callback invocation.
3052 (ppc_linux_init_abi): No longer set the regset_from_core_section
3054 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3055 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3056 (s390_regset_from_core_section): Remove.
3057 (s390_iterate_over_regset_sections): Add regset parameter to each
3058 callback invocation.
3059 (s390_gdbarch_init): No longer set the regset_from_core_section
3060 gdbarch method. Drop initialization of deleted tdep fields.
3062 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3064 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3065 (amd64_linux_iterate_over_regset_sections): New.
3066 (amd64_linux_init_abi_common): Don't install the regset section
3067 list, but the new iterator in gdbarch.
3068 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3069 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3070 (arm_linux_iterate_over_regset_sections): ...here. New function.
3071 (arm_linux_init_abi): Set iterator instead of section list.
3072 * corelow.c (get_core_registers_cb): New function, logic moved
3074 (get_core_registers): ...loop body here. Use new iterator method
3075 instead of walking through the regset section list.
3076 * gdbarch.sh: Remove 'core_regset_sections'. New method
3077 'iterate_over_regset_sections'. New typedef
3078 'iterate_over_regset_sections_cb'.
3079 * gdbarch.c: Regenerate.
3080 * gdbarch.h: Likewise.
3081 * i386-linux-tdep.c (i386_linux_regset_sections)
3082 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3084 (i386_linux_iterate_over_regset_sections): New.
3085 (i386_linux_init_abi): Don't choose a regset section list, but
3086 install new iterator in gdbarch.
3087 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3088 (linux_collect_regset_section_cb): New function, logic moved
3090 (linux_collect_thread_registers): ...loop body here. Use iterator
3091 method instead of walking through list.
3092 (linux_make_corefile_notes_1): Check for presence of iterator
3093 method instead of regset section list.
3094 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3095 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3096 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3097 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3098 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3099 (ppc_linux_init_abi): Don't choose from above regset section
3100 lists, but install new iterator in gdbarch.
3101 * regset.h (struct core_regset_section): Remove.
3102 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3103 have_linux_v1, have_linux_v2, and have_tdb.
3104 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3105 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3106 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3107 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3108 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3109 (s390_iterate_over_regset_sections): ...here. New function. Use
3111 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3112 regset section lists, but install new iterator.
3114 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3116 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3118 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3120 * progspace.c (print_program_space): Don't prune program spaces
3121 before printing them.
3123 2014-09-25 Pedro Alves <palves@redhat.com>
3125 * infrun.c (user_visible_resume_ptid): Don't check
3126 singlestep_breakpoints_inserted_p.
3128 2014-09-25 Pedro Alves <palves@redhat.com>
3130 * breakpoint.c (should_be_inserted): Add debug output.
3132 2014-09-25 Pedro Alves <palves@redhat.com>
3134 * infrun.c (stepping_past_instruction_at)
3135 (clear_exit_convenience_vars): Point at infrun.h instead of
3137 (handle_signal_stop): Fix typo.
3139 2014-09-24 Yao Qi <yao@codesourcery.com>
3141 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3144 2014-09-22 Gary Benson <gbenson@redhat.com>
3146 * target.c (target_stop): Updated comment.
3148 2014-09-22 Gary Benson <gbenson@redhat.com>
3150 * target/target.h (target_stop_ptid): Renamed as...
3151 (target_stop_and_wait): New function. Updated comment.
3153 (target_continue_ptid): Renamed as...
3154 (target_continue_no_signal): New function. Updated comment.
3157 2014-09-22 Pedro Alves <palves@redhat.com>
3159 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3161 * breakpoint.c (enum ugll_insert_mode): New enum.
3162 (always_inserted_mode): Now a plain boolean.
3163 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3164 (breakpoints_always_inserted_mode): Delete.
3165 (breakpoints_should_be_inserted_now): New function.
3166 (insert_breakpoints): Pass UGLL_INSERT to
3167 update_global_location_list instead of calling
3168 insert_breakpoint_locations manually.
3169 (create_solib_event_breakpoint_1): New, factored out from ...
3170 (create_solib_event_breakpoint): ... this.
3171 (create_and_insert_solib_event_breakpoint): Use
3172 create_solib_event_breakpoint_1 instead of calling
3173 insert_breakpoint_locations manually.
3174 (update_global_location_list): Change parameter type from boolean
3175 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3176 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3177 (update_global_location_list_nothrow): Change parameter type from
3178 boolean to enum ugll_insert_mode.
3179 (_initialize_breakpoint): "breakpoint always-inserted" option is
3180 now a boolean command. Update help text.
3181 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3182 (breakpoints_should_be_inserted_now): New declaration.
3183 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3184 Remove breakpoints_always_inserted_mode check.
3185 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3186 * remote.c (remote_start_remote): Likewise.
3188 2014-09-22 Pedro Alves <palves@redhat.com>
3190 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3191 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3192 Instead, pass UGLL_INSERT to update_global_location_list.
3193 (update_global_location_list): Change parameter type from boolean
3194 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3195 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3196 (create_solib_event_breakpoint_1): New, factored out from ...
3197 (create_solib_event_breakpoint): ... this.
3198 (create_and_insert_solib_event_breakpoint): Use
3199 create_solib_event_breakpoint_1 instead of calling
3200 insert_breakpoint_locations manually.
3201 (update_global_location_list): Handle UGLL_INSERT.
3203 2014-09-22 Pedro Alves <palves@redhat.com>
3205 * breakpoint.c (enum ugll_insert_mode): New enum.
3206 (update_global_location_list)
3207 (update_global_location_list_nothrow): Change parameter type from
3208 boolean to enum ugll_insert_mode. All callers adjusted.
3210 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3212 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3213 SystemTap support in GDB.
3215 2014-09-19 Don Breazeal <donb@codesourcery.com>
3217 * linux-nat.c (linux_handle_extended_wait): Call
3218 linux_ptrace_get_extended_event.
3219 (wait_lwp): Call linux_is_extended_waitstatus.
3220 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3221 and linux_is_extended_waitstatus.
3222 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3223 linux_ptrace_get_extended_event.
3224 (linux_ptrace_get_extended_event): New function.
3225 (linux_is_extended_waitstatus): New function.
3226 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3227 (linux_is_extended_waitstatus): New declarations.
3229 2014-09-19 Yao Qi <yao@codesourcery.com>
3231 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3232 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3233 comments. Callers update.
3234 (dwarf_decode_lines): Likewise.
3235 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3236 comments. Skip the line table if 'lowpc' is greater than
3237 'address'. Don't check
3238 dwarf2_per_objfile->has_section_at_zero.
3240 2014-09-18 Doug Evans <dje@google.com>
3242 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3243 * python/py-symtab.c (stpy_get_producer): New function.
3244 (symtab_object_getset): Add "producer" attribute.
3246 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3249 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3250 (do_captured_read_memory_integer): Remove.
3251 (safe_read_memory_integer): Use target_read_memory directly instead
3252 of catching errors in do_captured_read_memory_integer.
3254 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3256 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3259 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3261 * objc-lang.c (find_implementation_from_class): Remove dead code.
3263 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3266 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3267 "fprintf_unfiltered (gdb_stdlog...)".
3269 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3271 PR breakpoints/12526
3272 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3274 * breakpoint.c (watch_command_1): Use these fields to retain
3275 bitfield information.
3276 (extract_bitfield_from_watchpoint_value): New function.
3277 (watchpoint_check): Use it.
3278 (update_watchpoint): Use it. Optimize the address and length of a
3279 HW watchpoint pointing to a bitfield.
3280 * value.h (unpack_value_bitfield): New prototype.
3281 * value.c (unpack_value_bitfield): Make extern.
3283 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3285 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3287 * gnu-nat.c (inf_threads): New function.
3288 * gnu-nat.h (inf_threads_ftype): New typedef.
3289 (inf_threads): New declaration.
3290 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3291 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3292 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3293 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3294 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3295 (i386_gnu_dr_get_control): New functions.
3296 (reg_addr): New structure.
3297 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3298 i386 debugging register hooks.
3299 * NEWS: Mention this.
3301 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3303 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3304 vector data transfer instructions.
3305 (arm_record_coproc_data_proc): Updated.
3307 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3309 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3310 arm_record_exreg_ld_st_insn.
3311 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3314 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3316 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3317 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3318 processing instructions.
3320 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3322 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3323 for advance SIMD struct ld/st insn.
3324 (thumb2_record_decode_insn_handler): Replace stub handler with
3325 thumb2_record_asimd_struct_ld_st.
3327 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3329 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3330 for asimd, vfp and coprocessor insns.
3331 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3332 and coprocessor insns.
3333 (thumb2_record_coproc_insn): New function.
3334 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3336 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3339 2014-09-13 Doug Evans <xdje42@gmail.com>
3341 * NEWS: Mention new "queue-signal" command.
3342 * infcmd.c (queue_signal_command): New function.
3343 (_initialize_infcmd): Add new queue-signal command.
3345 2014-09-13 Doug Evans <xdje42@gmail.com>
3347 * linux-nat.c (wait_lwp): Add debugging printf.
3348 (linux_nat_wait_1): Ditto.
3350 2014-09-12 Pedro Alves <palves@redhat.com>
3352 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3353 (create_and_insert_solib_event_breakpoint): New functions.
3354 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3355 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3356 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3357 (remove_dbx_link_breakpoint): Delete function.
3358 (insert_dbx_link_bpt_in_file): Use
3359 create_and_insert_solib_event_breakpoint instead of
3360 deprecated_insert_raw_breakpoint.
3361 (procfs_wait): Don't check whether we hit __dbx_link here.
3362 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3364 * solib-irix.c (base_breakpoint): Delete global.
3365 (disable_break): Delete function.
3366 (enable_break): Use create_solib_event_breakpoint
3367 instead of deprecated_insert_raw_breakpoint.
3368 (irix_solib_handle_event): New function.
3369 (irix_solib_create_inferior_hook): Don't run the target or disable
3370 the mapping-complete breakpoint here.
3371 (_initialize_irix_solib): Install irix_solib_handle_event as
3372 so_ops->handle_event hook.
3374 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3375 Ulrich Weigand <uweigand@de.ibm.com>
3378 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3379 instead of read_memory_unsigned_integer.
3381 2014-09-12 Gary Benson <gbenson@redhat.com>
3383 * nat/linux-waitpid.c: Include common-defs.h.
3384 [GDBSERVER]: Add FIXME comment.
3385 [!GDBSERVER]: Don't include defs.h or signal.h.
3386 (linux_debug) [!GDBSERVER]: Remove empty block.
3388 2014-09-12 Gary Benson <gbenson@redhat.com>
3390 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3391 Don't include defs.h or server.h.
3393 2014-09-12 Gary Benson <gbenson@redhat.com>
3395 * nat/linux-btrace.c: Include common-defs.h.
3396 Don't include defs.h, server.h or gdbthread.h.
3397 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3399 2014-09-12 Gary Benson <gbenson@redhat.com>
3401 * common/agent.c: Include common-defs.h.
3402 Don't include defs.h or server.h.
3403 * common/buffer.c: Likewise.
3404 * common/common-debug.c: Likewise.
3405 * common/common-utils.c: Likewise.
3406 * common/errors.c: Likewise.
3407 * common/filestuff.c: Likewise.
3408 * common/format.c: Likewise.
3409 * common/gdb_vecs.c: Likewise.
3410 * common/print-utils.c: Likewise.
3411 * common/ptid.c: Likewise.
3412 * common/rsp-low.c: Likewise.
3413 * common/signals.c: Likewise.
3414 * common/vec.c: Likewise.
3415 * common/xml-utils.c: Likewise.
3416 * nat/linux-osdata.c: Likewise.
3417 * nat/linux-procfs.c: Likewise.
3418 * nat/linux-ptrace.c: Likewise.
3419 * nat/mips-linux-watch.c: Likewise.
3420 * target/waitstatus.c: Likewise.
3422 2014-09-12 Tom Tromey <tromey@redhat.com>
3423 Gary Benson <gbenson@redhat.com>
3425 * common/common-regcache.h: New file.
3426 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3427 * regcache.h: Include common-regcache.h.
3428 (regcache_read_pc): Don't declare.
3429 * regcache.c (get_thread_regcache_for_ptid): New function.
3430 * nat/linux-btrace.c: Don't include regcache.h.
3431 Include common-regcache.h.
3432 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3434 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3436 * regcache.h (struct regset): Declare.
3438 2014-09-11 Pedro Alves <palves@redhat.com>
3441 * main.c: Include "infrun.h".
3442 (catch_command_errors, catch_command_errors_const): Wait for the
3443 foreground command to complete.
3444 * top.c (maybe_wait_sync_command_done): New function, factored out
3446 (maybe_wait_sync_command_done): ... here.
3447 * top.h (maybe_wait_sync_command_done): New declaration.
3449 2014-09-11 Tom Tromey <tromey@redhat.com>
3450 Gary Benson <gbenson@redhat.com>
3452 * common/symbol.h: New file.
3453 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3454 * minsyms.c (find_minimal_symbol_address): New function.
3455 * common/agent.c: Include common/symbol.h.
3456 [!GDBSERVER]: Don't include objfiles.h.
3457 (agent_look_up_symbols): Use find_minimal_symbol_address.
3459 2014-09-11 Gary Benson <gbenson@redhat.com>
3461 * target/target.h (target_stop_ptid, target_continue_ptid):
3463 * target.c (target_stop_ptid, target_continue_ptid): New
3465 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3466 (agent_run_command): Always use target_stop_ptid and
3467 target_continue_ptid.
3469 2014-09-11 Tom Tromey <tromey@redhat.com>
3470 Gary Benson <gbenson@redhat.com>
3472 * target/target.h: New file.
3473 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3474 * target.h: Include target/target.h.
3475 (target_read_memory, target_write_memory): Don't declare.
3476 * target.c (target_read_uint32): New function.
3477 * common/agent.c: Include target/target.h.
3478 [!GDBSERVER]: Don't include target.h.
3479 (helper_thread_id): Type changed to uint32_t.
3480 (agent_get_helper_thread_id): Use target_read_uint32.
3481 (agent_run_command): Always use target_read_memory and
3482 target_write_memory.
3483 (agent_capability): Type changed to uint32_t.
3484 (agent_capability_check): Use target_read_uint32.
3486 2014-09-11 Gary Benson <gbenson@redhat.com>
3488 * common/common-debug.h (show_debug_regs): Declare.
3489 * common/common-debug.c (show_debug_regs): Define.
3490 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3491 all uses with show_debug_regs. Replace all uses that considered
3492 debug_hw_points as a multi-value integer with straight boolean
3494 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3495 with show_debug_regs.
3496 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3497 all uses with show_debug_regs.
3498 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3499 uses with show_debug_regs.
3501 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3503 * findvar.c (address_from_register): Handle targets requiring
3504 a special conversion routine even for plain pointer types.
3506 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3508 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3509 (store_register): Do not call exec_one_dummy_insn.
3511 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3513 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3514 dereference it first. Use value_enclosing_type instead of
3516 (ada_array_length): Likewise.
3518 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3520 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3521 Adjust function implementation and documentation accordingly.
3522 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3523 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3524 Update call to ada_value_ptr_subscript.
3526 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3528 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3529 instead of VAL's type.
3531 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3533 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3535 2014-09-09 Doug Evans <xdje42@gmail.com>
3538 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3539 last parameter to pkg-config, not first.
3540 * configure.ac: Pass --with-guile provided pkg-config path to
3541 GDB_GUILE_PROGRAM_NAMES.
3542 * configure: Regenerate.
3544 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3546 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3549 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3551 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3552 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3553 the list of sections determining GDB_OSABI_IRIX.
3555 2014-09-09 James Hogan <james.hogan@imgtec.com>
3557 * MAINTAINERS (Write After Approval): Add "James Hogan".
3559 2014-09-09 James Hogan <james.hogan@imgtec.com>
3561 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3563 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3565 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3567 2014-09-08 Doug Evans <xdje42@gmail.com>
3570 * guile.c: #include <signal.h>.
3571 (_initialize_guile): Block SIGCHLD while initializing Guile.
3573 Replaces the following, which is reverted.
3575 2014-07-26 Doug Evans <xdje42@gmail.com>
3578 * configure.ac: Add check for header gc/gc.h.
3579 Add check for function setenv.
3580 * configure: Regenerate.
3581 * config.in: Regenerate.
3582 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3584 2014-09-08 Doug Evans <xdje42@gmail.com>
3586 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3587 with named constant. Fix style of pointer comparison.
3588 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3590 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3593 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3594 decide whether we display the command on "show user".
3595 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3596 printing command name.
3597 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3598 * cli/cli-decode.c (cli_user_command_p): Create helper function
3599 to verify whether cmd_list_element is a user-defined command.
3601 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3604 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3605 Fix goto out of TRY_CATCH.
3607 2014-09-06 Doug Evans <xdje42@gmail.com>
3608 Tom Tromey <tromey@redhat.com>
3611 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3612 $_any_caller_matches.
3613 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3614 * python/lib/gdb/function/caller_is.py: New file.
3616 2014-09-06 Doug Evans <xdje42@gmail.com>
3618 * infcmd.c (program_info): Fix typo.
3620 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3623 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3624 'number'. New variable 'has_digit'. Rewrite code to deal with
3625 subexpressions on SDT probes.
3627 2014-09-04 Pedro Alves <palves@redhat.com>
3629 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3630 the input is only one character long.
3632 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3635 * f-valprint.c (f_val_print): Specify the correct print option to
3636 use when printing integer values.
3638 2014-09-04 Gary Benson <gbenson@redhat.com>
3640 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3641 Remove code to cope with LWPs wrapped as PIDs.
3642 Add assertions to ensure no wrapped LWPs are passed.
3644 2014-09-04 Pedro Alves <palves@redhat.com>
3646 * value.c (value_ranges_copy_adjusted): New function, factored out
3648 (value_contents_copy_raw): ... here.
3649 (unpack_value_bits_as_long_1): Rename back to ...
3650 (unpack_bits_as_long): ... this. Remove 'original_value' and
3651 'result' parameters. Change return type to LONGEST.
3652 (unpack_value_bits_as_long): Delete.
3653 (unpack_value_field_as_long_1): Delete.
3654 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3655 (unpack_value_bitfield): New function.
3656 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3657 (value_fetch_lazy): Use unpack_value_bitfield.
3658 * value.h (unpack_value_bits_as_long): Delete declaration.
3660 2014-09-03 Sasha Smundak <asmundak@google.com>
3662 * python/py-frame.c (frapy_read_register): New function.
3664 2014-09-03 James Hogan <james.hogan@imgtec.com>
3666 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3667 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3669 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3672 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3674 (add_cmd): Set "completer_handle_brkchars" to NULL.
3675 * cli/cli-decode.h (struct cmd_list_element)
3676 <completer_handle_brkchars>: New field.
3677 * command.h (completer_ftype_void): New typedef.
3678 (set_cmd_completer_handle_brkchars): New prototype.
3679 * completer.c (set_gdb_completion_word_break_characters): New
3681 (complete_line_internal): Call "completer_handle_brkchars"
3682 callback from command.
3683 * completer.h: Include "command.h".
3684 (set_gdb_completion_word_break_characters): New prototype.
3685 * python/py-cmd.c (cmdpy_completer_helper): New function.
3686 (cmdpy_completer_handle_brkchars): New function.
3687 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3688 (cmdpy_init): Set completer_handle_brkchars to
3689 cmdpy_completer_handle_brkchars.
3691 2014-09-03 Gary Benson <gbenson@redhat.com>
3693 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3694 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3695 Loop conditions changed to equivalent form.
3696 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3697 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3698 ALL_DEBUG_ADDRESS_REGISTERS.
3700 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3702 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3705 2014-09-02 Doug Evans <dje@google.com>
3707 * typeprint.c (find_global_typedef): Fix comment.
3709 2014-09-02 Gary Benson <gbenson@redhat.com>
3711 * i386-nat.h: Renamed as...
3712 * x86-nat.h: New file. All type, function and variable name
3713 prefixes changed from "i386_" to "x86_". All references updated.
3714 * i386-nat.c: Renamed as...
3715 * x86-nat.c: New file. All type, function and variable name
3716 prefixes changed from "i386_" to "x86_". All references updated.
3717 * common/i386-xstate.h: Renamed as...
3718 * common/x86-xstate.h: New file. All type, function and variable
3719 name prefixes changed from "i386_" to "x86_". All references
3721 * nat/i386-cpuid.h: Renamed as...
3722 * nat/x86-cpuid.h: New file. All type, function and variable name
3723 prefixes changed from "i386_" to "x86_". All references updated.
3724 * nat/i386-gcc-cpuid.h: Renamed as...
3725 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3726 name prefixes changed from "i386_" to "x86_". All references
3728 * nat/i386-dregs.h: Renamed as...
3729 * nat/x86-dregs.h: New file. All type, function and variable name
3730 prefixes changed from "i386_" to "x86_". All references updated.
3731 * nat/i386-dregs.c: Renamed as...
3732 * nat/x86-dregs.c: New file. All type, function and variable name
3733 prefixes changed from "i386_" to "x86_". All references updated.
3735 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3737 * varobj.c (_initialize_varobj): Move to the end of file.
3739 2014-08-29 Gary Benson <gbenson@redhat.com>
3741 * common/common-exceptions.h: New file.
3742 * common/common-exceptions.c: Likewise.
3743 * Makefile.in (SFILES): Add common/common-exceptions.c.
3744 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3745 (COMMON_OBS): Add common-exceptions.o.
3746 (common-exceptions.o): New rule.
3747 * exceptions.h (common-exceptions.h): Include.
3748 (gdb_setjmp.h): Do not include.
3749 (return_reason): Moved to common-exceptions.h.
3750 (enum return_reason): Likewise.
3751 (RETURN_MASK): Likewise.
3752 (typedef return_mask): Likewise.
3753 (enum errors): Likewise.
3754 (struct gdb_exception): Likewise.
3755 (exceptions_state_mc_init): Likewise.
3756 (exceptions_state_mc_action_iter): Likewise.
3757 (exceptions_state_mc_action_iter_1): Likewise.
3758 (TRY_CATCH): Likewise.
3759 (throw_exception): Likewise.
3760 (throw_verror): Likewise.
3761 (throw_vquit): Likewise.
3762 (throw_error): Likewise.
3763 (throw_quit): Likewise.
3764 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3765 (enum catcher_action): Likewise.
3766 (struct catcher): Likewise.
3767 (current_catcher): Likewise.
3768 (catcher_list_size): Likewise.
3769 (exceptions_state_mc_init): Likewise.
3770 (catcher_pop): Likewise.
3771 (exceptions_state_mc): Likewise.
3772 (exceptions_state_mc_action_iter): Likewise.
3773 (exceptions_state_mc_action_iter_1): Likewise.
3774 (throw_exception): Likewise.
3775 (exception_messages): Likewise.
3776 (exception_messages_size): Likewise.
3777 (throw_it): Likewise.
3778 (throw_verror): Likewise.
3779 (throw_vquit): Likewise.
3780 (throw_error): Likewise.
3781 (throw_quit): Likewise.
3782 (prepare_to_throw_exception): New function.
3784 2014-08-29 Gary Benson <gbenson@redhat.com>
3786 * common/gdb_setjmp.h: New file.
3787 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3788 * configure.ac: Move sigsetjmp check...
3789 * common/common.m4: ...here.
3790 * configure: Regenerate.
3791 * cp-support.c (SIGJMP_BUF): Delete.
3792 (SIGSETJMP): Likewise.
3793 (SIGLONGJMP): Likewise.
3794 * exceptions.h (gdb_setjmp.h): Include.
3795 (setjmp.h): Do not include.
3796 (EXCEPTIONS_SIGJMP_BUF): Delete.
3797 (EXCEPTIONS_SIGSETJMP): Likewise.
3798 (EXCEPTIONS_SIGLONGJMP): Likewise.
3799 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3801 * exceptions.c: Likewise.
3803 2014-08-29 Gary Benson <gbenson@redhat.com>
3805 * cleanups.h: Moved to...
3806 * common/cleanups.h: New file.
3807 * cleanups.c: Moved to...
3808 * common/cleanups.c: New file. Include common-defs.h and
3809 cleanups.h. Do not include defs.h.
3810 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3811 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3812 (cleanups.o): New rule.
3814 2014-08-29 Gary Benson <gbenson@redhat.com>
3816 * common/errors.h (internal_warning): New declaration.
3817 (internal_vwarning): Likewise.
3818 * common/errors.c (internal_warning): New function.
3819 * utils.h (internal_warning): Don't declare.
3820 (internal_vwarning): Likewise.
3821 * utils.c (internal_warning): Removed.
3823 2014-08-29 Gary Benson <gbenson@redhat.com>
3825 * main.c (captured_main): Use warning during startup.
3826 Prefix startup warning messages with command name.
3828 2014-08-29 Gary Benson <gbenson@redhat.com>
3830 * main.c (captured_main): Handle usage errors with error.
3832 2014-08-29 Gary Benson <gbenson@redhat.com>
3834 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3835 exit pair with a call to error. Wrap the message with _().
3837 2014-08-29 Gary Benson <gbenson@redhat.com>
3839 * main.c (captured_main): Replace a fprintf/exit
3840 pair with a call to error. Wrap the message with _().
3842 2014-08-29 Gary Benson <gbenson@redhat.com>
3844 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3845 pairs with calls to error. Wrap the message with _().
3847 2014-08-29 Gary Benson <gbenson@redhat.com>
3849 * utils.c (vwarning): Protect calls to target_terminal_ours
3852 2014-08-29 Gary Benson <gbenson@redhat.com>
3854 * exceptions.c (print_flush): Protect calls to
3855 target_terminal_ours and wrap_here.
3857 2014-08-29 Gary Benson <gbenson@redhat.com>
3859 * utils.h (filtered_printing_initialized): New declaration.
3860 * utils.c (abort_with_message): New function.
3861 (internal_vproblem): Use abort_with_message for first level
3862 recursive internal problems, and if gdb_stderr is not set up.
3863 Protect calls to target_terminal_ours, begin_line and query.
3865 2014-08-28 Doug Evans <dje@google.com>
3867 * symtab.c (in_prologue): Move definition to better spot.
3868 (skip_prologue_using_sal): Ditto.
3870 2014-08-28 Doug Evans <dje@google.com>
3872 * symtab.c (find_function_start_sal): Move definition to better spot.
3874 2014-08-28 Yao Qi <yao@codesourcery.com>
3876 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3877 found_stack_adjust in forward scan. Remove condition check
3878 on found_stack_adjust which is always true. Indent the code.
3880 2014-08-28 Yao Qi <yao@codesourcery.com>
3882 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3883 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3884 (dwarf_decode_lines): Remove argument
3885 want_line_info. Remove condition check on want_line_info.
3888 2014-08-27 Doug Evans <dje@google.com>
3890 * dwarf2read.c (dwarf_record_line): Fix typo.
3892 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3894 * target.h (struct target_ops::to_terminal_save_ours): Remove
3896 (target_terminal_save_ours): Remove macro.
3897 * target-delegates.c: Regenerate.
3898 * inf-child.c (inf_child_target): Don't set the nonexistent
3899 field to_terminal_save_ours.
3900 * inferior.h (child_terminal_save_ours): Remove declaration.
3901 * terminal.h (gdb_save_tty_state): New declaration.
3902 * inflow.c (child_terminal_save_ours): Rename to ...
3903 (gdb_save_tty_state): ... this.
3904 * tui/tui.c: Include terminal.h.
3905 (tui_enable): Use gdb_save_tty_state instead of
3906 target_terminal_save_ours.
3907 (tui_disable): Likewise.
3909 2014-08-25 Doug Evans <dje@google.com>
3911 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3912 Pass NULL instead of 0 for context pointer.
3914 2014-08-25 Yao Qi <yao@codesourcery.com>
3916 * dwarf2read.c: Fix grammatical error.
3918 2014-08-24 Yao Qi <yao@codesourcery.com>
3920 * dwarf2read.c (scan_partial_symbols): Update comments.
3921 Rename argument 'need_pc' with 'set_addrmap'.
3922 (add_partial_namespace): Rename argument 'need_pc' with
3924 (add_partial_module): Likewise.
3925 (add_partial_subprogram): Likewise. Update comments.
3926 (dwarf2_name): Fix typo.
3928 2014-08-22 Doug Evans <dje@google.com>
3931 * dwarf2read.c (dwarf_record_line_p): New function.
3932 (dwarf_decode_lines_1): Ignore subsequent line number entries
3933 for the same line if any entry had a non-zero discriminator.
3935 2014-08-22 Doug Evans <dje@google.com>
3937 * buildsym.h (record_line_ftype): New typedef.
3938 (record_line): Use it.
3939 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3940 (dwarf_decode_lines_1): Call them.
3942 2014-08-22 Yao Qi <yao@codesourcery.com>
3944 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3945 (ctf_end): Remove code.
3947 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3949 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3950 (linux_make_corefile_notes): call update_thread_list, protected against
3953 2014-08-21 Pedro Alves <palves@redhat.com>
3955 * infcmd.c (attach_command): Remove comment.
3957 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3959 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3960 unsigned LONGEST to ULONGEST.
3962 2014-08-20 Pedro Alves <palves@redhat.com>
3964 * Makefile.in (check-read1): New rule.
3966 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3968 * value.c (value_from_contents_and_address): Strip resolved_type's
3969 typedef layers before checking its TYPE_DATA_LOCATION.
3971 2014-08-20 Pedro Alves <palves@redhat.com>
3973 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3975 2014-08-20 Yao Qi <yao@codesourcery.com>
3977 * amd64-tdep.c (amd64_classify): Add a blank line after the
3978 example. Move "*/" to a new line.
3979 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3980 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3981 * dwarf2read.c (psymtab_include_file_name): Likewise.
3983 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3984 Pedro Alves <palves@redhat.com>
3988 * ada-lang.c (coerce_unspec_val_to_type): Use
3989 value_contents_copy_raw.
3990 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3991 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3992 * cp-valprint.c (cp_print_value_fields): Let the common printing
3993 code handle optimized out values.
3994 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3995 * d-valprint.c (dynamic_array_type): Use
3996 value_bits_any_optimized_out.
3997 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3998 check_any_valid fields.
3999 (check_pieced_value_bits): Delete and inline ...
4000 (check_pieced_synthetic_pointer): ... here.
4001 (check_pieced_value_validity): Delete.
4002 (check_pieced_value_invalid): Delete.
4003 (pieced_value_funcs): Remove check_validity and check_any_valid
4005 (read_pieced_value): Use mark_value_bits_optimized_out.
4006 (write_pieced_value): Switch to use
4007 mark_value_bytes_optimized_out.
4008 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4009 of assuming the whole value is optimized out.
4010 * findvar.c (read_frame_register_value): Remove special handling
4011 of optimized out registers.
4012 (value_from_register): Use mark_value_bytes_optimized_out.
4013 * frame-unwind.c (frame_unwind_got_optimized): Use
4014 mark_value_bytes_optimized_out.
4015 * jv-valprint.c (java_value_print): Adjust.
4016 (java_print_value_fields): Let the common printing code handle
4017 optimized out values.
4018 * mips-tdep.c (mips_print_register): Remove special handling of
4019 optimized out registers.
4020 * opencl-lang.c (lval_func_check_validity): Delete.
4021 (lval_func_check_any_valid): Delete.
4022 (opencl_value_funcs): Remove check_validity and check_any_valid
4024 * p-valprint.c (pascal_object_print_value_fields): Let the common
4025 printing code handle optimized out values.
4026 * stack.c (read_frame_arg): Remove special handling of optimized
4027 out values. Fetch both VAL and ENTRYVAL before comparing
4028 contents. Adjust to value_available_contents_eq rename.
4029 * valprint.c (valprint_check_validity)
4030 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4031 (val_print_array_elements): Adjust.
4032 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4033 (value_bits_any_optimized_out): New function.
4034 (value_entirely_covered_by_range_vector): New function, factored
4035 out from value_entirely_unavailable.
4036 (value_entirely_unavailable): Reimplement.
4037 (value_entirely_optimized_out): New function.
4038 (insert_into_bit_range_vector): New function, factored out from
4039 mark_value_bits_unavailable.
4040 (mark_value_bits_unavailable): Reimplement.
4041 (struct ranges_and_idx): New struct.
4042 (find_first_range_overlap_and_match): New function, factored out
4043 from value_available_contents_bits_eq.
4044 (value_available_contents_bits_eq): Rename to ...
4045 (value_contents_bits_eq): ... this. Check both unavailable
4046 contents and optimized out contents.
4047 (value_available_contents_eq): Rename to ...
4048 (value_contents_eq): ... this.
4049 (allocate_value_lazy): Remove reference to the old optimized_out
4051 (allocate_optimized_out_value): Use
4052 mark_value_bytes_optimized_out.
4053 (require_not_optimized_out): Adjust to check whether the
4054 optimized_out vec is empty.
4055 (ranges_copy_adjusted): New function, factored out from
4056 value_contents_copy_raw.
4057 (value_contents_copy_raw): Also copy the optimized out ranges.
4058 Assert the destination ranges aren't optimized out.
4059 (value_contents_copy): Update comment, remove call to
4060 require_not_optimized_out.
4061 (value_contents_equal): Adjust to check whether the optimized_out
4063 (set_value_optimized_out, value_optimized_out_const): Delete.
4064 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4066 (value_entirely_optimized_out, value_bits_valid): Delete.
4067 (value_copy): Take a VEC copy of the 'optimized_out' field.
4068 (value_primitive_field): Remove special handling of optimized out.
4069 (value_fetch_lazy): Assert that lazy values have no unavailable
4070 regions. Use value_bits_any_optimized_out. Remove some special
4071 handling for optimized out values.
4072 * value.h: Add intro comment about <optimized out> and
4074 (struct lval_funcs): Remove check_validity and check_any_valid
4076 (set_value_optimized_out, value_optimized_out_const): Remove.
4077 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4079 (value_bits_any_optimized_out): New declaration.
4080 (value_bits_valid): Delete declaration.
4081 (value_available_contents_eq): Rename to ...
4082 (value_contents_eq): ... this, and extend comments.
4084 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4086 Fix -fsanitize=address on unreadable inferior strings.
4087 * valprint.c (val_print_string): Fix access before BUFFER.
4089 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4091 * target.c (target_struct_size): Remove.
4092 (target_struct_allocsize): Remove.
4093 (DEFAULT_ALLOCSIZE): Remove.
4094 (target_ops_p): New typedef.
4095 (DEF_VEC_P (target_ops_p)): New vector type.
4096 (target_structs): Change type to VEC (target_ops_p).
4097 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4098 (find_default_run_target): Rewrite for loop following changes to
4101 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4103 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4104 Adjust code accordingly. Adjust function description comment.
4106 2014-08-19 Yao Qi <yao@codesourcery.com>
4108 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4111 2014-08-19 Alan Modra <amodra@gmail.com>
4113 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4114 * config.in: Regenerate.
4115 * configure: Regenerate.
4117 2014-08-19 Tom Tromey <tromey@redhat.com>
4118 Gary Benson <gbenson@redhat.com>
4120 * common/common-debug.h: New file.
4121 * common/common-debug.c: Likewise.
4122 * debug.c: Likewise.
4123 * Makefile.in (SFILES): Add common/common-debug.c.
4124 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4125 (COMMON_OBS): Add common-debug.o and debug.o.
4126 (common-debug.o): New rule.
4127 * common/common-defs.h: Include common-debug.h.
4128 * common/agent.c (debug_agent_printf): New function.
4129 (DEBUG_AGENT): Redefine.
4130 * nat/i386-dregs.c (debug_printf): Undefine.
4132 2014-08-19 Gary Benson <gbenson@redhat.com>
4134 * common/common-defs.h: Include print-utils.h.
4135 * utils.h: Do not include print-utils.h.
4137 2014-08-19 Tom Tromey <tromey@redhat.com>
4138 Gary Benson <gbenson@redhat.com>
4140 * common/common-types.h: New file.
4141 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4142 * common/common-defs.h: Include common-types.h.
4143 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4146 2014-08-19 Tom Tromey <tromey@redhat.com>
4147 Gary Benson <gbenson@redhat.com>
4149 * common/errors.h: New file.
4150 * common/errors.c: Likewise.
4151 * Makefile.in (SFILES): Add common/errors.c.
4152 (HFILES_NO_SRCDIR): Add common/errors.h.
4153 (COMMON_OBS): Add errors.o.
4154 (errors.o): New rule.
4155 * common/common-defs.h: Include errors.h.
4156 * utils.h (perror_with_name, error, verror, warning, vwarning):
4158 * common/common-utils.h: (malloc_failure, internal_error):
4161 2014-08-19 Gary Benson <gbenson@redhat.com>
4163 * utils.c (internal_vproblem): Always print the message.
4165 2014-08-18 Doug Evans <dje@google.com>
4167 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4169 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4171 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4172 Return 0 if TYPE is dynamic.
4173 (print_range): Add handling of dynamic ranges.
4175 2014-08-18 Keven Boell <keven.boell@intel.com>
4176 Joel Brobecker <brobecker@adacore.com>
4178 * gdbtypes.h (struct main_type): Add field "data_location".
4179 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4180 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4181 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4182 a dynamic data location.
4183 (resolve_dynamic_type): Add DW_AT_data_location handling.
4184 (copy_recursive, copy_type): Copy the data_location information
4186 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4187 * value.c (value_from_contents_and_address): Add
4188 DW_AT_data_location handling.
4190 2014-08-18 Keven Boell <keven.boell@intel.com>
4191 Joel Brobecker <brobecker@adacore.com>
4193 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4194 field "get_object_address".
4195 * dwarf2expr.c (execute_stack_op): Add handling for
4196 DW_OP_push_object_address.
4197 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4198 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4199 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4200 (dwarf_expr_get_obj_addr): New function.
4201 (dwarf_expr_ctx_funcs): Add get_object_address field.
4202 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4203 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4204 (dwarf2_evaluate_property): Add parameter "address". Use it.
4205 (needs_get_obj_addr): New function.
4206 (needs_frame_ctx_funcs): Add get_object_address field.
4207 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4208 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4209 (resolve_dynamic_array): Likewise.
4211 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4213 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4214 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4215 fixed value for records and unions for which some GNAT encodings
4218 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4220 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4221 rewrite to avoid "else if" and "else" constructs. Should be
4222 a no-op in practice.
4224 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4226 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4229 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4232 * eval.c: Update all calls to find_overload_match.
4233 * valarith.c: Likewise.
4234 (value_user_defined_cpp_op, value_user_defined_op): New
4235 argument NOSIDE. Update all callers.
4236 * valops.c (find_overload_match): New argument NOSIDE.
4237 * value.h (find_overload_match): Update signature.
4239 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4241 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4242 'items' methods instead of 'iteritems' method on dictionaries.
4244 2014-08-15 Doug Evans <dje@google.com>
4246 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4249 2014-08-15 Doug Evans <dje@google.com>
4251 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4253 2014-08-15 Doug Evans <dje@google.com>
4255 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4257 2014-08-15 Doug Evans <dje@google.com>
4259 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4262 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4264 * dcache.h: Include target.h, to avoid compile time warnings.
4266 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4268 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4269 frame_info" partial declaration.
4270 * gdbarch.h: Regenerate.
4272 2014-08-15 Yao Qi <yao@codesourcery.com>
4274 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4275 Add parameter 'decode_for_pst_p'. Callers update.
4277 2014-08-13 Yao Qi <yao@codesourcery.com>
4280 * configure.ac: Use local variable 'pos'.
4281 * configure: Regenerated.
4283 2014-08-11 Doug Evans <dje@google.com>
4285 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4286 message, it is redundant with "Reading symbols from ..." message.
4288 2014-08-10 Doug Evans <xdje42@gmail.com>
4290 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4292 2014-08-09 Yao Qi <yao@codesourcery.com>
4295 * remote.c (remote_xfer_partial): Remove dead code.
4297 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4299 * ia64-linux-tdep.c: Include "regset.h".
4300 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4301 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4302 (ia64_linux_supply_fpregset): New function.
4303 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4304 (ia64_linux_regset_from_core_section): New function.
4305 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4308 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4310 * m68klinux-tdep.c: Include "regset.h".
4311 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4312 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4313 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4314 (m68k_linux_regset_from_core_section): New function.
4315 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4318 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4320 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4321 function. Move logic to...
4322 (tilegx_linux_regmap): ... this new register map.
4323 (tilegx_linux_regset): Refer to register map, replace supply
4324 method by regcache_supply_regset, and add collect method.
4325 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4326 TILEGX_FIRST_EASY_REGNUM.
4328 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4330 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4331 that calls regcache_supply_regset and handles the EPC register
4332 separately. Move main logic to...
4333 (score7_linux_gregmap): ... this new register map.
4334 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4335 (score7_linux_gregset): Refer to register map. Add collect method.
4336 (score7_linux_regset_from_core_section): Replace
4337 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4338 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4339 (struct regset): Delete unused forward declaraction.
4340 (struct pt_regs): Delete structure definition.
4341 (elf_gregset_t): Delete typedef.
4343 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4345 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4346 (nios2_core_regset): Add collect method.
4348 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4350 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4351 platform-independent and don't write to read-only input buffer.
4352 (m32r_linux_collect_gregset): New function.
4353 (m32r_linux_gregset): Add collect method.
4355 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4357 * hppa-linux-tdep.c (greg_map): Rename to...
4358 (hppa_linux_gregmap): ... this. Also convert to
4359 regcache_map_entry format.
4360 (hppa_linux_supply_regset): Delete function.
4361 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4362 (hppa_linux_fpregmap): ... this new register map.
4363 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4364 register map, replace supply method by regcache_supply_regset, and
4365 add collect method regcache_collect_regset.
4367 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4369 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4370 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4371 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4372 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4373 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4374 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4375 (frv_linux_supply_gregset): Replace main logic by call to
4376 regcache_supply_regset, but keep clearing gr32-gr63.
4377 (frv_linux_supply_fpregset): Delete function.
4378 (frv_linux_gregset): Refer to appropriate register map and add
4379 regcache_collect_regset as the collect method.
4380 (frv_linux_fpregset): Likewise. Also exchange the supply method
4381 by regcache_supply_regset.
4383 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4385 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4386 by call to alpha_supply_int_regs.
4387 (alpha_linux_collect_gregset): New function.
4388 (alpha_linux_supply_fpregset): Replace logic by call to
4389 alpha_supply_fp_regs.
4390 (alpha_linux_collect_fpregset): New function.
4391 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4393 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4395 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4396 by call to regcache_collect_regset.
4397 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4398 instead of aarch64_linux_supply_gregset/_fpregset.
4399 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4400 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4401 header file instead.
4402 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4403 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4404 functions. Move logic to ...
4405 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4407 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4408 refer to new register maps, replace *_regset_from_core by
4409 regcache_supply_regset, and also use regcache_collect_regset.
4410 * aarch64-linux-tdep.h: Include "regset.h".
4411 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4413 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4414 macros, moved from C source file.
4415 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4416 variable declarations.
4418 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4420 * s390-linux-nat.c: Include "regset.h".
4421 (regmap_gregset): Delete macro.
4422 (s390_64_regmap_gregset): New register map for
4423 regcache_supply/_collect_regset.
4424 (s390_64_gregset): New regset.
4425 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4426 (regmap_fpregset): Delete macro.
4427 (s390_native_supply, s390_native_collect): Delete functions.
4428 (supply_gregset, fill_gregset): Replace s390-specific regmap
4429 handling by a call to regcache_supply/_collect_regset.
4430 (supply_fpregset, fill_fpregset): Call regcache_supply/
4431 _collect_regset instead of s390_native_supply/_collect.
4432 (fetch_regset, store_regset): Likewise. Also change the last
4433 parameter to a regset instead of a regmap.
4434 (s390_linux_fetch_inferior_registers)
4435 (390_linux_store_inferior_registers): Adjust last parameter in
4436 calls to fetch_regset and store_regset.
4437 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4438 (s390_gregmap): ... this. Also make static const and convert to
4439 regcache_map_entry format.
4440 (s390x_regmap_gregset): Delete.
4441 (s390_regmap_fpregset): Rename to...
4442 (s390_fpregmap): ... this. Make static const and convert to
4443 regcache_map_entry format.
4444 (s390_regmap_upper, s390_regmap_last_break)
4445 (s390x_regmap_last_break, s390_regmap_system_call)
4446 (s390_regmap_tdb): Likewise.
4447 (s390_supply_regset, s390_collect_regset): Remove functions.
4448 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4450 (s390_gregset, s390_fpregset, s390_upper_regset)
4451 (s390_last_break_regset, s390x_last_break_regset)
4452 (s390_system_call_regset, s390_tdb_regset): Make global and
4453 replace s390_supply/_collect_regset by regcache_supply/
4455 (s390x_gregset): Delete.
4456 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4457 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4458 (s390_regmap_fpregset, s390_regmap_last_break)
4459 (s390x_regmap_last_break, s390_regmap_system_call)
4460 (s390_regmap_tdb): Delete global variable declarations.
4461 (s390_gregset, s390_fpregset, s390_last_break_regset)
4462 (s390x_last_break_regset, s390_system_call_regset)
4463 (s390_tdb_regset): New global variable declarations.
4465 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4467 * regcache.c: Include "regset.h".
4468 (regcache_transfer_regset): New local function.
4469 (regcache_supply_regset, regcache_collect_regset): New functions.
4470 * regcache.h (struct regcache_map_entry): New structure.
4471 (REGCACHE_MAP_SKIP): New enum value.
4472 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4474 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4476 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4477 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4478 (ppc_linux_collect_gregset ): Likewise.
4479 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4480 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4481 (ppc_collect_vrregset): Likewise.
4482 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4485 2014-08-07 Yao Qi <yao@codesourcery.com>
4487 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4488 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4489 * remote.c (remote_read_bytes): Likewise.
4491 2014-08-07 Yao Qi <yao@codesourcery.com>
4493 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4495 2014-08-07 Yao Qi <yao@codesourcery.com>
4498 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4499 TARGET_XFER_OK instead of 0.
4501 2014-08-07 Gary Benson <gbenson@redhat.com>
4503 * common/common-defs.h: Include errno.h.
4504 * defs.h: Do not include errno.h.
4505 * ada-typeprint.c: Likewise.
4506 * c-typeprint.c: Likewise.
4507 * core-regset.c: Likewise.
4508 * corefile.c: Likewise.
4509 * corelow.c: Likewise.
4510 * event-loop.c: Likewise.
4511 * f-typeprint.c: Likewise.
4512 * gnu-nat.c: Likewise.
4513 * go32-nat.c: Likewise.
4514 * i386gnu-nat.c: Likewise.
4515 * m2-typeprint.c: Likewise.
4516 * nat/linux-btrace.c: Likewise.
4517 * p-typeprint.c: Likewise.
4518 * procfs.c: Likewise.
4519 * remote-sim.c: Likewise.
4520 * rs6000-nat.c: Likewise.
4521 * target.c: Likewise.
4522 * typeprint.c: Likewise.
4523 * ui-file.c: Likewise.
4524 * valops.c: Likewise.
4525 * valprint.c: Likewise.
4527 2014-08-07 Gary Benson <gbenson@redhat.com>
4529 * common/common-defs.h: Include string.h.
4530 * aarch64-tdep.c: Do not include string.h.
4531 * ada-exp.y: Likewise.
4532 * ada-lang.c: Likewise.
4533 * ada-lex.l: Likewise.
4534 * ada-typeprint.c: Likewise.
4535 * ada-valprint.c: Likewise.
4536 * aix-thread.c: Likewise.
4537 * alpha-linux-tdep.c: Likewise.
4538 * alpha-mdebug-tdep.c: Likewise.
4539 * alpha-nat.c: Likewise.
4540 * alpha-osf1-tdep.c: Likewise.
4541 * alpha-tdep.c: Likewise.
4542 * alphanbsd-tdep.c: Likewise.
4543 * amd64-dicos-tdep.c: Likewise.
4544 * amd64-linux-tdep.c: Likewise.
4545 * amd64-nat.c: Likewise.
4546 * amd64-sol2-tdep.c: Likewise.
4547 * amd64fbsd-tdep.c: Likewise.
4548 * amd64obsd-tdep.c: Likewise.
4549 * arch-utils.c: Likewise.
4550 * arm-linux-nat.c: Likewise.
4551 * arm-linux-tdep.c: Likewise.
4552 * arm-tdep.c: Likewise.
4553 * arm-wince-tdep.c: Likewise.
4554 * armbsd-tdep.c: Likewise.
4555 * armnbsd-nat.c: Likewise.
4556 * armnbsd-tdep.c: Likewise.
4557 * armobsd-tdep.c: Likewise.
4558 * avr-tdep.c: Likewise.
4559 * ax-gdb.c: Likewise.
4560 * ax-general.c: Likewise.
4561 * bcache.c: Likewise.
4562 * bfin-tdep.c: Likewise.
4563 * breakpoint.c: Likewise.
4564 * build-id.c: Likewise.
4565 * buildsym.c: Likewise.
4566 * c-exp.y: Likewise.
4567 * c-lang.c: Likewise.
4568 * c-typeprint.c: Likewise.
4569 * c-valprint.c: Likewise.
4570 * charset.c: Likewise.
4571 * cli-out.c: Likewise.
4572 * cli/cli-cmds.c: Likewise.
4573 * cli/cli-decode.c: Likewise.
4574 * cli/cli-dump.c: Likewise.
4575 * cli/cli-interp.c: Likewise.
4576 * cli/cli-logging.c: Likewise.
4577 * cli/cli-script.c: Likewise.
4578 * cli/cli-setshow.c: Likewise.
4579 * cli/cli-utils.c: Likewise.
4580 * coffread.c: Likewise.
4581 * common/agent.c: Likewise.
4582 * common/buffer.c: Likewise.
4583 * common/buffer.h: Likewise.
4584 * common/common-utils.c: Likewise.
4585 * common/filestuff.c: Likewise.
4586 * common/filestuff.c: Likewise.
4587 * common/format.c: Likewise.
4588 * common/print-utils.c: Likewise.
4589 * common/rsp-low.c: Likewise.
4590 * common/signals.c: Likewise.
4591 * common/vec.h: Likewise.
4592 * common/xml-utils.c: Likewise.
4593 * core-regset.c: Likewise.
4594 * corefile.c: Likewise.
4595 * corelow.c: Likewise.
4596 * cp-abi.c: Likewise.
4597 * cp-name-parser.y: Likewise.
4598 * cp-support.c: Likewise.
4599 * cp-valprint.c: Likewise.
4600 * cris-tdep.c: Likewise.
4601 * d-exp.y: Likewise.
4602 * darwin-nat.c: Likewise.
4603 * dbxread.c: Likewise.
4604 * dcache.c: Likewise.
4605 * demangle.c: Likewise.
4606 * dicos-tdep.c: Likewise.
4607 * disasm.c: Likewise.
4608 * doublest.c: Likewise.
4609 * dsrec.c: Likewise.
4610 * dummy-frame.c: Likewise.
4611 * dwarf2-frame.c: Likewise.
4612 * dwarf2loc.c: Likewise.
4613 * dwarf2read.c: Likewise.
4614 * elfread.c: Likewise.
4615 * environ.c: Likewise.
4617 * event-loop.c: Likewise.
4618 * exceptions.c: Likewise.
4620 * expprint.c: Likewise.
4621 * f-exp.y: Likewise.
4622 * f-lang.c: Likewise.
4623 * f-typeprint.c: Likewise.
4624 * f-valprint.c: Likewise.
4625 * fbsd-nat.c: Likewise.
4626 * findcmd.c: Likewise.
4627 * findvar.c: Likewise.
4628 * fork-child.c: Likewise.
4629 * frame.c: Likewise.
4630 * frv-linux-tdep.c: Likewise.
4631 * frv-tdep.c: Likewise.
4633 * gdb_bfd.c: Likewise.
4634 * gdbarch.c: Likewise.
4635 * gdbarch.sh: Likewise.
4636 * gdbtypes.c: Likewise.
4637 * gnu-nat.c: Likewise.
4638 * gnu-v2-abi.c: Likewise.
4639 * gnu-v3-abi.c: Likewise.
4640 * go-exp.y: Likewise.
4641 * go-lang.c: Likewise.
4642 * go32-nat.c: Likewise.
4643 * guile/guile.c: Likewise.
4644 * guile/scm-auto-load.c: Likewise.
4645 * hppa-hpux-tdep.c: Likewise.
4646 * hppa-linux-nat.c: Likewise.
4647 * hppanbsd-tdep.c: Likewise.
4648 * hppaobsd-tdep.c: Likewise.
4649 * i386-cygwin-tdep.c: Likewise.
4650 * i386-dicos-tdep.c: Likewise.
4651 * i386-linux-tdep.c: Likewise.
4652 * i386-nto-tdep.c: Likewise.
4653 * i386-sol2-tdep.c: Likewise.
4654 * i386-tdep.c: Likewise.
4655 * i386bsd-tdep.c: Likewise.
4656 * i386gnu-nat.c: Likewise.
4657 * i386nbsd-tdep.c: Likewise.
4658 * i386obsd-tdep.c: Likewise.
4659 * i387-tdep.c: Likewise.
4660 * ia64-libunwind-tdep.c: Likewise.
4661 * ia64-linux-nat.c: Likewise.
4662 * inf-child.c: Likewise.
4663 * inf-ptrace.c: Likewise.
4664 * inf-ttrace.c: Likewise.
4665 * infcall.c: Likewise.
4666 * infcmd.c: Likewise.
4667 * inflow.c: Likewise.
4668 * infrun.c: Likewise.
4669 * interps.c: Likewise.
4670 * iq2000-tdep.c: Likewise.
4671 * irix5-nat.c: Likewise.
4672 * jv-exp.y: Likewise.
4673 * jv-lang.c: Likewise.
4674 * jv-typeprint.c: Likewise.
4675 * jv-valprint.c: Likewise.
4676 * language.c: Likewise.
4677 * linux-fork.c: Likewise.
4678 * linux-nat.c: Likewise.
4679 * lm32-tdep.c: Likewise.
4680 * m2-exp.y: Likewise.
4681 * m2-typeprint.c: Likewise.
4682 * m32c-tdep.c: Likewise.
4683 * m32r-linux-nat.c: Likewise.
4684 * m32r-linux-tdep.c: Likewise.
4685 * m32r-rom.c: Likewise.
4686 * m32r-tdep.c: Likewise.
4687 * m68hc11-tdep.c: Likewise.
4688 * m68k-tdep.c: Likewise.
4689 * m68kbsd-tdep.c: Likewise.
4690 * m68klinux-nat.c: Likewise.
4691 * m68klinux-tdep.c: Likewise.
4692 * m88k-tdep.c: Likewise.
4693 * machoread.c: Likewise.
4694 * macrocmd.c: Likewise.
4696 * mdebugread.c: Likewise.
4697 * mem-break.c: Likewise.
4698 * memattr.c: Likewise.
4699 * memory-map.c: Likewise.
4700 * mep-tdep.c: Likewise.
4701 * mi/mi-cmd-break.c: Likewise.
4702 * mi/mi-cmd-disas.c: Likewise.
4703 * mi/mi-cmd-env.c: Likewise.
4704 * mi/mi-cmd-stack.c: Likewise.
4705 * mi/mi-cmd-var.c: Likewise.
4706 * mi/mi-cmds.c: Likewise.
4707 * mi/mi-console.c: Likewise.
4708 * mi/mi-getopt.c: Likewise.
4709 * mi/mi-interp.c: Likewise.
4710 * mi/mi-main.c: Likewise.
4711 * mi/mi-parse.c: Likewise.
4712 * microblaze-rom.c: Likewise.
4713 * microblaze-tdep.c: Likewise.
4714 * mingw-hdep.c: Likewise.
4715 * minidebug.c: Likewise.
4716 * minsyms.c: Likewise.
4717 * mips-irix-tdep.c: Likewise.
4718 * mips-linux-tdep.c: Likewise.
4719 * mips-tdep.c: Likewise.
4720 * mips64obsd-tdep.c: Likewise.
4721 * mipsnbsd-tdep.c: Likewise.
4722 * mipsread.c: Likewise.
4723 * mn10300-linux-tdep.c: Likewise.
4724 * mn10300-tdep.c: Likewise.
4725 * monitor.c: Likewise.
4726 * moxie-tdep.c: Likewise.
4727 * mt-tdep.c: Likewise.
4728 * nat/linux-btrace.c: Likewise.
4729 * nat/linux-osdata.c: Likewise.
4730 * nat/linux-procfs.c: Likewise.
4731 * nat/linux-ptrace.c: Likewise.
4732 * nat/linux-waitpid.c: Likewise.
4733 * nbsd-tdep.c: Likewise.
4734 * nios2-linux-tdep.c: Likewise.
4735 * nto-procfs.c: Likewise.
4736 * nto-tdep.c: Likewise.
4737 * objc-lang.c: Likewise.
4738 * objfiles.c: Likewise.
4739 * opencl-lang.c: Likewise.
4740 * osabi.c: Likewise.
4741 * osdata.c: Likewise.
4742 * p-exp.y: Likewise.
4743 * p-lang.c: Likewise.
4744 * p-typeprint.c: Likewise.
4745 * parse.c: Likewise.
4746 * posix-hdep.c: Likewise.
4747 * ppc-linux-nat.c: Likewise.
4748 * ppc-sysv-tdep.c: Likewise.
4749 * ppcfbsd-tdep.c: Likewise.
4750 * ppcnbsd-tdep.c: Likewise.
4751 * ppcobsd-tdep.c: Likewise.
4752 * printcmd.c: Likewise.
4753 * procfs.c: Likewise.
4754 * prologue-value.c: Likewise.
4755 * python/py-auto-load.c: Likewise.
4756 * python/py-gdb-readline.c: Likewise.
4757 * ravenscar-thread.c: Likewise.
4758 * regcache.c: Likewise.
4759 * registry.c: Likewise.
4760 * remote-fileio.c: Likewise.
4761 * remote-m32r-sdi.c: Likewise.
4762 * remote-mips.c: Likewise.
4763 * remote-notif.c: Likewise.
4764 * remote-sim.c: Likewise.
4765 * remote.c: Likewise.
4766 * reverse.c: Likewise.
4767 * rs6000-aix-tdep.c: Likewise.
4768 * ser-base.c: Likewise.
4769 * ser-go32.c: Likewise.
4770 * ser-mingw.c: Likewise.
4771 * ser-pipe.c: Likewise.
4772 * ser-tcp.c: Likewise.
4773 * ser-unix.c: Likewise.
4774 * serial.c: Likewise.
4775 * sh-tdep.c: Likewise.
4776 * sh64-tdep.c: Likewise.
4777 * shnbsd-tdep.c: Likewise.
4779 * sol-thread.c: Likewise.
4780 * solib-dsbt.c: Likewise.
4781 * solib-frv.c: Likewise.
4782 * solib-osf.c: Likewise.
4783 * solib-som.c: Likewise.
4784 * solib-spu.c: Likewise.
4785 * solib-target.c: Likewise.
4786 * solib.c: Likewise.
4787 * somread.c: Likewise.
4788 * source.c: Likewise.
4789 * sparc-nat.c: Likewise.
4790 * sparc-sol2-tdep.c: Likewise.
4791 * sparc-tdep.c: Likewise.
4792 * sparc64-tdep.c: Likewise.
4793 * sparc64fbsd-tdep.c: Likewise.
4794 * sparc64nbsd-tdep.c: Likewise.
4795 * sparcnbsd-tdep.c: Likewise.
4796 * spu-linux-nat.c: Likewise.
4797 * spu-multiarch.c: Likewise.
4798 * spu-tdep.c: Likewise.
4799 * stabsread.c: Likewise.
4800 * stack.c: Likewise.
4801 * std-regs.c: Likewise.
4802 * symfile.c: Likewise.
4803 * symmisc.c: Likewise.
4804 * symtab.c: Likewise.
4805 * target.c: Likewise.
4806 * thread.c: Likewise.
4807 * tilegx-linux-nat.c: Likewise.
4808 * tilegx-tdep.c: Likewise.
4810 * tracepoint.c: Likewise.
4811 * tui/tui-command.c: Likewise.
4812 * tui/tui-data.c: Likewise.
4813 * tui/tui-disasm.c: Likewise.
4814 * tui/tui-file.c: Likewise.
4815 * tui/tui-layout.c: Likewise.
4816 * tui/tui-out.c: Likewise.
4817 * tui/tui-regs.c: Likewise.
4818 * tui/tui-source.c: Likewise.
4819 * tui/tui-stack.c: Likewise.
4820 * tui/tui-win.c: Likewise.
4821 * tui/tui-windata.c: Likewise.
4822 * tui/tui-winsource.c: Likewise.
4823 * typeprint.c: Likewise.
4824 * ui-file.c: Likewise.
4825 * ui-out.c: Likewise.
4826 * user-regs.c: Likewise.
4827 * utils.c: Likewise.
4828 * v850-tdep.c: Likewise.
4829 * valarith.c: Likewise.
4830 * valops.c: Likewise.
4831 * valprint.c: Likewise.
4832 * value.c: Likewise.
4833 * varobj.c: Likewise.
4834 * vax-tdep.c: Likewise.
4835 * vaxnbsd-tdep.c: Likewise.
4836 * vaxobsd-tdep.c: Likewise.
4837 * windows-nat.c: Likewise.
4838 * xcoffread.c: Likewise.
4839 * xml-support.c: Likewise.
4840 * xstormy16-tdep.c: Likewise.
4841 * xtensa-linux-nat.c: Likewise.
4843 2014-08-07 Gary Benson <gbenson@redhat.com>
4845 * common/common-defs.h: Include gdb_assert.h.
4846 * aarch64-tdep.c: Do not include gdb_assert.h.
4847 * addrmap.c: Likewise.
4848 * aix-thread.c: Likewise.
4849 * alpha-linux-tdep.c: Likewise.
4850 * alpha-mdebug-tdep.c: Likewise.
4851 * alphanbsd-tdep.c: Likewise.
4852 * amd64-nat.c: Likewise.
4853 * amd64-tdep.c: Likewise.
4854 * amd64bsd-nat.c: Likewise.
4855 * amd64fbsd-nat.c: Likewise.
4856 * amd64fbsd-tdep.c: Likewise.
4857 * amd64nbsd-nat.c: Likewise.
4858 * amd64nbsd-tdep.c: Likewise.
4859 * amd64obsd-nat.c: Likewise.
4860 * amd64obsd-tdep.c: Likewise.
4861 * arch-utils.c: Likewise.
4862 * arm-tdep.c: Likewise.
4863 * armbsd-tdep.c: Likewise.
4865 * bcache.c: Likewise.
4866 * bfin-tdep.c: Likewise.
4867 * blockframe.c: Likewise.
4868 * breakpoint.c: Likewise.
4869 * bsd-kvm.c: Likewise.
4870 * bsd-uthread.c: Likewise.
4871 * buildsym.c: Likewise.
4872 * c-exp.y: Likewise.
4873 * c-lang.c: Likewise.
4874 * charset.c: Likewise.
4875 * cleanups.c: Likewise.
4876 * cli-out.c: Likewise.
4877 * cli/cli-decode.c: Likewise.
4878 * cli/cli-dump.c: Likewise.
4879 * cli/cli-logging.c: Likewise.
4880 * cli/cli-script.c: Likewise.
4881 * cli/cli-utils.c: Likewise.
4882 * coffread.c: Likewise.
4883 * common/common-utils.c: Likewise.
4884 * common/queue.h: Likewise.
4885 * common/signals.c: Likewise.
4886 * common/vec.h: Likewise.
4887 * complaints.c: Likewise.
4888 * completer.c: Likewise.
4889 * corelow.c: Likewise.
4890 * cp-abi.c: Likewise.
4891 * cp-name-parser.y: Likewise.
4892 * cp-namespace.c: Likewise.
4893 * cp-support.c: Likewise.
4894 * cris-tdep.c: Likewise.
4895 * dbxread.c: Likewise.
4896 * dictionary.c: Likewise.
4897 * doublest.c: Likewise.
4898 * dsrec.c: Likewise.
4899 * dummy-frame.c: Likewise.
4900 * dwarf2-frame-tailcall.c: Likewise.
4901 * dwarf2-frame.c: Likewise.
4902 * dwarf2expr.c: Likewise.
4903 * dwarf2loc.c: Likewise.
4904 * dwarf2read.c: Likewise.
4906 * event-loop.c: Likewise.
4907 * exceptions.c: Likewise.
4908 * expprint.c: Likewise.
4909 * f-valprint.c: Likewise.
4910 * fbsd-nat.c: Likewise.
4911 * findvar.c: Likewise.
4912 * frame-unwind.c: Likewise.
4913 * frame.c: Likewise.
4914 * frv-tdep.c: Likewise.
4915 * gcore.c: Likewise.
4916 * gdb-dlfcn.c: Likewise.
4917 * gdb_bfd.c: Likewise.
4918 * gdbarch.c: Likewise.
4919 * gdbarch.sh: Likewise.
4920 * gdbtypes.c: Likewise.
4921 * gnu-nat.c: Likewise.
4922 * gnu-v3-abi.c: Likewise.
4923 * go-lang.c: Likewise.
4924 * guile/scm-exception.c: Likewise.
4925 * guile/scm-gsmob.c: Likewise.
4926 * guile/scm-lazy-string.c: Likewise.
4927 * guile/scm-math.c: Likewise.
4928 * guile/scm-pretty-print.c: Likewise.
4929 * guile/scm-safe-call.c: Likewise.
4930 * guile/scm-utils.c: Likewise.
4931 * guile/scm-value.c: Likewise.
4932 * h8300-tdep.c: Likewise.
4933 * hppa-hpux-nat.c: Likewise.
4934 * hppa-tdep.c: Likewise.
4935 * hppanbsd-tdep.c: Likewise.
4936 * hppaobsd-tdep.c: Likewise.
4937 * i386-darwin-nat.c: Likewise.
4938 * i386-darwin-tdep.c: Likewise.
4939 * i386-nto-tdep.c: Likewise.
4940 * i386-tdep.c: Likewise.
4941 * i386bsd-nat.c: Likewise.
4942 * i386fbsd-tdep.c: Likewise.
4943 * i386gnu-nat.c: Likewise.
4944 * i386nbsd-tdep.c: Likewise.
4945 * i386obsd-tdep.c: Likewise.
4946 * i387-tdep.c: Likewise.
4947 * ia64-libunwind-tdep.c: Likewise.
4948 * ia64-tdep.c: Likewise.
4949 * inf-ptrace.c: Likewise.
4950 * inf-ttrace.c: Likewise.
4951 * infcall.c: Likewise.
4952 * infcmd.c: Likewise.
4953 * infrun.c: Likewise.
4954 * inline-frame.c: Likewise.
4955 * interps.c: Likewise.
4956 * jv-lang.c: Likewise.
4957 * jv-typeprint.c: Likewise.
4958 * linux-fork.c: Likewise.
4959 * linux-nat.c: Likewise.
4960 * linux-thread-db.c: Likewise.
4961 * m32c-tdep.c: Likewise.
4962 * m32r-linux-nat.c: Likewise.
4963 * m32r-tdep.c: Likewise.
4964 * m68k-tdep.c: Likewise.
4965 * m68kbsd-nat.c: Likewise.
4966 * m68kbsd-tdep.c: Likewise.
4967 * m88k-tdep.c: Likewise.
4968 * machoread.c: Likewise.
4969 * macroexp.c: Likewise.
4970 * macrotab.c: Likewise.
4971 * maint.c: Likewise.
4972 * mdebugread.c: Likewise.
4973 * memory-map.c: Likewise.
4974 * mep-tdep.c: Likewise.
4975 * mi/mi-common.c: Likewise.
4976 * microblaze-tdep.c: Likewise.
4977 * mingw-hdep.c: Likewise.
4978 * mips-linux-nat.c: Likewise.
4979 * mips-linux-tdep.c: Likewise.
4980 * mips-tdep.c: Likewise.
4981 * mips64obsd-tdep.c: Likewise.
4982 * mipsnbsd-tdep.c: Likewise.
4983 * mn10300-linux-tdep.c: Likewise.
4984 * mn10300-tdep.c: Likewise.
4985 * moxie-tdep.c: Likewise.
4986 * mt-tdep.c: Likewise.
4987 * nat/linux-btrace.c: Likewise.
4988 * nat/linux-osdata.c: Likewise.
4989 * nat/linux-ptrace.c: Likewise.
4990 * nat/mips-linux-watch.c: Likewise.
4991 * nios2-linux-tdep.c: Likewise.
4992 * nios2-tdep.c: Likewise.
4993 * objc-lang.c: Likewise.
4994 * objfiles.c: Likewise.
4995 * obsd-nat.c: Likewise.
4996 * opencl-lang.c: Likewise.
4997 * osabi.c: Likewise.
4998 * parse.c: Likewise.
4999 * ppc-linux-nat.c: Likewise.
5000 * ppc-sysv-tdep.c: Likewise.
5001 * ppcfbsd-nat.c: Likewise.
5002 * ppcfbsd-tdep.c: Likewise.
5003 * ppcnbsd-nat.c: Likewise.
5004 * ppcnbsd-tdep.c: Likewise.
5005 * ppcobsd-nat.c: Likewise.
5006 * ppcobsd-tdep.c: Likewise.
5007 * printcmd.c: Likewise.
5008 * procfs.c: Likewise.
5009 * prologue-value.c: Likewise.
5010 * psymtab.c: Likewise.
5011 * python/py-lazy-string.c: Likewise.
5012 * python/py-value.c: Likewise.
5013 * regcache.c: Likewise.
5014 * reggroups.c: Likewise.
5015 * registry.c: Likewise.
5016 * remote-sim.c: Likewise.
5017 * remote.c: Likewise.
5018 * rs6000-aix-tdep.c: Likewise.
5019 * rs6000-tdep.c: Likewise.
5020 * s390-linux-tdep.c: Likewise.
5021 * score-tdep.c: Likewise.
5022 * ser-base.c: Likewise.
5023 * ser-mingw.c: Likewise.
5024 * sh-tdep.c: Likewise.
5025 * sh64-tdep.c: Likewise.
5026 * solib-darwin.c: Likewise.
5027 * solib-spu.c: Likewise.
5028 * solib-svr4.c: Likewise.
5029 * source.c: Likewise.
5030 * sparc-nat.c: Likewise.
5031 * sparc-sol2-tdep.c: Likewise.
5032 * sparc-tdep.c: Likewise.
5033 * sparc64-sol2-tdep.c: Likewise.
5034 * sparc64-tdep.c: Likewise.
5035 * sparc64fbsd-tdep.c: Likewise.
5036 * sparc64nbsd-tdep.c: Likewise.
5037 * sparc64obsd-tdep.c: Likewise.
5038 * sparcnbsd-tdep.c: Likewise.
5039 * sparcobsd-tdep.c: Likewise.
5040 * spu-multiarch.c: Likewise.
5041 * spu-tdep.c: Likewise.
5042 * stabsread.c: Likewise.
5043 * stack.c: Likewise.
5044 * symfile.c: Likewise.
5045 * symtab.c: Likewise.
5046 * target-descriptions.c: Likewise.
5047 * target-memory.c: Likewise.
5048 * target.c: Likewise.
5049 * tic6x-linux-tdep.c: Likewise.
5050 * tic6x-tdep.c: Likewise.
5051 * tilegx-linux-nat.c: Likewise.
5052 * tilegx-tdep.c: Likewise.
5054 * tramp-frame.c: Likewise.
5055 * tui/tui-out.c: Likewise.
5056 * tui/tui-winsource.c: Likewise.
5057 * ui-out.c: Likewise.
5058 * user-regs.c: Likewise.
5059 * utils.c: Likewise.
5060 * v850-tdep.c: Likewise.
5061 * valops.c: Likewise.
5062 * value.c: Likewise.
5063 * varobj.c: Likewise.
5064 * vax-nat.c: Likewise.
5065 * xml-syscall.c: Likewise.
5066 * xml-tdesc.c: Likewise.
5067 * xstormy16-tdep.c: Likewise.
5068 * xtensa-linux-nat.c: Likewise.
5069 * xtensa-tdep.c: Likewise.
5071 2014-08-07 Gary Benson <gbenson@redhat.com>
5073 * common/common-defs.h: Include common-utils.h.
5074 * defs.h: Do not include common-utils.h.
5075 * common/gdb_assert.h: Likewise.
5076 * darwin-nat.h: Likewise.
5077 * nat/linux-btrace.c: Likewise.
5078 * target/waitstatus.h: Likewise.
5080 2014-08-07 Gary Benson <gbenson@redhat.com>
5082 * common/common-defs.h: Include ptid.h.
5083 * defs.h: Do not include ptid.h.
5084 * inferior.h: Likewise.
5085 * infrun.h: Likewise.
5086 * nat/linux-btrace.h: Likewise.
5087 * nat/linux-osdata.h: Likewise.
5088 * target/waitstatus.h: Likewise.
5090 2014-08-07 Gary Benson <gbenson@redhat.com>
5092 * common/common-defs.h: Include gdb_locale.h.
5093 * defs.h: Do not include gdb_locale.h.
5095 2014-08-07 Gary Benson <gbenson@redhat.com>
5097 * common/common-defs.h: Include gdb/signals.h.
5098 * defs.h: Do not include gdb/signals.h.
5100 2014-08-07 Gary Benson <gbenson@redhat.com>
5102 * common/common-defs.h: Include pathmax.h.
5103 * defs.h: Do not include pathmax.h.
5105 2014-08-07 Gary Benson <gbenson@redhat.com>
5107 * common/common-defs.h: Include libiberty.h.
5108 * defs.h: Do not include libiberty.h.
5109 * common/queue.h: Likewise.
5110 * cp-name-parser.y: Likewise.
5111 * mi/mi-cmd-catch.c: Likewise.
5112 * python/python.c: Likewise.
5114 2014-08-07 Gary Benson <gbenson@redhat.com>
5116 * common/common-defs.h: Include ansidecl.h.
5117 * defs.h: Do not include ansidecl.h.
5118 * common/buffer.h: Likewise.
5119 * common/common-utils.h: Likewise.
5121 2014-08-07 Gary Benson <gbenson@redhat.com>
5123 * common/common-defs.h: Include stddef.h.
5124 * defs.h: Do not include stddef.h.
5125 * common/common-utils.h: Likewise.
5126 * amd64fbsd-nat.c: Likewise.
5127 * bcache.c: Likewise.
5128 * charset.c: Likewise.
5129 * common/buffer.h: Likewise.
5130 * common/vec.h: Likewise.
5131 * i386bsd-nat.c: Likewise.
5132 * nat/linux-btrace.h: Likewise.
5133 * ppcfbsd-nat.c: Likewise.
5134 * ppcnbsd-tdep.h: Likewise.
5135 * ppcobsd-nat.c: Likewise.
5136 * ppcobsd-tdep.h: Likewise.
5137 * python/py-gdb-readline.c: Likewise.
5139 2014-08-07 Gary Benson <gbenson@redhat.com>
5141 * common/common-defs.h: Include stdarg.h.
5142 * defs.h: Do not include stdarg.h.
5143 * ada-lang.c: Likewise.
5144 * common/common-utils.h: Likewise.
5145 * guile/scm-string.c: Likewise.
5146 * guile/scm-utils.c: Likewise.
5147 * m32c-tdep.c: Likewise.
5149 2014-08-07 Gary Benson <gbenson@redhat.com>
5151 * common/common-defs.h: Include stdlib.h.
5152 * defs.h: Do not include stdlib.h.
5153 * addrmap.c: Likewise.
5154 * bcache.c: Likewise.
5155 * common/buffer.c: Likewise.
5156 * common/common-utils.c: Likewise.
5157 * cp-name-parser.y: Likewise.
5158 * go32-nat.c: Likewise.
5159 * mn10300-linux-tdep.c: Likewise.
5160 * nat/linux-osdata.c: Likewise.
5161 * tui/tui.c: Likewise.
5162 * windows-nat.c: Likewise.
5164 2014-08-07 Gary Benson <gbenson@redhat.com>
5166 * common/common-defs.h: Include stdio.h.
5167 * defs.h: Do not include stdio.h.
5168 * ada-lang.c: Likewise.
5169 * common/buffer.c: Likewise.
5170 * common/common-utils.c: Likewise.
5171 * cp-name-parser.y: Likewise.
5172 * gnu-nat.c: Likewise.
5173 * go32-nat.c: Likewise.
5174 * i386gnu-nat.c: Likewise.
5175 * proc-api.c: Likewise.
5176 * proc-events.c: Likewise.
5177 * proc-flags.c: Likewise.
5178 * proc-why.c: Likewise.
5179 * python/python-internal.h: Likewise.
5180 * target-memory.c: Likewise.
5181 * tui/tui-io.c: Likewise.
5182 * tui/tui.c: Likewise.
5184 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5186 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5187 (scan_dyntag_auxv): Same.
5189 2014-08-06 Yao Qi <yao@codesourcery.com>
5191 * amd64-linux-nat.c: Remove duplicated include
5193 * i386-linux-nat.c: Likewise.
5195 2014-08-06 Yao Qi <yao@codesourcery.com>
5197 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5198 operand" with "Special opcode" in comments.
5200 2014-08-05 Gary Benson <gbenson@redhat.com>
5202 * interps.c (initialize_interps): Remove prototype.
5203 (interpreter_initialized): Remove static global.
5204 (interp_add): Do not call initialize_interps.
5205 (initialize_interps): Remove function.
5207 2014-08-05 Gary Benson <gbenson@redhat.com>
5209 * utils.c (vwarning): Remove spurious va_end.
5211 2014-08-05 Alan Modra <amodra@gmail.com>
5213 * charset.c (convert_between_encodings): Cast result of obstack_base.
5214 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5215 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5216 (read_unwind_info): Use size_t for some locals.
5217 * jit.c (finalize_symtab): Likewise.
5218 * utils.c (hashtab_obstack_allocate): Likewise.
5219 * symmisc.c (print_objfile_statistics): Update format strings.
5221 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5223 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5224 (Changes in GDB 7.8): ... here.
5226 2014-08-04 Tom Tromey <tromey@redhat.com>
5228 * target.c (set_targetdebug): New function.
5229 (initialize_targets): Pass set_targetdebug when creating "set
5232 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5234 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5235 if detecting a variable-sized field that is not the last field.
5236 Fix struct type length computation.
5238 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5240 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5243 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5245 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5246 Remove "+ 8" offset in computation of CHAIN_VMA.
5248 2014-07-31 Doug Evans <dje@google.com>
5250 * inflow.c (child_terminal_inferior): Add comment.
5251 (child_terminal_ours_for_output): Add comment.
5252 (child_terminal_ours): Add comment.
5253 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5254 (linux_nat_terminal_ours): Add comment.
5256 2014-07-31 Gary Benson <gbenson@redhat.com>
5258 * common/btrace-common.h: Do not include defs.h or server.h.
5259 * nat/mips-linux-watch.h: Likewise.
5260 * gdb-dlfcn.h: Do not include defs.h.
5261 * tracefile.h: Likewise.
5263 2014-07-30 Roland McGrath <mcgrathr@google.com>
5265 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5267 2014-07-30 Tom Tromey <tromey@redhat.com>
5269 * bsd-kvm.c (bsd_kvm_open): Constify.
5270 * corelow.c (core_open): Constify.
5271 * ctf.c (ctf_open): Constify.
5272 * dbug-rom.c (dbug_open): Constify.
5273 * exec.c (exec_open): Constify.
5274 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5275 * microblaze-rom.c (picobug_open): Constify.
5276 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5278 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5279 * record-btrace.c (record_btrace_open): Constify.
5280 * record-full.c (record_full_core_open_1, record_full_open_1)
5281 (record_full_open): Constify.
5282 * remote-m32r-sdi.c (m32r_open): Constify.
5283 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5284 (rockhopper_open, lsi_open): Constify.
5285 * remote-sim.c (gdbsim_open): Constify.
5286 * remote.c (remote_open, extended_remote_open, remote_open_1):
5288 * target.h (struct target_ops) <to_open>: Make "arg" const.
5289 * tracefile-tfile.c (tfile_open): Constify.
5291 2014-07-30 Tom Tromey <tromey@redhat.com>
5293 * breakpoint.c (map_breakpoint_numbers): Update.
5294 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5295 (get_number_const): New function.
5296 (get_number): Rewrite using get_number_const.
5297 (init_number_or_range): Make "string" const.
5298 (number_is_in_list): Make "list" const.
5299 * cli/cli-utils.h (get_number_const): Declare.
5300 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5301 (init_number_or_range, number_is_in_list): Update.
5302 * printcmd.c (map_display_numbers): Update.
5303 * value.c (value_from_history_ref): Constify.
5304 * value.h (value_from_history_ref): Update.
5306 2014-07-30 Tom Tromey <tromey@redhat.com>
5308 * corefile.c (hook_type, call_extra_exec_file_hooks)
5309 (specify_exec_file_hook): Constify.
5310 * exec.c (exec_file_attach): Make "filename" const.
5311 * gdbcore.h (deprecated_exec_file_display_hook)
5312 (specify_exec_file_hook, exec_file_attach): Constify.
5313 * main.c (captured_main): Use catch_command_errors_const.
5315 2014-07-30 Tom Tromey <tromey@redhat.com>
5317 * target.c (open_target): New function.
5318 (add_target_with_completer, add_deprecated_target_alias): Use
5319 set_cmd_sfunc, set_cmd_context.
5320 (debug_to_open): Remove.
5321 (setup_target_debug): Update.
5323 2014-07-30 Yao Qi <yao@codesourcery.com>
5325 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5327 * parse.c (exp_iterate): Update comments.
5329 2014-07-30 Gary Benson <gbenson@redhat.com>
5331 * common/common-defs.h: New file.
5332 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5333 * defs.h: Include common-defs.h.
5334 Do not include config.h or build-gnulib/config.h.
5336 2014-07-30 Gary Benson <gbenson@redhat.com>
5338 * common/common-utils.h: Do not include config.h.
5339 * nat/linux-btrace.h: Likewise.
5341 2014-07-30 Gary Benson <gbenson@redhat.com>
5343 * btrace.c: Include defs.h.
5344 * common/ptid.c: Include defs.h or server.h as appropriate.
5345 * nat/mips-linux-watch.c: Likewise.
5347 2014-07-29 Tom Tromey <tromey@redhat.com>
5349 * target.c (target_is_pushed): Simplify.
5351 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5355 2014-07-29 Yao Qi <yao@codesourcery.com>
5358 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5360 2014-07-28 Doug Evans <xdje42@gmail.com>
5363 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5364 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5367 2014-07-28 Will Newton <will.newton@linaro.org>
5369 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5370 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5371 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5372 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5373 (THUMB2_EABI_SYSCALL): Likewise.
5374 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5376 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5377 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5379 2014-07-27 Doug Evans <xdje42@gmail.com>
5381 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5383 2014-07-27 Doug Evans <xdje42@gmail.com>
5385 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5387 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5388 Doug Evans <xdje42@gmail.com>
5391 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5392 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5393 * configure.ac: Try to use guild to compile an scm file, if it fails
5394 then disable guile support.
5395 * configure: Regenerate.
5396 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5398 (GUILE_COMPILED_FILES): New variable.
5399 (GUILE_FILES) Update.
5400 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5401 (stamp-guile): Compile scm files.
5402 * guile/guile.c (boot_guile_support): New function.
5403 (standard_throw_args_p): New function.
5404 (print_standard_throw_error, print_throw_error): New functions.
5405 (handle_boot_error): New function.
5406 (initialize_scheme_side): Rewrite to call boot_guile_support.
5407 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5408 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5410 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5411 Doug Evans <xdje42@gmail.com>
5414 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5415 * guile/lib/gdb/support.scm: New file.
5416 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5417 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5419 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5421 (%assert-type): Ditto, and renamed to assert-type.
5422 (%exception-print-style): Delete.
5424 2014-07-26 Doug Evans <xdje42@gmail.com>
5427 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5428 * configure: Regenerate.
5429 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5431 (PYTHON_FILES): New variable.
5432 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5433 (GUILE_FILES): New variable.
5434 (stamp-python, install-python, uninstall-python): Handle empty
5436 (stamp-guile, install-guile, uninstall-guile): Ditto.
5438 2014-07-26 Doug Evans <xdje42@gmail.com>
5441 * guile/lib/gdb.scm (pretty-printers): Export.
5442 (set-pretty-printers!): Export.
5443 * guile/lib/gdb/printing.scm (gdb module): Update.
5444 (prepend-pretty-printer!, append-pretty-printer!): Update.
5445 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5446 (pretty_printer_list_var): Delete.
5447 (pretty_printer_list): New static global.
5448 (gdbscm_pretty_printers): New function.
5449 (gdbscm_set_pretty_printers_x): New function.
5450 (ppscm_find_pretty_printer_from_gdb): Update.
5451 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5452 (gdbscm_initialize_pretty_printers): Update.
5454 2014-07-26 Doug Evans <xdje42@gmail.com>
5457 * configure.ac: Add check for header gc/gc.h.
5458 Add check for function setenv.
5459 * configure: Regenerate.
5460 * config.in: Regenerate.
5461 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5463 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5465 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5466 variation in gdbarch matching.
5468 2014-07-25 Tom Tromey <tromey@redhat.com>
5470 * exec.c (using_exec_ops): Remove.
5471 (exec_close_1): Update. Remove extraneous block, reindent.
5472 (add_target_sections): Use target_is_pushed.
5474 2014-07-25 Pedro Alves <palves@redhat.com>
5476 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5477 * monitor.c (monitor_create_inferior): Likewise.
5478 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5479 * remote-sim.c (gdbsim_create_inferior): Likewise.
5480 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5481 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5482 * windows-nat.c (do_initial_windows_stuff): Likewise.
5484 2014-07-25 Pedro Alves <palves@redhat.com>
5486 * NEWS: Mention signal passing and "signal" command changes.
5487 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5489 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5491 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5492 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5493 (jump_command): Adjust clear_proceed_status call.
5494 (signal_command): Warn if other thread that are resumed have
5495 signals that will be delivered. Adjust clear_proceed_status call.
5496 (until_next_command, finish_command)
5497 (proceed_after_attach_callback, attach_command_post_wait)
5498 (attach_command): Adjust clear_proceed_status call.
5499 * infrun.c (proceed_after_vfork_done): Likewise.
5500 (proceed_after_attach_callback): Adjust comment.
5501 (clear_proceed_status_thread): Clear stop_signal if not in pass
5503 (clear_proceed_status_callback): Delete.
5504 (clear_proceed_status): New 'step' parameter. Only clear the
5505 proceed status of threads the command being prepared is about to
5507 (proceed): If passed in an explicit signal, override stop_signal
5508 with it. Don't pass the last stop signal to the thread we're
5510 (init_wait_for_inferior): Adjust clear_proceed_status call.
5511 (switch_back_to_stepped_thread): Clear the signal if it should not
5513 * infrun.h (clear_proceed_status): New 'step' parameter.
5514 (user_visible_resume_ptid): Add comment.
5515 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5516 signal is in pass state.
5517 * remote.c (append_pending_thread_resumptions): Likewise.
5518 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5520 2014-07-25 Tom Tromey <tromey@redhat.com>
5522 * target.h (target_stopped_data_address)
5523 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5526 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5528 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5530 (avr_pointer_to_address): Likewise.
5532 2014-07-24 Tom Tromey <tromey@redhat.com>
5534 * monitor.c (compile_pattern): Update.
5535 * target.h (struct target_ops) <to_shortname, to_longname,
5538 2014-07-24 Tom Tromey <tromey@redhat.com>
5540 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5541 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5542 (add_info_alias, add_com): Make "doc" const.
5543 (print_doc_line): Make "str" const.
5544 (delete_cmd): Update.
5545 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5546 (print_doc_line): Update.
5547 * cli/cli-script.c (document_command): Update.
5548 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5549 (add_com, add_info, add_info_alias): Update.
5550 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5551 * python/py-cmd.c (cmdpy_destroyer): Update.
5553 2014-07-24 Tom Tromey <tromey@redhat.com>
5555 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5556 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5557 (help_cmd_list): Constify.
5558 (lookup_cmd): Update.
5559 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5561 (help_cmd_list, apropos_cmd): Update.
5562 * cli/cli-script.c (show_user): Update.
5563 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5564 * cli/cli-setshow.h (cmd_show_list): Update.
5565 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5566 (cmd_show_list): Update.
5567 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5568 * python/py-cmd.c (cmdpy_destroyer): Update.
5570 2014-07-24 Tom Tromey <tromey@redhat.com>
5572 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5573 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5575 * command.h (deprecate_cmd): Update.
5576 * maint.c (maintenance_do_deprecate): Add casts.
5578 2014-07-24 Tom Tromey <tromey@redhat.com>
5580 * cli/cli-decode.c (help_cmd): Make parameter "const".
5581 * cli/cli-decode.h (help_cmd): Update.
5583 2014-07-24 Tom Tromey <tromey@redhat.com>
5585 * stack.c (up_silently_base, down_silently_base): Make argument
5588 2014-07-24 Tom Tromey <tromey@redhat.com>
5590 * solib.c (solib_add): Make "pattern" const.
5591 * solib.h (solib_add): Update.
5593 2014-07-24 Tom Tromey <tromey@redhat.com>
5595 * remote.c (remote_serial_open, print_packet, putpkt)
5596 (putpkt_binary): Constify.
5597 * remote.h (putpkt): Update.
5599 2014-07-24 Tom Tromey <tromey@redhat.com>
5601 * monitor.c (monitor_open): Make "args" const.
5602 * monitor.h (monitor_open): Update.
5604 2014-07-24 Tom Tromey <tromey@redhat.com>
5606 * maint.c (match_bfd_flags): Make "string" const.
5607 (print_bfd_section_info): Remove casts.
5608 (print_objfile_section_info): Make "string" const.
5610 2014-07-24 Tom Tromey <tromey@redhat.com>
5612 * inf-child.c (inf_child_open_target): Make "arg" const.
5613 * inf-child.h (inf_child_open_target): Update.
5615 2014-07-24 Tom Tromey <tromey@redhat.com>
5617 * environ.c (unset_in_environ): Make "var" const.
5618 * environ.h (unset_in_environ): Update.
5620 2014-07-24 Tom Tromey <tromey@redhat.com>
5622 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5624 (scan_filename_with_cleanup): Likewise.
5625 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5626 Make arguments const.
5627 (restore_command): Update.
5629 2014-07-24 Pedro Alves <palves@redhat.com>
5631 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5633 2014-07-24 Tom Tromey <tromey@redhat.com>
5634 Gary Benson <gbenson@redhat.com>
5636 * nat/linux-ptrace.c (additional_flags): New global.
5637 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5638 additional_flags; don't check GDBSERVER.
5639 (linux_ptrace_set_additional_flags): New function.
5640 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5642 * linux-nat.c (_initialize_linux_nat): Call
5643 linux_ptrace_set_additional_flags.
5645 2014-07-24 Tom Tromey <tromey@redhat.com>
5647 * make-target-delegates (munge_type, write_debugmethod): New
5649 (debug_names): New global.
5650 ($TARGET_DEBUG_PRINTER): New global.
5651 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5653 Write debug methods. Generate init_debug_target.
5654 * target-debug.h: New file.
5655 * target-delegates.c: Rebuild.
5656 * target.c: Include target-debug.h.
5657 (debug_target): Hoist definition.
5658 (target_kill, target_get_section_table, target_memory_map)
5659 (target_flash_erase, target_flash_done, target_detach)
5660 (target_disconnect, target_wait, target_resume)
5661 (target_pass_signals, target_program_signals, target_follow_fork)
5662 (target_mourn_inferior, target_search_memory)
5663 (target_thread_address_space, target_close)
5664 (target_find_new_threads, target_core_of_thread)
5665 (target_verify_memory, target_insert_mask_watchpoint)
5666 (target_remove_mask_watchpoint): Remove targetdebug code.
5667 (debug_to_post_attach, debug_to_prepare_to_store)
5668 (debug_to_files_info, debug_to_insert_breakpoint)
5669 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5670 (debug_to_region_ok_for_hw_watchpoint)
5671 (debug_to_can_accel_watchpoint_condition)
5672 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5673 (debug_to_watchpoint_addr_within_range)
5674 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5675 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5676 (debug_to_terminal_init, debug_to_terminal_inferior)
5677 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5678 (debug_to_terminal_save_ours, debug_to_terminal_info)
5679 (debug_to_load, debug_to_post_startup_inferior)
5680 (debug_to_insert_fork_catchpoint)
5681 (debug_to_remove_fork_catchpoint)
5682 (debug_to_insert_vfork_catchpoint)
5683 (debug_to_remove_vfork_catchpoint)
5684 (debug_to_insert_exec_catchpoint)
5685 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5686 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5687 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5688 (setup_target_debug): Call init_debug_target.
5689 * target.h (TARGET_DEBUG_PRINTER): New macro.
5690 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5691 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5693 2014-07-24 Gary Benson <gbenson@redhat.com>
5695 * exceptions.h (throw_vfatal): Renamed to...
5696 (throw_vquit): New declaration.
5697 (throw_quit): Likewise.
5698 * exceptions.c (throw_vfatal): Renamed to...
5699 (throw_vquit): New function.
5700 (throw_quit): Likewise.
5701 (throw_error): Call throw_verror rather than throw_it.
5702 * utils.h (vfatal): Removed.
5704 * utils.c (vfatal): Removed.
5706 (internal_verror): Replaced call to fatal with call to throw_quit.
5707 (quit): Replaced calls to fatal with calls to throw_quit.
5709 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5711 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5714 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5716 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5717 less than zero in conditional expression.
5719 2014-07-23 Tom Tromey <tromey@redhat.com>
5721 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5722 ($INTRO_PART): Don't match whitespace.
5723 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5725 ($METHOD): Add $METHOD_TRAILER.
5727 (scan_target_h): New sub.
5728 Change main loop not to collect state.
5729 * target-delegates.c: Rebuild.
5731 2014-07-23 Gary Benson <gbenson@redhat.com>
5733 * cp-support.c (gdb_demangle): Fix build on systems without
5736 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5738 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5739 for reference entry value target data value.
5741 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5743 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5744 value_available_contents_eq.
5746 2014-07-22 Pedro Alves <palves@redhat.com>
5748 * value.c (allocate_optimized_out_value): Don't mark value as
5751 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5753 * MAINTAINERS (Write After Approval): Update my email address.
5755 2014-07-20 Doug Evans <dje@google.com>
5758 * remote.c (putpkt_binary): Add text to error message.
5760 2014-07-20 Yao Qi <yao@codesourcery.com>
5762 * eval.c: Remove "Chill" from comments.
5763 * gdbtypes.h: Likewise.
5764 * symtab.h: Likewise.
5766 2014-07-20 Yao Qi <yao@codesourcery.com>
5768 * std-operator.def: Update comments to TERNOP_SLICE.
5770 2014-07-20 Yao Qi <yao@codesourcery.com>
5772 * std-operator.def: Remove BINOP_RANGE.
5773 * breakpoint.c (watchpoint_exp_is_const): Update.
5774 * expprint.c (dump_subexp_body_standard): Likewise.
5775 * eval.c (init_array_element): Remove dead code.
5776 (evaluate_subexp_standard): Likewise.
5778 2014-07-20 Yao Qi <yao@codesourcery.com>
5780 * std-operator.def: Remove BINOP_IN.
5781 * breakpoint.c (watchpoint_exp_is_const): Update.
5782 * eval.c (evaluate_subexp_standard): Likewise.
5783 * expprint.c (dump_subexp_body_standard): Likewise.
5785 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5787 * microblaze-tdep.c (microblaze_register_names): Add
5788 the rshr and rslr register names.
5789 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5790 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5791 Use of tdesc_numbered_register. Use of
5792 microblaze_register_g_packet_guesses. Use of
5793 tdesc_use_registers. Use of set_gdbarch_register_type.
5794 (microblaze_register_g_packet_guesses): New.
5795 * microblaze-tdep.h (microblaze_reg_num): Add
5796 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5797 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5798 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5799 * features/microblaze-core.xml: New file.
5800 * features/microblaze-stack-protect.xml: New file.
5801 * features/microblaze-with-stack-protect.c: New file.
5802 * features/microblaze-with-stack-protect.xml: New file.
5803 * features/microblaze.xml: New file.
5804 * features/microblaze.c: New file.
5805 * features/Makefile (microblaze-with-stack-protect): Add
5806 microblaze-with-stack-protect microblaze and microblaze-expedite.
5807 * regformats/microblaze-with-stack-protect.dat: New file.
5808 * regformats/microblaze.dat: New file.
5809 * doc/gdb.texinfo (MicroBlaze Features): Added.
5811 2014-07-18 Tom Tromey <tromey@redhat.com>
5813 * exec.c (exec_ops): Now static.
5814 * exec.h (exec_ops): Don't declare.
5816 2014-07-18 Tom Tromey <tromey@redhat.com>
5818 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5819 to find_target_beneath.
5820 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5821 find_target_beneath.
5822 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5824 2014-07-18 Tom Tromey <tromey@redhat.com>
5827 * utils.c (quit): Use target_supports_terminal_ours.
5828 * target.h (target_supports_terminal_ours): Declare.
5829 * target.c (target_supports_delete_record): Don't check
5830 to_delete_record against NULL.
5831 (target_supports_terminal_ours): New function.
5833 2014-07-18 Tom Tromey <tromey@redhat.com>
5836 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5837 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5838 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5839 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5840 * windows-nat.c (windows_xfer_partial): Always delegate.
5841 * record-btrace.c (record_btrace_xfer_partial): Simplify
5843 (record_btrace_fetch_registers, record_btrace_store_registers)
5844 (record_btrace_prepare_to_store, record_btrace_resume)
5845 (record_btrace_wait, record_btrace_find_new_threads)
5846 (record_btrace_thread_alive): Likewise.
5847 * procfs.c (procfs_xfer_partial): Always delegate.
5848 * corelow.c (core_xfer_partial): Always delegate.
5849 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5851 2014-07-18 Tom Tromey <tromey@redhat.com>
5853 * exec.c (exec_make_note_section): Move earlier.
5855 2014-07-17 Doug Evans <dje@google.com>
5858 * maint.c (count_symtabs_and_blocks): Handle NULL
5859 current_program_space.
5860 (report_command_stats): Check global enabled flag in addition to
5861 recorded enabled flag.
5862 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5864 2014-07-16 Pedro Alves <palves@redhat.com>
5866 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5868 2014-07-16 Tom Tromey <tromey@redhat.com>
5870 * target.h (struct target_ops) <to_delete_record>: Reformat
5873 2014-07-16 Tom Tromey <tromey@redhat.com>
5875 * target-delegates.c: Rebuild.
5877 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5879 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5880 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5881 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5882 (avr_pointer_to_address): Likewise.
5883 (avr_address_class_type_flags): New function.
5884 (avr_address_class_type_flags_to_name): Likewise.
5885 (avr_address_class_name_to_type_flags): Likewise.
5886 (avr_gdbarch_init): Set address_class_type_flags,
5887 address_class_type_flags_to_name and
5888 address_class_name_to_type_flags.
5890 2014-07-15 Pedro Alves <palves@redhat.com>
5892 * linux-nat.c (kill_callback): Save errno and work with saved
5895 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5897 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5899 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5901 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5902 breakpoint support correctly.
5904 2014-07-14 Pedro Alves <palves@redhat.com>
5906 * utils.c (prompt_for_continue): Call target_terminal_ours.
5908 2014-07-14 Pedro Alves <palves@redhat.com>
5910 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5911 catch_errors. Don't re-enable stdin or notify observers where,
5913 (fetch_inferior_event_wrapper): Delete.
5915 2014-07-14 Pedro Alves <palves@redhat.com>
5918 * top.c: Include "inf-loop.h".
5919 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5921 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5923 (gdb_readline_wrapper): Store whether the target is async, and
5926 2014-07-14 Pedro Alves <palves@redhat.com>
5929 * top.c (gdb_readline_wrapper_line): Tweak comment.
5930 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5931 the input handler callback.
5933 2014-07-14 Pedro Alves <palves@redhat.com>
5936 * main.c: Include event-top.h.
5937 (handle_command_errors): New function.
5938 (catch_command_errors, catch_command_errors_const): Use it.
5940 2014-07-14 Pedro Alves <palves@redhat.com>
5942 * exceptions.c (catch_command_errors, catch_command_errors_const):
5944 * exceptions.h (catch_command_errors_ftype)
5945 (catch_command_errors_const_ftype): Moved to main.c.
5946 (catch_command_errors, catch_command_errors_const): Delete
5948 * main.c (catch_command_errors_ftype)
5949 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5950 (catch_command_errors, catch_command_errors_const)): Moved here
5951 from exceptions.c and make static.
5953 2014-07-14 Pedro Alves <palves@redhat.com>
5955 * exceptions.c (print_any_exception): Delete.
5956 (catch_exceptions_with_msg): Use exception_print instead of
5957 print_any_exception.
5958 (catch_errors): Use exception_fprintf instead of
5959 print_any_exception.
5960 (catch_command_errors, catch_command_errors_const): Use
5961 exception_print instead of print_any_exception.
5963 2014-07-14 Pedro Alves <palves@redhat.com>
5965 * infcall.c (run_inferior_call): Set 'sync_execution' while
5966 running the inferior call.
5968 2014-07-14 Pedro Alves <palves@redhat.com>
5970 * value.c (value_contents_equal): Delete function.
5971 * value.h (value_contents_equal): Delete declaration.
5973 2014-07-14 Tom Tromey <tromey@redhat.com>
5976 * gdbtypes.c (is_dynamic_type_internal): New function, from
5978 (is_dynamic_type): Rewrite.
5979 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5980 (resolve_dynamic_struct): Likewise.
5981 (resolve_dynamic_type_internal): New function, from
5982 resolve_dynamic_type.
5983 (resolve_dynamic_type): Rewrite.
5985 2014-07-14 Tom Tromey <tromey@redhat.com>
5987 * target.c (target_require_runnable): Also check record_stratum.
5990 2014-07-11 Yao Qi <yao@codesourcery.com>
5992 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5993 thumb_instruction_restores_sp return true.
5995 2014-07-11 Yao Qi <yao@codesourcery.com>
5997 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5998 (thumb_in_function_epilogue_p): Call
5999 thumb_instruction_restores_sp.
6001 2014-07-11 Yao Qi <yao@codesourcery.com>
6003 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6005 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6007 2014-07-11 Gary Benson <gbenson@redhat.com>
6009 * amd64-linux-nat.c (gdbcore.h): Remove include.
6010 (regset.h): Likewise.
6011 (nat/linux-btrace.h): Likewise.
6012 (btrace.h): Likewise.
6013 (gdb_assert.h): Likewise.
6014 (string.h): Likewise.
6015 (sys/uio.h): Likewise.
6016 (sys/debugreg.h): Likewise.
6017 (sys/syscall.h): Likewise.
6018 (sys/procfs.h): Likewise.
6019 (sys/user.h): Likewise.
6020 (asm/ptrace.h): Likewise.
6021 (i386-nat.h): Likewise.
6022 * i386-linux-nat.c (i386-nat.h): Likewise.
6023 (regset.h): Likewise.
6024 (target.h): Likewise.
6025 (linux-nat.h): Likewise.
6026 (nat/linux-btrace.h): Likewise.
6027 (btrace.h): Likewise.
6028 (gdb_assert.h): Likewise.
6029 (string.h): Likewise.
6030 (sys/uio.h): Likewise.
6031 (sys/user.h): Likewise.
6032 (sys/procfs.h): Likewise.
6033 (sys/reg.h): Likewise.
6034 (sys/debugreg.h): Likewise.
6035 (ORIG_EAX): Remove definition.
6037 2014-07-11 Gary Benson <gbenson@redhat.com>
6039 * i386-linux-nat.h: New file.
6040 * x86-linux-nat.h: Likewise.
6041 * x86-linux-nat.c: Likewise.
6042 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6043 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6044 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6045 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6046 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6047 (PTRACE_SETREGSET): Likewise.
6048 (arch_lwp_info): Now in x86-linux-nat.c.
6049 (have_ptrace_getregset): Now in x86-linux-nat.h.
6050 (x86_linux_dr_get): Now in x86-linux-nat.c.
6051 (x86_linux_dr_set): Likewise.
6052 (x86_linux_dr_get_addr): Likewise.
6053 (x86_linux_dr_get_control): Likewise.
6054 (x86_linux_dr_get_status): Likewise.
6055 (update_debug_registers_callback): Likewise.
6056 (x86_linux_dr_set_control): Likewise.
6057 (x86_linux_dr_set_addr): Likewise.
6058 (x86_linux_prepare_to_resume): Likewise.
6059 (x86_linux_new_thread): Likewise.
6060 (x86_linux_new_fork): Likewise.
6061 (x86_linux_get_thread_area): Likewise.
6062 (super_post_startup_inferior): Likewise.
6063 (x86_linux_child_post_startup_inferior): Likewise.
6064 (AMD64_LINUX_USER64_CS): Likewise.
6065 (AMD64_LINUX_X32_DS): Likewise.
6066 (x86_linux_read_description): Likewise.
6067 (x86_linux_enable_btrace): Likewise.
6068 (x86_linux_disable_btrace): Likewise.
6069 (x86_linux_teardown_btrace): Likewise.
6070 (x86_linux_read_btrace): Likewise.
6071 (x86_linux_create_target): Likewise.
6072 (x86_linux_add_target): Likewise.
6073 * i386-linux-nat.c (x86-linux-nat.h): New include.
6074 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6075 (PTRACE_SETREGSET): Likewise.
6076 (arch_lwp_info): Now in x86-linux-nat.c.
6077 (have_ptrace_getregset): Now in x86-linux-nat.h.
6078 (x86_linux_dr_get): Now in x86-linux-nat.c.
6079 (x86_linux_dr_set): Likewise.
6080 (x86_linux_dr_get_addr): Likewise.
6081 (x86_linux_dr_get_control): Likewise.
6082 (x86_linux_dr_get_status): Likewise.
6083 (update_debug_registers_callback): Likewise.
6084 (x86_linux_dr_set_control): Likewise.
6085 (x86_linux_dr_set_addr): Likewise.
6086 (x86_linux_prepare_to_resume): Likewise.
6087 (x86_linux_new_thread): Likewise.
6088 (x86_linux_new_fork): Likewise.
6089 (x86_linux_get_thread_area): Likewise.
6090 (super_post_startup_inferior): Likewise.
6091 (x86_linux_child_post_startup_inferior): Likewise.
6092 (AMD64_LINUX_USER64_CS): Likewise.
6093 (AMD64_LINUX_X32_DS): Likewise.
6094 (x86_linux_read_description): Likewise.
6095 (x86_linux_enable_btrace): Likewise.
6096 (x86_linux_disable_btrace): Likewise.
6097 (x86_linux_teardown_btrace): Likewise.
6098 (x86_linux_read_btrace): Likewise.
6099 (x86_linux_create_target): Likewise.
6100 (x86_linux_add_target): Likewise.
6102 2014-07-11 Gary Benson <gbenson@redhat.com>
6104 * amd64-linux-nat.c: Comment and whitespace changes.
6105 * i386-linux-nat.c: Comment and whitespace changes.
6107 2014-07-11 Gary Benson <gbenson@redhat.com>
6109 * amd64-linux-nat.c (x86_linux_create_target): New function.
6110 (x86_linux_add_target): Likewise.
6111 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6112 * i386-linux-nat.c (x86_linux_create_target): New function.
6113 (x86_linux_add_target): Likewise.
6114 (_initialize_i386_linux_nat): Delegate to the above new functions.
6116 2014-07-11 Gary Benson <gbenson@redhat.com>
6118 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6119 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6120 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6121 (ps_get_thread_area): Delegate to the above.
6123 2014-07-11 Gary Benson <gbenson@redhat.com>
6125 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6126 x86_linux_read_description. All uses updated. amd64-specific
6127 code conditionalized. Conditionalized i386-specific code added.
6128 Redundant cast removed.
6129 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6130 x86_linux_read_description. All uses updated. i386-specific
6131 code conditionalized. Conditionalized amd64-specific code added.
6132 One sizeof replaced with the actual type it is describing.
6134 2014-07-11 Gary Benson <gbenson@redhat.com>
6136 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6137 x86_linux_dr_get. All uses updated.
6138 (amd64_linux_dr_set): Renamed to
6139 x86_linux_dr_set. All uses updated.
6140 (amd64_linux_dr_get_addr): Renamed to
6141 x86_linux_dr_get_addr. All uses updated.
6142 (amd64_linux_dr_get_control): Renamed to
6143 x86_linux_dr_get_control. All uses updated.
6144 (amd64_linux_dr_get_status): Renamed to
6145 x86_linux_dr_get_status. All uses updated.
6146 (amd64_linux_dr_set_control): Renamed to
6147 x86_linux_dr_set_control. All uses updated.
6148 (amd64_linux_dr_set_addr): Renamed to
6149 x86_linux_dr_set_addr. All uses updated.
6150 (amd64_linux_prepare_to_resume): Renamed to
6151 x86_linux_prepare_to_resume. All uses updated.
6152 (amd64_linux_new_thread): Renamed to
6153 x86_linux_new_thread. All uses updated.
6154 (amd64_linux_new_fork): Renamed to
6155 x86_linux_new_fork. All uses updated.
6156 (amd64_linux_child_post_startup_inferior): Renamed to
6157 x86_linux_child_post_startup_inferior. All uses updated.
6158 (amd64_linux_enable_btrace): Renamed to
6159 x86_linux_enable_btrace. All uses updated.
6160 (amd64_linux_disable_btrace): Renamed to
6161 x86_linux_disable_btrace. All uses updated.
6162 (amd64_linux_teardown_btrace): Renamed to
6163 x86_linux_teardown_btrace. All uses updated.
6164 (amd64_linux_read_btrace): Renamed to
6165 x86_linux_read_btrace. All uses updated.
6166 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6167 x86_linux_dr_get. All uses updated.
6168 (i386_linux_dr_set): Renamed to
6169 x86_linux_dr_set. All uses updated.
6170 (i386_linux_dr_get_addr): Renamed to
6171 x86_linux_dr_get_addr. All uses updated.
6172 (i386_linux_dr_get_control): Renamed to
6173 x86_linux_dr_get_control. All uses updated.
6174 (i386_linux_dr_get_status): Renamed to
6175 x86_linux_dr_get_status. All uses updated.
6176 (i386_linux_dr_set_control): Renamed to
6177 x86_linux_dr_set_control. All uses updated.
6178 (i386_linux_dr_set_addr): Renamed to
6179 x86_linux_dr_set_addr. All uses updated.
6180 (i386_linux_prepare_to_resume): Renamed to
6181 x86_linux_prepare_to_resume. All uses updated.
6182 (i386_linux_new_thread): Renamed to
6183 x86_linux_new_thread. All uses updated.
6184 (i386_linux_new_fork): Renamed to
6185 x86_linux_new_fork. All uses updated.
6186 (i386_linux_child_post_startup_inferior): Renamed to
6187 x86_linux_child_post_startup_inferior. All uses updated.
6188 (i386_linux_enable_btrace): Renamed to
6189 x86_linux_enable_btrace. All uses updated.
6190 (i386_linux_disable_btrace): Renamed to
6191 x86_linux_disable_btrace. All uses updated.
6192 (i386_linux_teardown_btrace): Renamed to
6193 x86_linux_teardown_btrace. All uses updated.
6194 (i386_linux_read_btrace): Renamed to
6195 x86_linux_read_btrace. All uses updated.
6197 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6199 * remote.c (extended_remote_post_attach): New function.
6200 (init_extended_remote_ops): Install it as to_post_attach method.
6202 2014-07-09 Pedro Alves <palves@redhat.com>
6204 * infcmd.c (attach_command_post_wait): Don't call
6205 target_terminal_inferior here.
6206 (attach_command): Call it here instead.
6208 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6210 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6212 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6213 from varobj.c, with additional checks.
6214 (c_varobj_ops): Fill in is_path_expr_parent field.
6215 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6216 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6218 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6220 (varobj_default_is_path_expr_parent): New function.
6221 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6222 (varobj_default_is_path_expr_parent): Declare new function.
6224 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6226 * infcmd.c (finish_backward): Turn internal error into normal error.
6228 2014-07-07 Pedro Alves <palves@redhat.com>
6231 * remote.c (async_handle_remote_sigint)
6232 (async_handle_remote_sigint_twice): Call
6233 gdb_call_async_signal_handler instead of
6234 mark_async_signal_handler.
6236 2014-07-07 Tom Tromey <tromey@redhat.com>
6238 * target-delegates.c: Rebuild.
6239 * target.c (target_info_record): Remove.
6240 * record.c (info_record_command): Unconditionally call
6242 * target.h (struct target_ops) <to_info_record>: Use
6243 TARGET_DEFAULT_IGNORE.
6244 (target_info_record): Remove.
6246 2014-07-07 Tom Tromey <tromey@redhat.com>
6248 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6249 TARGET_DEFAULT_NORETURN.
6250 * target.c (generic_tls_error): New function.
6251 (target_translate_tls_address): Don't search target stack.
6252 * target-delegates.c: Rebuild.
6253 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6255 * linux-thread-db.c (thread_db_get_thread_local_address):
6256 Unconditionally call beneath target.
6258 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6260 * cli/cli-logging.c (pop_output_files): Assign targerr to
6263 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6265 * MAINTAINERS (Write After Approval): Update my email address.
6267 2014-07-02 Gary Benson <gbenson@redhat.com>
6269 * proc-service.c (ps_xfer_memory): Update comment.
6270 (ps_pstop): Remove unused function.
6271 (ps_pcontinue): Likewise.
6272 (ps_lstop): Likewise.
6273 (ps_lcontinue): Likewise.
6274 (ps_lgetxregsize): Likewise.
6275 (ps_lgetxregs): Likewise.
6276 (ps_lsetxregs): Likewise.
6277 (ps_plog): Likewise.
6278 (ps_ptread): Likewise.
6279 (ps_ptwrite): Likewise.
6281 2014-07-01 Mark Wielaard <mjw@redhat.com>
6283 * dwarf2read.c (add_array_cv_type): New function.
6284 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6285 (read_tag_volatile_type): Likewise.
6287 2014-07-01 Tom Tromey <tromey@redhat.com>
6289 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6290 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6291 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6292 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6293 * command.h (cmd_cfunc_ftype): Move earlier.
6294 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6295 (add_com, add_info): Use cmd_cfunc_ftype.
6297 2014-06-30 Tom Tromey <tromey@redhat.com>
6299 * symtab.c (operator_chars): Make parameters and return type
6301 (file_matches): Make "files" const.
6302 (struct search_symbols_data) <files>: Now const.
6303 (search_symbols): Make "regexp" and "files" parameters const.
6305 (symtab_symbol_info): Remove cast.
6306 (rbreak_command): Update.
6307 * symtab.h (search_symbols): Update.
6309 2014-06-27 Yao Qi <yao@codesourcery.com>
6311 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6312 Change parameter type to 'struct thread_info *'. Caller
6314 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6316 * dummy-frame.c (struct dummy_frame_id): New.
6317 (dummy_frame_id_eq): New function.
6318 (struct dummy_frame) <id>: Change its type to 'struct
6320 (dummy_frame_push): Add parameter ptid and save it in
6322 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6324 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6326 (lookup_dummy_frame): Change parameter type to 'struct
6327 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6328 instead of frame_id_eq.
6329 (dummy_frame_pop): Add parameter ptid. Callers updated.
6330 Update comments. Compose dummy_frame_id and pass it to
6332 (dummy_frame_discard): Add parameter ptid.
6333 (dummy_frame_sniffer): Compose dummy_frame_id and call
6334 dummy_frame_id_eq instead of frame_id_eq.
6335 (fprint_dummy_frames): Print ptid.
6336 * dummy-frame.h: Remove comments.
6337 (dummy_frame_push): Add ptid in declaration.
6338 (dummy_frame_pop, dummy_frame_discard): Likewise.
6340 2014-06-26 Tom Tromey <tromey@redhat.com>
6342 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6343 * command.h (error_no_arg): Update.
6345 2014-06-26 Tom Tromey <tromey@redhat.com>
6347 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6348 (do_show_command): Make "arg" const.
6349 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6351 2014-06-26 Tom Tromey <tromey@redhat.com>
6353 * record-full.c (record_full_get_bookmark): Make "args" const.
6354 (record_full_goto_bookmark): Make "raw_bookmark" const.
6355 * record.c (record_goto): New function.
6356 (cmd_record_goto): Use it. Now static.
6357 * record.h (record_goto): Declare.
6358 (cmd_record_goto): Remove declaration.
6359 * target-delegates.c: Rebuild.
6360 * target.h (struct target_ops) <to_get_bookmark,
6361 to_goto_bookmark>: Make parameter const.
6363 2014-06-26 Tom Tromey <tromey@redhat.com>
6365 * defs.h (generic_load): Update.
6366 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6367 * monitor.c (monitor_load): Make "args" const.
6368 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6369 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6371 (mips_load): Make "file" const.
6372 * remote-sim.c (gdbsim_load): Make "args" const.
6373 * remote.c (remote_load): Make "name" const.
6374 * symfile.c (generic_load): Make "args" const.
6375 * target-delegates.c: Rebuild.
6376 * target.c (target_load): Make "arg" const.
6377 (debug_to_load): Make "args" const.
6378 * target.h (struct target_ops) <to_load>: Make parameter const.
6379 (target_load): Update.
6381 2014-06-26 Tom Tromey <tromey@redhat.com>
6384 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6385 (dwarf2_physname, read_partial_die)
6386 (guess_partial_die_structure_name, fixup_partial_die)
6387 (guess_full_die_structure_name, anonymous_struct_prefix)
6388 (dwarf2_name): Use per-BFD obstack.
6390 2014-06-26 Yao Qi <yao@codesourcery.com>
6392 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6393 dummyframe and this_id into inner block below.
6395 2014-06-26 Yao Qi <yao@codesourcery.com>
6397 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6398 with "signal_pass[0]" in the initialization of signal_pass.
6400 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6402 * record-btrace.c (record_btrace_generating_corefile)
6403 (record_btrace_prepare_to_generate_core)
6404 (record_btrace_done_generating_core): New.
6405 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6406 (record_btrace_store_registers, record_btrace_prepare_to_store):
6407 Forward request when generating a core file.
6408 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6409 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6410 to_done_generating_core.
6412 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6414 * target.h (target_ops) <to_prepare_to_generate_core>
6415 <to_done_generating_core>: New.
6416 (target_prepare_to_generate_core, target_done_generating_core): New.
6417 * target.c (target_prepare_to_generate_core)
6418 (target_done_generating_core): New.
6419 * target-delegates.c: Regenerate.
6420 * gcore.c: (write_gcore_file): Rename to ...
6421 (write_gcore_file_1): ...this.
6422 (write_gcore_file): Call target_prepare_to_generate_core
6423 and target_done_generating_core.
6425 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6427 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6428 * gcore.c (write_gcore_file): Free memory returned from
6429 make_corefile_notes.
6430 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6431 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6433 2014-06-24 Yao Qi <yao@codesourcery.com>
6435 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6436 (arm_linux_init_abi): Set skip_trampoline_code with
6437 gdbarch_skip_trampoline_code instead of
6438 find_solib_trampoline_target.
6440 2014-06-24 Yao Qi <yao@codesourcery.com>
6442 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6443 arm_skip_bx_reg returns non-zero.
6445 2014-06-24 Yao Qi <yao@codesourcery.com>
6447 * arm-tdep.c (arm_skip_bx_reg): New function.
6448 (arm_skip_stub): Call arm_skip_bx_reg.
6450 2014-06-23 Don Breazeal <donb@codesourcery.com>
6452 * MAINTAINERS: Add myself as write-after-approval maintainer.
6454 2014-06-23 Pedro Alves <palves@redhat.com>
6456 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6457 DR_CONTROL before setting DR0..DR3.
6458 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6459 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6460 bits of DR_CONTROL related to the debug register slot being
6461 disabled. If all slots are vacant, clear local slowdown as well,
6462 and assert DR_CONTROL is 0.
6464 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6466 * python/lib/gdb/command/xmethods.py
6467 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6468 current progspace only if the string "progspace" matches LOCUS_RE.
6470 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6472 Fix --with-system-readline with readline-6.3 patch 5.
6473 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6474 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6477 2014-06-20 Tom Tromey <tromey@redhat.com>
6479 * dwarf2read.c (dw2_get_real_path): Use correct type in
6481 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6483 2014-06-20 Gary Benson <gbenson@redhat.com>
6485 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6486 * common/glibc_thread_db.h: Likewise.
6487 * common/i386-cpuid.h: Likewise.
6488 * common/i386-gcc-cpuid.h: Likewise.
6489 * common/linux-btrace.h: Likewise.
6490 * common/linux-osdata.h: Likewise.
6491 * common/linux-procfs.h: Likewise.
6492 * common/linux-ptrace.h: Likewise.
6493 * common/mips-linux-watch.h: Likewise.
6494 * common/linux-btrace.c: Moved to nat.
6495 * common/linux-osdata.c: Likewise.
6496 * common/linux-procfs.c: Likewise.
6497 * common/linux-ptrace.c: Likewise.
6498 * common/mips-linux-watch.c: Likewise.
6499 * nat/gdb_thread_db.h: Moved from common.
6500 * nat/glibc_thread_db.h: Likewise.
6501 * nat/i386-cpuid.h: Likewise.
6502 * nat/i386-gcc-cpuid.h: Likewise.
6503 * nat/linux-btrace.c: Likewise.
6504 * nat/linux-btrace.h: Likewise.
6505 * nat/linux-osdata.c: Likewise.
6506 * nat/linux-osdata.h: Likewise.
6507 * nat/linux-procfs.c: Likewise.
6508 * nat/linux-procfs.h: Likewise.
6509 * nat/linux-ptrace.c: Likewise.
6510 * nat/linux-ptrace.h: Likewise.
6511 * nat/mips-linux-watch.c: Likewise.
6512 * nat/mips-linux-watch.h: Likewise.
6513 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6514 (object file files): Reordered.
6515 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6516 of glibc_thread_db.h.
6518 2014-06-20 Gary Benson <gbenson@redhat.com>
6520 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6521 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6522 (i386_dr_low): Likewise.
6523 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6524 (i386_dr_low_set_addr): Likewise.
6525 (i386_dr_low_get_addr): Likewise.
6526 (i386_dr_low_can_set_control): Likewise.
6527 (i386_dr_low_set_control): Likewise.
6528 (i386_dr_low_get_control): Likewise.
6529 (i386_dr_low_get_status): Likewise.
6530 (i386_get_debug_register_length): Likewise.
6531 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6532 (i386_dr_low): Likewise.
6533 * nat/i386-dregs.c (i386-low.h): Remove include.
6534 (i386-nat.h): Likewise.
6535 (nat/i386-dregs.h): New include.
6536 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6537 (i386_dr_low_set_addr): Likewise.
6538 (i386_dr_low_get_addr): Likewise.
6539 (i386_dr_low_can_set_control): Likewise.
6540 (i386_dr_low_set_control): Likewise.
6541 (i386_dr_low_get_control): Likewise.
6542 (i386_dr_low_get_status): Likewise.
6543 (i386_get_debug_register_length): Likewise.
6544 (debug_hw_points): Likewise.
6546 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6548 * Makefile.in (SFILES): Add d-exp.y.
6549 (YYFILES): Add d-exp.c.
6550 (YYOBJ): Add d-exp.o.
6551 (local-maintainer-clean): Delete d-exp.c.
6552 * d-exp.y: New file.
6553 * d-lang.h (d_parse): New declaration.
6554 (d_error): New declaration.
6555 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6556 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6557 PREC_ORDER operators.
6558 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6560 2014-06-19 Yao Qi <yao@codesourcery.com>
6562 * gdbthread.h (any_running): Remove the declaration.
6563 * thread.c (any_running): Remove.
6565 2014-06-19 Yao Qi <yao@codesourcery.com>
6567 * gdbthread.h (struct thread_info) <state>: Change its type to
6568 'enum thread_state'. Update comments.
6570 2014-06-19 Pedro Alves <palves@redhat.com>
6572 * gdbthread.h (ALL_THREADS): Delete.
6573 (ALL_NON_EXITED_THREADS): New macro.
6574 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6575 instead of ALL_THREADS.
6576 * infrun.c (find_thread_needs_step_over)
6577 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6578 instead of ALL_THREADS.
6579 * record-btrace.c (record_btrace_open)
6580 (record_btrace_stop_recording, record_btrace_close)
6581 (record_btrace_is_replaying, record_btrace_resume)
6582 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6583 * remote.c (append_pending_thread_resumptions): Likewise.
6584 * thread.c (thread_apply_all_command): Likewise.
6586 2014-06-19 Gary Benson <gbenson@redhat.com>
6588 * i386-nat.c (i386_stopped_by_watchpoint):
6589 Use i386_dr_stopped_by_watchpoint.
6590 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6591 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6593 2014-06-19 Gary Benson <gbenson@redhat.com>
6595 * nat/i386-dregs.c: New file.
6596 * Makefile.in (i386-dregs.o): New rule.
6597 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6598 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6599 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6600 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6601 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6602 * config/i386/go32.mh (NATDEPFILES): Likewise.
6603 * config/i386/linux.mh (NATDEPFILES): Likewise.
6604 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6605 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6606 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6607 * i386-nat.h (debug_hw_points): New declaration.
6608 * i386-nat.c (breakpoint.h): Remove include.
6609 (command.h): Likewise.
6610 (target.h): Likewise.
6611 (gdb_assert.h): Likewise.
6612 (debug_hw_points): Made nonstatic.
6613 (debug_printf): Now in i386-dregs.c.
6614 (TARGET_HAS_DR_LEN_8): Likewise.
6615 (DR_CONTROL_SHIFT): Likewise.
6616 (DR_CONTROL_SIZE): Likewise.
6617 (DR_RW_EXECUTE): Likewise.
6618 (DR_RW_WRITE): Likewise.
6619 (DR_RW_READ): Likewise.
6620 (DR_RW_IORW): Likewise.
6621 (DR_LEN_1): Likewise.
6622 (DR_LEN_2): Likewise.
6623 (DR_LEN_4): Likewise.
6624 (DR_LEN_8): Likewise.
6625 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6626 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6627 (DR_ENABLE_SIZE): Likewise.
6628 (DR_LOCAL_SLOWDOWN): Likewise.
6629 (DR_GLOBAL_SLOWDOWN): Likewise.
6630 (DR_CONTROL_RESERVED): Likewise.
6631 (I386_DR_CONTROL_MASK): Likewise.
6632 (I386_DR_VACANT): Likewise.
6633 (I386_DR_LOCAL_ENABLE): Likewise.
6634 (I386_DR_GLOBAL_ENABLE): Likewise.
6635 (I386_DR_DISABLE): Likewise.
6636 (I386_DR_SET_RW_LEN): Likewise.
6637 (I386_DR_GET_RW_LEN): Likewise.
6638 (I386_DR_WATCH_HIT): Likewise.
6639 (i386_wp_op_t): Likewise.
6640 (i386_show_dr): Likewise.
6641 (i386_length_and_rw_bits): Likewise.
6642 (i386_insert_aligned_watchpoint): Likewise.
6643 (i386_remove_aligned_watchpoint): Likewise.
6644 (i386_handle_nonaligned_watchpoint): Likewise.
6645 (i386_update_inferior_debug_regs): Likewise.
6646 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6647 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6648 (i386_region_ok_for_watchpoint):
6649 Use i386_dr_region_ok_for_watchpoint.
6650 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6652 2014-06-19 Gary Benson <gbenson@redhat.com>
6654 * i386-nat.c (i386_insert_hw_breakpoint): Use
6655 i386_insert_watchpoint.
6656 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6658 2014-06-19 Gary Benson <gbenson@redhat.com>
6660 * i386-nat.c (i386_dr_show): Renamed to
6661 i386_show_dr and made static. All uses updated.
6662 (i386_dr_length_and_rw_bits): Renamed to
6663 i386_length_and_rw_bits and made static.
6665 (i386_dr_insert_aligned_watchpoint): Renamed to
6666 i386_insert_aligned_watchpoint and made static.
6668 (i386_dr_remove_aligned_watchpoint): Renamed to
6669 i386_remove_aligned_watchpoint and made static.
6671 (i386_dr_update_inferior_debug_regs): Renamed to
6672 i386_update_inferior_debug_regs and made static.
6674 * nat/i386-dregs.h (i386_dr_show): Removed.
6675 (i386_dr_length_and_rw_bits): Likewise.
6676 (i386_dr_insert_aligned_watchpoint): Likewise.
6677 (i386_dr_remove_aligned_watchpoint): Likewise.
6678 (i386_dr_update_inferior_debug_regs): Likewise.
6680 2014-06-19 Gary Benson <gbenson@redhat.com>
6682 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6683 * configure: Regenerate.
6684 * config.in: Likewise.
6685 * main.c (signal.h): New include.
6686 (setup_alternate_signal_stack): New function.
6687 (captured_main): Call the above.
6688 * cp-support.c (signal.h): New include.
6689 (catch_demangler_crashes): New flag.
6690 (SIGJMP_BUF): New define.
6691 (SIGSETJMP): Likewise.
6692 (SIGLONGJMP): Likewise.
6693 (gdb_demangle_jmp_buf): New static global.
6694 (gdb_demangle_attempt_core_dump): Likewise.
6695 (gdb_demangle_signal_handler): New function.
6696 (gdb_demangle): If catch_demangler_crashes is set, install the
6697 above signal handler before calling bfd_demangle, and restore
6698 the original signal handler afterwards. Display the offending
6699 symbol and call demangler_warning the first time a segmentation
6701 (_initialize_cp_support): New maint set/show command.
6703 2014-06-19 Gary Benson <gbenson@redhat.com>
6705 * utils.h (resource_limit_kind): New enum.
6706 (can_dump_core): New declaration.
6707 (warn_cant_dump_core): Likewise.
6708 (dump_core): Likewise.
6709 * utils.c (dump_core): Made nonstatic. Added new
6710 parameter "limit_kind".
6711 (can_dump_core): Made nonstatic. Moved printing code to...
6712 (warn_cant_dump_core): New function.
6713 (can_dump_core_warn): Likewise.
6714 (internal_vproblem): Replace calls to can_dump_core with
6715 calls to can_dump_core_warn. Supply new argument to each.
6717 2014-06-19 Gary Benson <gbenson@redhat.com>
6719 * utils.h (demangler_vwarning): New declaration.
6720 (demangler_warning): Likewise.
6721 * utils.c (struct internal_problem)
6722 <user_settable_should_quit>: New field.
6723 <user_settable_should_dump_core>: Likewise
6724 (internal_error_problem): Add values for above new fields.
6725 (internal_warning_problem): Likewise.
6726 (demangler_warning_problem): New static global.
6727 (demangler_vwarning): New function.
6728 (demangler_warning): Likewise.
6729 (add_internal_problem_command): Selectively add commands.
6730 (_initialize_utils): New internal problem command.
6731 * maint.c (maintenance_demangler_warning): New function.
6732 (_initialize_maint_cmds): New command.
6734 2014-06-18 Tom Tromey <tromey@redhat.com>
6736 * f-valprint.c (info_common_command_for_block): Update.
6737 * symtab.h (struct general_symbol_info) <common_block>: Now
6740 2014-06-18 Tom Tromey <tromey@redhat.com>
6742 * symtab.h (struct symtab) <blockvector>: Now const.
6743 * ada-lang.c (ada_add_global_exceptions): Update.
6744 * buildsym.c (augment_type_symtab): Update.
6745 * dwarf2read.c (dw2_lookup_symbol): Update.
6746 * jit.c (finalize_symtab): Update.
6747 * jv-lang.c (add_class_symtab_symbol): Update.
6748 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6750 * objfiles.c (objfile_relocate1): Update.
6751 * psymtab.c (lookup_symbol_aux_psymtabs)
6752 (maintenance_check_psymtabs): Update.
6753 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6755 * spu-tdep.c (spu_catch_start): Update.
6756 * symmisc.c (dump_symtab_1): Update.
6757 * symtab.c (lookup_global_symbol_from_objfile)
6758 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6759 (basic_lookup_transparent_type_quick)
6760 (basic_lookup_transparent_type, find_pc_sect_symtab)
6761 (find_pc_sect_line, search_symbols): Update.
6762 * block.c (find_block_in_blockvector): Make "bl" const.
6763 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6765 (blockvector_contains_pc): Make "bv" const.
6766 (block_for_pc_sect): Update.
6767 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6768 (blockvector_contains_pc): Update.
6769 * breakpoint.c (resolve_sal_pc): Update.
6770 * inline-frame.c (block_starting_point_at): Update.
6772 2014-06-18 Tom Tromey <tromey@redhat.com>
6774 * completer.c (complete_line): Make "line_buffer" const.
6775 * completer.h (complete_line): Update.
6777 2014-06-18 Tom Tromey <tromey@redhat.com>
6779 * symtab.c (add_macro_name): Remove unneeded cast.
6781 2014-06-18 Tom Tromey <tromey@redhat.com>
6783 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6784 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6786 2014-06-18 Tom Tromey <tromey@redhat.com>
6788 * probe.c (info_probes_for_ops): Make "arg" const.
6789 * probe.h (info_probes_for_ops): Update.
6791 2014-06-18 Tom Tromey <tromey@redhat.com>
6793 * varobj.c (varobj_create): Update.
6794 * valops.c (value_of_this): Update.
6795 * tracepoint.c (add_local_symbols, scope_info): Update.
6796 * symtab.h (struct general_symbol_info) <block>: Now const.
6797 * symtab.c (skip_prologue_sal)
6798 (default_make_symbol_completion_list_break_on)
6799 (skip_prologue_using_sal): Update.
6800 * stack.h (iterate_over_block_locals)
6801 (iterate_over_block_local_vars): Update.
6802 * stack.c (print_frame_args): Update.
6803 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6805 (get_selected_block): Make return type const.
6806 * python/py-frame.c (frapy_block): Update.
6807 * python/py-block.c (gdbpy_block_for_pc): Update.
6808 * p-exp.y (%union) <bval>: Now const.
6809 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6810 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6811 * m2-exp.y (%union) <bval>: Now const.
6812 * linespec.c (get_current_search_block): Make return type const.
6813 (create_sals_line_offset, find_label_symbols): Update.
6814 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6816 (block_starting_point_at): Make "block" const.
6817 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6818 (check_exception_resume): Update.
6819 * guile/scm-frame.c (gdbscm_frame_block): Update.
6820 * guile/scm-block.c (gdbscm_lookup_block): Update.
6821 * frame.h (get_frame_block): Update.
6822 (get_selected_block): Make return type const.
6823 * frame.c (frame_id_inner): Update.
6824 * f-valprint.c (info_common_command_for_block)
6825 (info_common_command): Update.
6826 * dwarf2loc.c (dwarf2_find_location_expression)
6827 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6828 (locexpr_describe_location_piece): Update.
6829 * c-exp.y (%union) <bval>: Now const.
6830 * breakpoint.c (resolve_sal_pc): Update.
6831 * blockframe.c (get_frame_block):Make return type const.
6832 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6833 (block_innermost_frame): Update.
6834 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6835 (block_for_pc, block_for_pc_sect): Update.
6836 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6838 (block_for_pc_sect, block_for_pc): Make return type const.
6839 * ax-gdb.c (gen_expr): Update.
6840 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6841 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6842 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6843 (ada_read_var_value): Update.
6844 * ada-exp.y (struct name_info) <block>: Now const.
6846 (block_lookup): Constify.
6848 2014-06-18 Gary Benson <gbenson@redhat.com>
6850 * nat/i386-dregs.h: New file.
6851 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6852 * i386-nat.h (i386-dregs.h): New include.
6853 (DR_FIRSTADDR): Now in i386-dregs.h.
6854 (DR_LASTADDR): Likewise.
6855 (DR_NADDR): Likewise.
6856 (DR_STATUS): Likewise.
6857 (DR_CONTROL): Likewise.
6858 (i386_debug_reg_state): Likewise.
6859 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6861 2014-06-18 Don Breazeal <donb@codesourcery.com>
6863 * breakpoint.c (set_longjmp_breakpoint): Call
6864 momentary_breakpoint_from_master with additional argument.
6865 (set_longjmp_breakpoint_for_call_dummy): Call
6866 momentary_breakpoint_from_master with additional argument.
6867 (set_std_terminate_breakpoint): Call
6868 momentary_breakpoint_from_master with additional argument.
6869 (momentary_breakpoint_from_master): Add argument to function
6870 definition and use it to initialize structure member flag.
6871 (clone_momentary_breakpoint): Call
6872 momentary_breakpoint_from_master with additional argument.
6873 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6874 member flags set in momentary_breakpoint_from_master.
6876 2014-06-18 Gary Benson <gbenson@redhat.com>
6878 * i386-nat.c (i386_show_dr): Renamed to
6879 i386_dr_show and made nonstatic. All uses updated.
6880 (i386_length_and_rw_bits): Renamed to
6881 i386_dr_length_and_rw_bits and made nonstatic.
6883 (i386_insert_aligned_watchpoint): Renamed to
6884 i386_dr_insert_aligned_watchpoint and made nonstatic.
6886 (i386_remove_aligned_watchpoint): Renamed to
6887 i386_dr_remove_aligned_watchpoint and made nonstatic.
6889 (i386_update_inferior_debug_regs): Renamed to
6890 i386_dr_update_inferior_debug_regs and made nonstatic.
6893 2014-06-18 Gary Benson <gbenson@redhat.com>
6895 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6896 (i386_dr_low_can_set_control): Likewise.
6897 (i386_dr_low_set_addr): Likewise.
6898 (i386_dr_low_set_control): Likewise.
6899 (i386_dr_low_get_addr): Likewise.
6900 (i386_dr_low_get_status): Likewise.
6901 (i386_dr_low_get_control): Likewise.
6902 (i386_insert_aligned_watchpoint): Use new macros.
6903 (i386_update_inferior_debug_regs): Likewise.
6904 (i386_stopped_data_address): Likewise.
6906 2014-06-18 Gary Benson <gbenson@redhat.com>
6908 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6909 New parameter. All uses updated.
6911 2014-06-18 Gary Benson <gbenson@redhat.com>
6913 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6916 2014-06-18 Gary Benson <gbenson@redhat.com>
6918 * i386-nat.c (debug_printf): New macro.
6919 (i386_get_debug_register_length): Likewise.
6920 (TARGET_HAS_DR_LEN_8): Use above macro.
6921 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6922 and printf_unfiltered. Use phex to format values.
6924 2014-06-18 Gary Benson <gbenson@redhat.com>
6926 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6929 2014-06-18 Gary Benson <gbenson@redhat.com>
6931 * i386-nat.c: Comment changes.
6933 2014-06-18 Gary Benson <gbenson@redhat.com>
6935 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6937 2014-06-18 Gary Benson <gbenson@redhat.com>
6939 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6940 (i386_insert_aligned_watchpoint): Likewise.
6941 (i386_remove_aligned_watchpoint): Likewise.
6942 (i386_handle_nonaligned_watchpoint): Likewise.
6944 2014-06-18 Gary Benson <gbenson@redhat.com>
6946 * i386-nat.c: Whitespace changes.
6948 2014-06-17 Samuel Bronson <naesten@gmail.com>
6950 * MAINTAINERS: Update Roland McGrath's email address.
6951 Thanks to Sergio Durigan Junior for pointing out that he left
6952 Red Hat a while ago, and giving me a current address.
6954 2014-06-17 Tom Tromey <tromey@redhat.com>
6956 * utils.h (savestring): Remove declaration.
6958 2014-06-17 Tom Tromey <tromey@redhat.com>
6960 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6962 2014-06-16 Keith Seitz <keiths@redhat.com>
6965 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6966 to update the varobj if inferior_ptid is null_ptid.
6968 2014-06-16 Tom Tromey <tromey@redhat.com>
6970 * target.h (struct target_ops) <to_info_proc>: Make parameter
6972 (target_info_proc): Update.
6973 * target.c (target_info_proc): Make "args" const.
6974 * procfs.c (procfs_info_proc): Update.
6975 * linux-tdep.c (linux_info_proc): Update.
6976 (linux_core_info_proc_mappings): Make "args" const.
6977 (linux_core_info_proc): Update.
6978 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6979 * gdbarch.c: Rebuild.
6980 * gdbarch.h: Rebuild.
6981 * corelow.c (core_info_proc): Update.
6983 2014-06-16 Tom Tromey <tromey@redhat.com>
6985 * target.h (struct target_ops) <to_disconnect>: Make parameter
6987 (target_disconnect): Update.
6988 * target.c (target_disconnect): Make "args" const.
6989 * target-delegates.c: Rebuild.
6990 * remote.c (remote_disconnect): Update.
6991 * record.h (record_disconnect): Update.
6992 * record.c (record_disconnect): Update.
6993 * inf-child.c (inf_child_disconnect): Update.
6995 2014-06-16 Tom Tromey <tromey@redhat.com>
6997 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6998 * target.c (debug_to_rcmd, default_rcmd): Update.
6999 * target-delegates.c: Rebuild.
7000 * remote.c (remote_rcmd): Update.
7001 * monitor.c (monitor_rcmd): Update.
7003 2014-06-16 Pedro Alves <palves@redhat.com>
7005 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7006 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7007 have OBJF_SHARED set.
7008 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7009 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7010 instead of OBJF_USERLOADED.
7011 * objfiles.h (OBJF_SHARED): Update comment.
7012 (userloaded_objfile_contains_address_p): Rename to ...
7013 (shared_objfile_contains_address_p): ... this, and update
7015 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7017 (remove_symbol_file_command): Skip objfiles that don't have
7020 2014-06-16 Tom Tromey <tromey@redhat.com>
7022 * minsyms.h (prim_record_minimal_symbol)
7023 (prim_record_minimal_symbol_and_info): Update comments.
7025 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7027 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7028 or --without-guile, according to how GDB was built.
7030 2014-06-13 Tom Tromey <tromey@redhat.com>
7032 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7034 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7036 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7038 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7039 help_list.Pass all_commands, not -1, to help_list.
7040 * cli/cli-dump.c (dump_command, append_command)
7041 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7042 (binary_dump_command, binary_append_command): Pass all_commands,
7043 not -1, to help_list.
7044 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7046 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7048 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7050 * top.c (set_history): Pass all_commands, not -1, to help_list.
7051 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7052 all_commands, not -1, to help_list.
7053 * symfile.c (overlay_command): Pass all_commands, not -1, to
7055 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7057 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7059 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7061 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7062 not -1, to help_list.
7063 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7064 not -1, to help_list.
7065 * maint.c (maintenance_command, maintenance_info_command)
7066 (maintenance_print_command, maintenance_set_cmd): Pass
7067 all_commands, not -1, to help_list.
7068 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7070 * language.c (set_check): Pass all_commands, not -1, to help_list.
7071 * infcmd.c (unset_command): Pass all_commands, not -1, to
7073 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7075 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7077 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7079 * breakpoint.c (save_command): Pass all_commands, not -1, to
7081 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7082 all_commands, not -1, to help_list.
7084 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7086 * regcache.c (struct register_to_invalidate): New structure.
7087 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7089 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7091 2014-06-12 Yao Qi <yao@codesourcery.com>
7093 * varobj.c (varobj_get_num_children): Call
7094 varobj_is_dynamic_p.
7095 (varobj_list_children): Likewise.
7096 (varobj_update): Likewise. Update comments.
7098 2014-06-12 Yao Qi <yao@codesourcery.com>
7100 * varobj.c (varobj_pretty_printed_p): Rename to ...
7101 (varobj_is_dynamic_p): ... this. New function.
7102 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7103 (varobj_is_dynamic_p): Declare.
7104 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7105 (mi_print_value_p, varobj_update_one): Likewise.
7107 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7108 Yao Qi <yao@codesourcery.com>
7110 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7111 (varobj_get_iterator): Wrap up code for pretty-printer by
7112 "#if HAVE_PYTHON" and "#endif".
7113 (update_dynamic_varobj_children): Likewise.
7115 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7116 Yao Qi <yao@codesourcery.com>
7118 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7119 gdb_python_initialized is false. Move some code from varobj.c.
7120 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7121 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7122 (struct varobj_item): Moved to varobj-iter.h".
7123 (varobj_clear_saved_item): New function.
7124 (update_dynamic_varobj_children): Move python-related code to
7126 (free_variable): Call varobj_clear_saved_item and
7129 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7130 Yao Qi <yao@codesourcery.com>
7132 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7133 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7134 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7135 (py-varobj.o): New rule.
7136 * python/py-varobj.c: New file.
7137 * python/python-internal.h (py_varobj_get_iterator): Declare.
7138 * varobj-iter.h: New file.
7139 * varobj.c: Include "varobj-iter.h"
7140 (struct varobj) <child_iter>: Change its type from "PyObject *"
7141 to "struct varobj_iter *".
7142 <saved_item>: Likewise.
7143 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7144 [HAVE_PYTHON] (varobj_get_iterator): New function.
7145 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7146 python-specific code to python/py-varobj.c.
7147 (install_visualizer): Call varobj_iter_delete instead of
7149 * varobj.h (varobj_ensure_python_env): Declare.
7151 2014-06-12 Yao Qi <yao@codesourcery.com>
7153 * varobj.c (struct varobj_item): New structure.
7154 (create_child_with_value): Update declaration.
7155 (varobj_add_child): Replace arguments 'name' and 'value' with
7156 'item'. All callers updated.
7157 (install_dynamic_child): Likewise.
7158 (update_dynamic_varobj_children): Likewise.
7159 (varobj_add_child): Likewise.
7160 (create_child_with_value): Likewise.
7162 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7164 * NEWS: Create a new section for the next release branch.
7165 Rename the section of the current branch, now that it has
7168 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7170 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7171 * version.in: Bump version to 7.8.50.DATE-cvs.
7173 2014-06-11 Pedro Alves <palves@redhat.com>
7176 * ser-mingw.c (net_windows_socket_check_pending): New function.
7177 (net_windows_select_thread): Ignore spurious wakeups. Use
7178 net_windows_socket_check_pending.
7179 (net_windows_wait_handle): Check for pending events with
7180 ioctlsocket, through net_windows_socket_check_pending, instead of
7181 checking the socket's event.
7183 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7185 * python/python-internal.h (gdb_PyObject_GetAttrString)
7186 (gdb_PyObject_HasAttrString): New inline function definitions.
7187 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7188 char * of the second argument to PyObject_GetAttrString.
7190 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7192 * serial.c (serial_write): Fix index of character to be printed
7193 in call to serial_logchar when serial debug traces are enabled.
7195 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7197 * gdbtypes (resolve_dynamic_range): Add function description.
7199 2014-06-09 Pedro Alves <palves@redhat.com>
7201 * linux-nat.c (linux_child_follow_fork): Initialize status with
7202 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7203 inner block. Only pass the signal to PTRACE_DETACH if in pass
7206 2014-06-09 Gary Benson <gbenson@redhat.com>
7208 * common/signals.c (gdb_signal_from_host): Reorder to separate
7209 the always-available ANSI-standard signals from the signals that
7211 (do_gdb_signal_to_host): Likewise.
7212 * proc-events.c (signal_table): Likewise.
7214 2014-06-08 Hui Zhu <hui@codesourcery.com>
7216 * common/linux-ptrace.c (linux_disable_event_reporting): New
7218 * common/linux-ptrace.h (linux_disable_event_reporting): New
7220 * linux-nat.c (linux_child_follow_fork): Do a single step before
7223 2014-06-07 Keith Seitz <keiths@redhat.com>
7227 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7228 from symbol_matches_domain in symtab.c. All local callers
7229 of symbol_matches_domain updated.
7230 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7231 search STRUCT_DOMAIN.
7232 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7233 independently. standard_lookup will do that automatically.
7234 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7235 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7236 (cp_lookup_symbol_in_namespace): Likewise.
7237 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7238 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7239 may return a STRUCT_DOMAIN match.
7240 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7241 * cp-support.c: Include language.h.
7242 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7244 * psymtab.c (match_partial_symbol): Compare the requested
7245 domain with the symbol's domain directly.
7246 (lookup_partial_symbol): Likewise.
7247 * symtab.c (lookup_symbol_in_language): Explain when/why
7248 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7249 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7250 appropriate languages.
7251 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7252 and moved to ada-lang.c
7253 (lookup_block_symbol): Explain that this function only returns
7254 symbol matching the requested DOMAIN.
7255 Compare the requested domain with the symbol's domain directly.
7256 (iterate_over_symbols): Compare the requested domain with the
7257 symbol's domain directly.
7258 * symtab.h (symbol_matches_domain): Remove.
7260 2014-06-06 Doug Evans <xdje42@gmail.com>
7262 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7263 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7264 (gdbscm_guile_version_is_at_least): Declare.
7265 (gdbscm_scm_string_to_int): Declare.
7266 * guile/guile.c (gdbscm_guile_major_version): New global.
7267 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7268 (guile_datadir): New static global.
7269 (gdbscm_guile_data_directory): New function.
7270 (initialize_scheme_side): Update.
7271 (misc_guile_functions): Add guile-data-directory.
7272 (initialize_gdb_module): Fetch guile version number.
7273 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7274 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7275 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7276 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7278 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7279 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7280 * guile/scm-value.c (gdbscm_value_to_string): Only call
7281 scm_port_conversion_strategy if Guile version >= 2.0.6.
7283 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7285 * main.c (print_gdb_help): Add -q and --silent.
7287 2014-06-06 Gary Benson <gbenson@redhat.com>
7289 * common/signals.c: Remove preprocessor conditionals for
7290 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7291 SIGSEGV and SIGTERM.
7292 * proc-events.c: Likewise.
7294 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7296 * symfile.c (symfile_free_objfile): Remove restriction to
7298 * symfile-mem.c (symbol_file_add_from_memory): Call
7299 add_target_sections_of_objfile.
7301 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7303 * guile/scm-value.c (gdbscm_history_append_x): Use
7304 'vlscm_get_value_smob_arg_unsafe' instead of
7305 'vlscm_scm_to_value'.
7307 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7310 * utils.c (printchar): Don't escape at all if quoter is NUL.
7311 Update function documentation to clarify effect of parameter
7313 * remote.c (escape_buffer): Pass '\\' as the quoter to
7314 fputstrn_unfiltered.
7315 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7316 generate the output.
7317 (mi_solib_unloaded): Same.
7319 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7321 * development.sh: Delete.
7322 * Makefile.in (config.status): Adjust dependency on development.sh.
7323 * configure.ac: Adjust development.sh source call.
7324 * configure: Regenerate.
7326 2014-06-04 Doug Evans <xdje42@gmail.com>
7328 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7329 is_scheme_bkpt, spec.
7330 (bpscm_make_breakpoint_smob): Initialize new members.
7331 (gdbscm_create_breakpoint_x): Split into two ...
7332 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7333 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7334 (scheme_function breakpoint_functions): Update.
7335 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7336 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7337 register-breakpoint!.
7339 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7342 * mem-break.c (z_type_supported): Return zero if
7343 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7345 2014-06-04 Tom Tromey <tromey@redhat.com>
7347 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7348 value_from_contents_and_address_unresolved.
7349 (ada_template_to_fixed_record_type_1): Likewise.
7350 (ada_which_variant_applies): Likewise.
7351 * value.h (value_from_contents_and_address_unresolved): Declare.
7352 * value.c (value_from_contents_and_address_unresolved): New
7354 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7355 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7356 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7358 2014-06-04 Tom Tromey <tromey@redhat.com>
7360 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7362 2014-06-04 Tom Tromey <tromey@redhat.com>
7364 * procfs.c (procfs_attach): Make "args" const.
7365 * windows-nat.c (windows_attach): Make "args" const.
7366 * nto-procfs.c (procfs_attach): Make "args" const.
7367 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7368 * go32-nat.c (go32_attach): Make "args" const.
7369 * gnu-nat.c (gnu_attach): Make "args" const.
7370 * darwin-nat.c (darwin_attach): Make "args" const.
7371 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7372 * linux-nat.c (linux_nat_attach): Make "args" const.
7373 * remote.c (extended_remote_attach_1, extended_remote_attach):
7375 * target.h (struct target_ops) <to_attach>: Make "args" const.
7376 (find_default_attach): Likewise.
7377 * utils.c (parse_pid_to_attach): Make "args" const.
7378 * utils.h (parse_pid_to_attach): Update.
7380 2014-06-04 Tom Tromey <tromey@redhat.com>
7382 * target-delegates.c: Rebuild.
7383 * target.c (default_thread_address_space): New function.
7384 (target_thread_address_space): Simplify.
7385 * target.h (struct target_ops) <to_thread_address_space>: Add
7386 TARGET_DEFAULT_FUNC.
7388 2014-06-04 Doug Evans <xdje42@gmail.com>
7390 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7392 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7394 * record-btrace.c: Include event-loop.h and inf-loop.h.
7395 (record_btrace_resume_exec_dir)
7396 (record_btrace_async_inferior_event_handler)
7397 (record_btrace_handle_async_inferior_event): New.
7398 (record_btrace_open): Create async event handler.
7399 (record_btrace_close): Delete async event handler.
7400 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7401 Mark async event handler.
7402 (record_btrace_execution_direction): New.
7403 (init_record_btrace_ops): Initialize to_execution_direction.
7405 2014-06-03 Doug Evans <xdje42@gmail.com>
7407 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7408 (gdbscm_make_parameter): Ditto.
7410 2014-06-03 Doug Evans <dje@google.com>
7412 * exec.c (exec_close_1): Call clear_section_table instead of
7413 resize_section_table.
7414 (clear_section_table): New function.
7415 (resize_section_table): Make static. Rename arg num_added to
7417 * exec.h (clear_section_table): Declare.
7418 (resize_section_table): Delete.
7419 * progspace.c (release_program_space): Call clear_section_table
7420 instead of resize_section_table.
7422 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7424 * NEWS (Python Scripting): Add entry about the new xmethods
7427 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7429 * python/py-xmethods.c: New file.
7430 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7431 (objfpy_dealloc): XDECREF on the new xmethods field.
7432 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7434 (objfpy_get_xmethods): New function.
7435 (objfile_getset): New entry 'xmethods'.
7436 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7437 (pspy_dealloc): XDECREF on the new xmethods field.
7438 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7440 (pspy_get_xmethods): New function.
7441 (pspace_getset): New entry 'xmethods'.
7442 * python/python-internal.h: Add declarations for new functions.
7443 * python/python.c (_initialize_python): Invoke
7444 gdbpy_initialize_xmethods.
7445 * python/lib/gdb/__init__.py (xmethods): New
7447 * python/lib/gdb/xmethod.py: New file.
7448 * python/lib/gdb/command/xmethods.py: New file.
7450 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7452 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7453 best match method returned by find_overload_match is an xmethod.
7454 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7455 the best matching operator returned by find_overload_match is an
7457 * valops.c: #include "extension.h".
7458 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7459 Return void. The list of matching source methods is returned in
7460 "fn_list" and a vector of matching debug method workers is
7461 returned in "xm_worker_vec". Update all callers.
7462 (value_find_oload_method_list): Likewise.
7463 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7464 non-NULL, then the index of the best matching method in this
7465 vector is returned. Update all callers.
7466 (find_overload_match): Include xmethods while performing overload
7469 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7471 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7472 * extension-priv.h (struct extension_language_ops): Add the
7474 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7475 get_matching_xmethod_workers, get_xmethod_argtypes,
7476 invoke_xmethod, free_xmethod_worker,
7477 free_xmethod_worker_vec): New functions.
7478 * extension.h: #include "common/vec.h".
7479 New function declarations.
7480 (struct xmethod_worker): New struct.
7481 (VEC (xmethod_worker_ptr)): New vector type.
7482 (xmethod_worker_ptr): New typedef.
7483 (xmethod_worker_vec): Likewise.
7484 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7486 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7487 (struct builtin_type): New field "xmethod".
7488 * valarith.c (value_ptradd): Assert that the value argument is not
7490 * valops.c (value_must_coerce_to_target): Return 0 for
7491 lval_xcallable values.
7492 * value.c (struct value): New field XM_WORKER in the field
7494 (value_address, value_raw_address): Return 0 for lval_xcallable
7496 (set_value_address): Assert that the value is not an
7498 (value_free): Free the associated xmethod worker when freeing
7499 lval_xcallable values.
7500 (set_value_component_location): Assert that the WHOLE value is not
7502 (value_of_xmethod, call_xmethod): New functions.
7503 * value.h: Declare "struct xmethod_worker".
7504 Declare new functions value_of_xmethod, call_xmethod.
7506 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7507 Pedro Alves <palves@redhat.com>
7509 PR breakpoints/17000
7510 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7511 New function, extracted from software_breakpoint_inserted_here_p.
7512 (software_breakpoint_inserted_here_p): Replace factored out code
7513 by call to find_non_raw_software_breakpoint_inserted_here.
7514 (bp_target_info_copy_insertion_state): New function.
7515 (bkpt_insert_location): Handle the case of a single-step
7516 breakpoint already inserted at the same address.
7517 (bkpt_remove_location): Handle the case of a single-step
7518 breakpoint still inserted at the same address.
7519 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7520 breakpoint already inserted at the same address.
7521 (deprecated_remove_raw_breakpoint): Handle the case of a
7522 non-raw breakpoint still inserted at the same address.
7523 (find_single_step_breakpoint): New function, extracted from
7524 single_step_breakpoint_inserted_here_p.
7525 (find_single_step_breakpoint): New function,
7526 factored out from single_step_breakpoint_inserted_here_p.
7527 (single_step_breakpoint_inserted_here_p): Reimplement.
7529 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7531 Pushed by Joel Brobecker <brobecker@adacore.com>
7532 * source.c (show_substitute_path_command): Fix display of matching
7535 2014-06-03 Gary Benson <gbenson@redhat.com>
7537 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7539 2014-06-02 Doug Evans <xdje42@gmail.com>
7541 Add parameter support for Guile.
7542 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7543 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7544 (scm-param.o): New rule.
7545 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7546 (gdbscm_misc_error): Declare.
7547 (gdbscm_canonicalize_command_name): Declare.
7548 (gdbscm_scm_to_host_string): Declare.
7549 (gdbscm_scm_from_host_string): Declare.
7550 (gdbscm_initialize_parameters): Declare.
7551 * guile/guile.c (initialize_gdb_module): Call
7552 gdbscm_initialize_parameters.
7553 * guile/lib/gdb.scm: Export parameter symbols.
7554 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7555 cmdscm_canonicalize_name and made public. All callers updated.
7556 * guile/scm-exception.c (gdbscm_misc_error): New function.
7557 * guile/scm-param.c: New file.
7558 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7559 (gdbscm_scm_to_host_string): New function.
7560 (gdbscm_scm_from_host_string): New function.
7561 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7563 2014-06-02 Doug Evans <xdje42@gmail.com>
7565 Add command support for Guile.
7566 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7567 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7568 (scm-cmd.o): New rule.
7569 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7570 (gdbscm_user_error_p): Declare.
7571 (gdbscm_parse_command_name): Declare.
7572 (gdbscm_valid_command_class_p): Declare.
7573 (gdbscm_initialize_commands): Declare.
7574 * guile/guile.c (initialize_gdb_module): Call
7575 gdbscm_initialize_commands.
7576 * guile/lib/gdb.scm: Export command symbols.
7577 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7578 (throw-user-error): New function.
7579 * guile/scm-cmd.c: New file.
7580 * guile/scm-exception.c (user_error_symbol): New static global.
7581 (gdbscm_user_error_p): New function.
7582 (gdbscm_initialize_exceptions): Set user_error_symbol.
7583 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7585 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7587 * top.c (command_loop): Handle comments here...
7588 (command_line_input): ... not here.
7590 2014-06-02 Doug Evans <xdje42@gmail.com>
7592 Add progspace support for Guile.
7593 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7594 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7595 (scm-progspace.o): New rule.
7596 * guile/guile-internal.h (pspace_smob): New typedef.
7597 (psscm_pspace_smob_pretty_printers): Declare.
7598 (psscm_pspace_smob_from_pspace): Declare.
7599 (psscm_scm_from_pspace): Declare.
7600 * guile/guile.c (initialize_gdb_module): Call
7601 gdbscm_initialize_pspaces.
7602 * guile/lib/gdb.scm: Export progspace symbols.
7603 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7605 (append-pretty-printer!): Ditto.
7606 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7608 * guile/scm-progspace.c: New file.
7610 2014-06-03 Alan Modra <amodra@gmail.com>
7612 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7613 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7615 2014-06-02 Doug Evans <dje@google.com>
7617 Add support for skeletonless type units.
7618 * dwarf2read.c (struct dwarf2_per_objfile): New member
7619 n_allocated_type_units.
7620 (struct dwarf2_per_objfile) <tu_stats>: New member
7621 nr_all_type_units_reallocs.
7622 (create_signatured_type_table_from_index): Initialize
7623 n_allocated_type_units
7624 (create_all_type_units): Ditto.
7625 (add_type_unit): Move up in file. New arg slot.
7626 All callers updated. Increase space for all_type_units more
7628 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7629 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7630 (lookup_dwp_signatured_type): Ditto.
7631 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7632 All callers updated.
7633 (build_type_psymtabs_1): Leave type_unit_groups as
7634 NULL if no TUs present.
7635 (print_tu_stats): New function.
7636 (process_skeletonless_type_unit): New function.
7637 (process_dwo_file_for_skeletonless_type_units): New
7639 (process_skeletonless_type_units): New function.
7640 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7641 Call print tu_stats if debugging enabled.
7643 2014-06-02 Pedro Alves <palves@redhat.com>
7645 * breakpoint.c (build_target_command_list): Don't build a command
7646 list if we have any duplicate location that isn't a dprintf.
7648 2014-06-02 Pedro Alves <palves@redhat.com>
7650 * breakpoint.c (dprintf_breakpoint_hit): New function.
7651 (initialize_breakpoint_ops): Install it as dprintf's
7652 breakpoint_hit method.
7654 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7656 * source.c (substitute_path_rule_matches): Simplify using
7657 filename_ncmp instead of FILENAME_CMP.
7659 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7661 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7663 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7665 * configure.ac: When Guile is available, check for the
7666 availability of 'scm_new_smob'.
7667 * configure, config.h.in: Regenerate.
7668 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7671 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7673 * frame.c (struct frame_info): Add stop_string field.
7674 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7675 (get_prev_frame_always): Old content moved into
7676 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7677 TRY_CATCH, handle MEMORY_ERROR exceptions.
7678 (frame_stop_reason_string): New function definition.
7679 * frame.h (unwind_stop_reason_to_string): Extend comment to
7680 mention frame_stop_reason_string.
7681 (frame_stop_reason_string): New function declaration.
7682 * stack.c (frame_info): Switch to frame_stop_reason_string.
7683 (backtrace_command_1): Switch to frame_stop_reason_string.
7684 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7685 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7686 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7688 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7690 * frame.c (frame_stop_reason_string): Rename to ...
7691 (unwind_stop_reason_to_string): this.
7692 * frame.h (frame_stop_reason_string): Rename to ...
7693 (unwind_stop_reason_to_string): this.
7694 * stack.c (frame_info): Update call to frame_stop_reason_string.
7695 (backtrace_command_1): Likewise.
7696 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7697 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7699 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7701 * frame.c (remove_prev_frame): New function.
7702 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7705 2014-05-29 Pedro Alves <palves@redhat.com>
7707 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7708 and make it const. When a single-step decays to a continue,
7709 clear 'step', not 'hw_step'. Pass whether the caller wanted
7710 to step to user_visible_resume_ptid, not what we ask the
7713 2014-05-29 Pedro Alves <palves@redhat.com>
7715 * infrun.c (process_event_stop_test, handle_step_into_function)
7716 (handle_step_into_function_backward): Adjust.
7717 Don't set the even thread's stop_step and call stop_waiting before
7718 calling end_stepping_range. Instead do that ...
7719 (end_stepping_range): ... here. Take an ecs pointer parameter.
7721 2014-05-29 Pedro Alves <palves@redhat.com>
7723 * infrun.c (stop_stepping): Rename to ...
7724 (stop_waiting): ... this.
7725 (proceed): Update comment.
7726 (process_event_stop_test, handle_inferior_event)
7727 (handle_signal_stop, handle_step_into_function)
7728 (handle_step_into_function_backward): Update.
7730 2014-05-29 Pedro Alves <palves@redhat.com>
7732 * infcall.c (run_inferior_call): Don't check whether the current
7733 thread is running after the proceed call.
7735 2014-05-29 Pedro Alves <palves@redhat.com>
7736 Tom Tromey <tromey@redhat.com>
7738 * NEWS: Mention "maint set target-async", "set mi-async", and that
7739 background execution commands are now always available.
7740 * target.h (target_async_permitted): Update comment.
7741 * target.c (target_async_permitted, target_async_permitted_1):
7743 (set_target_async_command): Rename to ...
7744 (maint_set_target_async_command): ... this.
7745 (show_target_async_command): Rename to ...
7746 (maint_show_target_async_command): ... this.
7747 (_initialize_target): Adjust.
7748 * infcmd.c (prepare_execution_command): Make extern.
7749 * inferior.h (prepare_execution_command): Declare.
7750 * infrun.c (set_observer_mode): Leave target async alone.
7751 * mi/mi-interp.c (mi_interpreter_init): Install
7752 mi_on_sync_execution_done as sync_execution_done observer.
7753 (mi_on_sync_execution_done): New function.
7754 (mi_execute_command_input_handler): Don't print the prompt if we
7755 just started a synchronous command with an async target.
7756 (mi_on_resume): Check sync_execution before printing prompt.
7757 * mi/mi-main.h (mi_async_p): Declare.
7758 * mi/mi-main.c: Include gdbcmd.h.
7759 (mi_async_p): New function.
7760 (mi_async, mi_async_1): New globals.
7761 (set_mi_async_command, show_mi_async_command, mi_async): New
7763 (exec_continue): Call prepare_execution_command.
7764 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7765 (mi_execute_async_cli_command): Use mi_async_p.
7766 (_initialize_mi_main): Install "set mi-async". Make
7767 "target-async" a deprecated alias.
7769 2014-05-29 Pedro Alves <palves@redhat.com>
7771 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7772 (_initialize_cli_interp): Adjust.
7773 * event-loop.c: Include "observer.h".
7774 (start_event_loop): Notify 'command_error' observers instead of
7775 calling display_gdb_prompt. Remove FIXME comment.
7776 * event-top.c (display_gdb_prompt): Remove call into the
7778 * inf-loop.c: Include "observer.h".
7779 (inferior_event_handler): Notify 'command_error' observers instead
7780 of calling display_gdb_prompt.
7781 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7782 observers instead of calling display_gdb_prompt.
7783 * interps.c (interp_set): Don't call display_gdb_prompt.
7784 (current_interp_display_prompt_p): Delete.
7785 * interps.h (interp_prompt_p): Delete declaration.
7786 (interp_prompt_p_ftype): Delete.
7787 (struct interp_procs) <prompt_proc_p>: Delete field.
7788 (current_interp_display_prompt_p): Delete declaration.
7789 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7790 (_initialize_mi_interp): Adjust.
7791 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7792 'command_error' observers.
7793 (tui_on_sync_execution_done, tui_on_command_error): New
7795 (tui_display_prompt_p): Delete.
7796 (_initialize_tui_interp): Adjust.
7798 2014-05-29 Pedro Alves <palves@redhat.com>
7801 * cli/cli-interp.c: Include infrun.h and observer.h.
7802 (cli_uiout, cli_interp): New globals.
7803 (cli_on_signal_received, cli_on_end_stepping_range)
7804 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7806 (cli_interpreter_init): Install them as 'end_stepping_range',
7807 'signal_received' 'signal_exited', 'exited' and 'no_history'
7809 (_initialize_cli_interp): Remove cli_interp local.
7810 * infrun.c (handle_inferior_event): Call the several stop reason
7811 observers instead of printing the stop reason directly.
7812 (end_stepping_range): New function.
7813 (print_end_stepping_range_reason, print_signal_exited_reason)
7814 (print_exited_reason, print_signal_received_reason)
7815 (print_no_history_reason): Make static, and add an uiout
7816 parameter. Print to that instead of to CURRENT_UIOUT.
7817 * infrun.h (print_end_stepping_range_reason)
7818 (print_signal_exited_reason, print_exited_reason)
7819 (print_signal_received_reason print_no_history_reason): New
7821 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7823 <cli_uiout>: New field.
7824 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7825 uiout for CLI output. Install 'signal_received',
7826 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7828 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7829 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7830 (mi_on_no_history): New functions.
7831 (ui_out_free_cleanup): Delete function.
7832 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7833 instead use the one already stored in the MI interpreter data.
7834 (mi_ui_out): Adjust.
7835 * tui/tui-interp.c: Include infrun.h and observer.h.
7836 (tui_interp): New global.
7837 (tui_on_signal_received, tui_on_end_stepping_range)
7838 (tui_on_signal_exited, tui_on_exited)
7839 (tui_on_no_history): New functions.
7840 (tui_init): Install them as 'end_stepping_range',
7841 'signal_received' 'signal_exited', 'exited' and 'no_history'
7843 (_initialize_tui_interp): Delete tui_interp local.
7845 2014-05-29 Pedro Alves <palves@redhat.com>
7848 * linux-nat.c (linux_nat_resume_callback): Rename the second
7849 parameter to 'except'. Skip LP if it points to EXCEPT.
7850 (linux_nat_resume): Don't mark the event lwp as not stopped
7851 before resuming sibling lwps. Instead ask
7852 linux_nat_resume_callback to skip the event lwp. Mark it as not
7853 stopped after actually resuming it.
7854 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7856 (wait_lwp): Mark the lwp as stopped here.
7857 (stop_wait_callback): Mark the lwp as not stopped right after
7858 resuming it. Don't mark lwps as stopped here.
7859 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7860 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7862 2014-05-29 Pedro Alves <palves@redhat.com>
7865 * infrun.c (resume): Determine how much to resume depending on
7866 whether the caller wanted a step, not whether we can hardware step
7867 the target. Mark all threads that we intend to run as running,
7868 unless we're calling an inferior function.
7869 (normal_stop): If the thread is running an infcall, don't finish
7871 * target.c (target_resume): Don't mark threads as running here.
7873 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7875 * serial.c (_initialize_serial): Remove support for
7876 the "set remotebaud" and "show remotebaud" commands.
7877 * NEWS: Add entry documenting the removal of that command.
7879 2014-05-28 Yao Qi <yao@codesourcery.com>
7881 * charset.c: Fix typo in comments.
7883 2014-05-27 Gary Benson <gbenson@redhat.com>
7885 * utils.c (internal_vproblem): Prompt for a bug report.
7887 2014-05-26 Andy Wingo <wingo@igalia.com>
7889 * guile/scm-arch.c (arscm_mark_arch_smob):
7890 * guile/scm-block.c (bkscm_mark_block_smob)
7891 (bkscm_mark_block_syms_progress_smob):
7892 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7893 * guile/scm-exception.c (exscm_mark_exception_smob):
7894 * guile/scm-frame.c (frscm_mark_frame_smob):
7895 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7896 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7897 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7898 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7899 (ppscm_mark_pretty_printer_worker_smob):
7900 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7901 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7902 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7903 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7905 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7908 2014-05-26 Andy Wingo <wingo@igalia.com>
7909 Doug Evans <xdje42@gmail.com>
7911 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7912 empty_base_class. All uses updated.
7913 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7914 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7916 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7917 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7918 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7919 (gdbscm_gsmob_has_property_p, add_property_name)
7920 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7921 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7922 (gdb-object-has-property?, gdb-object-properties): Remove.
7923 (gdb-object-kind): Renamed from gsmob-kind.
7925 2014-05-26 Andy Wingo <wingo@igalia.com>
7927 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7928 * configure: Regenerate.
7930 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7932 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7934 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7936 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7937 (replay_memory_access_read_only, replay_memory_access_read_write)
7938 (replay_memory_access_types, replay_memory_access)
7939 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7940 (cmd_set_record_btrace, cmd_show_record_btrace)
7941 (cmd_show_replay_memory_access): New.
7942 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7943 (record_btrace_remove_breakpoint): Replace
7944 record_btrace_allow_memory_access with replay_memory_access.
7945 (_initialize_record_btrace): Add commands.
7946 * NEWS: Announce it.
7948 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7950 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7952 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7954 * MAINTAINERS (Write After Approval): Move self back from
7957 2014-05-22 Pedro Alves <palves@redhat.com>
7959 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7960 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7961 (disable_randomization, enum exec_direction_kind)
7962 (execution_direction, stop_registers, start_remote)
7963 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7964 (wait_for_inferior, normal_stop, get_last_target_status)
7965 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7966 (insert_step_resume_breakpoint_at_sal)
7967 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7968 (set_step_info, print_stop_event, signal_stop_state)
7969 (signal_print_state, signal_pass_state, signal_stop_update)
7970 (signal_print_update, signal_pass_update)
7971 (update_signals_program_target, clear_exit_convenience_vars)
7972 (displaced_step_dump_bytes, update_observer_mode)
7973 (signal_catch_update, gdb_signal_from_command): Move
7975 * infrun.h: ... to this new file.
7976 * amd64-tdep.c: Include infrun.h.
7977 * annotate.c: Include infrun.h.
7978 * arch-utils.c: Include infrun.h.
7979 * arm-linux-tdep.c: Include infrun.h.
7980 * arm-tdep.c: Include infrun.h.
7981 * break-catch-sig.c: Include infrun.h.
7982 * breakpoint.c: Include infrun.h.
7983 * common/agent.c: Include infrun.h instead of inferior.h.
7984 * corelow.c: Include infrun.h.
7985 * event-top.c: Include infrun.h.
7986 * go32-nat.c: Include infrun.h.
7987 * i386-tdep.c: Include infrun.h.
7988 * inf-loop.c: Include infrun.h.
7989 * infcall.c: Include infrun.h.
7990 * infcmd.c: Include infrun.h.
7991 * infrun.c: Include infrun.h.
7992 * linux-fork.c: Include infrun.h.
7993 * linux-nat.c: Include infrun.h.
7994 * linux-thread-db.c: Include infrun.h.
7995 * monitor.c: Include infrun.h.
7996 * nto-tdep.c: Include infrun.h.
7997 * procfs.c: Include infrun.h.
7998 * record-btrace.c: Include infrun.h.
7999 * record-full.c: Include infrun.h.
8000 * remote-m32r-sdi.c: Include infrun.h.
8001 * remote-mips.c: Include infrun.h.
8002 * remote-notif.c: Include infrun.h.
8003 * remote-sim.c: Include infrun.h.
8004 * remote.c: Include infrun.h.
8005 * reverse.c: Include infrun.h.
8006 * rs6000-tdep.c: Include infrun.h.
8007 * s390-linux-tdep.c: Include infrun.h.
8008 * solib-irix.c: Include infrun.h.
8009 * solib-osf.c: Include infrun.h.
8010 * solib-svr4.c: Include infrun.h.
8011 * target.c: Include infrun.h.
8012 * top.c: Include infrun.h.
8013 * windows-nat.c: Include infrun.h.
8014 * mi/mi-interp.c: Include infrun.h.
8015 * mi/mi-main.c: Include infrun.h.
8016 * python/py-threadevent.c: Include infrun.h.
8018 2014-05-22 Pedro Alves <palves@redhat.com>
8020 * infrun.c (handle_inferior_event): Store the exit code for
8021 --return-child-result here, instead of ...
8022 (print_exited_reason): ... here.
8024 2014-05-21 Pedro Alves <palves@redhat.com>
8027 * gdbthread.h (struct thread_control_state): New field
8029 * infrun.c (follow_fork): Copy the new thread control field to the
8031 (clear_proceed_status_thread): Clear the new thread control field.
8032 (proceed): Set the new thread control field.
8033 * interps.h (command_interp): Declare.
8034 * interps.c (command_interpreter): New global.
8035 (command_interp): New function.
8036 (interp_exec): Set `command_interpreter' while here.
8037 * cli-out.c (cli_uiout_dtor): New function.
8038 (cli_ui_out_impl): Install it.
8039 * mi/mi-interp.c: Include cli-out.h.
8040 (mi_cmd_interpreter_exec): Add comment.
8041 (restore_current_uiout_cleanup): New function.
8042 (ui_out_free_cleanup): New function.
8043 (mi_on_normal_stop): If finishing an execution command started by
8044 a CLI command, or any kind of breakpoint-like event triggered,
8045 print the stop event to the output (CLI) stream.
8046 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8048 2014-05-21 Pedro Alves <palves@redhat.com>
8050 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8051 current source line having changed.
8052 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8053 * infrun.c (normal_stop): Adjust call to
8054 set_current_sal_from_frame.
8055 * source.c (clear_lines_listed_range): New function.
8056 (set_current_source_symtab_and_line, identify_source_line): Clear
8057 the lines listed range.
8058 (line_info): Handle the first "info line" after the current source
8059 line having changed.
8060 * stack.c (print_stack_frame): Remove center handling.
8061 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8064 2014-05-21 Pedro Alves <palves@redhat.com>
8066 * inf-child.c (inf_child_mourn_inferior): New function.
8067 * inf-child.h (inf_child_mourn_inferior): New declaration.
8068 * darwin-nat.c (darwin_mourn_inferior): Use
8069 inf_child_mourn_inferior.
8070 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8071 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8072 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8073 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8074 * windows-nat.c (windows_mourn_inferior): Likewise.
8076 2014-05-21 Doug Evans <xdje42@gmail.com>
8078 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8080 2014-05-21 Doug Evans <xdje42@gmail.com>
8082 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8083 (gdbscm_out_of_range_error): Ditto.
8084 (gdbscm_memory_error): Ditto.
8085 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8086 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8087 (gdbscm_out_of_range_error): Update.
8088 (gdbscm_memory_error): Update.
8089 (gdbscm_scm_to_target_string_unsafe): Delete.
8091 2014-05-21 Pedro Alves <palves@redhat.com>
8093 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8095 (inf_child_open_target): New function.
8096 (inf_child_open): Use inf_child_open_target to push the target
8097 instead of erroring out.
8098 (inf_child_disconnect, inf_child_close)
8099 (inf_child_maybe_unpush_target): New functions.
8100 (inf_child_target): Install inf_child_disconnect and
8101 inf_child_close. Store a pointer to the returned object.
8102 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8104 * target.c (auto_connect_native_target): New global.
8105 (show_default_run_target): New function.
8106 (find_default_run_target): Return NULL if automatically connecting
8107 to the native target is disabled.
8108 (_initialize_target): Install set/show auto-connect-native-target.
8109 * NEWS: Mention "set auto-connect-native-target", and "target
8111 * linux-nat.c (super_close): New global.
8112 (linux_nat_close): Call super_close.
8113 (linux_nat_add_target): Store a pointer to the base class's
8115 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8116 inf_child_maybe_unpush.
8117 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8119 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8120 the inferior. Use inf_child_maybe_unpush_target.
8121 (inf_ttrace_attach): Don't push the target if it is already
8123 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8124 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8125 after mourning the inferior. Use inf_child_maybe_unpush_target.
8126 (darwin_attach_pid): Don't push the target if it is already
8128 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8129 mourning the inferior. Use inf_child_maybe_unpush_target.
8130 (gnu_detach): Use inf_child_maybe_unpush_target.
8131 * go32-nat.c (go32_create_inferior): Don't push the target if it
8133 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8134 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8135 (procfs_open): Rename to ...
8136 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8137 comments. Can target_preopen before changing node. Call
8138 inf_child_open_target to push the target explicitly.
8139 (procfs_attach): Don't push the target if it is already pushed.
8140 (procfs_detach): Use inf_child_maybe_unpush_target.
8141 (procfs_create_inferior): Don't push the target if it is already
8143 (nto_native_ops): New global.
8144 (procfs_open): Reimplement.
8145 (procfs_native_open): New function.
8146 (init_procfs_targets): Install procfs_native_open as to_open of
8147 "target native". Store a pointer to the "native" target in
8149 * procfs.c (procfs_attach): Don't push the target if it is already
8151 (procfs_detach): Use inf_child_maybe_unpush_target.
8152 (procfs_mourn_inferior): Only unpush the target after mourning the
8153 inferior. Use inf_child_maybe_unpush_target.
8154 (procfs_init_inferior): Don't push the target if it is already
8156 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8157 if it is already pushed.
8159 2014-05-21 Pedro Alves <palves@redhat.com>
8161 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8162 and "procfs" targets are now called "native" instead.
8164 2014-05-21 Pedro Alves <palves@redhat.com>
8166 * go32-nat.c (go32_open): Delete.
8167 (go32_target): Don't override the to_open method.
8169 2014-05-21 Pedro Alves <palves@redhat.com>
8171 * nto-procfs.c (procfs_can_run): New function.
8172 (nto_procfs_ops): New global.
8173 (init_procfs_targets): New, based on procfs_target. Install
8174 "target native" in addition to "target procfs".
8175 (_initialize_procfs): Call init_procfs_targets instead of adding
8178 2014-05-21 Pedro Alves <palves@redhat.com>
8180 * windows-nat.c (windows_target): Don't override to_shortname,
8181 to_longname or to_doc.
8183 2014-05-21 Pedro Alves <palves@redhat.com>
8185 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8188 2014-05-21 Pedro Alves <palves@redhat.com>
8190 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8191 to_shortname, to_longname or to_doc.
8193 2014-05-21 Pedro Alves <palves@redhat.com>
8195 * go32-nat.c (go32_target): Don't override to_shortname,
8196 to_longname or to_doc.
8198 2014-05-21 Pedro Alves <palves@redhat.com>
8200 * inf-child.c (inf_child_open): Remove mention of "child".
8201 (inf_child_target): Rename target to "native" instead of "child".
8203 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8205 * Makefile.in (SFILES): Delete "regset.c".
8206 (COMMON_OBS): Delete "regset.o".
8208 * regset.h (regset_alloc): Delete prototype.
8210 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8212 * sparc-linux-tdep.c (sparc32_linux_gregset)
8213 (sparc32_linux_fpregset): New static regset structures.
8214 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8215 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8217 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8218 (sparc64_linux_fpregset): New static regset structures.
8219 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8220 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8221 New static regset structures.
8222 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8223 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8224 New static regset structures.
8225 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8226 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8227 New static regset structures.
8228 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8229 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8230 New static regset structures.
8231 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8233 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8235 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8236 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8237 register maps ("regmaps") from "*regset" to "*regmap". Do this
8238 for all regmap types and variables.
8239 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8240 (sparc32_linux_supply_core_gregset)
8241 (sparc32_linux_collect_core_gregset)
8242 (sparc32_linux_supply_core_fpregset)
8243 (sparc32_linux_collect_core_fpregset): Likewise.
8244 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8245 (sparc_gregmap, sparc_fpregmap): ... these.
8246 (sparc_supply_gregset, sparc_collect_gregset)
8247 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8248 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8249 (_initialize_sparc_nat): Rename regmaps.
8250 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8251 (sparc_gregmap, sparc_fpregmap): ... these.
8252 (sparc_supply_gregset, sparc_collect_gregset)
8253 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8254 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8256 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8257 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8259 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8261 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8262 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8263 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8265 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8266 (sparc32_bsd_fpregset): Rename to...
8267 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8268 (sparc32_bsd_fpregmap): ... these.
8269 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8270 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8271 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8272 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8273 (struct sparc_gregmap, struct sparc_fpregmap)
8274 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8275 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8276 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8277 (sparc32_supply_regset, sparc32_collect_gregset)
8278 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8280 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8281 (sparc64_linux_ptrace_gregmap): ... this.
8282 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8283 (_initialize_sparc64_linux_nat): Rename regmaps.
8284 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8285 (sparc64_linux_core_gregmap): ... this.
8286 (sparc64_linux_supply_core_gregset)
8287 (sparc64_linux_collect_core_gregset)
8288 (sparc64_linux_supply_core_fpregset)
8289 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8290 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8291 (sparc64_sol2_fpregset): Rename to...
8292 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8293 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8294 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8296 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8297 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8298 (sparc64_bsd_fpregset): Rename to...
8299 (struct sparc_gregmap, sparc64_sol2_gregmap)
8300 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8301 (sparc64_bsd_fpregmap): ... these.
8302 (sparc64_supply_gregset, sparc64_collect_gregset)
8303 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8305 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8306 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8307 (sparc64fbsd_gregmap): ... this.
8308 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8309 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8311 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8312 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8313 (sparc64nbsd_collect_fpregset): Likewise.
8314 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8315 (sparc64nbsd_gregmap): ... this.
8316 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8318 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8319 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8320 (sparc64obsd_gregmap): ... this.
8321 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8323 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8324 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8325 (sparc32nbsd_gregmap): ... this.
8326 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8329 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8331 * score-tdep.c (score7_linux_gregset): New static regset
8333 (score7_linux_regset_from_core_section): Remove dynamic regset
8335 (score_gdbarch_init): Drop allocation of tdep structure.
8336 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8338 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8340 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8342 (am33_regset_from_core_section): Remove dynamic regset
8345 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8347 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8348 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8350 (mips_linux_regset_from_core_section): Remove dynamic regset
8352 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8353 'gregset64', 'fpregset', and 'fpregset64'.
8354 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8355 deleted tdep fields.
8357 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8359 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8361 (amd64_regset_from_core_section): Remove dynamic regset
8363 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8365 (amd64obsd_regset_from_core_section): Remove dynamic regset
8367 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8369 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8370 x86-common regset supply function.
8371 * i386-tdep.c (i386_collect_gregset): Make static.
8372 (i386_gregset): New global regset structure.
8373 (i386_fpregset, i386_xstateregset): New static regset structures.
8374 (i386_regset_from_core_section): Remove dynamic regset
8376 (i386_gdbarch_init): Remove initialization of tdep fields
8377 'gregset', 'fpregset', and 'xstateregset'.
8378 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8379 'fpregset', and 'xstateregset'.
8380 (i386_collect_gregset): Remove prototype.
8381 (i386_gregset): New declaration.
8382 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8384 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8387 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8389 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8390 (arm_linux_vfpregset): New static regset structures.
8391 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8393 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8394 and 'vfpregset' fields.
8396 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8398 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8399 (aarch64_linux_fpregset): New static regset structures.
8400 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8401 of regset structures.
8402 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8405 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8407 * regset.h (struct regset): Remove gdbarch field.
8408 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8409 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8410 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8412 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8413 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8414 (ppc32_linux_vsxregset): Likewise.
8415 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8416 via the regcache instead of the regset.
8417 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8418 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8419 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8420 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8423 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8425 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8426 Constify structures.
8427 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8428 (alphanbsd_aout_gregset): Likewise.
8429 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8430 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8432 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8433 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8435 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8436 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8437 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8438 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8439 * m88k-tdep.c (m88k_gregset): Likewise.
8440 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8441 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8442 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8443 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8444 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8445 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8446 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8447 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8448 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8450 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8451 * sh-tdep.h (sh_corefile_gregset): Likewise.
8452 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8453 * vax-tdep.c (vax_gregset): Likewise.
8455 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8457 Fix TLS access for -static -pthread.
8458 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8459 (try_thread_db_load_1): Initialize it.
8460 (thread_db_get_thread_local_address): Call it if LM is zero.
8461 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8462 * target.h (struct target_ops) (to_get_thread_local_address): Add
8463 load_module_addr comment.
8465 2014-05-21 Pedro Alves <palves@redhat.com>
8467 * dcache.c (dcache_read_memory_partial): If reading the cache line
8468 fails, fallback to reading just the memory the caller wanted.
8470 2014-05-20 Doug Evans <dje@google.com>
8472 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8473 instead of get_current_arch.
8475 2014-05-20 Pedro Alves <palves@redhat.com>
8477 * NEWS: Mention that compare-sections now works with all targets.
8479 * remote.c (PACKET_qCRC): New enum value.
8480 (remote_verify_memory): Don't send qCRC if the target has no
8481 execution. Use packet_support/packet_ok. If the target doesn't
8482 support the qCRC packet, fallback to a deep memory copy.
8483 (compare_sections_command): Say "target image" instead of "remote
8485 (_initialize_remote): Add PACKET_qCRC to the list of config
8486 packets that have no associated command. Extend comment.
8487 * target.c (simple_verify_memory, default_verify_memory): New
8489 * target.h (struct target_ops) <to_verify_memory>: Default to
8490 default_verify_memory.
8491 (simple_verify_memory): New declaration.
8492 * target-delegates.c: Regenerate.
8494 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8496 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8498 2014-05-20 Hui Zhu <hui@codesourcery.com>
8499 Yao Qi <yao@codesourcery.com>
8502 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8503 and change address of sp and pc.
8505 2014-05-19 Tom Tromey <tromey@redhat.com>
8507 * gdbtypes.c (rank_function): Use XNEWVEC.
8508 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8510 2014-05-19 Doug Evans <dje@google.com>
8512 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8513 build_type_unit_groups and moved closer to only caller. Remove
8514 arguments. All references updated. Remove outdated .gdb_index
8516 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8517 build_type_psymtabs_1.
8519 2014-05-19 Doug Evans <dje@google.com>
8521 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8522 n_type_unit_groups, all_type_unit_groups. All uses removed.
8523 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8524 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8525 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8526 (add_type_unit_group_to_table): Delete.
8528 2014-05-19 Doug Evans <dje@google.com>
8530 * eval.c (evaluate_subexp_standard): Add some comments.
8532 2014-05-17 Doug Evans <xdje42@gmail.com>
8534 * progspace.c (remove_program_space): Delete, unused.
8535 * progspace.h (remove_program_space): Ditto.
8537 2014-05-17 Doug Evans <xdje42@gmail.com>
8539 * inferior.c (prune_inferiors): Fix comment.
8540 (remove_inferior_command): Call prune_program_spaces.
8542 2014-05-16 Doug Evans <dje@google.com>
8544 New command line option -D.
8546 * main.c (set_gdb_data_directory): New function.
8547 (captured_main): Recognize -D. Flag error for --data-directory "".
8548 Call set_gdb_data_directory.
8549 (print_gdb_help): Print --data-directory, -D.
8550 * main.h (set_gdb_data_directory): Declare.
8551 * top.c (staged_gdb_datadir): New static global.
8552 (set_gdb_datadir): Call set_gdb_data_directory
8553 (show_gdb_datadir): New function.
8554 (init_main): Update init of data-directory parameter.
8556 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8558 Import the "dirfd" gnulib module.
8559 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8560 * gnulib/aclocal.m4: Update.
8561 * gnulib/config.in: Update.
8562 * gnulib/configure: Update.
8563 * gnulib/import/Makefile.am: Update.
8564 * gnulib/import/Makefile.in: Update.
8565 * gnulib/import/dirfd.c: New.
8566 * gnulib/import/m4/dirfd.m4: New.
8567 * gnulib/import/m4/gnulib-cache.m4: Update.
8568 * gnulib/import/m4/gnulib-comp.m4: Update.
8570 2014-05-16 Pierre Muller <muller@sourceware.org>
8571 Yao Qi <yao@codesourcery.com>
8573 * valprint.c (print_wchar): Move the code on checking whether
8574 W is a printable wide char to the default branch of switch
8575 statement below. Call wchar_printable instead of gdb_iswprint.
8577 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8579 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8580 ldr.w and ldrd instructions.
8582 2014-05-15 Doug Evans <dje@google.com>
8584 * dwarf2read.c (read_structure_type): Delete outdated comments.
8586 2014-05-14 Tom Tromey <tromey@redhat.com>
8588 * macrocmd.c (print_macro_definition): Reindent.
8590 2014-05-13 Doug Evans <xdje42@gmail.com>
8592 * python/py-cmd.c (cmdpy_completer): Add comment.
8593 (completers): Make const.
8595 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8597 * infrun.c (resume): Remove should_resume (unused). Move up
8598 declaration of resume_ptid.
8600 2014-05-13 Tom Tromey <tromey@redhat.com>
8602 * language.h (unop_type_check): Remove.
8603 (binop_type_check): Don't declare.
8605 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8607 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8608 call to regcache_raw_collect.
8610 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8612 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8613 mi_console->quote as the quoting character.
8615 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8617 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8619 2014-04-29 Tom Tromey <tromey@redhat.com>
8621 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8622 "show debug varobj".
8624 2014-05-07 Kyle McMartin <kyle@redhat.com>
8626 Pushed by Joel Brobecker <brobecker@adacore.com>.
8627 * aarch64-tdep.c (aarch64_software_single_step): New function.
8628 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8629 with aarch64_software_single_step.
8631 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8635 2014-05-05 Keith Seitz <keiths@redhat.com>
8637 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8638 variable or history value is successfully parsed.
8640 2014-05-05 Yao Qi <yao@codesourcery.com>
8641 Pedro Alves <palves@redhat.com>
8643 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8644 address of blocks that intersects the requested range. Trim
8645 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8647 * ctf.c (ctf_xfer_partial): Likewise.
8649 2014-05-05 Yao Qi <yao@codesourcery.com>
8651 * printcmd.c (display_command): Remove the check to
8652 target_has_execution.
8654 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8656 * ppcobsd-nat.c: Include "obsd-nat.h".
8657 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8659 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8661 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8663 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8664 and 16-bit signed and unsigned arguments. Update comment.
8665 (stap_parse_probe_arguments): Extend code to handle such
8666 arguments. Use warning instead of complaint to notify about
8667 unrecognized bitness.
8669 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8671 PR breakpoints/16889
8672 * stap-probe.c (stap_parse_probe_arguments): Simplify
8673 check for non-prefixed probes (i.e., probes whose
8674 arguments do not start with "N@"). Always set the
8675 argument type to a sane value.
8677 2014-05-01 David Taylor <dtaylor@emc.com>
8679 * remote.c (compare_sections_command): Add -r option to compare
8680 all loadable read-only sections.
8682 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8684 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8685 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8687 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8688 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8689 Remove unused CORE_ADDR argument. Update all callers.
8691 2014-04-29 Pedro Alves <palves@redhat.com>
8693 * remote.c (struct packet_config) <detect>: Extend comment.
8694 (add_packet_config_cmd): Don't set the config's detect or support
8696 (init_all_packet_configs): Also initialize the config's 'detect'
8698 (reset_all_packet_configs_support): New function.
8699 (remote_open_1): Call reset_all_packet_configs_support instead of
8700 init_all_packet_configs.
8701 (_initialize_remote): Initialize all packet configs. Assert that
8702 all packets have an associated command, except a few known
8705 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8707 * dwarf2read.c (read_subrange_type): Handle dynamic
8708 DW_AT_lower_bound attributes.
8710 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8712 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8713 dynamic bounds before computing its upper bound.
8714 (ada_discrete_type_low_bound): Same as above with the lower bound.
8716 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8718 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8719 range types. Adjust the array handling implementation to
8720 take advantage of this change.
8721 (resolve_dynamic_range): New function, mostly extracted from
8722 resolve_dynamic_bounds.
8723 (resolve_dynamic_array): New function, mostly extracted from
8724 resolve_dynamic_bounds.
8725 (resolve_dynamic_bounds): Delete.
8726 (resolve_dynamic_type): Reimplement. Add handling of
8727 TYPE_CODE_RANGE types.
8729 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8731 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8732 handling of parallel ___XA types.
8734 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8736 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8737 unnecessary second call to static_unwrap_type.
8739 2014-04-27 Hui Zhu <hui@codesourcery.com>
8741 * stack.c (print_frame_info): Call do_gdb_disassembly with
8742 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8744 2014-04-26 Doug Evans <xdje42@gmail.com>
8746 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8748 2014-04-25 Pedro Alves <palves@redhat.com>
8751 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8752 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8753 and newline from built string.
8754 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8755 (linux_ptrace_attach_fail_reason): ... this.
8756 * linux-nat.c (linux_nat_attach): Adjust to use
8757 linux_ptrace_attach_fail_reason.
8759 2014-04-25 Pedro Alves <palves@redhat.com>
8761 * remote.c (struct remote_state): Remove multi_process_aware,
8762 non_stop_aware, cond_tracepoints, cond_breakpoints,
8763 breakpoint_commands, fast_tracepoints, static_tracepoints,
8764 install_in_trace, disconnected_tracing,
8765 enable_disable_tracepoints, string_tracing, and
8766 augmented_libraries_svr4_read fields.
8767 (remote_multi_process_p): Move further below in the file.
8768 (struct packet_config): Add comments.
8769 (update_packet_config): Delete function.
8770 (show_packet_config_cmd): Use packet_config_support.
8771 (add_packet_config_cmd): Use NULL as set callback.
8772 (packet_ok): "set remote foo-packet"-style commands no longer
8773 change config->supported -- adjust.
8774 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8775 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8776 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8777 (PACKET_QNonStop, PACKET_multiprocess_feature)
8778 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8779 (PACKET_DisconnectedTracing_feature)
8780 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8781 (set_remote_protocol_packet_cmd): Delete function.
8782 (packet_config_support, packet_support): New functions.
8783 (set_remote_protocol_Z_packet_cmd): Don't call
8784 update_packet_config.
8785 (remote_query_attached, remote_pass_signals)
8786 (remote_program_signals, remote_threads_info)
8787 (remote_threads_extra_info, remote_start_remote): Use
8789 (remote_start_remote): Use packet_config_support and
8791 (init_all_packet_configs): Set all packets to unknown support,
8792 instead of calling update_packet_config.
8793 (remote_check_symbols): Use packet_support.
8794 (remote_supported_packet): Unconditionally set the packet config's
8796 (remote_multi_process_feature, remote_non_stop_feature)
8797 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8798 (remote_breakpoint_commands_feature)
8799 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8800 (remote_install_in_trace_feature)
8801 (remote_disconnected_tracing_feature)
8802 (remote_enable_disable_tracepoint_feature)
8803 (remote_string_tracing_feature)
8804 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8805 (remote_protocol_features): Adjust to use remote_supported_packet
8806 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8807 "ConditionalTracepoints", "ConditionalBreakpoints",
8808 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8809 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8810 "EnableDisableTracepoints", and "tracenz".
8811 (remote_query_supported): Use packet_support.
8812 (remote_open_1): Adjust.
8813 (extended_remote_attach_1): Use packet_support. Switch on the
8814 result of packet_ok instead of checking whether the packet ended
8816 (remote_vcont_resume): Use packet_support.
8817 (remote_resume, remote_stop_ns, fetch_register_using_p)
8818 (remote_prepare_to_store, store_register_using_P)
8819 (check_binary_download, remote_write_bytes): Use packet_support.
8820 (remote_vkill): Use packet_support. Switch on the result of
8821 packet_ok instead of checking whether the packet ended up
8823 (extended_remote_supports_disable_randomization): Use
8825 (extended_remote_run): Switch on the result of packet_ok instead
8826 of checking whether the packet ended up disabled.
8827 (remote_insert_breakpoint, remote_remove_breakpoint)
8828 (remote_insert_watchpoint, remote_remove_watchpoint)
8829 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8831 (remote_search_memory): Use packet_config_support.
8832 (remote_get_thread_local_address, remote_get_tib_address)
8833 (remote_hostio_send_command, remote_can_execute_reverse): Use
8835 (remote_supports_cond_tracepoints)
8836 (remote_supports_cond_breakpoints)
8837 (remote_supports_fast_tracepoints)
8838 (remote_supports_static_tracepoints)
8839 (remote_supports_install_in_trace)
8840 (remote_supports_enable_disable_tracepoint)
8841 (remote_supports_string_tracing)
8842 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8843 the packet config says the feature is enabled or disabled.
8844 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8845 (remote_get_trace_status): Use packet_support.
8846 (remote_set_disconnected_tracing): Adjust to check whether the
8847 feature is enabled with packet_support.
8848 (remote_set_trace_buffer_size, remote_use_agent)
8849 (remote_can_use_agent, remote_supports_btrace): Use
8851 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8852 Use packet_config_support.
8853 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8854 the packet config says the feature is enabled or disabled.
8855 (set_range_stepping): Use packet_support.
8857 2014-04-25 Tom Tromey <tromey@redhat.com>
8859 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8862 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8864 * NEWS: Mention support for C99 variable length arrays.
8866 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8868 * ada-lang.c (standard_exc): Expand introductory comment.
8870 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8871 Walfred Tedeschi <walfred.tedeschi@intel.com>
8873 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8875 (amd64_linux_read_description): Add code to handle AVX512 xstate
8876 mask and return respective tdesc.
8877 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8878 and features/i386/x32-avx512-linux.c.
8879 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8880 (amd64_linux_core_read_description): Add code to handle AVX512
8881 xstate mask and return respective tdesc.
8882 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8883 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8885 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8886 (tdesc_amd64_avx512_linux): New prototype.
8887 (tdesc_x32_avx512_linux): Likewise.
8888 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8889 features/i386/x32-avx512.c.
8890 (amd64_ymm_avx512_names): New register names for pseudo
8892 (amd64_ymmh_avx512_names): New register names for raw registers
8894 (amd64_k_names): New register names for K registers.
8895 (amd64_zmmh_names): New register names for ZMM raw registers.
8896 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8897 (amd64_xmm_avx512_names): New register names for XMM16-31
8899 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8901 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8902 if feature is present.
8903 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8904 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8905 (AMD64_NUM_REGS): Adjust to new number of registers.
8906 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8907 registers supplied via XSTATE by AVX512 registers.
8908 (i386_linux_read_description): Add case for AVX512.
8909 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8910 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8911 (i386_linux_core_read_description): Add case for AVX512.
8912 (i386_linux_init_abi): Install supported register note section
8914 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8916 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8917 registers to be number of zmm7h + 1.
8918 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8919 * i386-tdep.c: Include features/i386/i386-avx512.c.
8920 (i386_zmm_names): Add ZMM pseudo register names array.
8921 (i386_zmmh_names): Add ZMM raw register names array.
8922 (i386_k_names): Add K raw register names array.
8923 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8924 registers. AVX512 has 16 more ZMM registers than there are YMM
8926 (i386_zmmh_regnum_p): Add function to look up register number of
8928 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8929 (i386_k_regnum_p): Likewise for K raw registers.
8930 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8931 registers added by AVX512.
8932 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8933 registers added by AVX512.
8934 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8936 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8937 (i386_pseudo_register_name): Add ZMM pseudo registers.
8938 (i386_zmm_type): Construct and return vector registers type for ZMM
8940 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8941 ZMM0-31 pseudo registers and K registers.
8942 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8943 and YMM16-31 registers from register cache.
8944 (i386_pseudo_register_write): Add code to write K, ZMM and
8946 (i386_register_reggroup_p): Add code to include/exclude AVX512
8947 registers in/from respective register groups.
8948 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8949 registers if feature is present in xcr0.
8950 (i386_gdbarch_init): Add code to initialize AVX512 feature
8951 variables in tdep structure, wire in pseudo registers and call
8952 initialize_tdesc_i386_avx512.
8953 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8955 (i386_regnum): Add AVX512 registers.
8956 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8957 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8958 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8959 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8961 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8962 (i386_ymm_avx512_regnum_p): Likewise.
8963 (i386_k_regnum_p): Likewise.
8964 (i386_zmm_regnum_p): Likewise.
8965 (i386_zmmh_regnum_p): Likewise.
8966 * i387-tdep.c : Update year in copyright notice.
8967 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8969 (XSAVE_YMM_AVX512_ADDR): New macro.
8970 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8972 (XSAVE_XMM_AVX512_ADDR): New macro.
8973 (xsave_avx512_k_offset): New table for K register offsets in
8975 (XSAVE_AVX512_K_ADDR): New macro.
8976 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8978 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8979 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8981 (i387_collect_xsave): Add code to collect AVX512 registers from
8983 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8984 of XMM16-31 registers.
8985 (I387_NUM_K_REGS): New define for number of K registers.
8986 (I387_K0_REGNUM): New define for K0 register number.
8987 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8988 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8989 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8991 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8992 (I387_XMM16_REGNUM): New define for XMM16 register number.
8993 (I387_YMM0_REGNUM): New define for YMM0 register number.
8994 (I387_KEND_REGNUM): New define for last K register number.
8995 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8996 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8998 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9000 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9002 * features/Makefile: Add AVX512 related files.
9003 * features/i386/32bit-avx512.xml: New file.
9004 * features/i386/64bit-avx512.xml: Likewise.
9005 * features/i386/amd64-avx512-linux.c: Likewise.
9006 * features/i386/amd64-avx512-linux.xml: Likewise.
9007 * features/i386/amd64-avx512.c: Likewise.
9008 * features/i386/amd64-avx512.xml: Likewise.
9009 * features/i386/i386-avx512-linux.c: Likewise.
9010 * features/i386/i386-avx512-linux.xml: Likewise.
9011 * features/i386/i386-avx512.c: Likewise.
9012 * features/i386/i386-avx512.xml: Likewise.
9013 * features/i386/x32-avx512-linux.c: Likewise.
9014 * features/i386/x32-avx512-linux.xml: Likewise.
9015 * features/i386/x32-avx512.c: Likewise.
9016 * features/i386/x32-avx512.xml: Likewise.
9017 * regformats/i386/amd64-avx512-linux.dat: New file.
9018 * regformats/i386/amd64-avx512.dat: Likewise.
9019 * regformats/i386/i386-avx512-linux.dat: Likewise.
9020 * regformats/i386/i386-avx512.dat: Likewise.
9021 * regformats/i386/x32-avx512-linux.dat: Likewise.
9022 * regformats/i386/x32-avx512.dat: Likewise.
9023 * NEWS: Add note about new support for AVX512.
9026 2014-04-23 Pedro Alves <palves@redhat.com>
9028 * breakpoint.c (insert_bp_location): Tolerate errors if the
9029 breakpoint is set in a user-loaded objfile.
9030 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9031 location is marked shlib_disabled. If the breakpoint is set in a
9032 user-loaded objfile is a GDB-side memory breakpoint, validate it
9033 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9034 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9036 * mem-break.c (memory_validate_breakpoint): New function.
9037 * objfiles.c (userloaded_objfile_contains_address_p): New
9039 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9040 * target.h (memory_validate_breakpoint): New declaration.
9042 2014-04-23 Pedro Alves <palves@redhat.com>
9044 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9045 the breakpoint is set in a shared library, only suppress
9046 errors for software breakpoints, not hardware breakpoints.
9048 2014-04-22 Pedro Alves <palves@redhat.com>
9050 * infrun.c (schedlock_applies): New function, factored out from
9051 find_thread_needs_step_over.
9052 (find_thread_needs_step_over): Use it.
9053 (switch_back_to_stepped_thread): Always clear trap_expected if the
9054 step over is finished. Return early if scheduler locking applies.
9055 Look for the stepping thread and a potential step-over thread with
9057 (currently_stepping_or_nexting_callback): Delete.
9059 2014-04-22 Nick Clifton <nickc@redhat.com>
9061 * NEWS: Mention that ARM sim now supports tracing.
9063 2014-04-22 Yao Qi <yao@codesourcery.com>
9065 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9067 * tracefile.c (tracefile_fetch_registers): ... it. New
9069 * tracefile.h (tracefile_fetch_registers): Declare.
9070 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9071 tracefile_fetch_registers.
9073 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9076 * windows-nat.c (thread_rec): Don't display a warning when
9077 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9078 fails for any reason, set th->suspended to -1, so that we don't
9079 try to resume such a thread. Also, don't return NULL in these
9080 cases, to avoid completely ruin the session due to "PC register is
9081 not available" error.
9082 (do_windows_fetch_inferior_registers): Check errors in
9083 GetThreadContext call.
9084 (windows_continue): Accept an additional argument KILLED; if not
9085 zero, ignore errors in the SetThreadContext call, since the
9086 inferior was killed and is shutting down.
9087 (windows_resume, get_windows_debug_event)
9088 (windows_create_inferior, windows_mourn_inferior)
9089 (windows_kill_inferior): All callers of windows_continue changed
9090 to adjust to its new calling sequence.
9092 2014-04-19 Yao Qi <yao@codesourcery.com>
9094 * ctf.c (ctf_open): Call post_create_inferior.
9096 2014-04-19 Yao Qi <yao@codesourcery.com>
9098 * ctf.c (handle_id): New static variable.
9099 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9100 value. Get the declaration of event "register" and get length
9101 of field "contents".
9103 2014-04-19 Yao Qi <yao@codesourcery.com>
9105 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9107 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9109 * valops.c (oload_method_static): Remove unnecessary argument
9110 METHOD. Update all callers.
9112 2014-04-18 Pedro alves <palves@redhat.com>
9113 Tom Tromey <tromey@redhat.com>
9116 * frame.c (get_prev_frame_1): Rename to ...
9117 (get_prev_frame_always): ... this, and make extern. Adjust.
9118 (skip_artificial_frames): Use get_prev_frame_always.
9119 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9120 (get_frame_unwind_stop_reason): Adjust to rename.
9121 * frame.h (get_prev_frame_always): Declare.
9122 * inline-frame.c: Include frame.h.
9123 (inline_frame_this_id): Use get_prev_frame_always.
9125 2014-04-18 Tristan Gingold <gingold@adacore.com>
9127 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9128 code by using bfd_mach_o_get_base_address.
9130 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9132 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9133 (spu_ax_pseudo_register_collect): New function.
9134 (spu_ax_pseudo_register_push_stack): Likewise.
9135 (spu_dwarf_reg_to_regnum): Likewise.
9136 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9138 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9140 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9141 Replace FRAME argument with FRAME_ID.
9142 * gdbarch.c, gdbarch.h: Regenerate.
9143 * findvar.c (default_value_from_register): Add GDBARCH argument;
9144 replace FRAME by FRAME_ID. No longer call get_frame_id.
9145 (value_from_register): Update call to gdbarch_value_from_register.
9146 * value.h (default_value_from_register): Update prototype.
9147 * s390-linux-tdep.c (s390_value_from_register): Update interface
9148 and call to default_value_from_register.
9149 * spu-tdep.c (spu_value_from_register): Likewise.
9151 * findvar.c (address_from_register): Remove TYPE argument.
9152 Do not call value_from_register; use gdbarch_value_from_register
9153 with null_frame_id instead.
9154 * value.h (address_from_register): Update prototype.
9155 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9156 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9157 address_from_register interface change.
9159 2014-04-17 Yao Qi <yao@codesourcery.com>
9161 * gdbtypes.h: Update comments to link to types and macros'
9164 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9166 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9168 2014-04-16 Keith Seitz <keiths@redhat.com>
9171 * dwarf2read.c (skip_one_die): Check that all relative-offset
9172 sibling DIEs fall within range of the current reader's buffer.
9173 (read_partial_die): Likewise.
9175 2014-04-16 Keith Seitz <keiths@redhat.com>
9178 * cp-namespace.c (lookup_symbol_file): If the type name of
9179 `this' is NULL, return immediately.
9181 2014-04-14 Keith Seitz <keiths@redhat.com>
9184 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9185 from symbol_matches_domain in symtab.c. All local callers
9186 of symbol_matches_domain updated.
9187 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9188 search STRUCT_DOMAIN.
9189 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9190 independently. standard_lookup will do that automatically.
9191 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9192 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9193 (cp_lookup_symbol_in_namespace): Likewise.
9194 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9195 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9196 may return a STRUCT_DOMAIN match.
9197 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9198 * cp-support.c: Include language.h.
9199 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9201 * psymtab.c (match_partial_symbol): Compare the requested
9202 domain with the symbol's domain directly.
9203 (lookup_partial_symbol): Likewise.
9204 * symtab.c (lookup_symbol_in_language): Explain when/why
9205 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9206 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9207 appropriate languages.
9208 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9209 and moved to ada-lang.c
9210 (lookup_block_symbol): Explain that this function only returns
9211 symbol matching the requested DOMAIN.
9212 Compare the requested domain with the symbol's domain directly.
9213 (iterate_over_symbols): Compare the requested domain with the
9214 symbol's domain directly.
9215 * symtab.h (symbol_matches_domain): Remove.
9217 2014-04-14 Tom Tromey <tromey@redhat.com>
9220 * c-exp.y (type_aggregate_p): New function.
9221 (qualified_name, classify_inner_name): Use it.
9222 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9223 and TYPE_TARGET_TYPE of an enum type.
9224 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9226 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9227 handle TYPE_DECLARED_CLASS.
9228 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9230 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9231 * valops.c (enum_constant_from_type): New function.
9232 (value_aggregate_elt): Use it.
9233 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9236 2014-04-14 Tom Tromey <tromey@redhat.com>
9238 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9239 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9241 * value.h (value_aggregate_elt): Update.
9243 2014-04-14 Tom Tromey <tromey@redhat.com>
9245 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9247 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9249 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9250 (evaluate_subexp_standard): Pass noside argument.
9251 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9252 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9253 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9254 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9255 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9257 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9259 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9260 points to a constant blob.
9262 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9264 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9265 property and store it as the high bound and flag the range accordingly.
9266 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9267 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9268 * gdbtypes.h (enum range_flags): New enum.
9269 (struct range_bounds): Add flags member.
9271 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9273 * c-typeprint.c (c_type_print_varspec_suffix): Added
9274 check for not yet resolved high bound. If unresolved, print
9275 "variable length" string to the console instead of random
9278 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9280 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9282 (ada_template_to_fixed_record_type_1): Likewise.
9283 (ada_to_fixed_type_1): Likewise.
9284 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9285 (cp_print_value): Likewise.
9286 * d-valprint.c (dynamic_array_type): Likewise.
9287 * findvar.c (address_of_variable): Likewise.
9288 * jv-valprint.c (java_value_print): Likewise.
9289 * valops.c (value_ind): Likewise.
9290 * value.c (coerce_ref): Likewise.
9292 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9294 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9295 value and retrieve the dynamic type size.
9297 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9299 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9300 passed to sizeof is dynamic evaluate the argument to compute the length.
9302 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9303 Joel Brobecker <brobecker@adacore.com>
9305 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9306 (dwarf2_evaluate_property): New function.
9307 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9308 * dwarf2read.c (attr_to_dynamic_prop): New function.
9309 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9311 * gdbtypes.c: Include dwarf2loc.h.
9312 (is_dynamic_type): New function.
9313 (resolve_dynamic_type): New function.
9314 (resolve_dynamic_bounds): New function.
9315 (get_type_length): New function.
9316 (check_typedef): Use get_type_length to compute type length.
9317 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9318 (TYPE_LOW_BOUND_KIND): New macro.
9319 (is_dynamic_type): New function prototype.
9320 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9321 to resolve dynamic properties of the type. Update comment.
9322 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9324 2014-04-14 Richard Henderson <rth@redhat.com>
9326 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9328 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9329 Doug Evans <xdje42@gmail.com>
9331 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9332 dereference TYPE_CODE_REF values.
9334 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9336 Revert the following changes due to regressions:
9338 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9339 (dwarf2_evaluate_property): New function.
9340 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9341 * dwarf2read.c (attr_to_dynamic_prop): New function.
9342 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9344 * gdbtypes.c: Include dwarf2loc.h.
9345 (is_dynamic_type): New function.
9346 (resolve_dynamic_type): New function.
9347 (resolve_dynamic_bounds): New function.
9348 (get_type_length): New function.
9349 (check_typedef): Use get_type_length to compute type length.
9350 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9351 (TYPE_LOW_BOUND_KIND): New macro.
9352 (is_dynamic_type): New function prototype.
9353 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9354 to resolve dynamic properties of the type. Update comment.
9355 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9357 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9358 passed to sizeof is dynamic evaluate the argument to compute the length.
9360 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9361 value and retrieve the dynamic type size.
9363 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9364 (ada_template_to_fixed_record_type_1): Likewise.
9365 (ada_to_fixed_type_1): Likewise.
9366 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9367 (cp_print_value): Likewise.
9368 * d-valprint.c (dynamic_array_type): Likewise.
9369 * eval.c (evaluate_subexp_with_coercion): Likewise.
9370 * findvar.c (address_of_variable): Likewise.
9371 * jv-valprint.c (java_value_print): Likewise.
9372 * valops.c (value_ind): Likewise.
9373 * value.c (coerce_ref): Likewise.
9375 * c-typeprint.c (c_type_print_varspec_suffix): Added
9376 check for not yet resolved high bound. If unresolved, print
9377 "variable length" string to the console instead of random
9380 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9381 property and store it as the high bound and flag the range accordingly.
9382 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9383 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9384 * gdbtypes.h (enum range_flags): New enum.
9385 (struct range_bounds): Add flags member.
9387 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9388 points to a constant blob.
9390 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9391 (evaluate_subexp_standard): Pass noside argument.
9392 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9393 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9394 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9395 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9396 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9398 2014-04-11 Keith Seitz <keiths@redhat.com>
9401 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9402 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9405 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9407 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9408 (evaluate_subexp_standard): Pass noside argument.
9409 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9410 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9411 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9412 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9413 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9415 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9417 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9418 points to a constant blob.
9420 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9422 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9423 property and store it as the high bound and flag the range accordingly.
9424 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9425 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9426 * gdbtypes.h (enum range_flags): New enum.
9427 (struct range_bounds): Add flags member.
9429 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9431 * c-typeprint.c (c_type_print_varspec_suffix): Added
9432 check for not yet resolved high bound. If unresolved, print
9433 "variable length" string to the console instead of random
9436 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9438 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9439 (ada_template_to_fixed_record_type_1): Likewise.
9440 (ada_to_fixed_type_1): Likewise.
9441 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9442 (cp_print_value): Likewise.
9443 * d-valprint.c (dynamic_array_type): Likewise.
9444 * eval.c (evaluate_subexp_with_coercion): Likewise.
9445 * findvar.c (address_of_variable): Likewise.
9446 * jv-valprint.c (java_value_print): Likewise.
9447 * valops.c (value_ind): Likewise.
9448 * value.c (coerce_ref): Likewise.
9450 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9452 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9453 value and retrieve the dynamic type size.
9455 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9457 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9458 passed to sizeof is dynamic evaluate the argument to compute the length.
9460 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9462 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9463 (dwarf2_evaluate_property): New function.
9464 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9465 * dwarf2read.c (attr_to_dynamic_prop): New function.
9466 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9468 * gdbtypes.c: Include dwarf2loc.h.
9469 (is_dynamic_type): New function.
9470 (resolve_dynamic_type): New function.
9471 (resolve_dynamic_bounds): New function.
9472 (get_type_length): New function.
9473 (check_typedef): Use get_type_length to compute type length.
9474 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9475 (TYPE_LOW_BOUND_KIND): New macro.
9476 (is_dynamic_type): New function prototype.
9477 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9478 to resolve dynamic properties of the type. Update comment.
9479 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9481 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9483 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9484 declaring high/low bounds and change uses accordingly. Call
9485 create_range_type instead of create_static_range_type.
9486 * gdbtypes.c (create_range_type): New function.
9487 (create_range_type): Convert bounds into struct bound_prop and pass
9488 them to create_range_type.
9489 * gdbtypes.h (struct bound_prop): New struct.
9490 (create_range_type): New function prototype.
9491 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9492 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9493 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9495 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9497 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9499 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9500 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9501 * ada-lang.c: All uses of create_range_type updated.
9502 * coffread.c: All uses of create_range_type updated.
9503 * dwarf2read.c: All uses of create_range_type updated.
9504 * f-exp.y: All uses of create_range_type updated.
9505 * m2-valprint.c: All uses of create_range_type updated.
9506 * mdebugread.c: All uses of create_range_type updated.
9507 * stabsread.c: All uses of create_range_type updated.
9508 * valops.c: All uses of create_range_type updated.
9509 * valprint.c: All uses of create_range_type updated.
9511 2014-04-10 Pedro Alves <palves@redhat.com>
9513 * breakpoint.c (single_step_breakpoints)
9514 (single_step_gdbarch): Move up in the file.
9515 (one_breakpoint_xfer_memory): New function, factored out from ...
9516 (breakpoint_xfer_memory): ... here. Also process single-step
9519 2014-04-09 Tristan Gingold <gingold@adacore.com>
9521 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9523 (darwin_decode_exception_message): Free port only after use.
9525 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9527 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9528 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9529 when setting the size of call_length.
9531 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9533 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9534 dereference TYPE_CODE_REF values.
9536 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9538 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9539 end of warning message.
9541 2014-04-03 Doug Evans <dje@google.com>
9543 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9544 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9546 2014-04-02 Alan Modra <amodra@gmail.com>
9548 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9549 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9550 (struct symbol_file_add_from_memory_args): Add size field.
9551 (find_vdso_size): New function.
9552 (add_vsyscall_page): Attempt to find vdso size.
9554 2014-04-01 Doug Evans <dje@google.com>
9556 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9558 2014-04-01 Tristan Gingold <gingold@adacore.com>
9560 * darwin-nat.c (darwin_encode_reply): Add prototype.
9561 (darwin_decode_exception_message): Reply to unknown inferiors.
9562 (darwin_decode_message): Handle message by id. Ignore message
9563 to unknown inferior.
9564 (darwin_wait): Discard unknown messages, add debug trace.
9566 2014-03-31 Doug Evans <dje@google.com>
9568 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9571 2014-03-31 Doug Evans <dje@google.com>
9573 New option "set print symbol-loading".
9575 * solib.c (solib_read_symbols): Only print symbol loading messages
9577 (solib_add): If symbol loading is in "brief" mode, notify user
9578 symbols are being loaded.
9579 (reload_shared_libraries_1): Ditto.
9580 * symfile.c (print_symbol_loading_off): New static global.
9581 (print_symbol_loading_brief): New static global.
9582 (print_symbol_loading_full): New static global.
9583 (print_symbol_loading_enums): New static global.
9584 (print_symbol_loading): New static global.
9585 (print_symbol_loading_p): New function.
9586 (symbol_file_add_with_addrs): Only print symbol loading messages
9588 (_initialize_symfile): Register "print symbol-loading" set/show
9590 * symfile.h (print_symbol_loading_p): Declare.
9592 2014-03-30 Doug Evans <xdje42@gmail.com>
9594 * infrun.c (set_last_target_status): New function.
9595 (handle_inferior_event): Call it.
9597 2014-03-30 Doug Evans <xdje42@gmail.com>
9599 * inferior.h (enum stop_kind): Improve comment.
9601 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9603 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9604 a reference, strip the reference layer before calling
9605 the lang_ops value_has_mutated callback.
9607 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9609 Remove some globals from our parser.
9610 * language.c (unk_lang_parser): Add "struct parser_state"
9612 * language.h (struct language_defn) <la_parser>: Likewise.
9613 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9614 (initialize_expout): Add "struct parser_state" argument.
9615 Rewrite function to use the parser state.
9616 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9617 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9618 write_exp_elt_longcst, write_exp_elt_dblcst,
9619 write_exp_elt_decfloatcst, write_exp_elt_type,
9620 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9621 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9622 write_dollar_variable): Likewise.
9623 (parse_exp_in_context_1): Use parser state.
9624 (insert_type_address_space): Add "struct parser_state" argument.
9626 (increase_expout_size): New function.
9627 * parser-defs.h: Forward declare "struct language_defn" and
9628 "struct parser_state".
9629 (expout, expout_size, expout_ptr): Remove extern declarations.
9630 (parse_gdbarch, parse_language): Rewrite macro declarations to
9631 accept the parser state.
9632 (struct parser_state): New struct.
9633 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9634 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9635 write_exp_elt_decfloatcst, write_exp_elt_type,
9636 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9637 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9638 write_exp_msymbol, write_dollar_variable,
9639 mark_struct_expression, insert_type_address_space): Add "struct
9640 parser_state" argument.
9641 (increase_expout_size): New function.
9642 * utils.c (do_clear_parser_state): New function.
9643 (make_cleanup_clear_parser_state): Likewise.
9644 * utils.h (make_cleanup_clear_parser_state): New function
9646 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9647 Update calls to write_exp* in order to pass the parser state.
9648 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9649 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9650 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9651 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9652 * stap-probe.c (stap_parse_register_operand): Likewise.
9653 (stap_parse_single_operand): Likewise.
9654 (stap_parse_argument_1): Likewise.
9655 (stap_parse_argument): Use parser state.
9656 * stap-probe.h: Include "parser-defs.h".
9657 (struct stap_parse_info) <pstate>: New field.
9658 * c-exp.y (parse_type): Rewrite to use parser state.
9659 (yyparse): Redefine to c_parse_internal.
9660 (pstate): New global variable.
9661 (parse_number): Add "struct parser_state" argument.
9662 (write_destructor_name): Likewise.
9663 (type_exp): Update calls to write_exp* and similars in order to
9665 (exp1, exp, variable, qualified_name, space_identifier,
9666 typename, typebase): Likewise.
9667 (write_destructor_name, parse_number, lex_one_token,
9668 classify_name, classify_inner_name, c_parse): Add "struct
9669 parser_state" argument. Update function to use parser state.
9670 * c-lang.h: Forward declare "struct parser_state".
9671 (c_parse): Add "struct parser_state" argument.
9672 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9673 (yyparse): Redefine macro to ada_parse_internal.
9674 (pstate): New variable.
9675 (write_int, write_object_renaming, write_var_or_type,
9676 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9677 type_int, type_long, type_long_long, type_float, type_double,
9678 type_long_double, type_char, type_boolean, type_system_address):
9679 Add "struct parser_state" argument.
9680 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9681 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9682 var_or_type, aggregate, aggregate_component_list,
9683 positional_list, others, component_group,
9684 component_associations): Update calls to write_exp* and similar
9685 functions in order to use parser state.
9686 (ada_parse, write_var_from_sym, write_int,
9687 write_exp_op_with_string, write_object_renaming,
9688 find_primitive_type, write_selectors, write_ambiguous_var,
9689 write_var_or_type, write_name_assoc, type_int, type_long,
9690 type_long_long, type_float, type_double, type_long_double,
9691 type_char, type_boolean, type_system_address): Add "struct
9692 parser_state" argument. Adjust function to use parser state.
9693 * ada-lang.c (parse): Likewise.
9694 * ada-lang.h: Forward declare "struct parser_state".
9695 (ada_parse): Add "struct parser_state" argument.
9696 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9697 calls to both functions.
9698 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9700 (yyparse): Redefine macro to f_parse_internal.
9701 (pstate): New variable.
9702 (parse_number): Add "struct parser_state" argument.
9703 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9704 and similars in order to use parser state.
9705 (parse_number): Adjust code to use parser state.
9707 (f_parse): New function.
9708 * f-lang.h: Forward declare "struct parser_state".
9709 (f_parse): Add "struct parser_state" argument.
9710 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9712 (yyparse): Redefine macro for java_parse_internal.
9713 (pstate): New variable.
9714 (push_expression_name, push_expression_name, insert_exp): Add
9715 "struct parser_state" argument.
9716 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9717 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9718 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9719 PostIncrementExpression, PostDecrementExpression,
9720 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9721 UnaryExpressionNotPlusMinus, CastExpression,
9722 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9723 RelationalExpression, EqualityExpression, AndExpression,
9724 ExclusiveOrExpression, InclusiveOrExpression,
9725 ConditionalAndExpression, ConditionalOrExpression,
9726 ConditionalExpression, Assignment, LeftHandSide): Update
9727 calls to write_exp* and similars in order to use parser state.
9728 (parse_number): Ajust code to use parser state.
9730 (java_parse): New function.
9731 (push_variable): Add "struct parser_state" argument. Adjust
9732 code to user parser state.
9733 (push_fieldnames, push_qualified_expression_name,
9734 push_expression_name, insert_exp): Likewise.
9735 * jv-lang.h: Forward declare "struct parser_state".
9736 (java_parse): Add "struct parser_state" argument.
9737 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9739 (yyparse): Redefine macro to m2_parse_internal.
9740 (pstate): New variable.
9741 (type_exp, exp, fblock, variable, type): Update calls to
9742 write_exp* and similars to use parser state.
9744 (m2_parse): New function.
9745 * m2-lang.h: Forward declare "struct parser_state".
9746 (m2_parse): Add "struct parser_state" argument.
9747 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9748 * objc-lang.h: Forward declare "struct parser_state".
9749 (end_msglist): Add "struct parser_state" argument.
9750 * p-exp.y (parse_type): Rewrite macro to use parser state.
9751 (yyparse): Redefine macro to pascal_parse_internal.
9752 (pstate): New variable.
9753 (parse_number): Add "struct parser_state" argument.
9754 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9755 write_exp* and similars in order to use parser state.
9756 (parse_number, yylex): Adjust code to use parser state.
9757 (pascal_parse): New function.
9758 * p-lang.h: Forward declare "struct parser_state".
9759 (pascal_parse): Add "struct parser_state" argument.
9760 * go-exp.y (parse_type): Rewrite macro to use parser state.
9761 (yyparse): Redefine macro to go_parse_internal.
9762 (pstate): New variable.
9763 (parse_number): Add "struct parser_state" argument.
9764 (type_exp, exp1, exp, variable, type): Update calls to
9765 write_exp* and similars in order to use parser state.
9766 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9767 to use parser state.
9768 (go_parse): Likewise.
9769 * go-lang.h: Forward declare "struct parser_state".
9770 (go_parse): Add "struct parser_state" argument.
9772 2014-03-27 Doug Evans <dje@google.com>
9774 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9776 2014-03-27 Doug Evans <dje@google.com>
9778 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9779 Remove argument abbrev_section. All callers updated.
9781 2014-03-27 Doug Evans <dje@google.com>
9783 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9784 addr_base, ranges_base.
9786 2014-03-26 Keith Seitz <keiths@redhat.com>
9788 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9789 types, not VAR_DOMAIN.
9791 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9793 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9795 * features/nios2-linux.c: Regenerated.
9796 * features/nios2.c: Regenerated.
9798 2014-03-25 Pedro Alves <palves@redhat.com>
9800 * cli/cli-script.c (script_from_file): Force the interpreter to
9803 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9805 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9806 small stack allocation.
9808 2014-03-24 Tristan Gingold <gingold@adacore.com>
9810 * darwin-nat.c (exc_server): Remove unused prototype.
9811 (darwin_dump_message): Correctly display data on x86_64.
9812 (darwin_encode_reply): Fix style.
9813 Add comments and fix indentation.
9815 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9817 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9819 2014-03-22 Doug Evans <xdje42@gmail.com>
9821 * infcmd.c: Whitespace fixes.
9822 (interrupt_command): Merge two function comments into one.
9824 2014-03-22 Doug Evans <xdje42@gmail.com>
9826 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9829 2014-03-22 Yao Qi <yao@codesourcery.com>
9831 * remote.c (target_read_live_memory): Remove.
9832 (memory_xfer_live_readonly_partial): Rename it to
9833 remote_xfer_live_readonly_partial. Remove argument 'object'.
9834 All callers updated. Call remote_read_bytes_1
9835 instead of target_read_live_memory.
9836 * tracepoint.c (set_traceframe_number): Remove.
9837 (make_cleanup_restore_traceframe_number): Likewise .
9838 * tracepoint.h (set_traceframe_number): Remove declaration.
9839 (make_cleanup_restore_traceframe_number): Likewise.
9841 2014-03-22 Yao Qi <yao@codesourcery.com>
9843 * remote.c (remote_read_bytes): Move code on reading from the
9845 (remote_read_bytes_1): ... here. New function.
9847 2014-03-22 Yao Qi <yao@codesourcery.com>
9849 * ctf.c (ctf_xfer_partial): Check the return value of
9850 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9851 return TARGET_XFER_UNAVAILABLE.
9852 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9853 * target.c (target_read_live_memory): Move it to remote.c.
9854 (memory_xfer_live_readonly_partial): Likewise.
9855 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9856 * remote.c (target_read_live_memory): Moved from target.c.
9857 (memory_xfer_live_readonly_partial): Likewise.
9858 (remote_read_bytes): Factored out from
9859 memory_xfer_partial_1.
9861 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9863 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9866 2014-03-21 Pedro Alves <palves@redhat.com>
9868 * infrun.c (normal_stop): Extend comment.
9870 2014-03-21 Hui Zhu <hui@codesourcery.com>
9871 Pedro Alves <palves@redhat.com>
9873 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9875 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9876 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9877 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9879 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9881 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9882 `z' formatted output modifier.
9884 2014-03-20 Tom Tromey <tromey@redhat.com>
9885 Sergio Durigan Junior <sergiodj@redhat.com>
9887 * probe.c (parse_probes): Turn assert into an ordinary error.
9888 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9889 exceptions when parsing probes. Rearrange the code for clarity.
9891 2014-03-20 Tom Tromey <tromey@redhat.com>
9894 * top.c (execute_command): Only dispatch events if the command
9897 2014-03-20 Tom Tromey <tromey@redhat.com>
9900 * infcall.c: Include event-top.h.
9901 (run_inferior_call): Call async_disable_stdin if needed.
9903 2014-03-20 Pedro Alves <palves@redhat.com>
9905 * infrun.c (prepare_to_proceed): Delete.
9906 (thread_still_needs_step_over): New function.
9907 (find_thread_needs_step_over): New function.
9908 (proceed): If the current thread needs a step-over, set its
9909 steping_over_breakpoint flag. Adjust to use
9910 find_thread_needs_step_over instead of prepare_to_proceed.
9911 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9912 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9914 (switch_back_to_stepped_thread): Step over breakpoints of all
9915 threads not the stepping thread, before switching back to the
9918 2014-03-20 Pedro Alves <palves@redhat.com>
9920 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9922 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9923 * infrun.c (saved_singlestep_ptid)
9924 (stepping_past_singlestep_breakpoint): Delete.
9925 (resume): Remove stepping_past_singlestep_breakpoint handling.
9926 (proceed): Store the prev_pc of the stepping thread too.
9927 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9929 (enum infwait_states): Delete infwait_thread_hop_state.
9930 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9932 (handle_inferior_event): Adjust.
9933 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9934 handling and the thread-hop code. Before removing single-step
9935 breakpoints, check whether the thread hit a single-step breakpoint
9936 of another thread. If it did, the trap is not a random signal.
9937 (switch_back_to_stepped_thread): If the event thread hit a
9938 single-step breakpoint, unblock it before switching to the
9939 stepping thread. Handle the case of the stepped thread having
9941 (keep_going): Handle the case of the current thread moving past a
9942 single-step breakpoint.
9944 2014-03-20 Pedro Alves <palves@redhat.com>
9947 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9948 are being stepped over.
9949 (breakpoint_address_match): Make extern.
9950 * breakpoint.h (breakpoint_address_match): New declaration.
9951 * inferior.h (stepping_past_instruction_at): New declaration.
9952 * infrun.c (struct step_over_info): New type.
9953 (step_over_info): New global.
9954 (set_step_over_info, clear_step_over_info)
9955 (stepping_past_instruction_at): New functions.
9956 (handle_inferior_event): Clear the step-over info when
9957 trap_expected is cleared.
9958 (resume): Remove now stale comment.
9959 (clear_proceed_status): Clear step-over info.
9960 (proceed): Adjust step-over handling to set or clear the step-over
9961 info instead of removing all breakpoints.
9962 (handle_signal_stop): When setting up a thread-hop, don't remove
9964 (stop_stepping): Clear step-over info.
9965 (keep_going): Adjust step-over handling to set or clear step-over
9966 info and then always inserting breakpoints, instead of removing
9967 all breakpoints when stepping over one.
9969 2014-03-20 Pedro Alves <palves@redhat.com>
9971 * infrun.c (previous_inferior_ptid): Adjust comment.
9972 (deferred_step_ptid): Delete.
9973 (infrun_thread_ptid_changed, prepare_to_proceed)
9974 (init_wait_for_inferior): Adjust.
9975 (handle_signal_stop): Delete deferred_step_ptid handling.
9977 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9980 * defs.h (sync_quit_force_run): New declaration.
9981 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9982 * event-top.c (async_sigterm_handler): New declaration.
9983 (async_sigterm_token): New variable.
9984 (async_init_signals): Create also async_sigterm_token.
9985 (async_sigterm_handler): New function.
9986 (sync_quit_force_run): New variable.
9987 (handle_sigterm): Replace quit_force call by other calls.
9988 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9990 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9992 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9993 offset into SPE pseudo registers.
9995 2014-03-18 Pedro Alves <palves@redhat.com>
9998 * inferior.h (print_stop_event): Declare.
9999 * infrun.c (print_stop_event): New, factored out from ...
10000 (normal_stop): ... this.
10001 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10002 of bpstat_print/print_stack_frame.
10004 2014-03-17 Tom Tromey <tromey@redhat.com>
10006 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10008 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10010 * ada-lang.c (decode_constrained_packed_array): Perform a
10011 minimal coercion for reference with coerce_ref instead of
10014 2014-03-17 Tristan Gingold <gingold@adacore.com>
10016 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10017 (darwin_solib_create_inferior_hook): Emit a warning if version
10020 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10022 * python/py-value.c (get_field_flag): Cast flag_name argument to
10023 PyObject_GetAttrString to support Python 2.4.
10025 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10027 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10028 (Global Maintainers): Remove Jan Kratochvil.
10030 2014-03-14 Pedro Alves <palves@redhat.com>
10032 * inferior.h (terminal_ours_for_output): Rename to ...
10033 (child_terminal_ours_for_output): ... this.
10034 (terminal_save_ours): Rename to ...
10035 (child_terminal_save_ours): ... this.
10036 (terminal_ours): Rename to ...
10037 (child_terminal_ours): ... this.
10038 (terminal_inferior): Rename to ...
10039 (child_terminal_inferior): ... this.
10040 (terminal_init_inferior): Rename to ...
10041 (child_terminal_init_inferior): ... this.
10042 (terminal_init_inferior_with_pgrp): Rename to ...
10043 (child_terminal_init_inferior_with_pgrp): ... this.
10044 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10045 (child_terminal_init_with_pgrp): ... this.
10046 (terminal_save_ours): Rename to ...
10047 (child_terminal_save_ours): ... this.
10048 (terminal_init_inferior): Rename to ...
10049 (child_terminal_init): ... this. Adjust.
10050 (terminal_inferior): Rename to ...
10051 (child_terminal_inferior): ... this.
10052 (terminal_ours_for_output): Rename to ...
10053 (child_terminal_ours_for_output): ... this. Adjust.
10054 (terminal_ours): Rename to ...
10055 (child_terminal_ours): ... this.
10056 (terminal_ours_1): Rename to ...
10057 (child_terminal_ours_1): ... this. Adjust.
10058 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10059 * windows-nat.c (do_initial_windows_stuff): Adjust.
10060 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10061 (gnu_terminal_init): ... this. Adjust.
10062 (gnu_target): Adjust.
10063 * inf-child.c (inf_child_target): Adjust.
10065 2014-03-13 Doug Evans <xdje42@gmail.com>
10068 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10071 2014-03-13 Doug Evans <xdje42@gmail.com>
10073 * value.c (record_latest_value): Call release_value_or_incref
10074 instead of release_value.
10076 2014-03-13 Pedro Alves <palves@redhat.com>
10078 * procfs.c (procfs_target): Don't override to_shortname,
10079 to_longname or to_doc.
10081 2014-03-13 Pedro Alves <palves@redhat.com>
10083 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10084 Unix in user visible strings.
10086 2014-03-12 Stan Shebs <stan@codesourcery.com>
10088 * gdbtypes.h: Annotate comments for Doxygen, add a page
10089 block comment with some general info.
10091 2014-03-12 Pedro Alves <palves@redhat.com>
10093 * infcmd.c (prepare_execution_command): New function, factored out
10094 from several execution commands.
10095 (run_command_1, continue_command, step_1, jump_command)
10096 (signal_command, until_command, advance_command, finish_command)
10097 (attach_command): Use prepare_execution_command.
10099 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10101 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10102 (MAX_BPTS): Define.
10103 (MAX_WPTS): Define.
10104 (struct arm_linux_thread_points): Removed.
10105 (struct arm_linux_process_info): New.
10106 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10107 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10108 (arm_linux_find_breakpoints_by_tid): Removed.
10109 (struct arch_lwp_info): New.
10110 (arm_linux_find_process_pid): New functions.
10111 (arm_linux_add_process): New functions.
10112 (arm_linux_process_info_get): New functions.
10113 (arm_linux_forget_process): New function.
10114 (arm_linux_get_debug_reg_state): New function.
10115 (struct update_registers_data): New.
10116 (update_registers_callback): New function.
10117 (arm_linux_insert_hw_breakpoint1): Updated.
10118 (arm_linux_remove_hw_breakpoint1): Updated.
10119 (arm_linux_insert_hw_breakpoint): Updated.
10120 (arm_linux_remove_hw_breakpoint): Updated.
10121 (arm_linux_insert_watchpoint): Updated.
10122 (arm_linux_remove_watchpoint): Updated.
10123 (arm_linux_new_thread): Updated.
10124 (arm_linux_prepare_to_resume): New function.
10125 (arm_linux_new_fork): New function.
10126 (_initialize_arm_linux_nat): Updated.
10128 2014-03-12 Pedro Alves <palves@redhat.com>
10130 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10132 2014-03-12 Tom Tromey <tromey@redhat.com>
10134 * inf-child.c (return_zero): New function.
10135 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10136 * aix-thread.c (aix_thread_inferior_created): New function.
10137 (aix_thread_attach): Remove.
10138 (init_aix_thread_ops): Don't set to_attach.
10139 (_initialize_aix_thread): Register inferior_created observer.
10140 * corelow.c (init_core_ops): Don't set to_attach or
10141 to_create_inferior.
10142 * exec.c (init_exec_ops): Don't set to_attach or
10143 to_create_inferior.
10144 * infcmd.c (run_command_1): Use find_run_target. Make direct
10146 (attach_command): Use find_attach_target. Make direct target
10148 * record-btrace.c (init_record_btrace_ops): Don't set
10149 to_create_inferior.
10150 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10152 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10153 set to_create_inferior.
10154 * target.c (complete_target_initialization): Add assertion.
10155 (target_create_inferior): Remove.
10156 (find_default_attach, find_default_create_inferior): Remove.
10157 (find_attach_target, find_run_target): New functions.
10158 (find_default_is_async_p, find_default_can_async_p)
10159 (target_supports_non_stop, target_attach): Remove.
10160 (init_dummy_target): Don't set to_create_inferior or
10161 to_supports_non_stop.
10162 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10163 TARGET_DEFAULT_FUNC.
10164 <to_create_inferior>: Add comment.
10165 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10166 TARGET_DEFAULT_RETURN.
10167 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10168 (find_attach_target, find_run_target): Declare.
10169 (target_create_inferior): Remove.
10170 (target_has_execution_1): Update comment.
10171 (target_supports_non_stop): Remove.
10172 * target-delegates.c: Rebuild.
10174 2014-03-12 Pedro Alves <palves@redhat.com>
10176 * inf-child.h: Update comment to not mention Unix.
10178 2014-03-12 Pedro Alves <palves@redhat.com>
10180 * inf-child.c: Update top comment to not mention Unix. Add
10181 generic comment describing how this target is meant to be used.
10182 (inf_child_post_attach, inf_child_post_startup_inferior)
10183 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10186 2014-03-12 Pedro Alves <palves@redhat.com>
10188 * nto-procfs.c: Include inf-child.h.
10189 (procfs_ops): Delete global.
10190 (procfs_can_run): Delete method.
10191 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10192 target pointer instead of referencing procfs_ops.
10193 (procfs_prepare_to_store): Delete.
10194 (init_procfs_ops): Delete function.
10195 (procfs_target): New function, based on init_procfs_ops, but
10196 inherit inf_child_target.
10197 (_initialize_procfs): Use procfs_target.
10199 2014-03-12 Pedro Alves <palves@redhat.com>
10201 * windows-nat.c: Include inf-child.h.
10202 (windows_ops): Delete global.
10203 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10205 (init_windows_ops): Delete function.
10206 (windows_target): New function, based on init_windows_ops, but
10207 inherit inf_child_target.
10208 (_initialize_windows_nat): Use windows_target. Install x86
10209 specific target methods here.
10211 2014-03-10 Doug Evans <xdje42@gmail.com>
10213 * guile/guile.c (call_initialize_gdb_module): New function.
10214 (initialize_guile): Replace call to scm_init_guile with call to
10217 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10219 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10220 in call to TYPE_CODE macro.
10222 2014-03-10 Jerome Guitton <guitton@adacore.com>
10224 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10225 Resolve tagged types to full view.
10227 2014-03-10 Hui Zhu <hui@codesourcery.com>
10229 * target.h (target_insert_breakpoint): Remove "hardware" from its
10232 2014-03-07 Doug Evans <dje@google.com>
10234 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10236 2014-03-07 Doug Evans <dje@google.com>
10238 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10239 Remove unused local comp_dir_attr. Assert exactly one of
10240 stub_comp_unit_die, stub_comp_dir is non-NULL.
10242 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10244 * target.h (complete_target_initialization, add_target):
10247 2014-03-07 Pedro Alves <palves@redhat.com>
10249 * go32-nat.c: Include inf-child.h.
10250 (go32_ops): Delete global.
10251 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10253 (go32_create_inferior): Push the passed in target pointer instead
10254 of referencing go32_ops.
10255 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10256 (go32_target): New function, based on init_go32_ops, but inherit
10258 (_initialize_go32_nat): Use go32_target. Move parts of
10259 init_go32_ops here.
10261 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10263 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10264 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10265 SYMBOL_VALUE_ADDRESS.
10266 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10268 2014-03-06 Yao Qi <yao@codesourcery.com>
10270 * breakpoint.c (get_tracepoint_by_number): Remove argument
10271 optional_p. All callers updated. Adjust comments. Update
10273 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10275 2014-03-06 Yao Qi <yao@codesourcery.com>
10277 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10278 early if get_number returns zero. Use 'p' instead of 'args'.
10280 2014-03-06 Yao Qi <yao@codesourcery.com>
10282 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10285 2014-03-06 Yao Qi <yao@codesourcery.com>
10287 PR breakpoints/16508
10288 * tracepoint.c (check_trace_running): New function.
10289 (trace_find_command): Move code to check_trace_running and
10290 call check_trace_running.
10291 (trace_find_pc_command): Likewise.
10292 (trace_find_tracepoint_command): Likewise.
10293 (trace_find_line_command): Likewise.
10294 (trace_find_range_command): Likewise.
10295 * tracepoint.h (check_trace_running): Likewise.
10296 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10298 2014-03-06 Yao Qi <yao@codesourcery.com>
10300 * target.h (struct target_ops) <to_traceframe_info>: Use
10301 TARGET_DEFAULT_NORETURN (tcomplain ()).
10302 * target-delegates.c: Regenerated.
10304 2014-03-05 Pedro Alves <palves@redhat.com>
10307 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10308 void. Update comment.
10309 (dcache_xfer_memory): Delete.
10310 (dcache_read_memory_partial): New, based on the read bits of
10311 dcache_xfer_memory.
10312 (dcache_update): Add status parameter. Use ULONGEST for len, and
10313 adjust. Discard cache lines if the reason for the update was
10315 * dcache.h (dcache_xfer_memory): Delete declaration.
10316 (dcache_read_memory_partial): New declaration.
10317 (dcache_update): Update prototype.
10318 * target.c (raw_memory_xfer_partial): Update the dcache here.
10319 (memory_xfer_partial_1): Don't handle dcache writes here.
10321 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10323 * remote-sim.c (gdbsim_load): Add const to prog.
10325 2014-03-03 Tom Tromey <tromey@redhat.com>
10327 * elfread.c (probe_key): Change to bfd_data.
10328 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10329 now per-BFD, not per-objfile.
10330 * stap-probe.c (stap_probe_destroy): Update comment.
10331 (handle_stap_probe): Allocate on the per-BFD obstack.
10333 2014-03-03 Tom Tromey <tromey@redhat.com>
10335 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10336 * breakpoint.c (create_longjmp_master_breakpoint): Use
10338 (add_location_to_breakpoint, bkpt_probe_insert_location)
10339 (bkpt_probe_remove_location): Update.
10340 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10341 * elfread.c (elf_symfile_relocate_probe): Remove.
10342 (elf_probe_fns): Update.
10343 (insert_exception_resume_breakpoint): Change type of "probe"
10344 parameter to bound_probe.
10345 (check_exception_resume): Update.
10346 * objfiles.c (objfile_relocate1): Don't relocate probes.
10347 * probe.c (bound_probe_s): New typedef.
10348 (parse_probes): Use get_probe_address. Set sal's objfile.
10349 (find_probe_by_pc): Return a bound_probe.
10350 (collect_probes): Return a VEC(bound_probe_s).
10351 (compare_probes): Update.
10352 (gen_ui_out_table_header_info): Change type of "probes"
10354 (info_probes_for_ops): Update.
10355 (get_probe_address): New function.
10356 (probe_safe_evaluate_at_pc): Update.
10357 * probe.h (struct probe_ops) <get_probe_address>: New field.
10358 <set_semaphore, clear_semaphore>: Add objfile parameter.
10359 (struct probe) <objfile>: Remove field.
10361 <address>: Update comment.
10362 (struct bound_probe): New.
10363 (find_probe_by_pc): Return a bound_probe.
10364 (get_probe_address): Declare.
10365 * solib-svr4.c (struct probe_and_action) <address>: New field.
10366 (hash_probe_and_action, equal_probe_and_action): Update.
10367 (register_solib_event_probe): Add address parameter.
10368 (solib_event_probe_at): Update.
10369 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10371 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10372 (stap_get_probe_address): New function.
10373 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10374 (compile_probe_arg): Update.
10375 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10377 (handle_stap_probe): Don't relocate the probe.
10378 (stap_relocate): Remove.
10379 (stap_gen_info_probes_table_values): Update.
10380 (stap_probe_ops): Remove stap_relocate.
10381 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10382 (debug_sym_probe_fns): Update.
10383 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10384 * symtab.c (init_sal): Use memset.
10385 * symtab.h (struct symtab_and_line) <objfile>: New field.
10386 * tracepoint.c (start_tracing, stop_tracing): Update.
10388 2014-03-03 Tom Tromey <tromey@redhat.com>
10390 * probe.h (parse_probes, find_probe_by_pc)
10391 (find_probes_in_objfile): Fix comments.
10393 2014-03-02 Doug Evans <xdje42@gmail.com>
10395 * infrun.c (handle_signal_stop): Replace test for
10396 TARGET_WAITKIND_STOPPED with an assert.
10398 2014-03-02 Doug Evans <xdje42@gmail.com>
10400 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10402 2014-03-02 Doug Evans <xdje42@gmail.com>
10404 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10406 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10408 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10410 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10412 * i386obsd-nat.c: Include "obsd-nat.h".
10413 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10415 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10417 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10419 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10421 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10423 * mips64obsd-nat.c: Include "obsd-nath".
10424 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10426 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10428 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10430 * amd64obsd-nat.c: Include "obsd-nat,h.
10431 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10433 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10435 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10437 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10438 (find_overload_match): Update call to find_oload_champ.
10439 (find_oload_champ_namespace_loop): Likewise
10441 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10443 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10445 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10446 * config/sparc/obsd64.mh: New file.
10447 * sparc64obsd-nat.c: New file.
10449 * obsd-nat.h: New file.
10450 * obsd-nat.c: New file.
10451 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10452 (ALLDEPFILES): Add obsd-nat.c.
10454 2014-02-28 Tom Tromey <tromey@redhat.com>
10456 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10457 * cli-out.h (cli_ui_out_impl): Now const.
10458 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10459 * ui-out.c (struct ui_out) <impl>: Now const.
10460 (default_ui_out_impl): Now const.
10461 (ui_out_new): Make 'impl' parameter const.
10462 * ui-out.h (ui_out_new): Update.
10464 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10466 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10468 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10470 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10472 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10474 Additional PR 8882 fix.
10475 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10477 2014-02-27 Pedro Alves <palves@redhat.com>
10479 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10482 2014-02-27 Pedro Alves <palves@redhat.com>
10485 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10486 * nat/linux-waitpid.c: Include string.h.
10487 (status_to_str): Moved here and made extern.
10488 * nat/linux-waitpid.h (status_to_str): New declaration.
10490 2014-02-27 Hui Zhu <hui@codesourcery.com>
10493 * infrun.c (ptid_match): Move ...
10494 * common/ptid.c (ptid_match): ... here.
10495 * inferior.h (ptid_match): Move ...
10496 * common/ptid.h (ptid_match): ... here.
10498 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10500 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10501 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10504 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10506 * obsd-tdep.c (obsd_auxv_parse): New function.
10507 (obsd_init_abi): Set auxv_parse.
10509 * gdbarch.sh (auxv_parse): New.
10510 * gdbarch.h: Regenerated.
10511 * gdbarch.c: Regenerated.
10512 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10514 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10516 * guile/scm-value.c (gdbscm_history_append_x): New function.
10517 (value_functions): Add it.
10519 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10521 * dwarf2read.c (attr_value_as_address): New function.
10522 (dwarf2_find_base_address, read_call_site_scope): Use
10523 attr_value_as_address in place of DW_ADDR.
10524 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10525 the low and high addresses. Slight rework of the handling
10526 of the high pc being a constant form, and limit it to
10527 DWARF verson 4 or higher.
10528 (dwarf2_record_block_ranges): Likewise.
10529 (read_partial_die): Likewise.
10530 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10532 2014-02-26 Tom Tromey <tromey@redhat.com>
10534 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10536 2014-02-26 Tom Tromey <tromey@redhat.com>
10538 * elfread.c (elf_read_minimal_symbols): Return early if
10539 minimal symbols have already been read. Add "ei" parameter.
10540 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10541 * minsyms.c (prim_record_minimal_symbol_full): Update.
10542 * objfiles.h (struct objstats) <n_minsyms>: Move...
10543 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10544 * symmisc.c (print_objfile_statistics): Update.
10546 2014-02-26 Tom Tromey <tromey@redhat.com>
10548 * elfread.c (elf_read_minimal_symbols): New function, from
10550 (elf_symfile_read): Call it.
10552 2014-02-26 Tom Tromey <tromey@redhat.com>
10554 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10555 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10556 (lookup_minimal_symbol_solib_trampoline)
10557 (lookup_minimal_symbol_by_pc_section_1)
10558 (lookup_minimal_symbol_and_objfile): Update.
10559 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10560 Don't allocate a minimal symbol if minsyms have already been read.
10561 (build_minimal_symbol_hash_tables): Update.
10562 (install_minimal_symbols): Do nothing if minsyms already read.
10563 Use the per-BFD obstack.
10564 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10565 * objfiles.c (allocate_objfile): Call
10566 terminate_minimal_symbol_table later.
10567 (have_minimal_symbols): Update.
10568 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10569 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10570 Move from struct objfile.
10571 <minsyms_read>: New field.
10572 (struct objfile) <msymbols, minimal_symbol_count,
10573 msymbol_hash, msymbol_demangled_hash>: Move.
10574 (ALL_OBJFILE_MSYMBOLS): Update.
10575 * symfile.c (read_symbols): Set minsyms_read.
10576 (reread_symbols): Update.
10577 * symmisc.c (dump_objfile, dump_msymbols): Update.
10579 2014-02-26 Tom Tromey <tromey@redhat.com>
10581 * minsyms.c (msymbols_sort): Remove.
10582 * minsyms.h (msymbols_sort): Remove.
10583 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10584 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10585 * elfread.c (elf_symtab_read): Don't add section offsets.
10586 * xcoffread.c (record_minimal_symbol): Don't add section offset
10587 to minimal symbol address.
10588 * somread.c (text_offset, data_offset): Remove.
10589 (som_symtab_read): Don't add section offsets to minimal symbol
10591 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10592 Don't add section offsets to minimal symbols.
10593 * coffread.c (coff_symtab_read): Don't add section offsets
10594 to minimal symbol addresses.
10595 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10596 to minimal symbol addresses.
10597 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10598 section offset to minimal symbol addresses.
10599 * mdebugread.c (parse_partial_symbols): Don't add section
10600 offset to minimal symbol addresses.
10601 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10602 offset to minimal symbol addresses.
10604 2014-02-26 Tom Tromey <tromey@redhat.com>
10606 * ada-lang.c (ada_main_name): Update.
10607 (ada_add_standard_exceptions): Update.
10608 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10609 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10610 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10611 * auxv.c (ld_so_xfer_auxv): Update.
10612 * avr-tdep.c (avr_scan_prologue): Update.
10613 * ax-gdb.c (gen_var_ref): Update.
10614 * blockframe.c (get_pc_function_start)
10615 (find_pc_partial_function_gnu_ifunc): Update.
10616 * breakpoint.c (create_overlay_event_breakpoint)
10617 (create_longjmp_master_breakpoint)
10618 (create_std_terminate_master_breakpoint)
10619 (create_exception_master_breakpoint): Update.
10620 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10621 * c-valprint.c (c_val_print): Update.
10622 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10623 * common/agent.c (agent_look_up_symbols): Update.
10624 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10625 * dwarf2loc.c (call_site_to_target_addr): Update.
10626 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10627 * elfread.c (elf_gnu_ifunc_record_cache)
10628 (elf_gnu_ifunc_resolve_by_got): Update.
10629 * findvar.c (default_read_var_value): Update.
10630 * frame.c (inside_main_func): Update.
10631 * frv-tdep.c (frv_frame_this_id): Update.
10632 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10633 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10635 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10636 (hppa_hpux_find_dummy_bpaddr): Update.
10637 * hppa-tdep.c (hppa_symbol_address): Update.
10638 * infcmd.c (until_next_command): Update.
10639 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10641 * linespec.c (minsym_found, add_minsym): Update.
10642 * linux-nat.c (get_signo): Update.
10643 * linux-thread-db.c (inferior_has_bug): Update.
10644 * m32c-tdep.c (m32c_return_value)
10645 (m32c_m16c_address_to_pointer): Update.
10646 * m32r-tdep.c (m32r_frame_this_id): Update.
10647 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10648 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10649 * maint.c (maintenance_translate_address): Update.
10650 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10651 (frob_address): New function.
10652 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10653 frob_address. Rename parameter to "pc_in".
10654 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10656 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10658 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10659 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10660 * objc-lang.c (find_objc_msgsend): Update.
10661 * objfiles.c (objfile_relocate1): Update.
10662 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10663 * p-valprint.c (pascal_val_print): Update.
10664 * parse.c (write_exp_msymbol): Update.
10665 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10666 (ppc_elfv2_skip_entrypoint): Update.
10667 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10668 * printcmd.c (build_address_symbolic, msym_info)
10669 (address_info): Update.
10670 * proc-service.c (ps_pglobal_lookup): Update.
10671 * psymtab.c (find_pc_sect_psymtab_closer)
10672 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10673 Change msymbol parameter to bound_minimal_symbol.
10674 * ravenscar-thread.c (get_running_thread_id): Update.
10675 * remote.c (remote_check_symbols): Update.
10676 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10678 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10679 * solib-dsbt.c (lm_base): Update.
10680 * solib-frv.c (lm_base, main_got): Update.
10681 * solib-irix.c (locate_base): Update.
10682 * solib-som.c (som_solib_create_inferior_hook)
10683 (link_map_start): Update.
10684 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10685 * solib-svr4.c (elf_locate_base, enable_break): Update.
10686 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10687 (flush_ea_cache): Update.
10688 * stabsread.c (define_symbol, scan_file_globals): Update.
10689 * stack.c (find_frame_funname): Update.
10690 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10691 (debug_qf_find_pc_sect_symtab): Update.
10692 * symfile.c (simple_read_overlay_table)
10693 (simple_overlay_update): Update.
10694 * symfile.h (struct quick_symbol_functions)
10695 <find_pc_sect_symtab>: Change type of msymbol to
10696 bound_minimal_symbol.
10697 * symmisc.c (dump_msymbols): Update.
10698 * symtab.c (find_pc_sect_symtab_via_partial)
10699 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10700 (search_symbols, print_msymbol_info): Update.
10701 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10702 (MSYMBOL_VALUE_ADDRESS): Redefine.
10703 (BMSYMBOL_VALUE_ADDRESS): New macro.
10704 * tracepoint.c (scope_info): Update.
10705 * tui/tui-disasm.c (tui_find_disassembly_address)
10706 (tui_get_begin_asm_address): Update.
10707 * valops.c (find_function_in_inferior): Update.
10708 * value.c (value_static_field, value_fn_field): Update.
10710 2014-02-26 Tom Tromey <tromey@redhat.com>
10712 * ada-lang.c (ada_update_initial_language): Update.
10713 (ada_main_name, ada_has_this_exception_support): Update.
10714 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10715 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10716 * arm-tdep.c (arm_skip_stub): Update.
10717 * auxv.c (ld_so_xfer_auxv): Update.
10718 * avr-tdep.c (avr_scan_prologue): Update.
10719 * ax-gdb.c (gen_var_ref): Update.
10720 * breakpoint.c (struct breakpoint_objfile_data)
10721 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10722 type to bound_minimal_symbol.
10723 (create_overlay_event_breakpoint)
10724 (create_longjmp_master_breakpoint)
10725 (create_std_terminate_master_breakpoint)
10726 (create_exception_master_breakpoint): Update.
10727 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10728 * c-exp.y (classify_name): Update.
10729 * coffread.c (coff_symfile_read): Update.
10730 * common/agent.c (agent_look_up_symbols): Update.
10731 * d-lang.c (d_main_name): Update.
10732 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10733 * dec-thread.c (enable_dec_thread): Update.
10734 * dwarf2loc.c (call_site_to_target_addr): Update.
10735 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10736 * eval.c (evaluate_subexp_standard): Update.
10737 * findvar.c (struct minsym_lookup_data) <result>: Change type
10738 to bound_minimal_symbol.
10740 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10741 * frame.c (inside_main_func): Update.
10742 * frv-tdep.c (frv_frame_this_id): Update.
10743 * gcore.c (call_target_sbrk): Update.
10744 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10745 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10747 * go-lang.c (go_main_name): Update.
10748 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10749 (hppa_hpux_find_import_stub_for_addr): Update.
10750 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10751 Update. Change return type.
10752 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10754 * jit.c (jit_breakpoint_re_set_internal): Update.
10755 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10757 * linux-nat.c (get_signo): Update.
10758 * linux-thread-db.c (inferior_has_bug): Update
10759 * m32c-tdep.c (m32c_return_value)
10760 (m32c_m16c_address_to_pointer): Update.
10761 * m32r-tdep.c (m32r_frame_this_id): Update.
10762 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10763 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10764 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10765 lookup_minimal_symbol. Change return type.
10766 (lookup_minimal_symbol): Remove.
10767 (lookup_bound_minimal_symbol): Update.
10768 (lookup_minimal_symbol_text): Change return type.
10769 (lookup_minimal_symbol_solib_trampoline): Change return type.
10770 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10771 (lookup_minimal_symbol_solib_trampoline): Change return type.
10772 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10773 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10774 (value_nsstring, find_imps): Update.
10775 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10776 * p-lang.c (pascal_main_name): Update.
10777 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10778 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10779 * proc-service.c (ps_pglobal_lookup): Update.
10780 * ravenscar-thread.c (get_running_thread_msymbol): Change
10782 (has_ravenscar_runtime, get_running_thread_id): Update.
10783 * remote.c (remote_check_symbols): Update.
10784 * sol-thread.c (ps_pglobal_lookup): Update.
10785 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10786 * solib-dsbt.c (lm_base): Update.
10787 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10789 * solib-irix.c (locate_base): Update.
10790 * solib-som.c (som_solib_create_inferior_hook)
10791 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10793 * solib-spu.c (spu_enable_break): Update.
10794 * solib-svr4.c (elf_locate_base, enable_break): Update.
10795 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10796 (flush_ea_cache): Update.
10797 * stabsread.c (define_symbol): Update.
10798 * symfile.c (simple_read_overlay_table): Update.
10799 * symtab.c (find_pc_sect_line): Update.
10800 * tracepoint.c (scope_info): Update.
10801 * tui-disasm.c (tui_get_begin_asm_address): Update.
10802 * value.c (value_static_field): Update.
10804 2014-02-26 Tom Tromey <tromey@redhat.com>
10806 * minsyms.c (prim_record_minimal_symbol_full): Use
10807 SET_MSYMBOL_VALUE_ADDRESS.
10808 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10809 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10810 SET_MSYMBOL_VALUE_ADDRESS.
10811 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10812 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10814 2014-02-26 Tom Tromey <tromey@redhat.com>
10816 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10817 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10818 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10819 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10820 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10821 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10822 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10823 * ada-lang.c (ada_main_name): Update.
10824 (ada_lookup_simple_minsym): Update.
10825 (ada_make_symbol_completion_list): Update.
10826 (ada_add_standard_exceptions): Update.
10827 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10828 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10829 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10830 * arm-tdep.c (skip_prologue_function): Update.
10831 (arm_skip_stack_protector, arm_skip_stub): Update.
10832 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10833 (arm_wince_skip_main_prologue): Update.
10834 * auxv.c (ld_so_xfer_auxv): Update.
10835 * avr-tdep.c (avr_scan_prologue): Update.
10836 * ax-gdb.c (gen_var_ref): Update.
10837 * block.c (call_site_for_pc): Update.
10838 * blockframe.c (get_pc_function_start): Update.
10839 (find_pc_partial_function_gnu_ifunc): Update.
10840 * breakpoint.c (create_overlay_event_breakpoint): Update.
10841 (create_longjmp_master_breakpoint): Update.
10842 (create_std_terminate_master_breakpoint): Update.
10843 (create_exception_master_breakpoint): Update.
10844 (resolve_sal_pc): Update.
10845 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10846 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10848 * c-valprint.c (c_val_print): Update.
10849 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10850 * coffread.c (coff_symfile_read): Update.
10851 * common/agent.c (agent_look_up_symbols): Update.
10852 * dbxread.c (find_stab_function_addr): Update.
10853 (end_psymtab): Update.
10854 * dwarf2loc.c (call_site_to_target_addr): Update.
10855 (func_verify_no_selftailcall): Update.
10856 (tailcall_dump): Update.
10857 (call_site_find_chain_1): Update.
10858 (dwarf_expr_reg_to_entry_parameter): Update.
10859 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10860 (elf_gnu_ifunc_resolve_by_got): Update.
10861 * f-valprint.c (info_common_command): Update.
10862 * findvar.c (read_var_value): Update.
10863 * frame.c (get_prev_frame_1): Update.
10864 (inside_main_func): Update.
10865 * frv-tdep.c (frv_skip_main_prologue): Update.
10866 (frv_frame_this_id): Update.
10867 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10868 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10869 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10870 (gnuv3_skip_trampoline): Update.
10871 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10872 (hppa64_hpux_in_solib_call_trampoline): Update.
10873 (hppa_hpux_skip_trampoline_code): Update.
10874 (hppa64_hpux_search_dummy_call_sequence): Update.
10875 (hppa_hpux_find_import_stub_for_addr): Update.
10876 (hppa_hpux_find_dummy_bpaddr): Update.
10877 * hppa-tdep.c (hppa_symbol_address)
10878 (hppa_lookup_stub_minimal_symbol): Update.
10879 * i386-tdep.c (i386_skip_main_prologue): Update.
10880 (i386_pe_skip_trampoline_code): Update.
10881 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10882 * infcall.c (get_function_name): Update.
10883 * infcmd.c (until_next_command): Update.
10884 * jit.c (jit_breakpoint_re_set_internal): Update.
10885 (jit_inferior_init): Update.
10886 * linespec.c (minsym_found): Update.
10887 (add_minsym): Update.
10888 * linux-fork.c (info_checkpoints_command): Update.
10889 * linux-nat.c (get_signo): Update.
10890 * linux-thread-db.c (inferior_has_bug): Update.
10891 * m32c-tdep.c (m32c_return_value): Update.
10892 (m32c_m16c_address_to_pointer): Update.
10893 (m32c_m16c_pointer_to_address): Update.
10894 * m32r-tdep.c (m32r_frame_this_id): Update.
10895 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10896 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10897 * maint.c (maintenance_translate_address): Update.
10898 * minsyms.c (add_minsym_to_hash_table): Update.
10899 (add_minsym_to_demangled_hash_table): Update.
10900 (msymbol_objfile): Update.
10901 (lookup_minimal_symbol): Update.
10902 (iterate_over_minimal_symbols): Update.
10903 (lookup_minimal_symbol_text): Update.
10904 (lookup_minimal_symbol_by_pc_name): Update.
10905 (lookup_minimal_symbol_solib_trampoline): Update.
10906 (lookup_minimal_symbol_by_pc_section_1): Update.
10907 (lookup_minimal_symbol_and_objfile): Update.
10908 (prim_record_minimal_symbol_full): Update.
10909 (compare_minimal_symbols): Update.
10910 (compact_minimal_symbols): Update.
10911 (build_minimal_symbol_hash_tables): Update.
10912 (install_minimal_symbols): Update.
10913 (terminate_minimal_symbol_table): Update.
10914 (find_solib_trampoline_target): Update.
10915 (minimal_symbol_upper_bound): Update.
10916 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10917 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10918 (mips_skip_pic_trampoline_code): Update.
10919 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10920 * objc-lang.c (selectors_info): Update.
10921 (classes_info): Update.
10922 (find_methods): Update.
10923 (find_imps): Update.
10924 (find_objc_msgsend): Update.
10925 * objfiles.c (objfile_relocate1): Update.
10926 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10927 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10928 * p-valprint.c (pascal_val_print): Update.
10929 * parse.c (write_exp_msymbol): Update.
10930 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10931 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10932 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10933 * printcmd.c (build_address_symbolic): Update.
10934 (sym_info): Update.
10935 (address_info): Update.
10936 * proc-service.c (ps_pglobal_lookup): Update.
10937 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10938 (find_pc_sect_psymtab): Update.
10939 * python/py-framefilter.c (py_print_frame): Update.
10940 * ravenscar-thread.c (get_running_thread_id): Update.
10941 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10943 * remote.c (remote_check_symbols): Update.
10944 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10945 (rs6000_skip_trampoline_code): Update.
10946 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10947 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10948 * solib-dsbt.c (lm_base): Update.
10949 * solib-frv.c (lm_base): Update.
10950 (main_got): Update.
10951 * solib-irix.c (locate_base): Update.
10952 * solib-som.c (som_solib_create_inferior_hook): Update.
10953 (som_solib_desire_dynamic_linker_symbols): Update.
10954 (link_map_start): Update.
10955 * solib-spu.c (spu_enable_break): Update.
10956 (ocl_enable_break): Update.
10957 * solib-svr4.c (elf_locate_base): Update.
10958 (enable_break): Update.
10959 * spu-tdep.c (spu_get_overlay_table): Update.
10960 (spu_catch_start): Update.
10961 (flush_ea_cache): Update.
10962 * stabsread.c (define_symbol): Update.
10963 (scan_file_globals): Update.
10964 * stack.c (find_frame_funname): Update.
10965 (frame_info): Update.
10966 * symfile.c (simple_read_overlay_table): Update.
10967 (simple_overlay_update): Update.
10968 * symmisc.c (dump_msymbols): Update.
10969 * symtab.c (fixup_section): Update.
10970 (find_pc_sect_line): Update.
10971 (skip_prologue_sal): Update.
10972 (search_symbols): Update.
10973 (print_msymbol_info): Update.
10974 (rbreak_command): Update.
10975 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10976 (completion_list_objc_symbol): Update.
10977 (default_make_symbol_completion_list_break_on): Update.
10978 * tracepoint.c (scope_info): Update.
10979 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10980 (tui_get_begin_asm_address): Update.
10981 * valops.c (find_function_in_inferior): Update.
10982 * value.c (value_static_field): Update.
10983 (value_fn_field): Update.
10985 2014-02-26 Tom Tromey <tromey@redhat.com>
10987 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10988 bound minimal symbols. Move code that knows about minsym
10990 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10992 * minsyms.h (minimal_symbol_upper_bound): Declare.
10993 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10994 minimal_symbol_upper_bound.
10996 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10998 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10999 Use the type's name if its basic type does not have a tag.
11001 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11003 * dwarf2read.c (read_subrange_type): Add comment.
11005 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11007 * dwarf2read.c (update_enumeration_type_from_children): New
11008 function, mostly extracted from process_structure_scope.
11009 (read_enumeration_type): Call update_enumeration_type_from_children.
11010 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11011 and flag_flag_enum fields.
11013 2014-02-26 Pedro Alves <palves@redhat.com>
11015 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11016 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11017 to_xfer_partial method.
11019 2014-02-26 Pedro Alves <palves@redhat.com>
11021 * target.c (complete_target_initialization): Don't install
11022 default_xfer_partial as to_xfer_partial hook.
11023 (nomemory): Delete.
11024 (update_current_target): Don't INHERIT nor de_fault
11025 deprecated_xfer_memory. Delete de_fault macro.
11026 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11027 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11028 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11031 2014-02-26 Pedro Alves <palves@redhat.com>
11033 * go32-nat.c (my_write_child): New function.
11034 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11035 (go32_xfer_partial): New function.
11036 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11037 Instead install a to_xfer_partial hook.
11039 2014-02-26 Pedro Alves <palves@redhat.com>
11041 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11042 to_xfer_partial helper. Rewrite.
11043 (procfs_xfer_partial): New function.
11044 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11045 Install a to_xfer_partial hook.
11047 2014-02-26 Pedro Alves <palves@redhat.com>
11049 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11050 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11051 (m32r_xfer_partial): New function.
11052 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11053 Install a to_xfer_partial hook.
11055 2014-02-26 Pedro Alves <palves@redhat.com>
11057 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11059 (mips_xfer_partial): New function.
11060 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11061 hook. Install a to_xfer_partial hook.
11063 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11065 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11066 * gdbtypes.c (create_array_type_with_stride): New function,
11067 renaming create_array_type, but with an added parameter
11068 called "bit_stride".
11069 (create_array_type): Re-implement using
11070 create_array_type_with_stride.
11071 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11072 and DW_AT_bit_stride attributes.
11074 2014-02-26 Pedro Alves <palves@redhat.com>
11076 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11077 task-specific breakpoints.
11079 2014-02-25 Pedro Alves <palves@redhat.com>
11081 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11082 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11084 2014-02-25 Stan Shebs <stan@codesourcery.com>
11086 * defs.h: Annotate comments for Doxygen.
11088 2014-02-25 Tom Tromey <tromey@redhat.com>
11090 * target.h (target_ignore): Don't declare.
11091 * target.c (target_ignore): Remove.
11093 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11096 * auto-load.c (auto_load_objfile_script_1): Change filename to
11099 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11101 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11102 documentation. Adjust prototype to match the target_ops
11103 to_xfer_partial method. Adjust implementation accordingly.
11105 2014-02-25 Hui Zhu <hui@codesourcery.com>
11107 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11108 to_traceframe_info.
11110 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11112 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11113 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11114 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11115 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11116 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11117 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11118 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11119 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11121 (rl78_register_type): Use a data pointer type for SP and
11122 new pseudo registers mentioned above. Use a 16 bit integer
11123 type for all other register pairs.
11124 (rl78_register_name, rl78_g10_register_name): Update for
11125 new pseudo registers.
11126 (rl78_pseudo_register_read): Likewise.
11127 (rl78_pseudo_register_write): Likewise.
11128 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11129 to the newly added pseudo registers.
11131 2014-02-24 Doug Evans <dje@google.com>
11133 * value.c (record_latest_value): Fix comment.
11134 * printcmd.c (print_command_1): Remove code to handle -1 return from
11135 record_latest_value.
11137 2014-02-24 Pedro Alves <palves@redhat.com>
11139 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11140 deprecated_xfer_memory hook.
11141 (procfs_xfer_partial): Call procfs_xfer_memory instead
11142 of the deprecated_xfer_memory target hook.
11143 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11146 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11148 * windows-nat.c (windows_xfer_shared_libraries): Return
11149 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11150 requested object is TARGET_OBJECT_LIBRARIES.
11152 2014-02-24 Yao Qi <yao@codesourcery.com>
11154 * target.h (enum target_xfer_status)
11155 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11156 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11158 * corefile.c (memory_error_message): User updated.
11159 * exec.c (section_table_read_available_memory): Likewise.
11160 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11161 * target.c (target_xfer_status_to_string): Likewise.
11162 (raw_memory_xfer_partial): Likewise.
11163 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11164 * valops.c (read_value_memory): Likewise.
11165 * exec.h: Update comments.
11167 2014-02-24 Yao Qi <yao@codesourcery.com>
11169 * target.c (target_xfer_status_to_string): Rename argument err
11171 * target.h (target_xfer_status_to_string): Update declaration.
11172 Replace target_xfer_error_to_string with
11173 target_xfer_status_to_string in comment.
11175 2014-02-24 Yao Qi <yao@codesourcery.com>
11177 * mips-linux-nat.c (super_close): Update its type.
11178 (mips_linux_close): Pass 'self' to super_close.
11180 2014-02-24 Yao Qi <yao@codesourcery.com>
11182 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11183 * corefile.c (read_memory): Adjusted.
11184 * target.c (target_write_with_progress): Adjusted.
11186 2014-02-23 Yao Qi <yao@codesourcery.com>
11188 Revert two patches:
11190 2013-10-25 Yao Qi <yao@codesourcery.com>
11192 * remote.c (remote_traceframe_info): Return early if
11193 traceframe is not selected.
11195 2013-07-19 Yao Qi <yao@codesourcery.com>
11197 * target.c (update_current_target): Change the default action
11198 of 'to_traceframe_info' from tcomplain to return_zero.
11199 * target.h (struct target_ops) <to_traceframe_info>: Add more
11202 2014-02-23 Yao Qi <yao@codesourcery.com>
11204 * valops.c (read_value_memory): Rewrite it. Call
11205 target_xfer_partial in a loop.
11206 * exec.h (section_table_available_memory): Remove declaration.
11207 Move comments to ...
11208 * exec.c (section_table_available_memory): ... here. Make it
11211 2014-02-23 Yao Qi <yao@codesourcery.com>
11213 * exec.c (section_table_read_available_memory): New function.
11214 * exec.h (section_table_read_available_memory): Declare.
11215 * ctf.c (ctf_xfer_partial): Call
11216 section_table_read_available_memory.
11217 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11219 2014-02-23 Yao Qi <yao@codesourcery.com>
11221 * ctf.c (ctf_xfer_partial): Move code to ...
11222 * exec.c (exec_read_partial_read_only): ... it. New function.
11223 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11224 * tracefile.c: Include "exec.h".
11225 * exec.h (exec_read_partial_read_only): Declare.
11227 2014-02-23 Yao Qi <yao@codesourcery.com>
11229 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11230 (tfile_has_memory): Remove.
11231 (init_tfile_ops): Don't set fields to_has_all_memory and
11232 to_has_memory of tfile_ops.
11233 * tracefile.c (tracefile_has_all_memory): New function.
11234 (tracefile_has_memory): New function.
11235 (init_tracefile_ops): Initialize fields to_has_all_memory and
11236 to_has_memory of 'ops'.
11238 2014-02-23 Yao Qi <yao@codesourcery.com>
11240 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11241 (ctf_thread_alive, ctf_get_trace_status): Remove.
11242 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11243 init_tracefile_ops.
11244 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11245 (tfile_has_stack, tfile_has_registers): Remove.
11246 (tfile_thread_alive): Remove.
11247 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11248 init_tracefile_ops.
11249 * tracefile.c (tracefile_has_stack): New function.
11250 (tracefile_has_registers): New function.
11251 (tracefile_thread_alive): New function.
11252 (tracefile_get_trace_status): New function.
11253 (init_tracefile_ops): New function.
11254 * tracefile.h (init_tracefile_ops): Declare.
11256 2014-02-23 Yao Qi <yao@codesourcery.com>
11258 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11259 (O_LARGEFILE): Likewise.
11260 (tfile_ops): Likewise.
11261 (TRACE_HEADER_SIZE): Likewise.
11262 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11263 (cur_data_size): Likewise.
11264 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11265 (tfile_close, tfile_files_info): Likewise.
11266 (tfile_get_trace_status): Likewise.
11267 (tfile_get_tracepoint_status): Likewise.
11268 (tfile_get_traceframe_address): Likewise.
11269 (tfile_trace_find, match_blocktype): Likewise.
11270 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11271 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11272 (tfile_get_trace_state_variable_value): Likewise.
11273 (tfile_has_all_memory, tfile_has_memory): Likewise.
11274 (tfile_has_stack, tfile_has_registers): Likewise.
11275 (tfile_thread_alive, build_traceframe_info): Likewise.
11276 (tfile_traceframe_info, init_tfile_ops): Likewise.
11277 (_initialize_tracepoint): Don't call init_tfile_ops
11278 and add_target_with_completer.
11279 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11280 exec.h, completer.h and filenames.h.
11281 (_initialize_tracefile_tfile): New function.
11283 2014-02-23 Yao Qi <yao@codesourcery.com>
11285 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11287 (HFILES_NO_SRCDIR): Add tracefile.h.
11288 * ctf.c: Include "tracefile.h".
11289 * tracefile.h: New file.
11290 * tracefile.c: New file
11291 * tracefile-tfile.c: New file.
11292 * tracepoint.c: Include "tracefile.h".
11293 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11294 (stop_reason_names): Add const.
11295 (trace_file_writer_xfree): Move it to tracefile.c.
11296 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11297 (trace_save_ctf): Likewise.
11298 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11299 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11300 (tfile_write_header, tfile_write_regblock_type): Likewise.
11301 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11302 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11303 (tfile_write_raw_data, tfile_end): Likewise.
11304 (tfile_trace_file_writer_new): Likewise.
11305 (free_uploaded_tp): Make it extern.
11306 (free_uploaded_tsv): Make it extern.
11307 (_initialize_tracepoint): Move code to register command 'tsave'
11309 * tracepoint.h (stop_reason_names): Declare.
11310 (struct trace_frame_write_ops): Move it to tracefile.h.
11311 (struct trace_file_write_ops): Likewise.
11312 (struct trace_file_writer): Likewise.
11313 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11315 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11318 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11320 (get_cores_used_by_process): New parameter num_cores, use it.
11321 (linux_xfer_osdata_processes): Pass num_cores to it.
11322 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11325 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11327 * target.c (memory_xfer_partial): Fix length arg in call to
11328 breakpoint_xfer_memory.
11330 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11333 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11334 number comes after the + or - signs. Adjust length of register
11335 name to be extracted.
11337 2014-02-20 Tom Tromey <tromey@redhat.com>
11339 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11340 (ada_varobj_ops): Mark "extern".
11342 2014-02-20 Tom Tromey <tromey@redhat.com>
11344 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11346 2014-02-20 Doug Evans <xdje42@gmail.com>
11348 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11349 All callers updated.
11350 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11351 All callers updated.
11352 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11353 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11355 2014-02-20 lin zuojian <manjian2006@gmail.com>
11356 Joel Brobecker <brobecker@adacore.com>
11357 Doug Evans <xdje42@gmail.com>
11360 * dwarf2read.c (struct die_info): New member in_process.
11361 (reset_die_in_process): New function.
11362 (process_die): Set it at the start, reset when returning.
11363 (inherit_abstract_dies): Only call process_die if origin_child_die
11364 not already being processed.
11366 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11368 * windows-nat.c (handle_unload_dll): Add function documentation.
11369 (do_initial_windows_stuff): Add comment explaining why we wait
11370 until after inferior initialization has finished before
11371 processing all DLLs.
11373 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11375 * windows-nat.c (get_module_name): Delete.
11376 (windows_get_exec_module_filename): New function, mostly
11377 inspired from get_module_name.
11378 (windows_pid_to_exec_file): Replace call to get_module_name
11379 by call to windows_get_exec_module_filename.
11381 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11383 * windows-nat.c (handle_load_dll): Rewrite this function's
11384 introductory comment. Remove code using get_module_name
11385 to get the DLL's name.
11387 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11389 * windows-nat.c (get_windows_debug_event): Ignore
11390 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11391 if windows_initialization_done == 0.
11392 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11393 Adjust implementation to always load all DLLs.
11394 (do_initial_windows_stuff): Replace call to
11395 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11397 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11399 * windows-nat.c (_initialize_windows_nat): Deprecate the
11400 "dll-symbols" command. Turn the "add-shared-symbol-files"
11401 and "assf" aliases into commands, and deprecate them as well.
11402 * NEWS: Add entry explaining that "dll-symbols" and its two
11403 aliases are now deprecated.
11405 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11407 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11408 new-line in debug string. Remove trailing spaces.
11410 2014-02-19 Stan Shebs <stan@codesourcery.com>
11412 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11414 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11416 * NEWS: Add entry for the new feature
11417 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11420 2014-02-19 Stan Shebs <stan@codesourcery.com>
11422 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11424 2014-02-19 Pedro Alves <palves@redhat.com>
11426 * common/ptid.h (struct ptid): Mention that process_stratum
11427 targets should prefer ptid.lwp.
11429 2014-02-19 Pedro Alves <palves@redhat.com>
11431 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11432 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11433 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11434 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11435 store remote thread ids rather than ptid.tid.
11436 (_initialize_remote): Adjust.
11438 2014-02-19 Tom Tromey <tromey@redhat.com>
11440 * target.c (target_get_unwinder): Rewrite.
11441 (target_get_tailcall_unwinder): Rewrite.
11442 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11443 (record_btrace_to_get_tailcall_unwinder): New function.
11444 (init_record_btrace_ops): Update.
11445 * target.h (struct target_ops) <to_get_unwinder,
11446 to_get_tailcall_unwinder>: Now function pointers. Use
11447 TARGET_DEFAULT_RETURN.
11449 2014-02-19 Tom Tromey <tromey@redhat.com>
11451 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11453 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11459 * target-delegates.c: Rebuild.
11460 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11461 TARGET_DEFAULT_FUNC.
11462 * target.c (default_target_decr_pc_after_break): Rename from
11463 forward_target_decr_pc_after_break. Simplify.
11464 (target_decr_pc_after_break): Rely on delegation.
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * target.c (update_current_target): Do not INHERIT to_doc or
11469 to_magic. Do not de_fault to_open or to_close.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * gcore.h (objfile_find_memory_regions): Declare.
11474 * gcore.c (objfile_find_memory_regions): No longer static. Add
11476 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11477 * exec.c: Include gcore.h.
11478 (exec_set_find_memory_regions): Remove.
11479 (exec_find_memory_regions): Remove.
11480 (exec_do_find_memory_regions): Remove.
11481 (init_exec_ops): Update.
11482 * defs.h (exec_set_find_memory_regions): Remove.
11484 2014-02-19 Tom Tromey <tromey@redhat.com>
11486 * target-delegates.c: Rebuild.
11487 * target.h (struct target_ops) <to_extra_thread_info,
11488 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11489 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11490 not 0, in TARGET_DEFAULT_RETURN.
11492 2014-02-19 Tom Tromey <tromey@redhat.com>
11494 * target.c (complete_target_initialization): Remove casts. Use
11495 return_zero_has_execution.
11496 (return_zero): Add "ignore" argument.
11497 (return_zero_has_execution): New function.
11498 (init_dummy_target): Remove casts. Use
11499 return_zero_has_execution.
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11503 * target.c (update_current_target): Update comments. Do not
11504 INHERIT to_stratum.
11506 2014-02-19 Tom Tromey <tromey@redhat.com>
11508 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11510 * corelow.c (core_read_description): Delegate when needed.
11511 * remote.c (remote_read_description): Delegate when needed.
11512 * target-delegates.c: Rebuild.
11513 * target.c (target_read_description): Rewrite.
11514 * target.h (struct target_ops) <to_read_description>: Update
11515 comment. Use TARGET_DEFAULT_RETURN.
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11519 * target-delegates.c: Rebuild.
11520 * target.c (update_current_target): Don't inherit or default
11522 (find_default_run_target): Check against delegate_can_run.
11523 * target.h (struct target_ops) <to_can_run>: Use
11524 TARGET_DEFAULT_RETURN.
11526 2014-02-19 Tom Tromey <tromey@redhat.com>
11528 * target-delegates.c: Rebuild.
11529 * target.c (target_disconnect): Unconditionally delegate.
11530 * target.h (struct target_ops) <to_disconnect>: Use
11531 TARGET_DEFAULT_NORETURN.
11533 2014-02-19 Tom Tromey <tromey@redhat.com>
11535 * record.c (record_stop): Unconditionally delegate.
11536 * target-delegates.c: Rebuild.
11537 * target.c (target_stop_recording): Unconditionally delegate.
11538 * target.h (struct target_ops) <to_stop_recording>: Use
11539 TARGET_DEFAULT_IGNORE.
11541 2014-02-19 Tom Tromey <tromey@redhat.com>
11543 * target-delegates.c: Rebuild.
11544 * target.c (target_enable_btrace): Unconditionally delegate.
11545 * target.h (struct target_ops) <to_enable_btrace>: Use
11546 TARGET_DEFAULT_NORETURN.
11548 2014-02-19 Tom Tromey <tromey@redhat.com>
11550 * target-delegates.c: Rebuild.
11551 * target.c (target_read_btrace): Unconditionally delegate.
11552 * target.h (struct target_ops) <to_read_btrace>: Use
11553 TARGET_DEFAULT_NORETURN.
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11557 * target-delegates.c: Rebuild.
11558 * target.c (target_teardown_btrace): Unconditionally delegate.
11559 * target.h (struct target_ops) <to_teardown_btrace>: Use
11560 TARGET_DEFAULT_NORETURN.
11562 2014-02-19 Tom Tromey <tromey@redhat.com>
11564 * target-delegates.c: Rebuild.
11565 * target.c (target_disable_btrace): Unconditionally delegate.
11566 * target.h (struct target_ops) <to_disable_btrace>: Use
11567 TARGET_DEFAULT_NORETURN.
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * target-delegates.c: Rebuild.
11572 * target.c (default_search_memory): New function.
11573 (simple_search_memory): Update comment.
11574 (target_search_memory): Unconditionally delegate.
11575 * target.h (struct target_ops) <to_search_memory>: Use
11576 TARGET_DEFAULT_FUNC.
11578 2014-02-19 Tom Tromey <tromey@redhat.com>
11580 * auxv.c (default_auxv_parse): No longer static.
11581 (target_auxv_parse): Unconditionally delegate.
11582 * auxv.h (default_auxv_parse): Declare.
11583 * target-delegates.c: Rebuild.
11584 * target.c: Include auxv.h.
11585 * target.h (struct target_ops) <to_auxv_parse>: Use
11586 TARGET_DEFAULT_FUNC.
11588 2014-02-19 Tom Tromey <tromey@redhat.com>
11590 * target-delegates.c: Rebuild.
11591 * target.c (target_memory_map): Unconditionally delegate.
11592 * target.h (struct target_ops) <to_memory_map>: Use
11593 TARGET_DEFAULT_RETURN.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target-delegates.c: Rebuild.
11598 * target.c (target_thread_alive): Unconditionally delegate.
11599 * target.h (struct target_ops) <to_thread_alive>: Use
11600 TARGET_DEFAULT_RETURN.
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11604 * target-delegates.c: Rebuild.
11605 * target.c (target_save_record): Unconditionally delegate.
11606 * target.h (struct target_ops) <to_save_record>: Use
11607 TARGET_DEFAULT_NORETURN.
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11611 * target-delegates.c: Rebuild.
11612 * target.c (target_delete_record): Unconditionally delegate.
11613 * target.h (struct target_ops) <to_delete_record>: Use
11614 TARGET_DEFAULT_NORETURN.
11616 2014-02-19 Tom Tromey <tromey@redhat.com>
11618 * target-delegates.c: Rebuild.
11619 * target.c (target_record_is_replaying): Unconditionally
11621 * target.h (struct target_ops) <to_record_is_replaying>: Use
11622 TARGET_DEFAULT_RETURN.
11624 2014-02-19 Tom Tromey <tromey@redhat.com>
11626 * target-delegates.c: Rebuild.
11627 * target.c (target_goto_record_begin): Unconditionally delegate.
11628 * target.h (struct target_ops) <to_goto_record_begin>: Use
11629 TARGET_DEFAULT_NORETURN.
11631 2014-02-19 Tom Tromey <tromey@redhat.com>
11633 * target-delegates.c: Rebuild.
11634 * target.c (target_goto_record_end): Unconditionally delegate.
11635 * target.h (struct target_ops) <to_goto_record_end>: Use
11636 TARGET_DEFAULT_NORETURN.
11638 2014-02-19 Tom Tromey <tromey@redhat.com>
11640 * target-delegates.c: Rebuild.
11641 * target.c (target_goto_record): Unconditionally delegate.
11642 * target.h (struct target_ops) <to_goto_record>: Use
11643 TARGET_DEFAULT_NORETURN.
11645 2014-02-19 Tom Tromey <tromey@redhat.com>
11647 * target-delegates.c: Rebuild.
11648 * target.c (target_insn_history): Unconditionally delegate.
11649 * target.h (struct target_ops) <to_insn_history>: Use
11650 TARGET_DEFAULT_NORETURN.
11652 2014-02-19 Tom Tromey <tromey@redhat.com>
11654 * target-delegates.c: Rebuild.
11655 * target.c (target_insn_history_from): Unconditionally delegate.
11656 * target.h (struct target_ops) <to_insn_history_from>: Use
11657 TARGET_DEFAULT_NORETURN.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target-delegates.c: Rebuild.
11662 * target.c (target_insn_history_range): Unconditionally delegate.
11663 * target.h (struct target_ops) <to_insn_history_range>: Use
11664 TARGET_DEFAULT_NORETURN.
11666 2014-02-19 Tom Tromey <tromey@redhat.com>
11668 * target-delegates.c: Rebuild.
11669 * target.c (target_call_history): Unconditionally delegate.
11670 * target.h (struct target_ops) <to_call_history>: Use
11671 TARGET_DEFAULT_NORETURN.
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11675 * target-delegates.c: Rebuild.
11676 * target.c (target_call_history_from): Unconditionally delegate.
11677 * target.h (struct target_ops) <to_call_history_from>: Use
11678 TARGET_DEFAULT_NORETURN.
11680 2014-02-19 Tom Tromey <tromey@redhat.com>
11682 * target-delegates.c: Rebuild.
11683 * target.c (target_call_history_range): Unconditionally delegate.
11684 * target.h (struct target_ops) <to_call_history_range>: Use
11685 TARGET_DEFAULT_NORETURN.
11687 2014-02-19 Tom Tromey <tromey@redhat.com>
11689 * target-delegates.c: Rebuild.
11690 * target.c (target_verify_memory): Unconditionally delegate.
11691 * target.h (struct target_ops) <to_verify_memory>: Use
11692 TARGET_DEFAULT_NORETURN.
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11696 * target-delegates.c: Rebuild.
11697 * target.c (target_core_of_thread): Unconditionally delegate.
11698 * target.h (struct target_ops) <to_core_of_thread>: Use
11699 TARGET_DEFAULT_RETURN.
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11703 * target-delegates.c: Rebuild.
11704 * target.c (target_flash_done): Unconditionally delegate.
11705 * target.h (struct target_ops) <to_flash_done>: Use
11706 TARGET_DEFAULT_NORETURN.
11708 2014-02-19 Tom Tromey <tromey@redhat.com>
11710 * target-delegates.c: Rebuild.
11711 * target.c (target_flash_erase): Unconditionally delegate.
11712 * target.h (struct target_ops) <to_flash_erase>: Use
11713 TARGET_DEFAULT_NORETURN.
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11717 * target-delegates.c: Rebuild.
11718 * target.c (target_get_section_table): Unconditionally delegate.
11719 * target.h (struct target_ops) <to_get_section_table>: Use
11720 TARGET_DEFAULT_RETURN.
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11724 * target-delegates.c: Rebuild.
11725 * target.c (target_pid_to_str): Unconditionally delegate.
11726 (init_dummy_target): Don't initialize to_pid_to_str.
11727 (default_pid_to_str): Rename from dummy_pid_to_str.
11728 * target.h (struct target_ops) <to_pid_to_str>: Use
11729 TARGET_DEFAULT_FUNC.
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11733 * target-delegates.c: Rebuild.
11734 * target.c (target_find_new_threads): Unconditionally delegate.
11735 * target.h (struct target_ops) <to_find_new_threads>: Use
11736 TARGET_DEFAULT_RETURN.
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11740 * target-delegates.c: Rebuild.
11741 * target.c (target_program_signals): Unconditionally delegate.
11742 * target.h (struct target_ops) <to_program_signals>: Use
11743 TARGET_DEFAULT_IGNORE.
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11747 * target-delegates.c: Rebuild.
11748 * target.c (target_pass_signals): Unconditionally delegate.
11749 * target.h (struct target_ops) <to_pass_signals>: Use
11750 TARGET_DEFAULT_IGNORE.
11752 2014-02-19 Tom Tromey <tromey@redhat.com>
11754 * target-delegates.c: Rebuild.
11755 * target.c (default_mourn_inferior): New function.
11756 (target_mourn_inferior): Unconditionally delegate.
11757 * target.h (struct target_ops) <to_mourn_inferior>: Use
11758 TARGET_DEFAULT_FUNC.
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11762 * target-delegates.c: Rebuild.
11763 * target.c (default_follow_fork): New function.
11764 (target_follow_fork): Unconditionally delegate.
11765 * target.h (struct target_ops) <to_follow_fork>: Use
11766 TARGET_DEFAULT_FUNC.
11768 2014-02-19 Tom Tromey <tromey@redhat.com>
11770 * target-delegates.c: Rebuild.
11771 * target.c (target_kill): Unconditionally delegate.
11772 * target.h (struct target_ops) <to_kill>: Use
11773 TARGET_DEFAULT_NORETURN.
11775 2014-02-19 Tom Tromey <tromey@redhat.com>
11777 * target-delegates.c: Rebuild.
11778 * target.c (target_masked_watch_num_registers): Unconditionally
11780 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11781 Use TARGET_DEFAULT_RETURN.
11783 2014-02-19 Tom Tromey <tromey@redhat.com>
11785 * target-delegates.c: Rebuild.
11786 * target.c (target_remove_mask_watchpoint): Unconditionally
11788 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11789 TARGET_DEFAULT_RETURN.
11791 2014-02-19 Tom Tromey <tromey@redhat.com>
11793 * target-delegates.c: Rebuild.
11794 * target.c (target_insert_mask_watchpoint): Unconditionally
11796 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11797 TARGET_DEFAULT_RETURN.
11799 2014-02-19 Tom Tromey <tromey@redhat.com>
11801 * target-delegates.c: Rebuild.
11802 * target.c (target_ranged_break_num_registers): Unconditionally
11804 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11805 Use TARGET_DEFAULT_RETURN.
11807 2014-02-19 Tom Tromey <tromey@redhat.com>
11809 * target-delegates.c: Rebuild.
11810 * target.c (target_fetch_registers): Unconditionally delegate.
11811 * target.h (struct target_ops) <to_fetch_registers>: Use
11812 TARGET_DEFAULT_NORETURN.
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11816 * target-delegates.c: Rebuild.
11817 * target.c (update_current_target): Don't inherit or default
11819 * target.h (struct target_ops) <to_stop>: Use
11820 TARGET_DEFAULT_IGNORE.
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11824 * target-delegates.c: Rebuild.
11825 * target.c (update_current_target): Don't inherit or default
11826 to_can_run_breakpoint_commands.
11827 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11828 Use TARGET_DEFAULT_RETURN.
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11834 to_supports_evaluation_of_breakpoint_conditions.
11835 * target.h (struct target_ops)
11836 <to_supports_evaluation_of_breakpoint_conditions>: Use
11837 TARGET_DEFAULT_RETURN.
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11841 * target-delegates.c: Rebuild.
11842 * target.c (update_current_target): Don't inherit or default
11843 to_augmented_libraries_svr4_read.
11844 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11845 Use TARGET_DEFAULT_RETURN.
11847 2014-02-19 Tom Tromey <tromey@redhat.com>
11849 * target-delegates.c: Rebuild.
11850 * target.c (update_current_target): Don't inherit or default
11852 * target.h (struct target_ops) <to_can_use_agent>: Use
11853 TARGET_DEFAULT_RETURN.
11855 2014-02-19 Tom Tromey <tromey@redhat.com>
11857 * target-delegates.c: Rebuild.
11858 * target.c (update_current_target): Don't inherit or default
11860 * target.h (struct target_ops) <to_use_agent>: Use
11861 TARGET_DEFAULT_NORETURN.
11863 2014-02-19 Tom Tromey <tromey@redhat.com>
11865 * target-delegates.c: Rebuild.
11866 * target.c (update_current_target): Don't inherit or default
11867 to_traceframe_info.
11868 (return_null): Remove.
11869 * target.h (struct target_ops) <to_traceframe_info>: Use
11870 TARGET_DEFAULT_RETURN.
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11874 * target-delegates.c: Rebuild.
11875 * target.c (update_current_target): Don't inherit or default
11876 to_static_tracepoint_markers_by_strid.
11877 * target.h (struct target_ops)
11878 <to_static_tracepoint_markers_by_strid>: Use
11879 TARGET_DEFAULT_NORETURN.
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11883 * target-delegates.c: Rebuild.
11884 * target.c (update_current_target): Don't inherit or default
11885 to_static_tracepoint_marker_at.
11886 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11887 Use TARGET_DEFAULT_RETURN.
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11891 * target-delegates.c: Rebuild.
11892 * target.c (update_current_target): Don't inherit or default
11893 to_set_permissions.
11894 * target.h (struct target_ops) <to_set_permissions>: Use
11895 TARGET_DEFAULT_IGNORE.
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11899 * target-delegates.c: Rebuild.
11900 * target.c (update_current_target): Don't inherit or default
11901 to_get_tib_address.
11902 * target.h (struct target_ops) <to_get_tib_address>: Use
11903 TARGET_DEFAULT_NORETURN.
11905 2014-02-19 Tom Tromey <tromey@redhat.com>
11907 * target-delegates.c: Rebuild.
11908 * target.c (update_current_target): Don't inherit or default
11909 to_set_trace_notes.
11910 * target.h (struct target_ops) <to_set_trace_notes>: Use
11911 TARGET_DEFAULT_RETURN.
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11915 * target-delegates.c: Rebuild.
11916 * target.c (update_current_target): Don't initialize
11917 to_set_trace_buffer_size.
11918 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11919 TARGET_DEFAULT_IGNORE.
11921 2014-02-19 Tom Tromey <tromey@redhat.com>
11923 * target-delegates.c: Rebuild.
11924 * target.c (update_current_target): Don't inherit or default
11925 to_set_circular_trace_buffer.
11926 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11927 TARGET_DEFAULT_IGNORE.
11929 2014-02-19 Tom Tromey <tromey@redhat.com>
11931 * target-delegates.c: Rebuild.
11932 * target.c (update_current_target): Don't inherit or default
11933 to_set_disconnected_tracing.
11934 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11935 TARGET_DEFAULT_IGNORE.
11937 2014-02-19 Tom Tromey <tromey@redhat.com>
11939 * target-delegates.c: Rebuild.
11940 * target.c (update_current_target): Don't inherit or default
11941 to_get_min_fast_tracepoint_insn_len.
11942 (return_minus_one): Remove.
11943 * target.h (struct target_ops)
11944 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11948 * target-delegates.c: Rebuild.
11949 * target.c (update_current_target): Don't inherit or default
11950 to_get_raw_trace_data.
11951 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11952 TARGET_DEFAULT_NORETURN.
11954 2014-02-19 Tom Tromey <tromey@redhat.com>
11956 * target-delegates.c: Rebuild.
11957 * target.c (update_current_target): Don't inherit or default
11958 to_upload_trace_state_variables.
11959 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11960 Use TARGET_DEFAULT_RETURN.
11962 2014-02-19 Tom Tromey <tromey@redhat.com>
11964 * target-delegates.c: Rebuild.
11965 * target.c (update_current_target): Don't inherit or default
11966 to_upload_tracepoints.
11967 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11968 TARGET_DEFAULT_RETURN.
11970 2014-02-19 Tom Tromey <tromey@redhat.com>
11972 * target-delegates.c: Rebuild.
11973 * target.c (update_current_target): Don't inherit or default
11974 to_save_trace_data.
11975 * target.h (struct target_ops) <to_save_trace_data>: Use
11976 TARGET_DEFAULT_NORETURN.
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11980 * target-delegates.c: Rebuild.
11981 * target.c (update_current_target): Don't inherit or default
11982 to_get_trace_state_variable_value.
11983 * target.h (struct target_ops)
11984 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11988 * target-delegates.c: Rebuild.
11989 * target.c (update_current_target): Don't inherit or default
11991 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
11998 * target.h (struct target_ops) <to_trace_stop>: Use
11999 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
12006 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12007 TARGET_DEFAULT_NORETURN.
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_get_trace_status.
12014 * target.h (struct target_ops) <to_get_trace_status>: Use
12015 TARGET_DEFAULT_RETURN.
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
12022 * target.h (struct target_ops) <to_trace_start>: Use
12023 TARGET_DEFAULT_NORETURN.
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
12029 to_trace_set_readonly_regions.
12030 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12031 Use TARGET_DEFAULT_NORETURN.
12033 2014-02-19 Tom Tromey <tromey@redhat.com>
12035 * target-delegates.c: Rebuild.
12036 * target.c (update_current_target): Don't inherit or default
12037 to_disable_tracepoint.
12038 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12039 TARGET_DEFAULT_NORETURN.
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12043 * target-delegates.c: Rebuild.
12044 * target.c (update_current_target): Don't inherit or default
12045 to_enable_tracepoint.
12046 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12047 TARGET_DEFAULT_NORETURN.
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12051 * target-delegates.c: Rebuild.
12052 * target.c (update_current_target): Don't inherit or default
12053 to_download_trace_state_variable.
12054 * target.h (struct target_ops) <to_download_trace_state_variable>:
12055 Use TARGET_DEFAULT_NORETURN.
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12059 * target-delegates.c: Rebuild.
12060 * target.c (update_current_target): Don't inherit or default
12061 to_can_download_tracepoint.
12062 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12063 TARGET_DEFAULT_RETURN.
12065 2014-02-19 Tom Tromey <tromey@redhat.com>
12067 * target-delegates.c: Rebuild.
12068 * target.c (update_current_target): Don't inherit or default
12069 to_download_tracepoint.
12070 * target.h (struct target_ops) <to_download_tracepoint>: Use
12071 TARGET_DEFAULT_NORETURN.
12073 2014-02-19 Tom Tromey <tromey@redhat.com>
12075 * target-delegates.c: Rebuild.
12076 * target.c (update_current_target): Don't inherit or default
12078 * target.h (struct target_ops) <to_trace_init>: Use
12079 TARGET_DEFAULT_RETURN.
12081 2014-02-19 Tom Tromey <tromey@redhat.com>
12083 * target-delegates.c: Rebuild.
12084 * target.c (update_current_target): Don't inherit or default
12085 to_supports_string_tracing.
12086 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12087 TARGET_DEFAULT_RETURN.
12089 2014-02-19 Tom Tromey <tromey@redhat.com>
12091 * target-delegates.c: Rebuild.
12092 * target.c (update_current_target): Don't inherit or default
12093 to_supports_enable_disable_tracepoint.
12094 * target.h (struct target_ops)
12095 <to_supports_enable_disable_tracepoint>: Use
12096 TARGET_DEFAULT_RETURN.
12098 2014-02-19 Tom Tromey <tromey@redhat.com>
12100 * target-delegates.c: Rebuild.
12101 * target.c (update_current_target): Don't inherit or default
12102 to_supports_multi_process.
12103 * target.h (struct target_ops) <to_supports_multi_process>: Use
12104 TARGET_DEFAULT_RETURN.
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12108 * target-delegates.c: Rebuild.
12109 * target.c (update_current_target): Don't inherit or default
12110 to_get_ada_task_ptid.
12111 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12112 TARGET_DEFAULT_FUNC.
12114 2014-02-19 Tom Tromey <tromey@redhat.com>
12116 * target-delegates.c: Rebuild.
12117 * target.c (update_current_target): Don't inherit or default
12118 to_thread_architecture.
12119 * target.h (struct target_ops) <to_thread_architecture>: Use
12120 TARGET_DEFAULT_FUNC.
12122 2014-02-19 Tom Tromey <tromey@redhat.com>
12124 * target-delegates.c: Rebuild.
12125 * target.c (update_current_target): Don't inherit or default
12126 to_execution_direction.
12127 * target.h (struct target_ops) <to_execution_direction>: Use
12128 TARGET_DEFAULT_FUNC.
12130 2014-02-19 Tom Tromey <tromey@redhat.com>
12132 * target-delegates.c: Rebuild.
12133 * target.c (update_current_target): Don't inherit or default
12134 to_can_execute_reverse.
12135 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12136 TARGET_DEFAULT_RETURN.
12137 (target_can_execute_reverse): Unconditionally delegate.
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12141 * target-delegates.c: Rebuild.
12142 * target.c (update_current_target): Don't inherit or default
12144 (dummy_goto_bookmark): Remove.
12145 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12146 * target.h (struct target_ops) <to_goto_bookmark>: Use
12147 TARGET_DEFAULT_NORETURN.
12149 2014-02-19 Tom Tromey <tromey@redhat.com>
12151 * target-delegates.c: Rebuild.
12152 * target.c (update_current_target): Don't inherit or default
12154 (dummy_get_bookmark): Remove.
12155 (init_dummy_target): Don't inherit or default to_get_bookmark.
12156 * target.h (struct target_ops) <to_get_bookmark>: Use
12157 TARGET_DEFAULT_NORETURN
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12161 * target-delegates.c: Rebuild.
12162 * target.c (update_current_target): Don't inherit or default
12163 to_make_corefile_notes.
12164 (init_dummy_target): Don't initialize to_make_corefile_notes.
12165 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12166 TARGET_DEFAULT_FUNC.
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * target-delegates.c: Rebuild.
12171 * target.c (update_current_target): Don't inherit or default
12172 to_find_memory_regions.
12173 (init_dummy_target): Don't initialize to_find_memory_regions.
12174 * target.h (struct target_ops) <to_find_memory_regions>: Use
12175 TARGET_DEFAULT_FUNC.
12177 2014-02-19 Tom Tromey <tromey@redhat.com>
12179 * target-delegates.c: Rebuild.
12180 * target.c (update_current_target): Don't inherit or default
12182 * target.h (struct target_ops) <to_log_command>: Use
12183 TARGET_DEFAULT_IGNORE.
12184 (target_log_command): Unconditionally delegate.
12186 2014-02-19 Tom Tromey <tromey@redhat.com>
12188 * target-delegates.c: Rebuild.
12189 * target.c (update_current_target): Don't inherit or default
12190 to_pid_to_exec_file.
12191 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12192 TARGET_DEFAULT_RETURN.
12194 2014-02-19 Tom Tromey <tromey@redhat.com>
12196 * target-delegates.c: Rebuild.
12197 * target.c (update_current_target): Don't inherit or default
12199 (target_thread_name): Unconditionally delegate.
12200 * target.h (struct target_ops) <to_thread_name>: Use
12201 TARGET_DEFAULT_RETURN.
12203 2014-02-19 Tom Tromey <tromey@redhat.com>
12205 * target-delegates.c: Rebuild.
12206 * target.c (update_current_target): Don't inherit or default
12207 to_extra_thread_info.
12208 * target.h (struct target_ops) <to_extra_thread_info>: Use
12209 TARGET_DEFAULT_RETURN.
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12213 * target-delegates.c: Rebuild.
12214 * target.c (update_current_target): Don't inherit or default
12216 * target.h (struct target_ops) <to_has_exited>: Use
12217 TARGET_DEFAULT_RETURN..
12219 2014-02-19 Tom Tromey <tromey@redhat.com>
12221 * target-delegates.c: Rebuild.
12222 * target.c (update_current_target): Don't inherit or default
12223 to_set_syscall_catchpoint.
12224 (return_one): Remove.
12225 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12226 TARGET_DEFAULT_RETURN.
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12230 * target-delegates.c: Rebuild.
12231 * target.c (update_current_target): Don't inherit or default
12232 to_insert_exec_catchpoint.
12233 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12234 TARGET_DEFAULT_RETURN.
12236 2014-01-08 Tom Tromey <tromey@redhat.com>
12238 * target-delegates.c: Rebuild.
12239 * target.c (update_current_target): Don't inherit or default
12240 to_insert_exec_catchpoint.
12241 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12242 TARGET_DEFAULT_RETURN.
12244 2014-02-19 Tom Tromey <tromey@redhat.com>
12246 * target-delegates.c: Rebuild.
12247 * target.c (update_current_target): Don't inherit or default
12248 to_remove_vfork_catchpoint.
12249 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12250 TARGET_DEFAULT_RETURN.
12252 2014-02-19 Tom Tromey <tromey@redhat.com>
12254 * target-delegates.c: Rebuild.
12255 * target.c (update_current_target): Don't inherit or default
12256 to_insert_vfork_catchpoint.
12257 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12258 TARGET_DEFAULT_RETURN.
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12262 * target-delegates.c: Rebuild.
12263 * target.c (update_current_target): Don't inherit or default
12264 to_remove_fork_catchpoint.
12265 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12266 TARGET_DEFAULT_RETURN.
12268 2014-02-19 Tom Tromey <tromey@redhat.com>
12270 * target-delegates.c: Rebuild.
12271 * target.c (update_current_target): Don't inherit or default
12272 to_insert_fork_catchpoint.
12273 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12274 TARGET_DEFAULT_RETURN.
12276 2014-02-19 Tom Tromey <tromey@redhat.com>
12278 * target-delegates.c: Rebuild.
12279 * target.c (update_current_target): Don't inherit or default
12280 to_post_startup_inferior.
12281 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12282 TARGET_DEFAULT_IGNORE.
12284 2014-02-19 Tom Tromey <tromey@redhat.com>
12286 * target-delegates.c: Rebuild.
12287 * target.c (update_current_target): Don't inherit or default
12289 * target.h (struct target_ops) <to_load>: Use
12290 TARGET_DEFAULT_NORETURN.
12292 2014-02-19 Tom Tromey <tromey@redhat.com>
12294 * target-delegates.c: Rebuild.
12295 * target.c (update_current_target): Don't inherit or default
12297 * target.h (struct target_ops) <to_terminal_info>: Use
12298 TARGET_DEFAULT_FUNC.
12300 2014-02-19 Tom Tromey <tromey@redhat.com>
12302 * target-delegates.c: Rebuild.
12303 * target.c (update_current_target): Don't inherit or default
12304 to_terminal_save_ours.
12305 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12306 TARGET_DEFAULT_IGNORE.
12308 2014-02-19 Tom Tromey <tromey@redhat.com>
12310 * target-delegates.c: Rebuild.
12311 * target.c (update_current_target): Don't inherit or default
12313 * target.h (struct target_ops) <to_terminal_ours>: Use
12314 TARGET_DEFAULT_IGNORE.
12316 2014-02-19 Tom Tromey <tromey@redhat.com>
12318 * target-delegates.c: Rebuild.
12319 * target.c (update_current_target): Don't inherit or default
12320 to_terminal_ours_for_output.
12321 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12322 TARGET_DEFAULT_IGNORE.
12324 2014-02-19 Tom Tromey <tromey@redhat.com>
12326 * target-delegates.c: Rebuild.
12327 * target.c (update_current_target): Don't inherit or default
12328 to_terminal_inferior.
12329 * target.h (struct target_ops) <to_terminal_inferior>: Use
12330 TARGET_DEFAULT_IGNORE.
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12334 * target-delegates.c: Rebuild.
12335 * target.c (update_current_target): Don't inherit or default
12337 * target.h (struct target_ops) <to_terminal_init>: Use
12338 TARGET_DEFAULT_IGNORE.
12340 2014-02-19 Tom Tromey <tromey@redhat.com>
12342 * target-delegates.c: Rebuild.
12343 * target.c (update_current_target): Don't inherit or default
12344 to_can_accel_watchpoint_condition.
12345 * target.h (struct target_ops)
12346 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12348 2014-02-19 Tom Tromey <tromey@redhat.com>
12350 * target-delegates.c: Rebuild.
12351 * target.c (update_current_target): Don't inherit or default
12352 to_region_ok_for_hw_watchpoint.
12353 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12354 Use TARGET_DEFAULT_FUNC.
12356 2014-02-19 Tom Tromey <tromey@redhat.com>
12358 * target-delegates.c: Rebuild.
12359 * target.c (update_current_target): Don't inherit or default
12360 to_watchpoint_addr_within_range.
12361 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12362 Use TARGET_DEFAULT_FUNC.
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12366 * target-delegates.c: Rebuild.
12367 * target.c (update_current_target): Don't inherit or default
12368 to_remove_watchpoint.
12369 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12370 TARGET_DEFAULT_NORETURN.
12372 2014-02-19 Tom Tromey <tromey@redhat.com>
12374 * target-delegates.c: Rebuild.
12375 * target.c (update_current_target): Don't inherit or default
12376 to_insert_watchpoint.
12377 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12378 TARGET_DEFAULT_RETURN.
12380 2014-02-19 Tom Tromey <tromey@redhat.com>
12382 * target-delegates.c: Rebuild.
12383 * target.c (update_current_target): Don't inherit or default
12384 to_remove_hw_breakpoint.
12385 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12386 TARGET_DEFAULT_RETURN.
12388 2014-02-19 Tom Tromey <tromey@redhat.com>
12390 * target-delegates.c: Rebuild.
12391 * target.c (update_current_target): Don't inherit or default
12392 to_insert_hw_breakpoint.
12393 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12394 TARGET_DEFAULT_RETURN.
12396 2014-02-19 Tom Tromey <tromey@redhat.com>
12398 * target-delegates.c: Rebuild.
12399 * target.c (update_current_target): Don't inherit or default
12400 to_can_use_hw_breakpoint.
12401 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12402 TARGET_DEFAULT_RETURN.
12404 2014-02-19 Tom Tromey <tromey@redhat.com>
12406 * target-delegates.c: Rebuild.
12407 * target.c (update_current_target): Don't inherit or default
12409 * target.h (struct target_ops) <to_files_info>: Use
12410 TARGET_DEFAULT_IGNORE.
12412 2014-02-19 Tom Tromey <tromey@redhat.com>
12414 * target-delegates.c: Rebuild.
12415 * target.c (update_current_target): Don't inherit or default
12417 * target.h (struct target_ops) <to_store>: Use
12418 TARGET_DEFAULT_NORETURN.
12420 2014-02-19 Tom Tromey <tromey@redhat.com>
12422 * target-delegates.c: Rebuild.
12423 * target.c (update_current_target): Don't inherit or default
12425 * target.h (struct target_ops) <to_post_attach>: Use
12426 TARGET_DEFAULT_IGNORE.
12428 2014-02-19 Tom Tromey <tromey@redhat.com>
12430 * target-delegates.c: Rebuild.
12431 * target.c (update_current_target): Don't inherit or default
12433 (default_rcmd): New function.
12434 (do_monitor_command): Unconditionally delegate.
12435 * target.h (struct target_ops) <to_rmcd>: Use
12436 TARGET_DEFAULT_FUNC.
12438 2014-02-19 Tom Tromey <tromey@redhat.com>
12440 * target-delegates.c: Rebuild.
12441 * target.c (init_dummy_target): Don't initialize to_attach.
12442 (target_attach): Unconditionally delegate.
12443 * target.h (struct target_ops) <to_attach>: Use
12444 TARGET_DEFAULT_FUNC.
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12448 * target-delegates.c: Rebuild.
12449 * target.c (target_detach): Unconditionally delegate.
12450 (init_dummy_target): Don't initialize to_detach.
12451 * target.h (struct target_ops) <to_detach>: Use
12452 TARGET_DEFAULT_IGNORE.
12454 2014-02-19 Tom Tromey <tromey@redhat.com>
12456 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12458 (target_augmented_libraries_svr4_read): Add argument.
12459 * target.c (update_current_target): Update.
12460 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12463 2014-02-19 Tom Tromey <tromey@redhat.com>
12465 * target.h (struct target_ops) <to_call_history_range>: Add
12467 * target.c (target_call_history_range): Add argument.
12468 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12470 (record_btrace_call_history_from): Update.
12472 2014-02-19 Tom Tromey <tromey@redhat.com>
12474 * target.h (struct target_ops) <to_call_history_from>: Add
12476 * target.c (target_call_history_from): Add argument.
12477 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12480 2014-02-19 Tom Tromey <tromey@redhat.com>
12482 * target.h (struct target_ops) <to_call_history>: Add argument.
12483 * target.c (target_call_history): Add argument.
12484 * record-btrace.c (record_btrace_call_history): Add 'self'
12487 2014-02-19 Tom Tromey <tromey@redhat.com>
12489 * target.h (struct target_ops) <to_insn_history_range>: Add
12491 * target.c (target_insn_history_range): Add argument.
12492 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12494 (record_btrace_insn_history_from): Update.
12496 2014-02-19 Tom Tromey <tromey@redhat.com>
12498 * target.h (struct target_ops) <to_insn_history_from>: Add
12500 * target.c (target_insn_history_from): Add argument.
12501 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12504 2014-02-19 Tom Tromey <tromey@redhat.com>
12506 * target.h (struct target_ops) <to_insn_history>: Add argument.
12507 * target.c (target_insn_history): Add argument.
12508 * record-btrace.c (record_btrace_insn_history): Add 'self'
12511 2014-02-19 Tom Tromey <tromey@redhat.com>
12513 * target.h (struct target_ops) <to_goto_record>: Add argument.
12514 * target.c (target_goto_record): Add argument.
12515 * record-full.c (record_full_goto): Add 'self' argument.
12516 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12518 2014-02-19 Tom Tromey <tromey@redhat.com>
12520 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12521 * target.c (target_goto_record_end): Add argument.
12522 * record-full.c (record_full_goto_end): Add 'self' argument.
12523 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12525 2014-02-19 Tom Tromey <tromey@redhat.com>
12527 * target.h (struct target_ops) <to_goto_record_begin>: Add
12529 * target.c (target_goto_record_begin): Add argument.
12530 * record-full.c (record_full_goto_begin): Add 'self' argument.
12531 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12534 2014-02-19 Tom Tromey <tromey@redhat.com>
12536 * target.h (struct target_ops) <to_record_is_replaying>: Add
12538 * target.c (target_record_is_replaying): Add argument.
12539 * record-full.c (record_full_is_replaying): Add 'self' argument.
12540 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12542 (record_btrace_xfer_partial, record_btrace_store_registers)
12543 (record_btrace_prepare_to_store, record_btrace_resume)
12544 (record_btrace_wait, record_btrace_decr_pc_after_break)
12545 (record_btrace_find_new_threads, record_btrace_thread_alive):
12548 2014-02-19 Tom Tromey <tromey@redhat.com>
12550 * target.h (struct target_ops) <to_delete_record>: Add argument.
12551 * target.c (target_delete_record): Add argument.
12552 * record-full.c (record_full_delete): Add 'self' argument.
12554 2014-02-19 Tom Tromey <tromey@redhat.com>
12556 * target.h (struct target_ops) <to_save_record>: Add argument.
12557 * target.c (target_save_record): Add argument.
12558 * record-full.c (record_full_save): Add 'self' argument.
12559 (record_full_save): Add 'self' argument.
12561 2014-02-19 Tom Tromey <tromey@redhat.com>
12563 * target.h (struct target_ops) <to_info_record>: Add argument.
12564 * target.c (target_info_record): Add argument.
12565 * record.c (info_record_command): Add argument.
12566 * record-full.c (record_full_info): Add 'self' argument.
12567 * record-btrace.c (record_btrace_info): Add 'self' argument.
12569 2014-02-19 Tom Tromey <tromey@redhat.com>
12571 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12572 * target.c (target_stop_recording): Add argument.
12573 * record.c (record_stop): Add argument.
12574 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12577 2014-02-19 Tom Tromey <tromey@redhat.com>
12579 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12580 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12581 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12583 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12584 (_initialize_amd64_linux_nat): Use it.
12585 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12586 (_initialize_i386_linux_nat): Use it.
12588 2014-02-19 Tom Tromey <tromey@redhat.com>
12590 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12591 * target.c (target_teardown_btrace): Add argument.
12592 * remote.c (remote_teardown_btrace): Add 'self' argument.
12593 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12595 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12598 2014-02-19 Tom Tromey <tromey@redhat.com>
12600 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12601 * target.c (target_disable_btrace): Add argument.
12602 * remote.c (remote_disable_btrace): Add 'self' argument.
12603 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12605 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12610 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12611 * target.c (target_enable_btrace): Add argument.
12612 * remote.c (remote_enable_btrace): Add 'self' argument.
12613 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12615 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12618 2014-02-19 Tom Tromey <tromey@redhat.com>
12620 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12621 (target_can_use_agent): Add argument.
12622 * target.c (update_current_target): Update.
12623 * remote.c (remote_can_use_agent): Add 'self' argument.
12624 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12626 2014-02-19 Tom Tromey <tromey@redhat.com>
12628 * target.h (struct target_ops) <to_use_agent>: Add argument.
12629 (target_use_agent): Add argument.
12630 * target.c (update_current_target): Update.
12631 * remote.c (remote_use_agent): Add 'self' argument.
12632 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12634 2014-02-19 Tom Tromey <tromey@redhat.com>
12636 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12637 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12638 (target_traceframe_info): Add argument.
12639 * target.c (update_current_target): Update.
12640 * remote.c (remote_traceframe_info): Add 'self' argument.
12641 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12643 2014-02-19 Tom Tromey <tromey@redhat.com>
12645 * target.h (target_static_tracepoint_markers_by_strid): Add
12647 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12649 * target.c (update_current_target): Update.
12650 * remote.c (struct target_ops)
12651 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12652 * linux-nat.c (struct target_ops)
12653 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12655 2014-02-19 Tom Tromey <tromey@redhat.com>
12657 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12659 (target_static_tracepoint_marker_at): Add argument.
12660 * target.c (update_current_target): Update.
12661 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12664 2014-02-19 Tom Tromey <tromey@redhat.com>
12666 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12667 (target_set_permissions): Add argument.
12668 * target.c (update_current_target): Update.
12669 * remote.c (remote_set_permissions): Add 'self' argument.
12670 (remote_start_remote): Update.
12672 2014-02-19 Tom Tromey <tromey@redhat.com>
12674 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12675 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12676 (target_get_tib_address): Add argument.
12677 * target.c (update_current_target): Update.
12678 * remote.c (remote_get_tib_address): Add 'self' argument.
12680 2014-02-19 Tom Tromey <tromey@redhat.com>
12682 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12683 (target_set_trace_notes): Add argument.
12684 * target.c (update_current_target): Update.
12685 * remote.c (remote_set_trace_notes): Add 'self' argument.
12687 2014-02-19 Tom Tromey <tromey@redhat.com>
12689 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12691 (target_set_trace_buffer_size): Add argument.
12692 * target.c (update_current_target): Update.
12693 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12695 2014-02-19 Tom Tromey <tromey@redhat.com>
12697 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12699 (target_set_circular_trace_buffer): Add argument.
12700 * target.c (update_current_target): Update.
12701 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12704 2014-02-19 Tom Tromey <tromey@redhat.com>
12706 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12708 (target_set_disconnected_tracing): Add argument.
12709 * target.c (update_current_target): Update.
12710 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12714 * target.h (struct target_ops)
12715 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12716 (target_get_min_fast_tracepoint_insn_len): Add argument.
12717 * target.c (update_current_target): Update.
12718 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12721 2014-02-19 Tom Tromey <tromey@redhat.com>
12723 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12725 (target_get_raw_trace_data): Add argument.
12726 * target.c (update_current_target): Update.
12727 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12729 2014-02-19 Tom Tromey <tromey@redhat.com>
12731 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12733 (target_upload_trace_state_variables): Add argument.
12734 * target.c (update_current_target): Update.
12735 * remote.c (remote_upload_trace_state_variables): Add 'self'
12737 (remote_start_remote): Update.
12739 2014-02-19 Tom Tromey <tromey@redhat.com>
12741 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12743 (target_upload_tracepoints): Add argument.
12744 * target.c (update_current_target): Update.
12745 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12746 (remote_start_remote): Update.
12748 2014-02-19 Tom Tromey <tromey@redhat.com>
12750 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12751 (target_save_trace_data): Add argument.
12752 * target.c (update_current_target): Update.
12753 * remote.c (remote_save_trace_data): Add 'self' argument.
12755 2014-02-19 Tom Tromey <tromey@redhat.com>
12757 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12759 * target.h (struct target_ops)
12760 <to_get_trace_state_variable_value>: Add argument.
12761 (target_get_trace_state_variable_value): Add argument.
12762 * target.c (update_current_target): Update.
12763 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12765 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12767 2014-02-19 Tom Tromey <tromey@redhat.com>
12769 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12770 * target.h (struct target_ops) <to_trace_find>: Add argument.
12771 (target_trace_find): Add argument.
12772 * target.c (update_current_target): Update.
12773 * remote.c (remote_trace_find): Add 'self' argument.
12774 * ctf.c (ctf_trace_find): Add 'self' argument.
12776 2014-02-19 Tom Tromey <tromey@redhat.com>
12778 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12779 (target_trace_stop): Add argument.
12780 * target.c (update_current_target): Update.
12781 * remote.c (remote_trace_stop): Add 'self' argument.
12783 2014-02-19 Tom Tromey <tromey@redhat.com>
12785 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12786 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12788 (target_get_tracepoint_status): Add argument.
12789 * target.c (update_current_target): Update.
12790 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12792 2014-02-19 Tom Tromey <tromey@redhat.com>
12794 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12795 * target.h (struct target_ops) <to_get_trace_status>: Add
12797 (target_get_trace_status): Add argument.
12798 * target.c (update_current_target): Update.
12799 * remote.c (remote_get_trace_status): Add 'self' argument.
12800 (remote_start_remote, remote_can_download_tracepoint): Update.
12801 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12803 2014-02-19 Tom Tromey <tromey@redhat.com>
12805 * target.h (struct target_ops) <to_trace_start>: Add argument.
12806 (target_trace_start): Add argument.
12807 * target.c (update_current_target): Update.
12808 * remote.c (remote_trace_start): Add 'self' argument.
12810 2014-02-19 Tom Tromey <tromey@redhat.com>
12812 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12814 (target_trace_set_readonly_regions): Add argument.
12815 * target.c (update_current_target): Update.
12816 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12819 2014-02-19 Tom Tromey <tromey@redhat.com>
12821 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12823 (target_disable_tracepoint): Add argument.
12824 * target.c (update_current_target): Update.
12825 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12827 2014-02-19 Tom Tromey <tromey@redhat.com>
12829 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12831 (target_enable_tracepoint): Add argument.
12832 * target.c (update_current_target): Update.
12833 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12835 2014-02-19 Tom Tromey <tromey@redhat.com>
12837 * target.h (struct target_ops) <to_download_trace_state_variable>:
12839 (target_download_trace_state_variable): Add argument.
12840 * target.c (update_current_target): Update.
12841 * remote.c (remote_download_trace_state_variable): Add 'self'
12844 2014-02-19 Tom Tromey <tromey@redhat.com>
12846 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12848 (target_can_download_tracepoint): Add argument.
12849 * target.c (update_current_target): Update.
12850 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12852 2014-02-19 Tom Tromey <tromey@redhat.com>
12854 * target.h (struct target_ops) <to_download_tracepoint>: Add
12856 (target_download_tracepoint): Add argument.
12857 * target.c (update_current_target): Update.
12858 * remote.c (remote_download_tracepoint): Add 'self' argument.
12860 2014-02-19 Tom Tromey <tromey@redhat.com>
12862 * target.h (struct target_ops) <to_trace_init>: Add argument.
12863 (target_trace_init): Add argument.
12864 * target.c (update_current_target): Update.
12865 * remote.c (remote_trace_init): Add 'self' argument.
12867 2014-02-19 Tom Tromey <tromey@redhat.com>
12869 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12870 * target.c (target_fileio_readlink): Add argument.
12871 * remote.c (remote_hostio_readlink): Add 'self' argument.
12872 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12874 2014-02-19 Tom Tromey <tromey@redhat.com>
12876 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12877 * target.c (target_fileio_unlink): Add argument.
12878 * remote.c (remote_hostio_unlink): Add 'self' argument.
12879 (remote_file_delete): Update.
12880 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12882 2014-02-19 Tom Tromey <tromey@redhat.com>
12884 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12885 * target.c (target_fileio_close): Add argument.
12886 * remote.c (remote_hostio_close): Add 'self' argument.
12887 (remote_hostio_close_cleanup): Update.
12888 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12890 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12892 2014-02-19 Tom Tromey <tromey@redhat.com>
12894 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12895 * target.c (target_fileio_pread): Add argument.
12896 * remote.c (remote_hostio_pread): Add 'self' argument.
12897 (remote_bfd_iovec_pread, remote_file_get): Update.
12898 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12900 2014-02-19 Tom Tromey <tromey@redhat.com>
12902 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12903 * target.c (target_fileio_pwrite): Add argument.
12904 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12905 (remote_file_put): Update.
12906 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12908 2014-02-19 Tom Tromey <tromey@redhat.com>
12910 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12911 * target.c (target_fileio_open): Add argument.
12912 * remote.c (remote_hostio_open): Add 'self' argument.
12913 (remote_bfd_iovec_open): Add 'self' argument.
12914 (remote_file_put): Add 'self' argument.
12915 (remote_file_get): Add 'self' argument.
12916 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12918 2014-02-19 Tom Tromey <tromey@redhat.com>
12920 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12922 (target_can_run_breakpoint_commands): Add argument.
12923 * target.c (update_current_target): Update.
12924 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12926 (remote_insert_breakpoint): Add 'self' argument.
12927 (remote_insert_hw_breakpoint): Add 'self' argument.
12928 (remote_can_run_breakpoint_commands): Add 'self' argument.
12930 2014-02-19 Tom Tromey <tromey@redhat.com>
12932 * target.h (struct target_ops)
12933 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12934 (target_supports_evaluation_of_breakpoint_conditions): Add
12936 * target.c (update_current_target): Update.
12937 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12939 (remote_insert_breakpoint): Add 'self' argument.
12940 (remote_insert_hw_breakpoint): Add 'self' argument.
12941 (remote_supports_cond_breakpoints): Add 'self' argument.
12943 2014-02-19 Tom Tromey <tromey@redhat.com>
12945 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12947 (target_supports_string_tracing): Add argument.
12948 * target.c (update_current_target): Update.
12949 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12951 2014-02-19 Tom Tromey <tromey@redhat.com>
12953 * target.h (struct target_ops)
12954 <to_supports_disable_randomization>: Add argument.
12955 * target.c (find_default_supports_disable_randomization): Add
12957 (target_supports_disable_randomization): Add argument.
12958 (find_default_supports_disable_randomization): Add 'self'
12960 * remote.c (extended_remote_supports_disable_randomization): Add
12962 (remote_supports_disable_randomization): Add 'self' argument.
12963 (extended_remote_create_inferior): Update.
12964 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12967 2014-02-19 Tom Tromey <tromey@redhat.com>
12969 * target.h (struct target_ops)
12970 <to_supports_enable_disable_tracepoint>: Add argument.
12971 (target_supports_enable_disable_tracepoint): Add argument.
12972 * target.c (update_current_target): Update.
12973 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12976 2014-02-19 Tom Tromey <tromey@redhat.com>
12978 * target.h (struct target_ops) <to_supports_multi_process>: Add
12980 (target_supports_multi_process): Add argument.
12981 * target.c (update_current_target): Update.
12982 * remote.c (remote_supports_multi_process): Add 'self' argument.
12983 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12985 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12988 2014-02-19 Tom Tromey <tromey@redhat.com>
12990 * target.h (struct target_ops) <to_execution_direction>: Add
12992 (target_execution_direction): Add argument.
12993 * target.c (default_execution_direction): Add 'self' argument.
12994 * record-full.c (record_full_execution_direction): Add 'self'
12997 2014-02-19 Tom Tromey <tromey@redhat.com>
12999 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13001 (target_can_execute_reverse): Add argument.
13002 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13003 * record-full.c (record_full_can_execute_reverse): Add 'self'
13005 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13008 2014-02-19 Tom Tromey <tromey@redhat.com>
13010 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13011 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13013 (target_get_ada_task_ptid): Add argument.
13014 * target.c (update_current_target): Update.
13015 (default_get_ada_task_ptid): Add 'self' argument.
13016 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13017 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13018 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13020 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13022 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13024 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13026 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13027 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13030 2014-02-19 Tom Tromey <tromey@redhat.com>
13032 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13033 (target_goto_bookmark): Add argument.
13034 * target.c (dummy_goto_bookmark): Add 'self' argument.
13035 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13037 2014-02-19 Tom Tromey <tromey@redhat.com>
13039 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13040 (target_get_bookmark): Add argument.
13041 * target.c (dummy_get_bookmark): Add 'self' argument.
13042 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13044 2014-02-19 Tom Tromey <tromey@redhat.com>
13046 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13048 (target_make_corefile_notes): Add argument.
13049 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13050 * procfs.c (procfs_make_note_section): Add 'self' argument.
13051 (procfs_make_note_section): Add 'self' argument.
13052 (procfs_make_note_section): Add 'self' argument.
13053 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13055 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13056 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13057 * exec.c (exec_make_note_section): Add 'self' argument.
13058 (exec_make_note_section): Add 'self' argument.
13060 2014-02-19 Tom Tromey <tromey@redhat.com>
13062 * target.h (struct target_ops) <to_find_memory_regions>: Add
13064 (target_find_memory_regions): Add argument.
13065 * target.c (dummy_find_memory_regions): Add 'self' argument.
13066 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13067 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13068 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13069 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13070 * exec. (exec_do_find_memory_regions): New global.
13071 (exec_set_find_memory_regions): Rewrite.
13072 (exec_find_memory_regions): New function.
13073 (init_exec_ops): Use exec_find_memory_regions.
13075 2014-02-19 Tom Tromey <tromey@redhat.com>
13077 * target.h (struct target_ops) <to_supports_non_stop>: Add
13079 * target.c (find_default_supports_non_stop): Add argument.
13080 (target_supports_non_stop): Add argument.
13081 (find_default_supports_non_stop): Add 'self' argument.
13082 * remote.c (remote_supports_non_stop): Add 'self' argument.
13083 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13087 * target.h (struct target_ops) <to_log_command>: Add argument.
13088 (target_log_command): Add argument.
13089 * serial.h (serial_log_command): Add 'self' argument.
13090 * serial.c (serial_log_command): Add 'self' argument.
13092 2014-02-19 Tom Tromey <tromey@redhat.com>
13094 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13095 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13097 (target_pid_to_exec_file): Add argument.
13098 * target.c (debug_to_pid_to_exec_file): Add argument.
13099 (update_current_target): Update.
13100 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13101 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13102 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13103 (linux_handle_extended_wait): Update.
13104 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13105 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13106 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13107 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13109 2014-02-19 Tom Tromey <tromey@redhat.com>
13111 * target.h (struct target_ops) <to_rcmd>: Add argument.
13112 (target_rcmd): Add argument.
13113 * target.c (debug_to_rcmd): Add argument.
13114 (update_current_target, do_monitor_command): Update.
13115 * remote.c (remote_rcmd): Add 'self' argument.
13116 * monitor.c (monitor_rcmd): Add 'self' argument.
13118 2014-02-19 Tom Tromey <tromey@redhat.com>
13120 * windows-nat.c (windows_stop): Add 'self' argument.
13121 * target.h (struct target_ops) <to_stop>: Add argument.
13122 * target.c (target_stop): Add argument.
13123 (debug_to_stop): Add argument.
13124 (update_current_target): Update.
13125 * remote.c (remote_stop): Add 'self' argument.
13126 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13127 (gdbsim_cntrl_c): Update.
13128 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13129 * procfs.c (procfs_stop): Add 'self' argument.
13130 * nto-procfs.c (procfs_stop): Add 'self' argument.
13131 * monitor.c (monitor_stop): Add 'self' argument.
13132 (monitor_open): Update.
13133 * linux-nat.c (linux_nat_stop): Add argument.
13134 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13135 * gnu-nat.c (gnu_stop): Add 'self' argument.
13136 * darwin-nat.c (darwin_stop): Add 'self' argument.
13138 2014-02-19 Tom Tromey <tromey@redhat.com>
13140 * target.h (struct target_ops) <to_thread_name>: Add argument.
13141 * target.c (target_thread_name): Add argument.
13142 (update_current_target): Update.
13143 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13145 2014-02-19 Tom Tromey <tromey@redhat.com>
13147 * target.h (struct target_ops) <to_extra_thread_info>: Add
13149 (target_extra_thread_info): Add argument.
13150 * target.c (update_current_target): Update.
13151 * remote.c (remote_threads_extra_info): Add 'self' argument.
13152 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13154 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13155 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13156 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13158 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13160 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13162 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13165 2014-02-19 Tom Tromey <tromey@redhat.com>
13167 * target.h (struct target_ops) <to_program_signals>: Add argument.
13168 * target.c (target_program_signals): Add argument.
13169 * remote.c (remote_program_signals): Add 'self' argument.
13171 2014-02-19 Tom Tromey <tromey@redhat.com>
13173 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13174 * target.c (target_pass_signals): Add argument.
13175 * remote.c (remote_pass_signals): Add 'self' argument.
13176 (remote_start_remote): Update.
13177 * procfs.c (procfs_pass_signals): Add 'self' argument.
13178 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13179 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13180 (linux_nat_create_inferior, linux_nat_attach): Update.
13182 2014-02-19 Tom Tromey <tromey@redhat.com>
13184 * windows-nat.c (windows_can_run): Add 'self' argument.
13185 * target.h (struct target_ops) <to_can_run>: Add argument.
13186 (target_can_run): Add argument.
13187 * target.c (debug_to_can_run): Add argument.
13188 (update_current_target): Update.
13189 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13190 * inf-child.c (inf_child_can_run): Add 'self' argument.
13191 * go32-nat.c (go32_can_run): Add 'self' argument.
13193 2014-02-19 Tom Tromey <tromey@redhat.com>
13195 * target.h (struct target_ops) <to_has_exited>: Add argument.
13196 (target_has_exited): Add argument.
13197 * target.c (debug_to_has_exited): Add argument.
13198 (update_current_target): Update.
13200 2014-02-19 Tom Tromey <tromey@redhat.com>
13202 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13204 (target_set_syscall_catchpoint): Add argument.
13205 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13207 * target.c (update_current_target): Update.
13209 2014-02-19 Tom Tromey <tromey@redhat.com>
13211 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13213 (target_remove_exec_catchpoint): Add argument.
13214 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13215 (update_current_target): Update.
13216 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13219 2014-02-19 Tom Tromey <tromey@redhat.com>
13221 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13223 (target_insert_exec_catchpoint): Add argument.
13224 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13225 (update_current_target): Update.
13226 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13229 2014-02-19 Tom Tromey <tromey@redhat.com>
13231 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13233 (target_remove_vfork_catchpoint): Add argument.
13234 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13235 (update_current_target): Update.
13236 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13239 2014-02-19 Tom Tromey <tromey@redhat.com>
13241 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13243 (target_insert_vfork_catchpoint): Add argument.
13244 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13245 (update_current_target): Update.
13246 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13249 2014-02-19 Tom Tromey <tromey@redhat.com>
13251 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13253 (target_remove_fork_catchpoint): Add argument.
13254 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13255 (update_current_target): Update.
13256 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13259 2014-02-19 Tom Tromey <tromey@redhat.com>
13261 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13263 (target_insert_fork_catchpoint): Add argument.
13264 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13265 (update_current_target): Update.
13266 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13269 2014-02-19 Tom Tromey <tromey@redhat.com>
13271 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13273 (target_post_startup_inferior): Add argument.
13274 * target.c (debug_to_post_startup_inferior): Add argument.
13275 (update_current_target): Update.
13276 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13278 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13280 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13282 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13284 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13286 (super_post_startup_inferior): Likewise.
13287 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13289 (super_post_startup_inferior): Likewise.
13290 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13291 Add 'self' argument.
13292 (super_post_startup_inferior): Likewise.
13294 2014-02-19 Tom Tromey <tromey@redhat.com>
13296 * target.h (struct target_ops) <to_load>: Add argument.
13297 * target.c (target_load): Add argument.
13298 (debug_to_load): Add argument.
13299 (update_current_target): Update.
13300 * remote.c (remote_load): Add 'self' argument.
13301 * remote-sim.c (gdbsim_load): Add 'self' argument.
13302 * remote-mips.c (mips_load): Add 'self' argument.
13303 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13304 * monitor.c (monitor_load): Add 'self' argument.
13305 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13307 2014-02-19 Tom Tromey <tromey@redhat.com>
13309 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13310 (target_terminal_info): Add argument.
13311 * target.c (debug_to_terminal_info): Add argument.
13312 (default_terminal_info): Likewise.
13313 * inflow.c (child_terminal_info): Add 'self' argument.
13314 * inferior.h (child_terminal_info): Add 'self' argument.
13315 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13317 2014-02-19 Tom Tromey <tromey@redhat.com>
13319 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13321 (target_terminal_save_ours): Add argument.
13322 * target.c (debug_to_terminal_save_ours): Add argument.
13323 (update_current_target): Update.
13324 * inflow.c (terminal_save_ours): Add 'self' argument.
13325 * inferior.h (terminal_save_ours): Add 'self' argument.
13327 2014-02-19 Tom Tromey <tromey@redhat.com>
13329 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13330 (target_terminal_ours): Add argument.
13331 * target.c (debug_to_terminal_ours): Add argument.
13332 (update_current_target): Update.
13333 * remote.c (remote_terminal_ours): Add 'self' argument.
13334 (remote_close): Update.
13335 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13336 * inflow.c (terminal_ours): Add 'self' argument.
13337 * inferior.h (terminal_ours): Add 'self' argument.
13338 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13340 2014-02-19 Pedro Alves <palves@redhat.com>
13341 Tom Tromey <tromey@redhat.com>
13343 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13345 (target_terminal_ours_for_output): Add argument.
13346 * target.c (debug_to_terminal_ours_for_output): Add argument.
13347 (update_current_target): Update.
13348 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13349 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13350 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13352 2014-02-19 Tom Tromey <tromey@redhat.com>
13354 * target.h (struct target_ops) <to_terminal_inferior>: Add
13356 * target.c (target_terminal_inferior): Add argument.
13357 (update_current_target): Update.
13358 * remote.c (remote_terminal_inferior): Add 'self' argument.
13359 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13360 * inflow.c (terminal_inferior): Add 'self' argument.
13361 * inferior.h (terminal_inferior): Add 'self' argument.
13362 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13363 (go32_terminal_inferior): Add 'self' argument.
13365 2014-02-19 Tom Tromey <tromey@redhat.com>
13367 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13368 (target_terminal_init): Add argument.
13369 * target.c (debug_to_terminal_init): Add argument.
13370 (update_current_target): Update.
13371 * inflow.c (terminal_init_inferior): Add 'self' argument.
13372 * inferior.h (terminal_init_inferior): Add 'self' argument.
13373 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13374 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13376 2014-02-19 Tom Tromey <tromey@redhat.com>
13378 * target.h (struct target_ops)
13379 <to_can_accel_watchpoint_condition>: Add argument.
13380 (target_can_accel_watchpoint_condition): Add argument.
13381 * target.c (debug_to_can_accel_watchpoint_condition): Add
13383 (update_current_target): Update.
13384 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13387 2014-02-19 Tom Tromey <tromey@redhat.com>
13389 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13391 (target_region_ok_for_hw_watchpoint): Add argument.
13392 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13393 (default_region_ok_for_hw_watchpoint): Add argument.
13394 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13395 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13397 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13399 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13401 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13403 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13405 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13407 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13408 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13410 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13411 Add 'self' argument.
13413 2014-02-19 Tom Tromey <tromey@redhat.com>
13415 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13417 (target_insert_watchpoint): Add argument.
13418 * target.c (debug_to_insert_watchpoint): Add argument.
13419 (update_current_target): Update.
13420 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13421 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13422 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13423 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13424 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13425 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13427 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13428 (procfs_insert_hw_watchpoint): Add 'self' argument.
13429 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13431 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13433 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13435 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13436 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13438 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13441 2014-02-19 Tom Tromey <tromey@redhat.com>
13443 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13445 (target_remove_watchpoint): Add argument.
13446 * target.c (debug_to_remove_watchpoint): Add argument.
13447 (update_current_target): Update.
13448 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13449 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13450 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13451 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13452 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13453 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13455 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13456 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13458 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13460 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13462 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13463 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13465 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13468 2014-02-19 Tom Tromey <tromey@redhat.com>
13470 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13472 (target_remove_hw_breakpoint): Add argument.
13473 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13474 (update_current_target): Update.
13475 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13476 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13478 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13479 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13481 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13484 2014-02-19 Tom Tromey <tromey@redhat.com>
13486 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13488 (target_insert_hw_breakpoint): Add argument.
13489 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13490 (update_current_target): Update.
13491 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13492 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13494 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13495 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13496 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13498 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13501 2014-02-19 Tom Tromey <tromey@redhat.com>
13503 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13505 (target_can_use_hardware_watchpoint): Add argument.
13506 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13507 (update_current_target): Update.
13508 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13510 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13512 * remote.c (remote_check_watch_resources): Add 'self' argument.
13513 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13514 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13516 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13517 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13519 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13521 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13523 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13525 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13527 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13529 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13530 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13532 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13535 2014-02-19 Tom Tromey <tromey@redhat.com>
13537 * target.h (struct target_ops) <to_post_attach>: Add argument.
13538 (target_post_attach): Add argument.
13539 * target.c (debug_to_post_attach): Add argument.
13540 (update_current_target): Update.
13541 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13542 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13543 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13544 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13545 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13547 2014-02-19 Tom Tromey <tromey@redhat.com>
13549 * windows-nat.c (windows_close): Add 'self' argument.
13550 * tracepoint.c (tfile_close): Add 'self' argument.
13551 * target.h (struct target_ops) <to_close>: Add argument.
13552 * target.c (target_close): Add argument.
13553 (update_current_target): Update.
13554 * remote.c (remote_close): Add 'self' argument.
13555 * remote-sim.c (gdbsim_close): Add 'self' argument.
13556 * remote-mips.c (mips_close): Add 'self' argument.
13557 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13558 * record-full.c (record_full_close): Add 'self' argument.
13559 * record-btrace.c (record_btrace_close): Add 'self' argument.
13560 * monitor.h (monitor_close): Add 'self' argument.
13561 * monitor.c (monitor_close): Add 'self' argument.
13562 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13563 * linux-nat.c (linux_nat_close): Add argument.
13564 * go32-nat.c (go32_close): Add 'self' argument.
13565 * exec.c (exec_close_1): Add 'self' argument.
13566 * ctf.c (ctf_close): Add 'self' argument.
13567 * corelow.c (core_close): Add 'self' argument.
13568 (core_close_cleanup): Update.
13569 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13570 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13572 2014-02-19 Tom Tromey <tromey@redhat.com>
13574 * remote.c (remote_load): New function.
13575 (init_remote_ops): Use it.
13577 2014-02-19 Tom Tromey <tromey@redhat.com>
13579 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13581 * common/linux-btrace.h (linux_supports_btrace): Update.
13582 * remote.c (remote_supports_btrace): Add "self" argument.
13583 * target-delegates.c: Rebuild.
13584 * target.c (target_supports_btrace): Remove.
13585 * target.h (struct target_ops) <to_supports_btrace>: Add
13586 target_ops argument.
13587 (target_supports_btrace): New define.
13589 2014-02-19 Tom Tromey <tromey@redhat.com>
13591 * record-full.c (record_full_beneath_to_resume_ops)
13592 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13593 (record_full_beneath_to_wait)
13594 (record_full_beneath_to_store_registers_ops)
13595 (record_full_beneath_to_store_registers)
13596 (record_full_beneath_to_xfer_partial_ops)
13597 (record_full_beneath_to_xfer_partial)
13598 (record_full_beneath_to_insert_breakpoint_ops)
13599 (record_full_beneath_to_insert_breakpoint)
13600 (record_full_beneath_to_remove_breakpoint_ops)
13601 (record_full_beneath_to_remove_breakpoint)
13602 (record_full_beneath_to_stopped_by_watchpoint)
13603 (record_full_beneath_to_stopped_data_address)
13604 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13605 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13606 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13607 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13608 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13609 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13610 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13611 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13612 (record_full_resume, record_full_wait_1)
13613 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13614 (record_full_store_registers, record_full_xfer_partial)
13615 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13616 (record_full_async, record_full_core_xfer_partial): Use target
13618 * target-delegates.c: Rebuild.
13619 * target.c (current_xfer_partial): Remove.
13620 (update_current_target): Do not INHERIT or de_fault
13621 to_insert_breakpoint, to_remove_breakpoint,
13622 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13623 to_is_async_p, to_async. Do not set to_xfer_partial field.
13624 (default_xfer_partial): Simplify.
13625 (current_xfer_partial): Remove.
13626 (target_wait, target_resume): Simplify.
13627 (find_default_can_async_p, find_default_is_async_p): Update.
13628 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13629 to_xfer_partial, to_stopped_by_watchpoint,
13630 to_stopped_data_address.
13631 (target_store_registers): Simplify.
13632 (forward_target_remove_breakpoint)
13633 (forward_target_insert_breakpoint): Remove.
13634 (target_remove_breakpoint, target_insert_breakpoint)
13635 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13636 * target.h (struct target_ops) <to_resume, to_wait,
13637 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13638 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13639 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13641 (forward_target_remove_breakpoint)
13642 (forward_target_insert_breakpoint): Remove.
13643 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13645 (record_btrace_insert_breakpoint): Delegate directly.
13647 2014-02-19 Tom Tromey <tromey@redhat.com>
13650 * target-delegates.c: New file.
13651 * target.c: Include target-delegates.c.
13652 (init_dummy_target): Call install_dummy_methods.
13653 (complete_target_initialization): Call install_delegators.
13654 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13655 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13656 * make-target-delegates: New file.
13658 2014-02-19 Tom Tromey <tromey@redhat.com>
13660 * record.c (find_record_target): Use find_target_at.
13661 * target.c (find_target_at): New function.
13662 * target.h (find_target_at): Declare.
13664 2014-02-19 Tom Tromey <tromey@redhat.com>
13666 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13667 Add 'ops' argument.
13668 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13670 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13671 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13673 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13675 * linux-nat.c (save_sigtrap): Update.
13676 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13677 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13678 (linux_nat_close): Update.
13679 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13681 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13683 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13684 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13685 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13686 (tmp_to_async): Add 'ops' argument.
13687 (record_full_stopped_by_watchpoint, record_full_async)
13688 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13690 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13691 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13692 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13693 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13694 (remote_is_async_p, remote_async): Add 'ops' argument.
13695 (remote_stopped_data_address): Update.
13696 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13697 * target.c (update_current_target)
13698 (find_default_can_async_p, find_default_is_async_p): Update.
13699 (init_dummy_target): Update.
13700 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13701 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13702 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13703 (target_can_async_p, target_is_async_p, target_async)
13704 (target_stopped_by_watchpoint): Update.
13706 2014-02-19 Yao Qi <yao@codesourcery.com>
13709 * gdbarch.sh: Remove startup_gdbarch.
13710 * gdbarch.c: Regenerated.
13711 * gdbarch.h: Likewise.
13713 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13715 * rl78-tdep.c (rl78_g10_register_name): New function.
13716 (rl78_return_value): Add g10 support.
13717 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13720 2014-02-17 Doug Evans <xdje42@gmail.com>
13722 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13723 (SUBDIR_GUILE_SRCS): Ditto.
13724 (scm-gsmob.o): Ditto.
13726 2014-02-17 Yao Qi <yao@codesourcery.com>
13728 * gnu-nat.c (ILL_RPC): Declare defined function.
13730 2014-02-17 Yao Qi <yao@codesourcery.com>
13732 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13733 mach_msg_type_number_t.
13734 (gnu_write_inferior): Likewise.
13736 2014-02-17 Yao Qi <yao@codesourcery.com>
13738 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13740 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13741 (inf_validate_procs, inf_signal): Likewise.
13742 (S_exception_raise_request): Likewise.
13743 (do_mach_notify_dead_name): Likewise.
13744 (steal_exc_port): Likewise.
13745 (gnu_read_inferior): Change 'copy_count''s type to
13746 mach_msg_type_number_t.
13747 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13750 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13752 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13753 flag. Adjust all users; in particular...
13754 (gnu_wait): ..., don't decrement its value in here...
13755 (gnu_create_inferior): ..., and instead set the flag in here,
13756 around the startup_inferior call, and call that one with
13757 START_INFERIOR_TRAPS_EXPECTED.
13759 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13760 (ILL_RPC): ... new macro.
13761 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13762 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13763 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13764 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13765 functions with ILL_RPC macro.
13766 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13767 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13768 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13769 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13770 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13771 (S_proc_getlogin_reply, S_proc_getsid_reply)
13772 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13773 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13774 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13775 (S_proc_getnports_reply, S_proc_is_important_reply)
13776 (S_proc_get_code_reply): New stub functions, generated with
13779 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13780 collected the type check structures.
13782 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13784 2014-02-14 Doug Evans <dje@google.com>
13786 * target.c (target_write_partial): Fix result type.
13788 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13790 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13791 the proper offsets to access fpregset_t.
13793 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13795 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13796 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13797 * h8300-tdep.c (setmachinelist): Remove global.
13798 * hppa-tdep.c (hppa_sigtramp): Remove global.
13799 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13800 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13801 * ravenscar-thread.c (update_target_observer): Remove global.
13802 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13804 2014-02-12 Tom Tromey <tromey@redhat.com>
13806 * common/rsp-low.c: Update comments.
13807 * common/rsp-low.h: Update comments.
13809 2014-02-12 Tom Tromey <tromey@redhat.com>
13811 * common/rsp-low.c (convert_ascii_to_int): Remove.
13812 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13814 2014-02-12 Tom Tromey <tromey@redhat.com>
13816 * common/rsp-low.h (unhexify): Don't declare.
13817 * common/rsp-low.c (unhexify): Remove.
13819 2014-02-12 Tom Tromey <tromey@redhat.com>
13821 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13822 * common/rsp-low.c (convert_int_to_ascii): Remove.
13824 2014-02-12 Tom Tromey <tromey@redhat.com>
13826 * common/rsp-low.h (hexify): Don't declare.
13827 * common/rsp-low.c (hexify): Remove.
13829 2014-02-12 Tom Tromey <tromey@redhat.com>
13831 * common/rsp-low.c (hexify): Never take strlen of argument.
13833 2014-02-12 Tom Tromey <tromey@redhat.com>
13835 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13836 * remote.c (extended_remote_run, remote_rcmd)
13837 (remote_download_trace_state_variable, remote_save_trace_data)
13838 (remote_set_trace_notes): Update.
13839 * tracepoint.c (encode_source_string, tfile_write_status)
13840 (tfile_write_uploaded_tsv): Update.
13842 2014-02-12 Tom Tromey <tromey@redhat.com>
13844 * tracepoint.c: Include rsp-low.h.
13845 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13846 * remote.c: Include rsp-low.h.
13847 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13848 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13849 (remote_unescape_input): Move to common/rsp-low.c.
13850 * common/rsp-low.h: New file.
13851 * common/rsp-low.c: New file.
13852 * Makefile.in (SFILES): Add common/rsp-low.c.
13853 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13854 (COMMON_OBS): Add rsp-low.o.
13855 (rsp-low.o): New target.
13857 2014-02-12 Tom Tromey <tromey@redhat.com>
13859 * utils.h: Include print-utils.h.
13860 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13861 (int_string, core_addr_to_string, core_addr_to_string_nz)
13862 (hex_string, hex_string_custom): Don't declare.
13863 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13864 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13865 (hex_string_custom, int_string, core_addr_to_string)
13866 (core_addr_to_string_nz, host_address_to_string): Move to
13867 common/print-utils.c.
13868 * common/print-utils.h: New file.
13869 * common/print-utils.c: New file
13870 * Makefile.in (SFILES): Add common/print-utils.c.
13871 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13872 (COMMON_OBS): Add print-utils.o.
13873 (print-utils.o): New target.
13875 2014-02-12 Tom Tromey <tromey@redhat.com>
13877 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13879 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13881 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13883 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13885 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13886 if a PT_IO ptrace request returns sucessfully but indicates that 0
13887 bytes were transferred.
13889 2014-02-12 Pedro Alves <palves@redhat.com>
13890 Kevin Buettner <kevinb@redhat.com>
13892 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13893 TYPE_INSTANCE_FLAG_CODE_SPACE.
13895 2014-02-12 Pedro Alves <palves@redhat.com>
13897 * h8300-tdep.c (pseudo_from_raw_register)
13898 (raw_from_pseudo_register): New functions.
13899 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13902 2014-02-12 Pedro Alves <palves@redhat.com>
13904 * h8300-tdep.c (h8300_register_sim_regno): New function.
13905 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13906 gdbarch_register_sim_regno hook.
13908 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13910 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13912 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13914 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13916 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13918 * obsd-tdep.h (obsd_init_abi): New prototype.
13919 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13920 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13921 (obsd_init_abi): New functions.
13922 * i386obsd-tdep.c: Include "obsd-tdep.h".
13923 (i386obsd_init_abi): Call obsd_init_abi.
13924 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13925 (amd64obsd_init_abi): Call obsd_init_abi.
13926 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13927 obsd-tdep.c to gdb_target_obs.
13929 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13931 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13932 double float arguments to 16-byte in the argument slots.
13934 2014-02-11 Doug Evans <xdje42@gmail.com>
13936 * configure.ac: Don't crash if pkg-config is not found and guile
13937 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13939 * configure: Regenerate.
13941 2014-02-11 Yao Qi <yao@codesourcery.com>
13943 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13944 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13945 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13946 * gnu-nat.c (gnu_xfer_memory): Likewise.
13947 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13948 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13949 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13950 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13952 2014-02-11 Yao Qi <yao@codesourcery.com>
13954 * target.h (enum target_xfer_error): Rename to ...
13955 (enum target_xfer_status): ... it. New. All users updated.
13956 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13958 (TARGET_XFER_STATUS_ERROR_P): New macro.
13959 (target_xfer_error_to_string): Remove declaration.
13960 (target_xfer_status_to_string): Declare.
13961 (target_xfer_partial_ftype): Adjust it.
13962 (struct target_ops) <to_xfer_partial>: Return
13963 target_xfer_status. Add argument xfered_len. Update
13965 * target.c (target_xfer_error_to_string): Rename to ...
13966 (target_xfer_status_to_string): ... it. New. All callers
13968 (target_read_live_memory): Likewise. Call target_xfer_partial
13969 instead of target_read.
13970 (memory_xfer_live_readonly_partial): Return
13971 target_xfer_status. Add argument xfered_len.
13972 (raw_memory_xfer_partial): Likewise.
13973 (memory_xfer_partial_1): Likewise.
13974 (memory_xfer_partial): Likewise.
13975 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13976 properly. Update debug message.
13977 (default_xfer_partial, current_xfer_partial): Likewise.
13978 (target_write_partial): Likewise.
13979 (target_read_partial): Likewise. All callers updated.
13980 (read_whatever_is_readable): Likewise.
13981 (target_write_with_progress): Likewise.
13982 (target_read_alloc_1): Likewise.
13984 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13985 * auxv.c (procfs_xfer_auxv): Likewise.
13986 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13987 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13988 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13989 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13990 * corefile.c (read_memory): Adjust.
13991 * corelow.c (core_xfer_partial): Likewise.
13992 * ctf.c (ctf_xfer_partial): Likewise.
13993 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13995 (darwin_xfer_partial): Likewise.
13996 * exec.c (section_table_xfer_memory_partial): Likewise. All
13998 (exec_xfer_partial): Likewise.
13999 * exec.h (section_table_xfer_memory_partial): Update
14001 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14003 (gnu_xfer_partial): Likewise.
14004 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14005 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14006 (ia64_hpux_xfer_solib_got): Likewise.
14007 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14008 type of 'partial_len' to ULONGEST.
14009 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14010 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14011 (linux_nat_xfer_partial): Likewise.
14012 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14013 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14014 * monitor.c (monitor_xfer_memory): Likewise.
14015 (monitor_xfer_partial): Likewise.
14016 * procfs.c (procfs_xfer_partial): Likewise.
14017 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14018 * record-full.c (record_full_xfer_partial): Likewise.
14019 (record_full_core_xfer_partial): Likewise.
14020 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14021 (gdbsim_xfer_partial): Likewise.
14022 * remote.c (remote_write_bytes_aux): Likewise. All callers
14024 (remote_write_bytes, remote_read_bytes): Likewise. All
14026 (remote_flash_erase): Likewise. All callers updated.
14027 (remote_write_qxfer): Likewise. All callers updated.
14028 (remote_read_qxfer): Likewise. All callers updated.
14029 (remote_xfer_partial): Likewise.
14030 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14031 (rs6000_xfer_shared_libraries): Likewise.
14032 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14033 (sol_thread_xfer_partial): Likewise.
14034 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14035 (sparc_xfer_partial): Likewise.
14036 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14038 (spu_xfer_partial): Likewise.
14039 * spu-multiarch.c (spu_xfer_partial): Likewise.
14040 * tracepoint.c (tfile_xfer_partial): Likewise.
14041 * windows-nat.c (windows_xfer_memory): Likewise.
14042 (windows_xfer_shared_libraries): Likewise.
14043 (windows_xfer_partial): Likewise.
14044 * valprint.c: Replace 'target_xfer_error' with
14045 'target_xfer_status' in comments.
14047 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14049 Checked in by Joel Brobecker <brobecker@adacore.com>.
14050 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14052 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14054 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14055 function parameters.
14057 2014-02-10 Will Newton <will.newton@linaro.org>
14059 * elfread.c (elf_rel_plt_read): Look for a .got section if
14060 looking up .got.plt fails.
14061 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14062 on address passed to elf_gnu_ifunc_record_cache.
14063 (elf_gnu_ifunc_resolve_addr): Likewise.
14064 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14066 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14068 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14069 (X_RETTURN): New macro.
14070 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14072 * sparc64-tdep.c (sparc64_init_abi): Hook
14073 sparc_in_function_epilogue_p.
14075 2014-02-10 Gary Benson <gbenson@redhat.com>
14077 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14078 Rename name_matcher to symbol_matcher.
14080 2014-02-10 Gary Benson <gbenson@redhat.com>
14082 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14083 Use expand_symtabs_file_matcher_ftype and
14084 expand_symtabs_symbol_matcher_ftype.
14086 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14088 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14089 (struct ada_symbol_cache): New.
14090 (ada_free_symbol_cache): Forward declare.
14091 (struct ada_pspace_data): New.
14092 (ada_pspace_data_handle): New static global.
14093 (get_ada_pspace_data, ada_pspace_data_cleanup)
14094 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14095 (cache_space, cache): Delete, now folded inside struct
14097 (ada_get_symbol_cache): New function.
14098 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14100 (_initialize_ada_language): Remove initialization of cache_space.
14101 Move call to observer_attach_inferior_exit up, grouping it
14102 with the other observer registrations inside this function.
14103 Rename command to be more general. Add call to
14104 register_program_space_data_with_cleanup.
14106 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14108 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14109 ada_new_objfile_observer.
14110 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14111 (_initialize_tasks): Update uses of ada_new_objfile_observer
14112 and ada_tasks_normal_stop_observer.
14114 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14116 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14117 returned by the 'Length attribute to integer.
14119 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14121 * ada-lang.c (_initialize_ada_language): Initialize
14122 cache_space obstack.
14124 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14126 * ada-lang.c (HASH_SIZE): New macro.
14127 (struct cache_entry): New type.
14128 (cache_space, cache): New static globals.
14129 (ada_clear_symbol_cache, find_entry): New functions.
14130 (lookup_cached_symbol, cache_symbol): Implement.
14131 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14132 (_initialize_ada_language): Attach ada_new_objfile_observer
14133 and ada_free_objfile_observer.
14135 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14137 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14138 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14139 struct block * parameter.
14140 (ada_lookup_symbol_list_worker): Constify local variable "block".
14141 Remove cast which is no longer necessary.
14143 2014-02-10 Doug Evans <xdje42@gmail.com>
14145 Add Guile as an extension language.
14146 * NEWS: Mention Guile scripting.
14147 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14148 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14149 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14150 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14151 (CLIBS): Add GUILE_LIBS.
14152 (install-guile): New rule.
14153 (guile.o): New rule.
14154 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14155 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14156 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14157 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14158 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14159 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14160 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14161 * configure.ac: New option --with-guile.
14162 * configure: Regenerate.
14163 * config.in: Regenerate.
14164 * auto-load.c: Remove #include "python/python.h". Add #include
14165 "gdb/section-scripts.h".
14166 (source_section_scripts): Handle Guile scripts.
14167 (_initialize_auto_load): Add name of Guile objfile script to
14168 scripts-directory help text.
14169 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14170 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14171 (struct breakpoint): New member scm_bp_object.
14172 * defs.h (enum command_control_type): New value guile_control.
14173 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14175 (show_user): Update comment.
14176 (_initialize_cli_cmds): Update help text for "show user". Update help
14177 text for max-user-call-depth.
14178 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14180 (multi_line_command_p): Add guile_control.
14181 (print_command_lines): Handle guile_control.
14182 (execute_control_command, recurse_read_control_structure): Ditto.
14183 (process_next_line): Recognize "guile" commands.
14184 * disasm.c (gdb_disassemble_info): Make non-static.
14185 * disasm.h: #include "dis-asm.h".
14186 (struct gdbarch): Add forward decl.
14187 (gdb_disassemble_info): Declare.
14188 * extension.c: #include "guile/guile.h".
14189 (extension_languages): Add guile.
14190 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14191 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14192 * gdbtypes.c (get_unsigned_type_max): New function.
14193 (get_signed_type_minmax): New function.
14194 * gdbtypes.h (get_unsigned_type_max): Declare.
14195 (get_signed_type_minmax): Declare.
14196 * guile/README: New file.
14197 * guile/guile-internal.h: New file.
14198 * guile/guile.c: New file.
14199 * guile/guile.h: New file.
14200 * guile/scm-arch.c: New file.
14201 * guile/scm-auto-load.c: New file.
14202 * guile/scm-block.c: New file.
14203 * guile/scm-breakpoint.c: New file.
14204 * guile/scm-disasm.c: New file.
14205 * guile/scm-exception.c: New file.
14206 * guile/scm-frame.c: New file.
14207 * guile/scm-gsmob.c: New file.
14208 * guile/scm-iterator.c: New file.
14209 * guile/scm-lazy-string.c: New file.
14210 * guile/scm-math.c: New file.
14211 * guile/scm-objfile.c: New file.
14212 * guile/scm-ports.c: New file.
14213 * guile/scm-pretty-print.c: New file.
14214 * guile/scm-safe-call.c: New file.
14215 * guile/scm-string.c: New file.
14216 * guile/scm-symbol.c: New file.
14217 * guile/scm-symtab.c: New file.
14218 * guile/scm-type.c: New file.
14219 * guile/scm-utils.c: New file.
14220 * guile/scm-value.c: New file.
14221 * guile/lib/gdb.scm: New file.
14222 * guile/lib/gdb/boot.scm: New file.
14223 * guile/lib/gdb/experimental.scm: New file.
14224 * guile/lib/gdb/init.scm: New file.
14225 * guile/lib/gdb/iterator.scm: New file.
14226 * guile/lib/gdb/printing.scm: New file.
14227 * guile/lib/gdb/types.scm: New file.
14228 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14229 (VPATH): Add $(GUILE_SRCDIR).
14230 (GUILE_DIR): New variable.
14231 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14232 (all): Add stamp-guile dependency.
14233 (stamp-guile): New rule.
14234 (clean-guile, install-guile, uninstall-guile): New rules.
14235 (install-only): Add install-guile dependency.
14236 (uninstall): Add uninstall-guile dependency.
14237 (clean): Add clean-guile dependency.
14239 2014-02-09 Doug Evans <xdje42@gmail.com>
14241 Revert this patch (which I approved, mea culpa).
14243 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14245 * Makefile.in (all-lib): Remove.
14246 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14248 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14250 Fix Python stack corruption.
14251 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14254 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14256 * Makefile.in (all-lib): Remove.
14257 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14259 2014-02-07 Doug Evans <dje@google.com>
14261 * extension-priv.h (extension_language_script_ops): Add comment.
14262 (extension_language_ops): Add comment.
14263 (active_ext_lang_state): Fix typo in comment.
14265 2014-02-07 Pedro Alves <palves@redhat.com>
14267 PR breakpoints/16292
14268 * infrun.c (handle_signal_stop) <signal arrives while stepping
14269 over a breakpoint>: Switch back to the stepping thread.
14271 2014-02-07 Yao Qi <yao@codesourcery.com>
14273 * target.c (target_xfer_partial): Return zero if LEN is zero.
14275 2014-02-07 Yao Qi <yao@codesourcery.com>
14277 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14278 (ld_so_xfer_auxv): Likewise.
14279 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14280 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14281 * corelow.c (core_xfer_partial): Likewise.
14282 * ctf.c (ctf_xfer_partial): Likewise.
14283 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14284 (darwin_xfer_partial): Likewise.
14285 * exec.c (exec_xfer_partial): Likewise.
14286 * gnu-nat.c (gnu_xfer_partial): Likewise.
14287 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14288 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14289 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14290 * linux-nat.c (linux_xfer_siginfo): Likewise.
14291 (linux_proc_xfer_spu): Likewise.
14292 * procfs.c (procfs_xfer_partial): Likewise.
14293 * record-full.c (record_full_xfer_partial): Likewise.
14294 (record_full_core_xfer_partial): Likewise.
14295 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14296 * remote.c (remote_write_qxfer): Likewise.
14297 (remote_write_qxfer, remote_read_qxfer): Likewise.
14298 (remote_xfer_partial): Likewise.
14299 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14300 (rs6000_xfer_shared_libraries): Likewise.
14301 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14302 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14303 (spu_xfer_partial): Likewise.
14304 * target.c (memory_xfer_partial_1): Likewise.
14305 * tracepoint.c (tfile_xfer_partial): Likewise.
14306 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14307 (windows_xfer_partial): Likewise.
14309 2014-02-07 Yao Qi <yao@codesourcery.com>
14311 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14313 (core_xfer_shared_libraries_aix): Likewise.
14314 * gdbarch.c, gdbarch.h: Regenerated.
14315 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14316 ULONGEST. Change 'len_avail' type to ULONGEST.
14317 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14318 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14320 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14322 2014-02-07 Yao Qi <yao@codesourcery.com>
14324 * corefile.c (memory_error): Get 'exception' from ERR and pass
14325 'exception' to throw_error.
14327 2014-02-06 Doug Evans <xdje42@gmail.com>
14329 * configure.ac (libpython checking): Remove all but python.o from
14330 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14331 * configure: Regenerate.
14333 * Makefile.in (SFILES): Add extension.c.
14334 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14335 (COMMON_OBS): Add extension.o.
14336 * extension.h: New file.
14337 * extension-priv.h: New file.
14338 * extension.c: New file.
14340 * python/python-internal.h: #include "extension.h".
14341 (gdbpy_auto_load_enabled): Declare.
14342 (gdbpy_apply_val_pretty_printer): Declare.
14343 (gdbpy_apply_frame_filter): Declare.
14344 (gdbpy_preserve_values): Declare.
14345 (gdbpy_breakpoint_cond_says_stop): Declare.
14346 (gdbpy_breakpoint_has_cond): Declare.
14347 (void source_python_script_for_objfile): Delete.
14348 * python/python.c: #include "extension-priv.h".
14349 Delete inclusion of "observer.h".
14350 (extension_language_python): Moved here and renamed from
14351 script_language_python in py-auto-load.c.
14352 Redefined to be of type extension_language_defn.
14353 (python_extension_script_ops): New global.
14354 (python_extension_ops): New global.
14355 (struct python_env): New member previous_active.
14356 (restore_python_env): Call restore_active_ext_lang.
14357 (ensure_python_env): Call set_active_ext_lang.
14358 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14360 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14362 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14364 (gdbpy_eval_from_control_command): Renamed from
14365 eval_python_from_control_command, made static. New arg extlang.
14366 (gdbpy_source_script) Renamed from source_python_script, made static.
14368 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14369 result to int. New arg extlang.
14370 (gdbpy_source_objfile_script): Renamed from
14371 source_python_script_for_objfile, made static. New arg extlang.
14372 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14373 static. New args extlang, extlang_printers. Change result type to
14375 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14376 static. New arg extlang. Rename arg printers to extlang_printers
14377 and change type to ext_lang_type_printers *.
14378 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14379 static. Replace argument arg with extlang, extlang_printers.
14380 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14381 (!HAVE_PYTHON, source_python_script): Delete.
14382 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14383 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14384 (!HAVE_PYTHON, start_type_printers): Delete.
14385 (!HAVE_PYTHON, apply_type_printers): Delete.
14386 (!HAVE_PYTHON, free_type_printers): Delete.
14387 (_initialize_python): Delete call to observer_attach_before_prompt.
14388 (finalize_python): Set/restore active extension language.
14389 (gdbpy_finish_initialization) Renamed from
14390 finish_python_initialization, made static. New arg extlang.
14391 (gdbpy_initialized): New function.
14392 * python/python.h: #include "extension.h". Delete #include
14393 "value.h", "mi/mi-cmds.h".
14394 (extension_language_python): Declare.
14395 (GDBPY_AUTO_FILE_NAME): Delete.
14396 (enum py_bt_status): Moved to extension.h and renamed to
14397 ext_lang_bt_status.
14398 (enum frame_filter_flags): Moved to extension.h.
14399 (enum py_frame_args): Moved to extension.h and renamed to
14400 ext_lang_frame_args.
14401 (finish_python_initialization): Delete.
14402 (eval_python_from_control_command): Delete.
14403 (source_python_script): Delete.
14404 (apply_val_pretty_printer): Delete.
14405 (apply_frame_filter): Delete.
14406 (preserve_python_values): Delete.
14407 (gdbpy_script_language_defn): Delete.
14408 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14409 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14411 * auto-load.c: #include "extension.h".
14412 (GDB_AUTO_FILE_NAME): Delete.
14413 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14414 (script_language_gdb): Delete, moved to extension.c and renamed to
14415 extension_language_gdb.
14416 (source_gdb_script_for_objfile): Delete.
14417 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14418 (loaded_script): Change type of language member to
14419 struct extension_language_defn *.
14420 (init_loaded_scripts_info): Initialize
14421 unsupported_script_warning_printed.
14422 (maybe_add_script): Make static. Change type of language arg to
14423 struct extension_language_defn *.
14424 (clear_section_scripts): Reset unsupported_script_warning_printed.
14425 (auto_load_objfile_script_1): Rewrite to use extension language API.
14426 (auto_load_objfile_script): Make public. Remove support-compiled-in
14427 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14428 (source_section_scripts): Rewrite to use extension language API.
14429 (load_auto_scripts_for_objfile): Rewrite to use
14430 auto_load_scripts_for_objfile.
14431 (collect_matching_scripts_data): Change type of language member to
14432 struct extension_language_defn *.
14433 (auto_load_info_scripts): Change type of language arg to
14434 struct extension_language_defn *.
14435 (unsupported_script_warning_print): New function.
14436 (script_not_found_warning_print): Make static.
14437 (_initialize_auto_load): Rewrite construction of scripts-directory
14439 * auto-load.h (struct objfile): Add forward decl.
14440 (struct script_language): Delete.
14441 (struct auto_load_pspace_info): Add forward decl.
14442 (struct extension_language_defn): Add forward decl.
14443 (maybe_add_script): Delete.
14444 (auto_load_objfile_script): Declare.
14445 (script_not_found_warning_print): Delete.
14446 (auto_load_info_scripts): Update prototype.
14447 (auto_load_gdb_scripts_enabled): Declare.
14448 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14449 auto_load_python_scripts_enabled and made public.
14450 (script_language_python): Delete, moved to python.c.
14451 (gdbpy_script_language_defn): Delete.
14452 (info_auto_load_python_scripts): Update to use
14453 extension_language_python.
14455 * breakpoint.c (condition_command): Replace call to
14456 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14457 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14458 with call to breakpoint_ext_lang_cond_says_stop.
14459 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14460 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14461 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14462 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14464 (local_setattro): Print name of extension language with existing
14467 * valprint.c (val_print, value_print): Update to call
14468 apply_ext_lang_val_pretty_printer.
14469 * cp-valprint.c (cp_print_value): Update call to
14470 apply_ext_lang_val_pretty_printer.
14471 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14472 (gdbpy_apply_val_pretty_printer): Renamed from
14473 apply_val_pretty_printer. New arg extlang.
14474 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14476 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14477 extension language API.
14478 * cli/cli-script.c (execute_control_command): Update to call
14479 eval_ext_lang_from_control_command.
14481 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14482 enum ext_lang_bt_status values. Update call to
14483 apply_ext_lang_frame_filter.
14484 (mi_cmd_stack_list_locals): Ditto.
14485 (mi_cmd_stack_list_args): Ditto.
14486 (mi_cmd_stack_list_variables): Ditto.
14487 * mi/mi-main.c: Delete #include "python/python-internal.h".
14488 Add #include "extension.h".
14489 (mi_cmd_list_features): Replace reference to python internal variable
14490 gdb_python_initialized with call to ext_lang_initialized_p.
14492 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14493 Update to use enum ext_lang_frame_args. Update to call
14494 apply_ext_lang_frame_filter.
14495 * python/py-framefilter.c (extract_sym): Update to use enum
14496 ext_lang_bt_status.
14497 (extract_value, py_print_type, py_print_value): Ditto.
14498 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14499 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14500 (py_print_frame): Ditto.
14501 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14502 New arg extlang. Update to use enum ext_lang_bt_status.
14504 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14505 finish_python_initialization. Replace with call to
14506 finish_ext_lang_initialization.
14508 * typeprint.c (do_free_global_table): Update to call
14509 free_ext_lang_type_printers.
14510 (create_global_typedef_table): Update to call
14511 start_ext_lang_type_printers.
14512 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14513 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14514 (type_print_options): Change type of global_printers from "void *"
14515 to "struct ext_lang_type_printers *".
14517 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14518 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14519 (gdbpy_preserve_values): Renamed from preserve_python_values.
14521 (!HAVE_PYTHON, preserve_python_values): Delete.
14523 * utils.c (quit_flag): Delete, moved to extension.c.
14524 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14527 * eval.c: Delete #include "python/python.h".
14528 * main.c: Delete #include "python/python.h".
14530 * defs.h: Update comment.
14532 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14536 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14538 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14541 2014-02-05 Yao Qi <yao@codesourcery.com>
14543 * remote.c (remote_pass_signals): Remove local 'buf' and use
14545 (remote_program_signals): Likewise.
14547 2014-02-05 Yao Qi <yao@codesourcery.com>
14549 * ctf.c: Include "inferior.h" and "gdbthread.h".
14550 (CTF_PID): A new macro.
14551 (ctf_open): Call inferior_appeared and add_thread_silent.
14552 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14553 (ctf_thread_alive): New function.
14554 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14556 2014-02-05 Yao Qi <yao@codesourcery.com>
14560 2013-05-24 Yao Qi <yao@codesourcery.com>
14562 * tracepoint.c (TFILE_PID): Remove.
14563 (tfile_open): Don't add thread and inferior.
14564 (tfile_close): Don't set 'inferior_ptid'. Don't call
14565 exit_inferior_silent.
14566 (tfile_thread_alive): Remove.
14567 (init_tfile_ops): Don't set field 'to_thread_alive' of
14570 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14572 * remote.c (remote_start_remote): Call remote_check_symbols even
14573 if only symbol-file (not file) has been given.
14575 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14577 * gdbarch.sh (skip_entrypoint): New callback.
14578 * gdbarch.c, gdbarch.h: Regenerate.
14579 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14580 * infrun.c (fill_in_stop_func): Likewise.
14581 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14582 (ppc_elfv2_elf_make_msymbol_special): New function.
14583 (ppc_elfv2_skip_entrypoint): Likewise.
14584 (ppc_linux_init_abi): Install them for ELFv2.
14586 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14588 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14589 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14590 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14591 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14592 structures returned in GPRs.
14594 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14596 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14597 offset to the stack parameter list for the ELFv2 ABI.
14599 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14601 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14602 set_gdbarch_convert_from_func_ptr_addr and
14603 set_gdbarch_elf_make_msymbol_special for ELFv1.
14604 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14605 function descriptors on ELFv1.
14606 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14607 set up r12 at function entry.
14609 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14611 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14612 (struct gdbarch_tdep): New member elf_abi.
14614 * rs6000-tdep.c: Include "elf/ppc64.h".
14615 (rs6000_gdbarch_init): Detect ELF ABI version.
14617 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14619 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14620 within a register pair holding a DFP 128-bit value on little-endian.
14621 (ppc64_sysv_abi_return_value_base): Likewise.
14622 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14623 (dfp_pseudo_register_write): Likewise.
14625 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14627 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14628 offset on little-endian when passing _Decimal32.
14629 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14631 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14633 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14634 of the overlapped FP register within the VSX register on little-
14636 (efpr_pseudo_register_write): Likewise.
14638 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14640 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14641 offset on little-endian when passing small structures.
14643 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14645 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14646 (struct ppc64_sysv_argpos): New data structure.
14647 (ppc64_sysv_abi_push_float): Remove.
14648 (ppc64_sysv_abi_push_val): New function.
14649 (ppc64_sysv_abi_push_integer): Likewise.
14650 (ppc64_sysv_abi_push_freg): Likewise.
14651 (ppc64_sysv_abi_push_vreg): Likewise.
14652 (ppc64_sysv_abi_push_param): Likewise.
14653 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14654 (ppc64_sysv_abi_return_value_base): New function.
14655 (ppc64_sysv_abi_return_value): Refactor to use it.
14657 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14659 * NEWS: Document new target powerpc64le-*-linux*.
14661 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14663 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14664 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14666 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14667 register set used in ELF core dumps. Add floating-point register set.
14669 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14671 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14672 dwarf2_to_gdb[] table using symbolic constants. Adjust
14673 penultimate entry from number representing the PC register
14674 to symbolic constant representing the MDR register. Add
14675 constant for the PC register to the end of the table.
14677 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14679 * bsd-kvm.c: Include <sys/param.h>
14681 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14683 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14685 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14687 * ada-lang.h (clear_ada_sym_cache): Delete.
14689 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14691 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14693 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14695 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14696 the sigreturn register save area only if the syscall is
14699 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14701 * valops.c (value_slice): Minor reformatting.
14703 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14705 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14707 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14709 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14710 New static globals.
14711 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14712 (ada_ignore_descriptive_types_p): New static global.
14713 (find_parallel_type_by_descriptive_type): Return immediately
14714 if ada_ignore_descriptive_types_p is set.
14715 (_initialize_ada_language): Register new commands "maintenance
14716 set ada", "maintenance show ada", "maintenance set ada
14717 ignore-descriptive-types" and "maintenance show ada
14718 ignore-descriptive-types".
14719 * NEWS: Add entry for new "maint ada set/show
14720 ignore-descriptive-types" commands.
14722 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14724 * record-btrace.c (record_btrace_close): Call btrace_teardown
14727 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14729 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14732 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14734 * ada-typeprint (type_is_full_subrange_of_target_type):
14736 (print_range): Add parameter bounds_prefered_p. If not set,
14737 try printing range types using the name of their base type.
14738 (print_range_type): Add parameter bounds_prefered_p.
14739 Use it in call to print_range.
14740 (print_array_type, ada_print_type): Update calls to print_range
14741 and print_range_type.
14743 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14745 * ada-typeprint.c (print_array_type, print_choices, print_range)
14746 (print_range_bound, print_dynamic_range_bound, print_range_type):
14747 Remove declaration.
14749 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14751 * ada-typeprint.c (print_range): Add missing empty line
14752 after local declaration.
14754 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14756 * ada-valprint.c (print_optional_low_bound): Get index_type's
14757 target type for as long as it is a TYPE_CODE_RANGE.
14759 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14761 * procfs.c (procfs_make_note_section): Remove assertion and
14762 associated comment.
14764 2014-01-24 Yao Qi <yao@codesourcery.com>
14766 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14767 * corelow.c (get_core_siginfo): Likewise.
14769 2014-01-24 Yao Qi <yao@codesourcery.com>
14771 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14772 ULONGEST. Don't check 'len' is negative.
14773 (remote_write_bytes): Change type of 'len' to ULONGEST.
14775 2014-01-23 Tom Tromey <tromey@redhat.com>
14778 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14779 Handle exception from frame.block.
14780 (FrameVars.fetch_frame_locals): Likewise.
14782 2014-01-23 Tom Tromey <tromey@redhat.com>
14785 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14786 on a NULL pointer. Move "goto error" to correct place.
14788 2014-01-23 Tom Tromey <tromey@redhat.com>
14791 * python/py-framefilter.c (apply_frame_filter): Call
14792 ensure_python_env after computing gdbarch.
14794 2014-01-23 Yao Qi <yao@codesourcery.com>
14796 * target.c (raw_memory_xfer_partial): Change argument type
14797 from void * to gdb_byte *.
14798 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14800 2014-01-22 Doug Evans <dje@google.com>
14802 New gdbserver option --debug-format=timestamp.
14803 * NEWS: Mention it.
14805 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14807 * syscalls/s390x-linux.xml: New file.
14808 * syscalls/s390-linux.xml: New file.
14809 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14810 (XML_SYSCALL_FILENAME_S390X): Likewise.
14811 (op_svc): New enum value for SVC opcode.
14812 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14813 (s390_linux_get_syscall_number): New function.
14814 (s390_gdbarch_init): Register '*get_syscall_number' and the
14815 syscall xml file name.
14816 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14817 "s390-linux.xml" and "s390x-linux.xml".
14818 * NEWS: Announce new feature.
14820 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14822 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14824 2014-01-22 Pedro Alves <palves@redhat.com>
14826 * xtensa-config.c: Include defs.h.
14828 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14830 * common/common-utils.h: Add "ARI:" comment beside __func__
14833 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14835 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14836 documentation a bit.
14838 2014-01-21 Roland McGrath <mcgrathr@google.com>
14840 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14841 * configure: Regenerate.
14842 * aclocal.m4: Regenerate.
14843 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14844 New substituted variables.
14845 (install-strip): New target.
14846 (INSTALL_SCRIPT): New substituted variable.
14847 (FLAGS_TO_PASS): Add it.
14848 (install-only): Use $(INSTALL_SCRIPT) rather than
14849 $(INSTALL_PROGRAM) for gcore.
14851 2014-01-20 Tom Tromey <tromey@redhat.com>
14853 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14856 2014-01-20 Tom Tromey <tromey@redhat.com>
14858 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14859 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14860 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14861 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14862 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14863 (struct cmd_list_element) <flags>: Remove.
14864 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14865 doc_allocated>: New fields.
14866 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14868 * maint.c (maintenance_do_deprecate): Update.
14869 * top.c (execute_command): Update.
14871 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14873 * xtensa-linux-nat.c: Include asm/ptrace.h.
14875 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14877 * Makefile.in (SFILES): Add d-support.c.
14878 (COMMON_OBS): Add d-support.o.
14879 * d-lang.h (d_parse_symbol): Add comment, now defined in
14881 * d-lang.c (parse_call_convention)
14882 (parse_attributes, parse_function_types)
14883 (parse_function_args, parse_type, parse_identifier)
14884 (call_convention_p, d_parse_symbol): Move functions to ...
14885 * d-support.c: ... New file.
14887 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14889 * d-lang.h (d_parse_symbol): Add declaration.
14890 * d-lang.c (extract_identifiers)
14891 (extract_type_info): Remove functions.
14892 (parse_call_convention, parse_attributes)
14893 (parse_function_types, parse_function_args)
14894 (parse_type, parse_identifier, call_convention_p)
14895 (d_parse_symbol): New functions.
14896 (d_demangle): Use d_parse_symbol to demangle D symbols.
14898 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14900 * d-lang.h (struct builtin_d_type): New data type.
14901 (builtin_d_type): Add declaration.
14902 * d-lang.c (d_language_arch_info, build_d_types)
14903 (builtin_d_type): New functions.
14904 (enum d_primitive_types): New data type.
14905 (d_language_defn): Change c_language_arch_info to
14906 d_language_arch_info.
14907 (d_type_data): New static variable.
14908 (_initialize_d_language): Initialize d_type_data.
14910 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14912 * d-lang.h (d_main_name): Add declaration.
14913 * d-lang.c (d_main_name): New function.
14914 * symtab.c (find_main_name): Add call to d_main_name.
14916 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14918 * d-lang.c (d_language_defn): Change macro_expansion_c to
14919 macro_expansion_no.
14921 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14923 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14925 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14927 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14928 gdb_exception" declaration.
14929 * remote.c (getpkt_or_notif_sane): Likewise.
14931 2014-01-17 Doug Evans <dje@google.com>
14933 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14934 function, contents of dirnames_to_char_ptr_vec_append moved here.
14935 (delim_string_to_char_ptr_vec): New function.
14936 (dirnames_to_char_ptr_vec_append): Rewrite.
14937 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14939 2014-01-17 Doug Evans <dje@google.com>
14941 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14943 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14944 #include "common-utils.h".
14945 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14946 * common/vec.h (VEC_ASSERT_PASS): Update.
14947 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14948 (MACH_CHECK_ERROR): Update.
14950 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14952 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14954 * gdbarch.h: Regenerate.
14956 2014-01-16 Tom Tromey <tromey@redhat.com>
14958 * value.c (struct value) <regnum>: Move earlier.
14960 2014-01-16 Tom Tromey <tromey@redhat.com>
14962 * remote.c (extended_remote_create_inferior): Rename from
14963 extended_remote_create_inferior_1. Add "ops" argument. Remove
14964 old implementation.
14966 2014-01-16 Pedro Alves <palves@redhat.com>
14968 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14969 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14972 2014-01-16 Doug Evans <dje@google.com>
14974 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14976 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14978 * btrace.h (btrace_thread_flag): New.
14979 (struct btrace_thread_info) <flags>: New.
14980 * record-btrace.c (record_btrace_resume_thread)
14981 (record_btrace_find_thread_to_move, btrace_step_no_history)
14982 (btrace_step_stopped, record_btrace_start_replaying)
14983 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14984 (record_btrace_find_resume_thread): New.
14985 (record_btrace_resume, record_btrace_wait): Extend.
14986 (record_btrace_can_execute_reverse): New.
14987 (record_btrace_open): Fail in non-stop mode.
14988 (record_btrace_set_replay): Split into this, ...
14989 (record_btrace_stop_replaying): ... this, ...
14990 (record_btrace_clear_histories): ... and this.
14991 (init_record_btrace_ops): Init to_can_execute_reverse.
14992 * NEWS: Announce it.
14994 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14996 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14997 (forward_target_decr_pc_after_break)
14998 (target_decr_pc_after_break): New.
14999 * target.c (forward_target_decr_pc_after_break)
15000 (target_decr_pc_after_break): New.
15001 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15002 instead of gdbarch_decr_pc_after_break.
15003 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15004 instead of gdbarch_decr_pc_after_break.
15005 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15006 instead of gdbarch_decr_pc_after_break.
15007 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15008 instead of gdbarch_decr_pc_after_break.
15009 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15010 instead of gdbarch_decr_pc_after_break.
15011 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15012 instead of gdbarch_decr_pc_after_break.
15014 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15016 * btrace.c: Include regcache.h.
15017 (btrace_add_pc): New.
15018 (btrace_enable): Call btrace_add_pc.
15019 (btrace_is_empty): New.
15020 * btrace.h (btrace_is_empty): New.
15021 * record-btrace.c (require_btrace, record_btrace_info): Call
15024 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15026 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15027 Support delta reads.
15028 (linux_disable_btrace): Change return type.
15029 * common/linux-btrace.h (linux_read_btrace): Change parameters
15030 and return type to allow error reporting. Update users.
15031 (linux_disable_btrace): Change return type. Update users.
15032 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15034 (btrace_error): New.
15035 (btrace_block) <begin>: Comment on BEGIN == 0.
15036 * btrace.c (btrace_compute_ftrace): Start from the end of
15038 (btrace_stitch_trace, btrace_clear_history): New.
15039 (btrace_fetch): Read delta trace, return if replaying.
15040 (btrace_clear): Move clear history code to btrace_clear_history.
15041 (parse_xml_btrace): Throw an error if parsing failed.
15042 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15043 and return type to allow error reporting.
15044 (target_read_btrace): Change parameters and return type to allow
15046 * target.c (target_read_btrace): Update.
15047 * remote.c (remote_read_btrace): Support delta reads. Pass
15049 * NEWS: Announce it.
15051 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15053 * record.h (record_btrace_frame_unwind)
15054 (record_btrace_tailcall_frame_unwind): New declarations.
15055 * dwarf2-frame: Include record.h
15056 (dwarf2_frame_cfa): Throw an error for btrace frames.
15057 * record-btrace.c: Include hashtab.h.
15058 (btrace_get_bfun_name): New.
15059 (btrace_call_history): Call btrace_get_bfun_name.
15060 (struct btrace_frame_cache): New.
15062 (bfcache_hash, bfcache_eq, bfcache_new): New.
15063 (btrace_get_frame_function): New.
15064 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15065 (record_btrace_frame_this_id): Compute own id.
15066 (record_btrace_frame_prev_register): Provide PC, throw_error
15067 for all other registers.
15068 (record_btrace_frame_sniffer): Detect btrace frames.
15069 (record_btrace_tailcall_frame_sniffer): New.
15070 (record_btrace_frame_dealloc_cache): New.
15071 (record_btrace_frame_unwind): Add new functions.
15072 (record_btrace_tailcall_frame_unwind): New.
15073 (_initialize_record_btrace): Allocate cache.
15074 * btrace.c (btrace_clear): Call reinit_frame_cache.
15075 * NEWS: Announce it.
15077 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15079 * record-btrace.c (record_btrace_set_replay)
15080 (record_btrace_goto_begin, record_btrace_goto_end)
15081 (record_btrace_goto): New.
15082 (init_record_btrace_ops): Initialize them.
15083 * NEWS: Announce it.
15085 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15087 * record-btrace.c (record_btrace_find_new_threads)
15088 (record_btrace_thread_alive): New.
15089 (init_record_btrace_ops): Initialize to_find_new_threads and
15092 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15094 * record-btrace.c (record_btrace_resume): New.
15095 (record_btrace_wait): New.
15096 (init_record_btrace_ops): Initialize to_wait and to_resume.
15098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15100 * record-btrace.c (record_btrace_xfer_partial)
15101 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15102 (record_btrace_allow_memory_access): New.
15103 (init_record_btrace_ops): Initialize new methods.
15104 * target.c (raw_memory_xfer_partial): Bail out if target reports
15105 that this memory is not available.
15107 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15109 * target.h (target_ops) <to_insert_breakpoint>
15110 <to_remove_breakpoint>: Add target_ops parameter.
15111 (forward_target_insert_breakpoint): New.
15112 (forward_target_remove_breakpoint): New.
15113 (memory_remove_breakpoint, memory_insert_breakpoint):
15114 Add target_ops parameter.
15115 * target.c (target_insert_breakpoint): Split into this and ...
15116 (forward_target_insert_breakpoint): ... this.
15117 (target_remove_breakpoint): Split into this and ...
15118 (forward_target_remove_breakpoint): ... this.
15119 (debug_to_insert_breakpoint): Add target_ops parameter.
15120 Call forward_target_insert_breakpoint.
15121 (debug_to_remove_breakpoint): Add target_ops parameter.
15122 Call forward_target_remove_breakpoint.
15123 (update_current_target): Do not inherit or default to_insert_breakpoint
15124 and to_remove_breakpoint.
15125 * corelow.c (ignore): Add target_ops parameter.
15126 * exec.c (ignore): Add target_ops parameter.
15127 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15128 Add target_ops parameter.
15129 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15130 Add target_ops parameter.
15131 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15132 Add target_ops parameter.
15133 * record-full.c (record_full_beneath_to_insert_breakpoint)
15134 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15135 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15136 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15137 (record_full_core_remove_breakpoint): Add target_ops parameter.
15139 (record_full_beneath_to_insert_breakpoint_ops)
15140 (record_full_beneath_to_remove_breakpoint_ops)
15141 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15142 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15143 tmp_to_remove_breakpoint_ops,
15144 record_full_beneath_to_insert_breakpoint_ops, and
15145 record_full_beneath_to_remove_breakpoint_ops.
15146 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15147 (m32r_remove_breakpoint): Add target_ops parameter.
15148 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15149 Add target_ops parameter.
15150 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15151 Add target_ops parameter.
15153 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15154 Markus Metzger <markus.t.metzger@intel.com>
15156 * record-btrace.c: Include frame-unwind.h.
15157 (record_btrace_frame_unwind_stop_reason)
15158 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15159 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15161 (init_record_btrace_ops): Install it.
15163 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15165 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15168 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15170 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15173 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15175 * frame-unwind.c: Include target.h.
15176 (frame_unwind_try_unwinder): New function with code from ...
15177 (frame_unwind_find_by_frame): ... here. New variable
15178 unwinder_from_target, call also target_get_unwinder)
15179 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15180 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15181 * target.h (struct target_ops): New fields to_get_unwinder and
15182 to_get_tailcall_unwinder.
15183 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15185 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15187 * record-btrace.c (record_btrace_fetch_registers)
15188 (record_btrace_store_registers)
15189 (record_btrace_to_prepare_to_store): New.
15190 (init_record_btrace_ops): Add the above.
15192 2014-01-16 Tom Tromey <tromey@redhat.com>
15194 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15195 * target.h (struct target_ops) <to_prepare_to_store>: Add
15197 (target_prepare_to_store): Add argument.
15198 * target.c (debug_to_prepare_to_store): Add argument.
15199 (update_current_target): Update.
15200 * remote.c (remote_prepare_to_store): Add 'self' argument.
15201 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15202 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15203 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15204 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15206 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15207 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15208 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15209 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15210 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15212 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15214 * btrace.h (replay) <replay>: New.
15215 (btrace_is_replaying): New.
15216 * btrace.c (btrace_clear): Free replay iterator.
15217 (btrace_is_replaying): New.
15218 * record-btrace.c (record_btrace_is_replaying): New.
15219 (record_btrace_info): Print insn number if replaying.
15220 (record_btrace_insn_history): Start at replay position.
15221 (record_btrace_call_history): Start at replay position.
15222 (init_record_btrace_ops): Init to_record_is_replaying.
15224 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15226 * record-btrace.c (record_btrace_insn_history_range): Include
15228 (record_btrace_insn_history_from): Adjust range.
15229 (record_btrace_call_history_range): Include
15231 (record_btrace_call_history_from): Adjust range.
15232 * NEWS: Announce changes.
15234 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15236 * record.h (enum record_print_flag)
15237 <record_print_indent_calls>: New.
15238 * record.c (get_call_history_modifiers): Recognize /c modifier.
15239 (_initialize_record): Document /c modifier.
15240 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15241 Reorder fields. Optionally indent the function name. Update
15243 * NEWS: Announce changes.
15245 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15247 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15249 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15251 * btrace.c (ftrace_new_function): Start counting at one.
15252 * record-btrace.c (record_btrace_info): Adjust number of calls
15254 * NEWS: Announce it.
15256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15258 * record-btrace.c (btrace_call_history_insn_range): Print
15259 insn range as [begin, end].
15261 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15263 * btrace.h (struct btrace_func_link): New.
15264 (enum btrace_function_flag): New.
15265 (struct btrace_inst): Rename to ...
15266 (struct btrace_insn): ...this. Update all users.
15267 (struct btrace_func) <ibegin, iend>: Remove.
15268 (struct btrace_func_link): New.
15269 (struct btrace_func): Rename to ...
15270 (struct btrace_function): ...this. Update all users.
15271 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15272 (number, level, flags>: New.
15273 (struct btrace_insn_iterator): Rename to ...
15274 (struct btrace_insn_history): ...this.
15276 (struct btrace_insn_iterator, btrace_call_iterator): New.
15277 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15278 (struct btrace_target_info) <begin, end, level>
15279 <insn_history, call_history>: New.
15280 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15281 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15282 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15283 (btrace_call_number, btrace_call_begin, btrace_call_end)
15284 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15285 (btrace_find_function_by_number, btrace_set_insn_history)
15286 (btrace_set_call_history): New.
15287 * btrace.c (btrace_init_insn_iterator)
15288 (btrace_init_func_iterator, compute_itrace): Remove.
15289 (ftrace_print_function_name, ftrace_print_filename)
15290 (ftrace_skip_file): Change
15291 parameter to const.
15292 (ftrace_init_func): Remove.
15293 (ftrace_debug): Use new btrace_function fields.
15294 (ftrace_function_switched): Also consider gaining and
15295 losing symbol information).
15296 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15297 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15298 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15300 (ftrace_new_function): Move. Remove debug print.
15301 (ftrace_update_lines, ftrace_update_insns): New.
15302 (ftrace_update_function): Check for call, ret, and jump.
15303 (compute_ftrace): Renamed to ...
15304 (btrace_compute_ftrace): ...this. Rewritten to compute call
15306 (btrace_fetch, btrace_clear): Updated.
15307 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15308 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15309 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15310 (btrace_call_number, btrace_call_begin, btrace_call_end)
15311 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15312 (btrace_find_function_by_number, btrace_set_insn_history)
15313 (btrace_set_call_history): New.
15314 * record-btrace.c (require_btrace): Use new btrace thread
15316 (record_btrace_info, btrace_insn_history)
15317 (record_btrace_insn_history, record_btrace_insn_history_range):
15318 Use new btrace thread info fields and new iterator.
15319 (btrace_func_history_src_line): Rename to ...
15320 (btrace_call_history_src_line): ...this. Use new btrace
15321 thread info fields.
15322 (btrace_func_history): Rename to ...
15323 (btrace_call_history): ...this. Use new btrace thread info
15324 fields and new iterator.
15325 (record_btrace_call_history, record_btrace_call_history_range):
15326 Use new btrace thread info fields and new iterator.
15328 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15330 * frame.h (frame_id_build_unavailable_stack_special): New.
15331 * frame.c (frame_id_build_unavailable_stack_special): New.
15333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15335 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15336 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15337 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15339 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15340 (i386_insn_is_jump, i386_jmp_p): New.
15341 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15342 insn_is_jump to gdbarch.
15343 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15344 * gdbarch.h: Regenerated.
15345 * gdbarch.c: Regenerated.
15346 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15347 (default_insn_is_jump): New.
15348 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15349 (default_insn_is_jump): New.
15351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15353 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15355 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15356 (btrace_read_type) <btrace_read_new>: Change to ...
15357 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15359 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15361 * common/linux-btrace.c (linux_read_btrace): Free trace from
15362 previous iteration.
15364 2014-01-15 Doug Evans <dje@google.com>
15366 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15369 2014-01-15 Tom Tromey <tromey@redhat.com>
15371 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15372 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15373 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15374 (set_objfile_main_name): New function.
15375 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15376 language_of_main>: New fields.
15377 (set_objfile_main_name): Declare.
15378 * symtab.c (find_main_name): Loop over objfiles to find the main
15380 (set_main_name): Now static.
15381 (get_main_info): Add comment.
15382 * symtab.h (set_main_name): Don't declare.
15384 2014-01-15 Tom Tromey <tromey@redhat.com>
15386 * symtab.c (main_progspace_key): New global.
15387 (struct main_info): New.
15388 (name_of_main, language_of_main): Remove.
15389 (get_main_info, main_info_cleanup): New function.
15390 (set_main_name, main_name, main_language): Use get_main_info.
15391 (_initialize_symtab): Initialize main_progspace_key.
15393 2014-01-15 Tom Tromey <tromey@redhat.com>
15395 * dbxread.c (process_one_symbol): Update.
15396 * dwarf2read.c (read_partial_die): Update.
15397 * symfile.c (set_initial_language): Call main_language.
15398 * symtab.c (language_of_main): Now static.
15399 (set_main_name): Add 'lang' parameter.
15400 (find_main_name): Update.
15401 (main_language): New function.
15402 (symtab_observer_executable_changed): Update.
15403 * symtab.h (set_main_name): Update.
15404 (language_of_main): Remove.
15405 (main_language): Declare.
15407 2014-01-15 Tom Tromey <tromey@redhat.com>
15409 * symfile.c (init_entry_point_info): Use new "initialized" field.
15411 * objfiles.h (struct entry_point) <initialized>: New field.
15412 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15413 (struct objfile) <ei>: ...here. Remove.
15414 * objfiles.c (entry_point_address_query): Update.
15416 2014-01-15 Tom Tromey <tromey@redhat.com>
15418 * objfiles.c (entry_point_address_query): Relocate entry point
15420 (objfile_relocate1): Do not relocate entry point address.
15421 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15422 <the_bfd_section_index>: New field.
15423 * symfile.c (init_entry_point_info): Find the entry point's
15426 2014-01-15 Tom Tromey <tromey@redhat.com>
15428 * solib-frv.c (enable_break): Use entry_point_address_query.
15430 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15432 * NEWS: Add note on improved process record-replay on
15433 arm*-linux* targets.
15435 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15437 * arm-tdep.c (enum arm_record_result): New enum.
15438 (arm_record_unsupported_insn): New function.
15439 (arm_record_coproc_data_proc): Removed.
15440 (thumb2_record_ld_st_multiple): New function.
15441 (thumb2_record_ld_st_dual_ex_tbb): New function.
15442 (thumb2_record_data_proc_sreg_mimm): New function.
15443 (thumb2_record_ps_dest_generic): New function.
15444 (thumb2_record_branch_misc_cntrl): New function.
15445 (thumb2_record_str_single_data): New function.
15446 (thumb2_record_ld_mem_hints): New function.
15447 (thumb2_record_ld_word): New function.
15448 (thumb2_record_lmul_lmla_div): New function.
15449 (thumb2_record_decode_insn_handler): New function.
15450 (decode_insn): Add thumb32 instruction handlers.
15452 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15454 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15455 (struct arm_linux_record_tdep): Declare.
15456 (arm_canonicalize_syscall): New function.
15457 (arm_all_but_pc_registers_record): New function.
15458 (arm_linux_syscall_record): New function.
15459 (arm_linux_init_abi): Add syscall recording constructs.
15460 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15461 decoding. (arm_record_coproc_data_proc): Update arm syscall
15463 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15464 <arm_syscall_record>: New field.
15465 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15468 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15470 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15471 register for push instruction recording.
15473 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15475 * arm-tdep.c (thumb_record_misc): Update to correct logical
15476 error while recording ldm, ldmia and pop instructions.
15478 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15480 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15482 2014-01-15 Pedro Alves <palves@redhat.com>
15484 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15485 (go32_resume, go32_fetch_registers, store_register)
15486 (go32_store_registers, go32_prepare_to_store)
15487 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15488 (go32_create_inferior, go32_can_run, go32_terminal_init)
15489 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15492 2014-01-15 Tom Tromey <tromey@redhat.com>
15494 * target.h (async_callback_ftype): New typedef.
15495 (struct target_ops) <to_async>: Use it.
15497 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15499 * python/py-value.c (get_field_type): Remove unnecessary curly
15500 braces for single-statement if block.
15502 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15504 * python/py-type.c (convert_field): Add missing empty line
15505 after declarations.
15507 2014-01-14 Doug Evans <dje@google.com>
15509 * symfile.h (expand_symtabs_matching): Renamed from
15510 expand_partial_symbol_names. Update prototype.
15511 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15512 * symfile.c (expand_symtabs_matching): Renamed from
15513 expand_partial_symbol_names. New args file_matcher, kind.
15514 Rename arg fun to symbol_matcher.
15515 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15516 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15517 ada_expand_partial_symbol_name.
15518 (ada_make_symbol_completion_list): Update to call
15519 expand_symtabs_matching.
15520 (ada_add_global_exceptions): Call expand_symtabs_matching.
15521 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15522 call map_symbol_filenames.
15523 * symtab.c (sources_info): Update to call map_symbol_filenames.
15524 (search_symbols): Call expand_symtabs_matching.
15525 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15526 (default_make_symbol_completion_list_break_on): Update to call
15527 expand_symtabs_matching.
15528 (make_source_files_completion_list): Update to call
15529 map_symbol_filenames.
15531 2014-01-14 Doug Evans <dje@google.com>
15533 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15534 (expand_symtabs_symbol_matcher_ftype): New typedef.
15535 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15536 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15537 * symfile.c (expand_partial_symbol_names): Update to use
15538 expand_symtabs_symbol_matcher_ftype.
15539 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15540 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15541 Arg name_matcher renamed to symbol_matcher.
15542 * psymtab.c (recursively_search_psymtabs): Update to use
15543 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15545 (expand_symtabs_matching_via_partial): Update to use
15546 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15547 Arg name_matcher renamed to symbol_matcher.
15549 2014-01-14 Doug Evans <dje@google.com>
15551 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15552 (map_partial_symbol_filenames): Ditto.
15553 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15554 (map_partial_symbol_filenames): Ditto.
15555 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15556 (map_partial_symbol_filenames): Ditto.
15557 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15558 (map_partial_symbol_filenames): Ditto.
15559 * symtab.c: Delete #include "psymtab.h".
15561 2014-01-14 Pedro Alves <palves@redhat.com>
15562 Tom Tromey <tromey@redhat.com>
15564 * infrun.c (use_displaced_stepping): Use find_record_target
15565 instead of RECORD_IS_USED.
15566 (adjust_pc_after_break): Use record_full_is_used instead of
15568 * record-btrace.c (record_btrace_open): Call record_preopen
15569 instead of checking RECORD_IS_USED.
15570 * record-full.c (record_full_shortname)
15571 (record_full_core_shortname): New globals.
15572 (record_full_is_used): New function.
15573 (find_full_open): Call record_preopen instead of checking
15575 (init_record_full_ops): Set the target's shortname to
15576 record_full_shortname.
15577 (init_record_full_core_ops): Set the target's shortname to
15578 record_full_core_shortname.
15579 * record-full.h (record_full_is_used): Declare.
15580 * record.c (find_record_target): Make extern.
15581 (record_preopen): New function.
15582 * record.h (RECORD_IS_USED): Delete macro.
15583 (find_record_target, record_preopen): Declare functions.
15585 2014-01-14 Yao Qi <yao@codesourcery.com>
15587 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15588 'len''s type to ULONGEST.
15589 (core_xfer_shared_libraries_aix): Likewise.
15590 * gdbarch.c, gdbarch.h: Regenerated.
15591 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15592 Change type of 'len' to ULONGEST.
15593 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15594 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15596 2014-01-14 Yao Qi <yao@codesourcery.com>
15598 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15599 type of 'len' to ULONGEST.
15600 (linux_xfer_osdata_processgroups): Likewise.
15601 (linux_xfer_osdata_threads): Likewise.
15602 (linux_xfer_osdata_fds): Likewise.
15603 (linux_xfer_osdata_isockets): Likewise.
15604 (linux_xfer_osdata_shm): Likewise.
15605 (linux_xfer_osdata_sem): Likewise.
15606 (linux_xfer_osdata_msg): Likewise.
15607 (linux_common_xfer_osdata): Likewise.
15608 (struct osdata_type) <getter>: Likewise.
15609 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15612 2014-01-14 Yao Qi <yao@codesourcery.com>
15614 * target.h (target_xfer_partial_ftype): Update.
15615 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15617 * aix-thread.c (aix_thread_xfer_partial): Change type of
15618 argument 'len' to ULONGEST.
15619 * auxv.c (procfs_xfer_auxv): Likewise.
15620 (ld_so_xfer_auxv): Likewise.
15621 (memory_xfer_auxv): Likewise.
15622 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15623 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15624 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15625 * corelow.c (core_xfer_partial): Likewise.
15626 * ctf.c (ctf_xfer_partial): Likewise.
15627 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15629 (darwin_read_dyld_info): Likewise.
15630 (darwin_xfer_partial): Likewise.
15631 * exec.c (section_table_xfer_memory_partial): Likewise.
15632 (exec_xfer_partial): Likewise.
15633 * exec.h (section_table_xfer_memory_partial): Update
15635 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15636 instead of plongest.
15637 (gnu_xfer_partial): Likewise.
15638 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15639 (ia64_hpux_xfer_solib_got): Likewise.
15640 (ia64_hpux_xfer_partial): Likewise.
15641 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15642 * inf-ptrace.c (inf_ptrace_xfer_partial):
15643 * inf-ttrace.c (inf_ttrace_xfer_partial):
15644 * linux-nat.c (linux_xfer_siginfo): Likewise.
15645 (linux_nat_xfer_partial): Likewise.
15646 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15647 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15648 * monitor.c (monitor_xfer_memory): Likewise.
15649 (monitor_xfer_partial): Likewise.
15650 * procfs.c (procfs_xfer_partial): Likewise.
15651 * record-full.c (record_full_xfer_partial): Likewise.
15652 (record_full_core_xfer_partial): Likewise.
15653 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15654 instead of plongest.
15655 (gdbsim_xfer_partial): Likewise.
15656 * remote.c (remote_xfer_partial): Likewise.
15657 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15658 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15660 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15661 (rs6000_xfer_shared_libraries): Likewise.
15662 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15663 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15664 (sparc_xfer_partial): Likewise.
15665 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15666 (spu_xfer_partial): Likewise.
15667 * spu-multiarch.c (spu_xfer_partial): Likewise.
15668 * target.c (target_read_live_memory): Likewise.
15669 (memory_xfer_live_readonly_partial): Likewise.
15670 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15671 (target_xfer_partial, default_xfer_partial): Likewise.
15672 (current_xfer_partial): Likewise.
15673 * tracepoint.c (tfile_xfer_partial): Likewise.
15674 * windows-nat.c (windows_xfer_memory): Likewise. Call
15675 pulongest instead of plongest.
15676 (windows_xfer_partial): Likewise.
15677 (windows_xfer_shared_libraries): Likewise.
15679 2014-01-14 Yao Qi <yao@codesourcery.com>
15681 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15682 target_xfer_partial_ftype.
15684 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15688 * valops.c (value_struct_elt_bitpos): New function
15689 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15690 object to 'None' if the field name is an empty string ("").
15691 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15692 attribute to look for a field when 'name' is 'None'.
15693 (get_field_type): New function
15695 2014-01-13 Doug Evans <dje@google.com>
15698 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15699 (try_open_dwop_file): Ditto.
15700 * gdb_bfd.c: #include "vec.h".
15701 (bfdp): New typedef.
15702 (struct gdb_bfd_data): New member included_bfds.
15703 (gdb_bfd_unref): Unref all included bfds.
15704 (gdb_bfd_record_inclusion): New function.
15705 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15707 2014-01-13 Tom Tromey <tromey@redhat.com>
15709 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15711 2014-01-13 Tom Tromey <tromey@redhat.com>
15713 * defs.h (use_windows): Remove.
15714 * gdb.c (main): Update.
15715 * main.c (captured_main, gdb_main): Update.
15716 * main.h (struct captured_main_args) <use_windows>: Remove.
15717 * top.c (use_windows): Remove.
15719 2014-01-13 Tom Tromey <tromey@redhat.com>
15721 * defs.h (deprecated_flush_hook): Remove.
15723 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15726 * linux-thread-db.c (try_thread_db_load): Add parameter
15727 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15728 (try_thread_db_load_from_pdir_1): Move it there from here.
15729 (try_thread_db_load_from_sdir): Update caller.
15730 (try_thread_db_load_from_dir): Move it there from here.
15732 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15734 * regformats/regdat.sh: Always rewrite the register file.
15736 2014-01-13 Pedro Alves <palves@redhat.com>
15738 * Makefile.in (CHECK_HEADERS): New variable.
15739 (check-headers:): New rule.
15741 2014-01-13 Tom Tromey <tromey@redhat.com>
15743 * cli/cli-setshow.c (do_set_command): Update.
15744 * defs.h (deprecated_set_hook): Remove.
15745 * top.c (deprecated_set_hook): Remove.
15747 2014-01-13 Pedro Alves <palves@redhat.com>
15749 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15750 the tracepoint if the PC is a pseudo-register.
15752 2014-01-13 Tom Tromey <tromey@redhat.com>
15754 * defs.h (XCALLOC): Remove.
15755 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15756 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15757 * dwarf2loc.c (allocate_piece_closure): Likewise.
15758 * elfread.c (elf_symfile_segments): Likewise.
15759 (elf_symfile_segments): Likewise.
15760 * gdbtypes.c (copy_type_recursive): Likewise.
15761 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15762 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15763 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15765 * mt-tdep.c (mt_gdbarch_init): Likewise.
15766 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15768 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15769 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15770 * registry.c (registry_alloc_data): Likewise.
15771 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15772 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15773 * serial.c (serial_fdopen_ops): Likewise.
15774 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15776 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15777 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15780 2014-01-13 Tom Tromey <tromey@redhat.com>
15782 * defs.h (XMALLOC): Remove.
15783 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15784 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15785 * cli-out.c (struct ui_out *): Likewise.
15786 * cli/cli-dump.c (add_dump_command): Likewise.
15787 (add_dump_command): Likewise.
15788 * complaints.c (get_complaints): Likewise.
15789 (find_complaint): Likewise.
15790 * dwarf2-frame.c (execute_cfa_program): Likewise.
15791 * dwarf2read.c (abbrev_table_read_table): Likewise.
15792 * gdbarch.sh: Likewise.
15793 * gdbarch.c: Rebuild.
15794 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15795 * interps.c (interp_new): Likewise.
15796 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15797 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15798 * mi/mi-console.c (mi_console_file_new): Likewise.
15799 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15800 * mi/mi-out.c (mi_out_new): Likewise.
15801 * mi/mi-parse.c (mi_parse): Likewise.
15802 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15803 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15804 * observer.c (xalloc_observer_list_node): Likewise.
15805 * regcache.c (regcache_xmalloc_1): Likewise.
15806 * reggroups.c (reggroup_new): Likewise.
15807 (_initialize_reggroup): Likewise.
15808 * registry.c (register_data_with_cleanup): Likewise.
15809 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15810 * ser-base.c (serial_ttystate): Likewise.
15811 * ser-mingw.c (make_pipe_state): Likewise.
15812 * ser-pipe.c (pipe_open): Likewise.
15813 * serial.c (serial_open): Likewise.
15814 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15815 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15816 (tui_alloc_win_info): Likewise.
15817 (tui_add_content_elements): Likewise.
15818 * tui/tui-file.c (tui_file_new): Likewise.
15819 * tui/tui-out.c (tui_out_new): Likewise.
15820 * ui-file.c (mem_file_new): Likewise.
15821 * ui-out.c (push_level): Likewise.
15822 (make_cleanup_ui_out_end): Likewise.
15823 (append_header_to_list): Likewise.
15824 (ui_out_new): Likewise.
15825 * user-regs.c (user_reg_add_builtin): Likewise.
15827 2014-01-13 Tom Tromey <tromey@redhat.com>
15829 * defs.h (XZALLOC): Remove.
15830 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15831 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15832 (get_ada_tasks_inferior_data): Likewise.
15833 * auto-load.c (get_auto_load_pspace_data): Likewise.
15834 * auxv.c (get_auxv_inferior_data): Likewise.
15835 * bfd-target.c (target_bfd_reopen): Likewise.
15836 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15837 (deprecated_insert_raw_breakpoint): Likewise.
15838 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15839 * corelow.c (core_open): Likewise.
15840 * darwin-nat.c (darwin_check_new_threads): Likewise.
15841 (darwin_attach_pid): Likewise.
15842 * dummy-frame.c (dummy_frame_push): Likewise.
15843 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15844 * dwarf2loc.c (allocate_piece_closure): Likewise.
15845 * elfread.c (elf_symfile_segments): Likewise.
15846 * eval.c (ptrmath_type_p): Likewise.
15847 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15848 * gdbtypes.c (alloc_type_arch): Likewise.
15849 (alloc_type_instance): Likewise.
15850 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15851 * inf-child.c (inf_child_can_use_agent): Likewise.
15852 * inflow.c (get_inflow_inferior_data): Likewise.
15853 * infrun.c (save_infcall_suspend_state): Likewise.
15854 * jit.c (jit_reader_load): Likewise.
15855 (get_jit_objfile_data): Likewise.
15856 (get_jit_program_space_data): Likewise.
15857 (jit_object_open_impl): Likewise.
15858 (jit_symtab_open_impl): Likewise.
15859 (jit_block_open_impl): Likewise.
15860 (jit_frame_sniffer): Likewise.
15861 * linux-fork.c (add_fork): Likewise.
15862 * maint.c (make_command_stats_cleanup): Likewise.
15863 * objfiles.c (get_objfile_pspace_data): Likewise.
15864 * opencl-lang.c (struct lval_closure): Likewise.
15865 * osdata.c (osdata_start_osdata): Likewise.
15866 * progspace.c (new_address_space): Likewise.
15867 (add_program_space): Likewise.
15868 * remote-sim.c (get_sim_inferior_data): Likewise.
15869 * sh-tdep.c (sh_gdbarch_init): Likewise.
15870 * skip.c (Ignore): Likewise.
15871 (skip_delete_command): Likewise.
15872 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15873 (library_list_start_library): Likewise.
15874 (solib_aix_current_sos): Likewise.
15875 * solib-darwin.c (get_darwin_info): Likewise.
15876 (darwin_current_sos): Likewise.
15877 * solib-dsbt.c (get_dsbt_info): Likewise.
15878 * solib-ia64-hpux.c (new_so_list): Likewise.
15879 (ia64_hpux_get_solib_linkage_addr): Likewise.
15880 * solib-spu.c (append_ocl_sos): Likewise.
15881 (spu_current_sos): Likewise.
15882 * solib-svr4.c (get_svr4_info): Likewise.
15883 (svr4_keep_data_in_core): Likewise.
15884 (library_list_start_library): Likewise.
15885 (svr4_default_sos): Likewise.
15886 (svr4_read_so_list): Likewise.
15887 * solib-target.c (library_list_start_library): Likewise.
15888 (solib_target_current_sos): Likewise.
15889 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15890 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15891 * symfile.c (default_symfile_segments): Likewise.
15892 * target-descriptions.c (tdesc_data_init): Likewise.
15893 (tdesc_create_reg): Likewise.
15894 (struct tdesc_type *): Likewise.
15895 (tdesc_create_vector): Likewise.
15896 (tdesc_set_struct_size): Likewise.
15897 (struct tdesc_type *): Likewise.
15898 (tdesc_free_feature): Likewise.
15899 (tdesc_create_feature): Likewise.
15900 * windows-nat.c (windows_add_thread): Likewise.
15901 (windows_make_so): Likewise.
15902 * xml-support.c (gdb_xml_body_text): Likewise.
15903 (gdb_xml_create_parser_and_cleanup): Likewise.
15904 (xml_process_xincludes): Likewise.
15905 * xml-syscall.c (allocate_syscalls_info): Likewise.
15906 (syscall_create_syscall_desc): Likewise.
15908 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15910 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15911 function, with code from i386_stap_parse_special_token.
15912 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15913 (i386_stap_parse_special_token): Move code to the two functions
15914 above; simplify it.
15916 2014-01-09 Pedro Alves <palves@redhat.com>
15917 Hui Zhu <hui@codesourcery.com>
15920 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15921 bp_err_string. Don't mark the location shlib_disabled if the
15922 error thrown wasn't a generic or memory error. Catch errors
15923 thrown while inserting breakpoints in overlayed code. Output
15924 error message of software breakpoints.
15925 * remote.c (remote_insert_breakpoint): If this breakpoint has
15926 target-side commands but this stub doesn't support Z0 packets,
15927 throw NOT_SUPPORTED_ERROR error.
15928 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15929 * target.h (target_insert_breakpoint): Extend comment.
15930 (target_insert_hw_breakpoint): Add comment.
15932 2014-01-08 Pedro Alves <palves@redhat.com>
15934 * remote.c (remote_add_thread): Add threads silently if starting
15936 (remote_notice_new_inferior): If in all-stop, and starting up,
15937 don't call notice_new_inferior.
15938 (get_current_thread): New function, factored out from ...
15939 (add_current_inferior_and_thread): ... this. Adjust.
15940 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15941 found any thread, then select the remote's current thread as GDB's
15942 current thread too.
15944 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15946 * NEWS: Create a new section for the next release branch.
15947 Rename the section of the current branch, now that it has
15950 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15952 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15953 * version.in: Bump version to 7.7.50.DATE-cvs.
15955 2014-01-08 Yao Qi <yao@codesourcery.com>
15957 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15958 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15959 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15961 2014-01-08 Yao Qi <yao@codesourcery.com>
15963 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15964 return value of bfd_get_filename to symbol_file_add_from_bfd.
15966 2014-01-08 Pierre Muller <muller@sourceware.org>
15969 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15970 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15971 to prim_record_mininal_symbol_and_info.
15972 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15973 in call to prim_record_minimal_symbol_and_info.
15974 (read_pe_exported_syms): Set index field of section_data.
15976 2014-01-07 Andrew Pinski <apinski@cavium.com>
15978 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15979 * features/aarch64.c: Regenerate.
15981 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15983 * target.c (return_null): Define.
15984 (update_current_target): Use it instead of return_zero for
15985 functions that return a pointer.
15987 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15989 * source.c (add_path): Fix check for duplicated paths in the previously
15992 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15994 * ada-lang.c: Remove duplicated include statements.
15995 * alphabsd-nat.c: Ditto.
15996 * amd64-darwin-tdep.c: Ditto.
15997 * amd64fbsd-nat.c: Ditto.
15998 * auto-load.c: Ditto.
16000 * breakpoint.c: Ditto.
16001 * dbxread.c: Ditto.
16002 * fork-child.c: Ditto.
16003 * gdb_usleep.c: Ditto.
16004 * i386-darwin-tdep.c: Ditto.
16005 * i386fbsd-nat.c: Ditto.
16007 * inferior.c: Ditto.
16008 * jv-lang.c: Ditto.
16009 * linux-nat.c: Ditto.
16010 * linux-tdep.c: Ditto.
16011 * m68kbsd-nat.c: Ditto.
16012 * m68klinux-nat.c: Ditto.
16013 * microblaze-tdep.c: Ditto.
16014 * mips-linux-tdep.c: Ditto.
16015 * mn10300-tdep.c: Ditto.
16016 * nto-tdep.c: Ditto.
16017 * opencl-lang.c: Ditto.
16019 * printcmd.c: Ditto.
16020 * regcache.c: Ditto.
16021 * remote-m32r-sdi.c: Ditto.
16023 * symfile.c: Ditto.
16025 * tilegx-linux-nat.c: Ditto.
16026 * tilegx-tdep.c: Ditto.
16027 * tracepoint.c: Ditto.
16029 * vaxbsd-nat.c: Ditto.
16030 * windows-nat.c: Ditto.
16031 * xtensa-tdep.c: Ditto.
16033 2014-01-07 Yao Qi <yao@codesourcery.com>
16035 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16037 2014-01-07 Yao Qi <yao@codesourcery.com>
16038 Joel Brobecker <brobecker@adacore.com>
16040 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16041 (pdc_write_regs): Likewise.
16042 (fetch_regs_kernel_thread): Likewise.
16043 (store_regs_kernel_thread): Likewise.
16045 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16047 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16048 tagged type objects to their actual type.
16050 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16052 * ada-valprint.c (print_field_values): Add "language" parameter.
16053 Update calls to print_field_values and print_variant_part.
16054 Pass new parameter "language" in call to val_print instead
16055 of "current_language". Replace call to ada_val_print by call
16057 (print_variant_part): Add "language" parameter.
16058 (ada_val_print_struct_union): Update call to print_field_values.
16060 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16062 * ada-valprint.c (ui_memcpy): Delete.
16063 (ada_print_floating): Update documentation. Add empty line
16064 between between function documentation and implementation.
16065 Delete variable "buffer". Use ui_file_xstrdup in place of
16066 ui_file_put. Minor adjustments following this change.
16068 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16070 * ada-valprint.c (ada_val_print_string): New function,
16071 extracted from ada_val_print_array.
16072 (ada_val_print_array): Replace extracted code by call
16073 to ada_val_print_string followed by a return. Move
16074 "else" branch to the function's top block.
16076 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16078 * ada-valprint.c (ada_val_print_array): Move implementation
16079 down. Rename parameter "offset" and "val" into "offset_aligned"
16080 and "original_value" respectively. Add parameter "offset".
16082 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16084 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16085 re-organizing the code. Change the "???" message printed
16086 when target type is a TYPE_CODE_UNDEF into
16087 "<ref to undefined type>".
16089 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16091 * ada-valprint.c (print_record): Delete, implementation inlined...
16092 (ada_val_print_struct_union): ... here. Remove call to
16093 ada_check_typedef in inlined implementation.
16095 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16097 * ada-valprint.c (ada_val_print_gnat_array): New function,
16098 extracted from ada_val_print_1;
16099 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16100 (ada_val_print_flt, ada_val_print_struct_union)
16101 (ada_val_print_ref): Likewise.
16102 (ada_val_print_1): Delete variables i and elttype.
16103 Replace extracted-out code by call to corresponding
16106 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16108 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16110 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16112 * ada-valprint.c (ada_val_print_1): Replace calls to
16113 ada_val_print_1 by calls to val_print.
16115 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16117 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16118 Update calls to self accordingly. Replace calls to c_val_print
16119 by calls to val_print.
16121 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16123 * ada-valprint.c (print_record): Delete declaration.
16124 (adjust_type_signedness, ada_val_print_1): Likewise.
16125 (ada_val_print): Move function implementation down.
16126 (print_variant_part, print_field_values, print_record):
16127 Move function implementation up.
16129 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16131 * python/py-type.c (typy_get_name): New function.
16132 (type_object_getset): Add entry for attribute "name".
16133 * NEWS: Add entry mentioning this new attribute.
16135 2014-01-07 Yao Qi <yao@codesourcery.com>
16137 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16140 2014-01-07 Yao Qi <yao@codesourcery.com>
16142 * gnu-nat.c (info_port_rights): Add qualifier const to
16145 2014-01-07 Yao Qi <yao@codesourcery.com>
16147 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16149 2014-01-07 Yao Qi <yao@codesourcery.com>
16151 * gnu-nat.c (make_inf) Update declaration.
16152 (make_inf): Make it static.
16153 (inf_set_traced): Likewise.
16154 (inf_port_to_thread, inf_task_died_status): Likewise.
16156 2014-01-07 Yao Qi <yao@codesourcery.com>
16158 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16160 2014-01-07 Yao Qi <yao@codesourcery.com>
16162 * gnu-nat.c (_initialize_gnu_nat): Declare.
16164 2014-01-07 Yao Qi <yao@codesourcery.com>
16166 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16168 (struct gdbarch_info) <byte_order>: Change type to
16170 <byte_order_for_code>: Likewise.
16171 * gdbarch.c, gdbarch.h: Regenerated.
16173 2014-01-06 Sasha Smundak <asmundak@google.com>
16175 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16177 2014-01-06 Tom Tromey <tromey@redhat.com>
16179 * doublest.c (convert_doublest_to_floatformat): Use const, not
16181 * somread.c (som_symtab_read): Likewise.
16183 2014-01-07 Hui Zhu <hui@codesourcery.com>
16185 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16186 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16187 (gdb_bfd_fopen): Ditto.
16188 (gdb_bfd_openr): Ditto.
16189 (gdb_bfd_openw): Ditto.
16190 (gdb_bfd_openr_iovec): Ditto.
16191 (gdb_bfd_fdopenr): Ditto.
16192 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16193 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16195 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16197 * symfile-mem.c (symbol_file_add_from_memory): Removed
16198 gdb_bfd_stash_filename.
16200 2014-01-03 Doug Evans <dje@google.com>
16202 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16205 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16207 Update year range in copyright notice of all files.
16209 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16211 * top.c (print_gdb_version): Set copyright year to 2014.
16213 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16215 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16217 For older changes see ChangeLog-2013.
16223 version-control: never