1 2014-12-12 Doug Evans <xdje42@gmail.com>
3 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
4 partial_map_symtabs_matching_filename. All uses updated.
5 (psym_find_pc_sect_compunit_symtab): Renamed from
6 find_pc_sect_compunit_symtab_from_partial. All uses updated.
8 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
9 All uses updated. Add function comment.
10 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
12 (psym_find_last_source_symtab): Renamed from
13 find_last_source_symtab_from_partial. All uses updated.
15 (psym_forget_cached_source_info): Renamed from
16 forget_cached_source_info_partial. All uses updated.
18 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
19 All uses updated. Add function comment.
20 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
21 updated. Add function comment.
22 (psym_expand_symtabs_for_function): Renamed from
23 read_symtabs_for_function. All uses updated. Update function comment.
24 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
25 All uses updated. Add function comment.
26 (psym_expand_symtabs_with_fullname): Renamed from
27 read_psymtabs_with_fullname. All uses updated. Add function comment.
28 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
29 All uses updated. Add function comment.
30 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
32 (psym_expand_symtabs_matching): Renamed from
33 expand_symtabs_matching_via_partial. All uses updated.
35 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
38 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
39 Jan Kratochvil <jan.kratochvil@redhat.com>
40 Tom Tromey <tromey@redhat.com>
43 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
45 * p-lang.c (pascal_language_defn): Update.
46 * opencl-lang.c (opencl_language_defn): Update.
47 * objc-lang.c (objc_language_defn): Update.
48 * m2-lang.c (m2_language_defn): Update.
49 * language.h (struct language_defn) <la_get_compile_instance,
50 la_compute_program>: New fields.
51 * language.c (unknown_language_defn, auto_language_defn)
52 (local_language_defn): Update.
53 * jv-lang.c (java_language_defn): Update.
54 * go-lang.c (go_language_defn): Update.
55 * f-lang.c (f_language_defn): Update.
56 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
57 * dwarf2loc.c (dwarf2_compile_property_to_c)
58 (locexpr_generate_c_location, loclist_generate_c_location): New
60 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
61 * defs.h (enum compile_i_scope_types): New.
62 (enum command_control_type) <compile_control>: New constant.
63 (struct command_line) <control_u>: New field.
64 * d-lang.c (d_language_defn): Update.
65 * compile/compile.c: New file.
66 * compile/compile-c-support.c: New file.
67 * compile/compile-c-symbols.c: New file.
68 * compile/compile-c-types.c: New file.
69 * compile/compile.h: New file.
70 * compile/compile-internal.h: New file.
71 * compile/compile-loc2c.c: New file.
72 * compile/compile-object-load.c: New file.
73 * compile/compile-object-load.h: New file.
74 * compile/compile-object-run.c: New file.
75 * compile/compile-object-run.h: New file.
76 * cli/cli-script.c (multi_line_command_p, print_command_lines)
77 (execute_control_command, process_next_line)
78 (recurse_read_control_structure): Handle compile_control.
79 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
80 * c-lang.c (c_language_defn, cplus_language_defn)
81 (asm_language_defn, minimal_language_defn): Update.
82 * ada-lang.c (ada_language_defn): Update.
83 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
85 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
86 (HFILES_NO_SRCDIR): Add compile.h.
87 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
88 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
89 (compile.o, compile-c-types.o, compile-c-symbols.o)
90 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
91 (compile-c-support.o): New targets.
93 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
95 * s390-linux-tdep.c (s390_gcc_target_options): New function.
96 (s390_gdbarch_init): Add it to gdbarch.
98 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
100 * linux-tdep.c: Include objfiles.h and infcall.h.
101 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
103 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
105 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
107 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
108 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
109 translate_register. Now public.
110 (dwarf2_compile_expr_to_ax): Update.
112 2014-12-12 Tom Tromey <tromey@redhat.com>
113 Jan Kratochvil <jan.kratochvil@redhat.com>
115 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
116 (dwarf_expr_frame_base): Update caller.
117 (dwarf_expr_frame_base_1): Rename to ...
118 (func_get_frame_base_dwarf_block): ... this and make it public.
119 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
121 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
123 2014-12-12 Tom Tromey <tromey@redhat.com>
125 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
127 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
128 dwarf2_compile_cfa_to_ax.
129 (dwarf2_compile_cfa_to_ax): Remove.
130 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
131 (dwarf2_compile_cfa_to_ax): Remove.
133 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
135 * infcall.h (call_function_by_hand_dummy): Declare.
136 * infcall.c (call_function_by_hand): Use
137 call_function_by_hand_dummy.
138 (call_function_by_hand_dummy): Rename from call_function_by_hand.
139 Add arguments. Register a destructor.
141 2014-12-12 Tom Tromey <tromey@redhat.com>
142 Jan Kratochvil <jan.kratochvil@redhat.com>
144 * osabi.h (osabi_triplet_regexp): Declare.
145 * osabi.c (struct osabi_names): New.
146 (gdb_osabi_names): Change type to struct osabi_names. Update
148 (gdbarch_osabi_name): Update.
149 (osabi_triplet_regexp): New function.
150 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
151 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
152 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
153 set_gdbarch_gnu_triplet_regexp.
154 * gdbarch.sh (gnu_triplet_regexp): New method.
155 * gdbarch.c, gdbarch.h: Rebuild.
156 * arch-utils.h (default_gnu_triplet_regexp): Declare.
157 * arch-utils.c (default_gnu_triplet_regexp): New function.
159 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
161 * arch-utils.c (default_infcall_mmap)
162 (default_gcc_target_options): New functions.
163 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
164 (GDB_MMAP_PROT_EXEC): Define.
165 (default_infcall_mmap, default_gcc_target_options): Declare.
166 * gdbarch.h: Rebuild.
167 * gdbarch.c: Rebuild.
168 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
170 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
172 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
174 (pop_dummy_frame): Call the destructor if it exists.
175 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
177 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
178 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
180 2014-12-12 Tom Tromey <tromey@redhat.com>
182 * gdbtypes.h (make_unqualified_type): Declare.
183 * gdbtypes.c (make_unqualified_type): New function.
185 2014-12-12 Tom Tromey <tromey@redhat.com>
187 * ui-file.h (ui_file_write_for_put): Declare.
188 * ui-file.c (ui_file_write_for_put): New function.
189 * mi/mi-out.c (do_write): Remove.
190 (mi_out_put): Use ui_file_write_for_put.
192 2014-12-12 Doug Evans <dje@google.com>
194 * NEWS: Mention gdb.lookup_objfile.
195 * python/python.c (GdbMethods): Add lookup_objfile.
196 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
197 * python/py-objfile.c: #include "symtab.h".
198 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
199 (objfpy_lookup_objfile_by_name): New function.
200 (objfpy_lookup_objfile_by_build_id): New function.
201 (gdbpy_lookup_objfile): New function.
203 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
205 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
206 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
207 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
209 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
212 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
214 * completer.c: Include "target.h", "reggroups.h", and
216 (reg_or_group_completer): New.
217 * completer.h (reg_or_group_completer): Declare.
218 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
219 the "info registers" and "info all-registers" commands and the
220 dbx-mode "lr" command.
222 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
224 * user-regs.c: Include "arch-utils.h", "command.h", and
226 (maintenance_print_user_registers): New.
227 (_initialize_user_regs): Register new "maint print user-registers"
229 * NEWS: Mention new GDB command "maint print user-registers".
231 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
232 Maciej W. Rozycki <macro@mips.com>
233 Pedro Alves <pedro@codesourcery.com>
235 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
236 remove `predefault' and `invalid_p' initializers.
237 (make_symbol_special): New architecture method.
238 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
239 (objfile, symbol): New declarations.
240 * arch-utils.h (default_elf_make_msymbol_special): Remove
242 (default_make_symbol_special): New prototype.
243 (default_adjust_dwarf2_addr): Likewise.
244 (default_adjust_dwarf2_line): Likewise.
245 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
246 * arch-utils.c (default_elf_make_msymbol_special): Remove
248 (default_make_symbol_special): New function.
249 (default_adjust_dwarf2_addr): Likewise.
250 (default_adjust_dwarf2_line): Likewise.
251 * dwarf2-frame.c (decode_frame_entry_1): Call
252 `gdbarch_adjust_dwarf2_addr'.
253 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
254 * dwarf2read.c (create_addrmap_from_index): Likewise.
255 (process_psymtab_comp_unit_reader): Likewise.
256 (add_partial_symbol): Likewise.
257 (add_partial_subprogram): Likewise.
258 (process_full_comp_unit): Likewise.
259 (read_file_scope): Likewise.
260 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
261 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
262 (read_call_site_scope): Likewise.
263 (dwarf2_ranges_read): Likewise.
264 (dwarf2_record_block_ranges): Likewise.
265 (read_attribute_value): Likewise.
266 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
267 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
268 * elfread.c (elf_symtab_read): Don't call
269 `gdbarch_elf_make_msymbol_special' if unset.
270 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
271 the ISA bit from the PC.
272 * mips-tdep.c (mips_unmake_compact_addr): New function.
273 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
274 address appropriately.
275 (mips_make_symbol_special): New function.
276 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
277 (mips_pc_is_mips16): Likewise.
278 (mips_pc_is_micromips): Likewise.
279 (mips_pc_isa): Likewise.
280 (mips_adjust_dwarf2_addr): New function.
281 (mips_adjust_dwarf2_line): Likewise.
282 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
283 (mips_addr_bits_remove): Likewise.
284 (mips_skip_trampoline_code): Likewise.
285 (mips_write_pc): Don't set the ISA bit.
286 (mips_eabi_push_dummy_call): Likewise.
287 (mips_o64_push_dummy_call): Likewise.
288 (mips_gdbarch_init): Install `mips_make_symbol_special',
289 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
291 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
292 target-specific symbol address adjustments.
293 * gdbarch.h: Regenerate.
294 * gdbarch.c: Regenerate.
296 2014-12-12 Yao Qi <yao@codesourcery.com>
299 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
300 'skip_pc'. Remove code skipping prologue instructions, use
301 arm_analyze_prologue instead.
302 (arm_analyze_prologue): Stop the scanning for unrecognized
303 instruction when skipping prologue.
305 2014-12-12 Yao Qi <yao@codesourcery.com>
307 * arm-tdep.c (arm_instruction_restores_sp): New function.
308 (arm_analyze_prologue): Call arm_instruction_restores_sp.
309 (arm_in_function_epilogue_p): Move code to
310 arm_instruction_restores_sp.
312 2014-12-11 Doug Evans <xdje42@gmail.com>
314 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
316 2014-12-11 Doug Evans <xdje42@gmail.com>
318 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
319 (symbol *lookup_symbol_via_quick_fns): Ditto.
320 (lookup_symbol_in_objfile): Add forward decl.
321 (lookup_global_symbol_from_objfile): Simplify, call
322 lookup_symbol_in_objfile.
324 2014-12-11 Doug Evans <xdje42@gmail.com>
326 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
328 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
331 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
332 it is marked as persistent.
334 2014-12-10 Doug Evans <xdje42@gmail.com>
336 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
337 closer to its subroutines.
339 2014-12-10 Doug Evans <xdje42@gmail.com>
341 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
343 2014-12-10 Doug Evans <xdje42@gmail.com>
345 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
346 * cp-support.c (cp_lookup_symbol_imports): Delete.
348 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
351 * target.c (cleanup_restore_target_terminal): New function.
352 (make_cleanup_restore_target_terminal): New function.
353 * target.h (make_cleanup_restore_target_terminal): New declaration.
354 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
356 2014-12-08 Doug Evans <dje@google.com>
358 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
360 2014-12-08 Doug Evans <dje@google.com>
362 * NEWS: Mention gdb.Objfile.owner.
363 * python/py-objfile.c (objfpy_get_owner): New function.
364 (objfile_getset): Add "owner".
366 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
368 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
369 (lookup_global_symbol_from_objfile): Call it.
371 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
373 Remove const from struct objfile *.
374 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
375 symtab.c, symtab.h: In these files.
377 2014-12-05 Andreas From <andreas.from@ericsson.com>
379 * MAINTAINERS (Write After Approval): Add "Andreas From"
381 2014-12-05 Doug Evans <xdje42@gmail.com>
385 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
387 2014-12-04 Doug Evans <dje@google.com>
389 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
390 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
391 (objfile_getset): Add "add_separate_debug_file".
393 2014-12-04 Doug Evans <dje@google.com>
395 * NEWS: Mention gdb.Objfile.build_id.
396 * build-id.c (build_id_bfd_get): Make non-static.
397 * build-id.h (build_id_bfd_get): Add declaration.
398 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
399 (OBJFPY_REQUIRE_VALID): New macro.
400 (objfpy_get_build_id): New function.
401 (objfile_getset): Add "build_id".
402 * utils.c (make_hex_string): New function.
403 * utils.h (make_hex_string): Add declaration.
405 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
407 * block.c (block_lookup_symbol_primary): New function.
408 * block.h (block_lookup_symbol_primary): New declaration.
409 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
410 Call block_lookup_symbol_primary.
412 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
414 * tramp-frame.h (tramp_frame): Add `validate' member.
415 * tramp-frame.c (tramp_frame_start): Validate trampoline before
417 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
418 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
419 (mips_linux_o32_sigframe): Initialize `validate' member.
420 (mips_linux_o32_rt_sigframe): Likewise.
421 (mips_linux_n32_rt_sigframe): Likewise.
422 (mips_linux_n64_rt_sigframe): Likewise.
423 (micromips_linux_o32_sigframe): New variable.
424 (micromips_linux_o32_rt_sigframe): Likewise.
425 (micromips_linux_n32_rt_sigframe): Likewise.
426 (micromips_linux_n64_rt_sigframe): Likewise.
427 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
428 (mips_linux_n32n64_sigframe_init): Likewise.
429 (mips_linux_sigframe_validate): New function.
430 (micromips_linux_sigframe_validate): Likewise.
431 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
433 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
435 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
436 * sparc-sol2-tdep.c: Include "regset.h".
437 (sparc32_sol2_supply_core_gregset): New function.
438 (sparc32_sol2_collect_core_gregset): Likewise.
439 (sparc32_sol2_supply_core_fpregset): Likewise.
440 (sparc32_sol2_collect_core_fpregset): Likewise.
441 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
442 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
443 tdep->fpregset/sizeof_fpregset.
444 * sparc64-sol2-tdep.c: Include "regset.h".
445 (sparc64_sol2_supply_core_gregset): New function.
446 (sparc64_sol2_collect_core_gregset): Likewise.
447 (sparc64_sol2_supply_core_fpregset): Likewise.
448 (sparc64_sol2_collect_core_fpregset): Likewise.
449 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
450 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
451 tdep->fpregset/sizeof_fpregset.
453 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
455 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
458 2014-12-02 Doug Evans <dje@google.com>
460 * symtab.c (symbol_init_cplus_specific): Delete.
461 (symbol_set_demangled_name): Remove special c++ support.
462 (symbol_get_demangled_name, symbol_set_language): Ditto.
463 * symtab.h (struct cplus_specific): Delete.
464 (struct general_symbol_info) <language_specific>: Remove
467 2014-12-02 Doug Evans <dje@google.com>
470 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
472 2014-12-02 Doug Evans <dje@google.com>
475 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
478 2014-12-02 Doug Evans <dje@google.com>
480 * dwarf2read.c (peek_die_abbrev): Improve error message text.
482 2014-12-02 Doug Evans <dje@google.com>
484 * valops.c (do_search_struct_field): Remove remnant of Chill support.
485 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
487 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
489 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
491 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
493 * NEWS: Mention new Python events.
494 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
495 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
496 (py-infevents.o): New rule.
497 * doc/observer.texi (inferior_call_pre, inferior_call_post)
498 (memory_changed, register_changed): New observers.
499 * infcall.c (call_function_by_hand): Notify observer before and
501 * python/py-event.h (inferior_call_kind): New enum.
502 (emit_inferior_call_event): New prototype.
503 (emit_register_changed_event): New prototype.
504 (emit_memory_changed_event): New prototype.
505 * python/py-events.h (events_object): New registries
506 inferior_call, memory_changed and register_changed.
507 * python/py-evts.c (gdbpy_initialize_py_events): Add the
508 inferior_call, memory_changed and register_changed registries.
509 * python/py-infevents.c: New.
510 * python/py-inferior.c (python_on_inferior_call_pre)
511 (python_on_inferior_call_post, python_on_register_change)
512 (python_on_memory_change): New functions.
513 (gdbpy_initialize_inferior): Attach python handler to new
515 * python/py-infthread.c(gdbpy_create_ptid_object): New.
516 (thpy_get_ptid) Use gdbpy_create_ptid_object.
517 * python/python-internal.h:
518 (gdbpy_create_ptid_object)
519 (gdbpy_initialize_inferior_call_pre_event)
520 (gdbpy_initialize_inferior_call_post_event)
521 (gdbpy_initialize_register_changed_event)
522 (gdbpy_initialize_memory_changed_event): New prototypes.
523 * python/python.c (_initialize_python): Initialize new events.
524 * valops.c (value_assign): Notify register_changed observer.
526 2014-12-02 Doug Evans <dje@google.com>
528 * python/py-infthread.c: Whitespace fixes.
530 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
532 * features/Makefile (s390-te-linux64-expedite): Replace
533 non-existant r14 and r15 by r14l and r15l, respectively.
534 * regformats/s390-te-linux64.dat: Regenerate.
536 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
538 * objfiles.c (allocate_objfile): Remove duplicate comment.
540 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
542 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
543 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
544 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
545 (supply_gregset, supply_fpregset): Remove.
546 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
547 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
550 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
552 Add add-auto-load-scripts-directory.
553 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
554 * auto-load.c (add_auto_load_dir): New function.
555 (_initialize_auto_load): Install it.
557 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
559 Pushed by Joel Brobecker <brobecker@adacore.com>.
560 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
562 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
564 * eval.c (evaluate_subexp): Check that the thread stack temporaries
565 are not already enabled before enabling them.
567 2014-11-29 Yao Qi <yao@codesourcery.com>
569 * arm-tdep.c (arm_analyze_prologue): Move local variables
570 'framereg' and 'framesize' to inner block. Move code to
573 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
575 * eval.c: Include gdbthread.h.
576 (evaluate_subexp): Enable thread stack temporaries before
577 evaluating a complete expression and clean them up after the
578 evaluation is complete.
579 * gdbthread.h: Include common/vec.h.
580 (value_ptr): New typedef.
581 (VEC (value_ptr)): New vector type.
582 (value_vec): New typedef.
583 (struct thread_info): Add new fields stack_temporaries_enabled
584 and stack_temporaries.
585 (enable_thread_stack_temporaries)
586 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
587 (get_last_thread_stack_temporary)
588 (value_in_thread_stack_temporaries): Declare.
589 * gdbtypes.c (class_or_union_p): New function.
590 * gdbtypes.h (class_or_union_p): Declare.
591 * infcall.c (call_function_by_hand): Store return values of class
592 type as temporaries on stack.
593 * thread.c (enable_thread_stack_temporaries): New function.
594 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
595 (get_last_thread_stack_temporary): Likewise.
596 (value_in_thread_stack_temporaries): Likewise.
597 * value.c (value_force_lval): New function.
598 * value.h (value_force_lval): Declare.
600 2014-11-28 Pierre Muller <muller@sourceware.org>
602 Pushed by Joel Brobecker <brobecker@adacore.com>.
603 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
606 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
608 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
609 * config/sparc/linux.mh (NATDEPFILES): Likewise.
610 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
611 * m68klinux-nat.c (fetch_core_registers): Remove.
612 (linux_elf_core_fns): Remove.
613 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
615 2014-11-28 Joel Brobecker <brobecker@adacore.com>
617 * utils.c (gdb_realpath): Rework comment about handling on
620 2014-11-28 Yao Qi <yao@codesourcery.com>
622 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
624 * gnulib/aclocal.m4: Re-generated.
625 * gnulib/config.in: Re-generated.
626 * gnulib/configure: Re-generated.
627 * gnulib/import/Makefile.am: Re-generated.
628 * gnulib/import/Makefile.in: Re-generated.
629 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
630 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
631 * import/basename-lgpl.c: New file.
632 * import/dirname-lgpl.c: New file.
633 * import/dirname.h: New file.
634 * import/m4/dirname.m4: New file.
635 * import/m4/malloc.m4: New file.
636 * import/m4/rename.m4: New file.
637 * import/m4/rmdir.m4: New file.
638 * import/m4/stdio_h.m4: New file.
639 * import/malloc.c: New file.
640 * import/rename.c: New file.
641 * import/rmdir.c: New file.
642 * import/same-inode.h: New file.
643 * import/stdio.c: New file.
644 * import/stdio.in.h: New file.
645 * import/stripslash.c: New file.
647 2014-11-28 Yao Qi <yao@codesourcery.com>
649 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
651 * config.in: Re-generated.
652 * configure: Re-generated.
653 * utils.c (gdb_realpath): Remove code calling realpath,
654 canonicalize_file_name and pathconf.
655 [!_WIN32]: Call canonicalize_file_name.
657 2014-11-28 Yao Qi <yao@codesourcery.com>
659 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
661 * aclocal.m4: Re-generated.
662 * config.in: Re-generated.
663 * configure: Re-generated.
664 * import/Makefile.am: Re-generated.
665 * import/Makefile.in: Re-generated.
666 * import/m4/gnulib-cache.m4: Re-generated.
667 * import/m4/gnulib-comp.m4: Re-generated.
668 * import/canonicalize-lgpl.c: New file.
669 * import/extra/snippet/_Noreturn.h: New file.
670 * import/m4/canonicalize.m4: New file.
671 * import/m4/double-slash-root.m4: New file.
672 * import/m4/eealloc.m4: New file.
673 * import/m4/malloca.m4: New file.
674 * import/m4/nocrash.m4: New file.
675 * import/m4/stdlib_h.m4: New file.
676 * import/malloca.c: New file.
677 * import/malloca.h: New file.
678 * import/malloca.valgrind: New file.
680 2014-11-28 Yao Qi <yao@codesourcery.com>
682 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
683 * config.in, configure: Regenerate.
684 * symfile.c (find_separate_debug_file_by_debuglink): Remove
685 code checking HAVE_LSTAT is defined.
687 2014-11-28 Yao Qi <yao@codesourcery.com>
689 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
691 * gnulib/aclocal.m4: Re-generated.
692 * gnulib/config.in: Re-generated.
693 * gnulib/configure: Re-generated.
694 * gnulib/import/Makefile.am: Re-generated.
695 * gnulib/import/Makefile.in: Re-generated.
696 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
697 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
698 * gnulib/import/lstat.c: New file.
699 * gnulib/import/m4/lstat.m4: New file.
701 2014-11-28 Yao Qi <yao@codesourcery.com>
703 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
704 * config.in, configure: Re-generate.
705 * inf-child.c (inf_child_fileio_readlink): Don't check
706 HAVE_READLINK is defined.
708 2014-11-28 Yao Qi <yao@codesourcery.com>
710 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
711 * gnulib/aclocal.m4: Re-generated.
712 * gnulib/config.in: Likewise.
713 * gnulib/configure: Likewise.
714 * gnulib/import/Makefile.am: Likewise.
715 * gnulib/import/Makefile.in: Likewise.
716 * gnulib/import/m4/gnulib-cache.m4: Likewise.
717 * gnulib/import/m4/gnulib-comp.m4: Likewise.
718 * gnulib/import/dosname.h: New file
719 * gnulib/import/m4/largefile.m4: New file.
720 * gnulib/import/m4/readlink.m4: New file.
721 * gnulib/import/m4/stat.m4: New file.
722 * gnulib/import/readlink.c: New file.
723 * gnulib/import/stat.c: New file.
725 2014-11-26 Mark Wielaard <mjw@redhat.com>
727 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
728 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
730 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
732 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
733 that there can be only one stack adjustment in the prologue
734 with tests to detect specific disallowed stack adjustments.
736 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
738 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
741 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
743 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
744 the instruction as well as reading it from memory.
745 (nios2_match_add): New.
746 (nios2_match_sub): New.
747 (nios2_match_addi): New.
748 (nios2_match_orhi): New.
749 (nios2_match_stw): New.
750 (nios2_match_ldw): New.
751 (nios2_match_rdctl): New.
752 (enum branch_condition): New.
753 (nios2_match_branch): New.
754 (nios2_match_jmpi): New.
755 (nios2_match_calli): New.
756 (nios2_match_jmpr): New.
757 (nios2_match_callr): New.
758 (nios2_match_break): New.
759 (nios2_match_trap): New.
760 (nios2_in_epilogue_p): Rewrite to use new functions.
761 (nios2_analyze_prologue): Likewise.
762 (nios2_skip_prologue): Delete unused local limit_pc.
763 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
764 (nios2_get_next_pc): Rewrite to use new functions.
766 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
768 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
770 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
772 Pushed by Joel Brobecker <brobecker@adacore.com>
773 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
774 elements pi_len by the size of the elements before calling
776 (inf_validate_task_sc): Likewise, and properly deallocate the
779 2014-11-23 Doug Evans <xdje42@gmail.com>
781 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
782 number and name if present. All callers updated.
783 (dump_fn_fieldlists): Fix indentation of args.
785 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
787 * MAINTAINERS (Write After Approval): Add myself.
789 2014-11-23 Joel Brobecker <brobecker@adacore.com>
791 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
792 to a bp_call_dummy breakpoint type.
794 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
796 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
797 registering the signal handler.
799 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
801 * event-top.h (call_stdin_event_handler_again_p): Declare.
802 * event-top.c (call_stdin_event_handler_again_p): Define.
803 (stdin_event_handler): Use it.
804 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
805 handler again if there is pending input following a
808 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
810 Pushed by Joel Brobecker <brobecker@adacore.com>
811 * linux-fork.c (checkpoint_command): Print index of new
812 checkpoint in response message.
814 2014-11-23 Yao Qi <yao@codesourcery.com>
816 * valprint.c (read_string): Move local variables 'found_nul',
817 'chunksize' and 'limit' to inner scope. Update comments.
819 2014-11-22 Doug Evans <xdje42@gmail.com>
821 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
823 (search_symbols): Fix comments and whitespace.
825 2014-11-22 Doug Evans <xdje42@gmail.com>
827 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
829 2014-11-21 Doug Evans <dje@google.com>
831 * psymtab.c (psymtab_search_name): Fix whitespace.
833 2014-11-21 Yao Qi <yao@codesourcery.com>
835 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
837 * gnulib/import/Makefile.am: Re-generated.
838 * gnulib/import/Makefile.in: Likewise.
839 * gnulib/import/m4/gnulib-cache.m4: Likewise.
841 2014-11-21 Yao Qi <yao@codesourcery.com>
843 * gdb_wchar.h: Include wchar.h and wctype.h.
844 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
845 include wchar.h and wctype.h.
846 Don't check HAVE_WCHAR_H.
848 2014-11-21 Yao Qi <yao@codesourcery.com>
850 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
852 * gnulib/import/Makefile.am: Re-generated.
853 * gnulib/import/Makefile.in: Likewise.
854 * gnulib/import/m4/gnulib-cache.m4: Likewise.
856 2014-11-21 Yao Qi <yao@codesourcery.com>
858 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
860 * gnulib/import/Makefile.am: Re-generated.
861 * gnulib/import/Makefile.in: Likewise.
862 * gnulib/import/m4/gnulib-cache.m4: Likewise.
864 2014-11-21 Yao Qi <yao@codesourcery.com>
866 * common/common-defs.h: Include alloca.h
867 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
868 * configure: Re-generated.
869 * defs.h: Remove code handling alloca.
870 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
873 2014-11-21 Yao Qi <yao@codesourcery.com>
875 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
877 * gnulib/import/Makefile.am: Re-generated.
878 * gnulib/import/Makefile.in: Likewise..
879 * gnulib/import/m4/gnulib-cache.m4: Likewise.
881 2014-11-21 Yao Qi <yao@codesourcery.com>
883 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
886 2014-11-21 Joel Brobecker <brobecker@adacore.com>
888 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
889 flag_unsigned if HIGH_BOUND is constant and negative.
891 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
894 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
895 modifier from "struct gdbarch" when compiling without Expat (XML)
897 (get_syscall_by_number): Likewise.
898 (get_syscall_by_name): Likewise.
899 (get_syscall_names): Likewise.
901 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
904 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
905 set_xml_syscall_file_name to provide gdbarch.
906 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
907 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
908 * breakpoint.c (print_it_catch_syscall): Adjust call to
909 get_syscall_by_number to provide gdbarch.
910 (print_one_catch_syscall): Likewise.
911 (print_mention_catch_syscall): Likewise.
912 (print_recreate_catch_syscall): Likewise.
913 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
914 and get_syscall_by_name to provide gdbarch.
915 (catch_syscall_completer): Adjust call to get_syscall_names to
917 * gdbarch.c: Regenerate.
918 * gdbarch.h: Likewise.
919 * gdbarch.sh: Forward declare "struct syscalls_info".
920 (xml_syscall_file): New variable.
921 (syscalls_info): Likewise.
922 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
923 set_xml_syscall_file_name to provide gdbarch.
924 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
925 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
926 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
927 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
928 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
929 * xml-syscall.c: Include gdbarch.h.
930 (set_xml_syscall_file_name): Accept gdbarch parameter.
931 (get_syscall_by_number): Likewise.
932 (get_syscall_by_name): Likewise.
933 (get_syscall_names): Likewise.
934 (my_gdb_datadir): Delete global variable.
935 (struct syscalls_info) <my_gdb_datadir>: New variable.
936 (struct syscalls_info) <sysinfo>: Rename variable to
938 (sysinfo): Delete global variable.
939 (have_initialized_sysinfo): Likewise.
940 (xml_syscall_file): Likewise.
941 (sysinfo_free_syscalls_desc): Rename to...
942 (syscalls_info_free_syscalls_desc): ... this.
943 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
944 code to the new layout of "struct syscalls_info".
945 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
947 (syscall_create_syscall_desc): Likewise.
948 (syscall_start_syscall): Likewise.
949 (syscall_parse_xml): Likewise.
950 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
951 (init_sysinfo): Rename to...
952 (init_syscalls_info): ...this. Add gdbarch as a parameter.
953 Adjust function to deal with gdbarch.
954 (xml_get_syscall_number): Delete parameter sysinfo. Accept
955 gdbarch as a parameter. Adjust code.
956 (xml_get_syscall_name): Likewise.
957 (xml_list_of_syscalls): Likewise.
958 (set_xml_syscall_file_name): Accept gdbarch as parameter.
959 (get_syscall_by_number): Likewise.
960 (get_syscall_by_name): Likewise.
961 (get_syscall_names): Likewise.
962 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
963 (get_syscall_by_number): Likewise.
964 (get_syscall_by_name): Likewise.
965 (get_syscall_names): Likewise.
967 2014-11-20 Doug Evans <xdje42@gmail.com>
969 Split struct symtab into two: struct symtab and compunit_symtab.
970 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
971 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
972 to "struct compunit_symtab *". All callers updated.
973 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
974 "struct symtab *" argument to "struct compunit_symtab *".
976 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
977 result to "struct compunit_symtab *". All callers updated.
978 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
979 Change result to "struct compunit_symtab *". All callers updated.
980 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
981 hange type to "struct compunit_symtab *". All uses updated.
982 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
983 Change type to "struct compunit_symtab *". All uses updated.
984 * buildsym.c (struct buildsym_compunit): New struct.
985 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
986 (buildsym_compunit): New static global.
987 (finish_block_internal): Update to fetch objfile from
989 (make_blockvector): Delete objfile argument.
990 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
991 debugformat, producer.
992 (start_buildsym_compunit): New function.
993 (free_buildsym_compunit): Renamed from free_subfiles_list.
995 (patch_subfile_names): Rewrite to use buildsym_compunit.
996 (get_compunit_symtab): New function.
997 (get_macro_table): Delete argument comp_dir. All callers updated.
998 (start_symtab): Change result to "struct compunit_symtab *".
999 All callers updated. Create the subfile of the main source file.
1000 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1001 (reset_symtab_globals): Update.
1002 (end_symtab_get_static_block): Update to use buildsym_compunit.
1003 (end_symtab_without_blockvector): Rewrite.
1004 (end_symtab_with_blockvector): Change result to
1005 "struct compunit_symtab *". All callers updated.
1006 Update to use buildsym_compunit. Don't set symtab->dirname,
1007 instead set it in the compunit.
1008 Explicitly make sure main symtab is first in its list.
1009 Set debugformat, producer, blockvector, block_line_section, and
1010 macrotable in the compunit.
1011 (end_symtab_from_static_block): Change result to
1012 "struct compunit_symtab *". All callers updated.
1013 (end_symtab, end_expandable_symtab): Ditto.
1014 (set_missing_symtab): Change symtab argument to
1015 "struct compunit_symtab *". All callers updated.
1016 (augment_type_symtab): Ditto.
1017 (record_debugformat): Update to use buildsym_compunit.
1018 (record_producer): Update to use buildsym_compunit.
1019 * buildsym.h (struct subfile) <dirname>: Delete.
1020 <producer, debugformat>: Delete.
1021 <buildsym_compunit>: New member.
1022 (get_compunit_symtab): Declare.
1023 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1024 from primary_symtab. Change type to "struct compunit_symtab *".
1026 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1027 All callers updated.
1028 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1029 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1030 symtab. Change type to "struct compunit_symtab *". All uses updated.
1031 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1032 All callers updated.
1033 (dw2_find_last_source_symtab): Ditto.
1034 (dw2_lookup_symbol): Ditto.
1035 (recursively_find_pc_sect_compunit_symtab): Renamed from
1036 recursively_find_pc_sect_symtab. Change result to
1037 "struct compunit_symtab *". All callers updated.
1038 (dw2_find_pc_sect_compunit_symtab): Renamed from
1039 dw2_find_pc_sect_symtab. Change result to
1040 "struct compunit_symtab *". All callers updated.
1041 (get_compunit_symtab): Renamed from get_symtab. Change result to
1042 "struct compunit_symtab *". All callers updated.
1043 (recursively_compute_inclusions): Change type of immediate_parent
1044 argument to "struct compunit_symtab *". All callers updated.
1045 (compute_compunit_symtab_includes): Renamed from
1046 compute_symtab_includes. All callers updated. Rewrite to compute
1047 includes of compunit_symtabs and not symtabs.
1048 (process_full_comp_unit): Update to work with struct compunit_symtab.
1049 (process_full_type_unit): Ditto.
1050 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1051 (dwarf_decode_lines): Remove special case handling of main subfile.
1052 (macro_start_file): Delete argument comp_dir. All callers updated.
1053 (dwarf_decode_macro_bytes): Ditto.
1054 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1055 use struct compunit_symtab.
1056 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1057 * jit.c (finalize_symtab): Build compunit_symtab.
1058 * jv-lang.c (get_java_class_symtab): Change result to
1059 "struct compunit_symtab *". All callers updated.
1060 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1061 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1062 comp_dir. Change type to "struct compunit_symtab *".
1064 (new_macro_table): Change comp_dir argument to cust,
1065 "struct compunit_symtab *". All callers updated.
1066 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1067 nr_primary_symtabs. All uses updated.
1068 (count_symtabs_and_blocks): Update to handle compunits.
1069 (report_command_stats): Update output, "primary symtabs" renamed to
1071 * mdebugread.c (new_symtab): Change result to
1072 "struct compunit_symtab *". All callers updated.
1073 (parse_procedure): Change type of search_symtab argument to
1074 "struct compunit_symtab *". All callers updated.
1075 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1077 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1078 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1079 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1081 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1083 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1084 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1085 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1086 symtab. Change type to "struct compunit_symtab *". All uses updated.
1087 * psymtab.c (psymtab_to_symtab): Change result type to
1088 "struct compunit_symtab *". All callers updated.
1089 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1090 find_pc_sect_symtab_from_partial. Change result type to
1091 "struct compunit_symtab *". All callers updated.
1092 (lookup_symbol_aux_psymtabs): Change result type to
1093 "struct compunit_symtab *". All callers updated.
1094 (find_last_source_symtab_from_partial): Ditto.
1095 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1096 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1097 and macro_table from compunit.
1098 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1099 type to "struct compunit_symtab *". All callers updated.
1100 (debug_qf_lookup_symbol): Ditto.
1101 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1102 debug_qf_find_pc_sect_symtab, change result type to
1103 "struct compunit_symtab *". All callers updated.
1104 * symfile.c (allocate_symtab): Delete objfile argument.
1106 (allocate_compunit_symtab): New function.
1107 (add_compunit_symtab_to_objfile): New function.
1108 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1109 Change result type to "struct compunit_symtab *". All uses updated.
1110 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1111 Change result type to "struct compunit_symtab *". All uses updated.
1112 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1114 (dump_symtab_1): Update test for primary source symtab.
1115 (maintenance_info_symtabs): Update to handle compunit symtabs.
1116 (maintenance_check_symtabs): Ditto.
1117 * symtab.c (set_primary_symtab): Delete.
1118 (compunit_primary_filetab): New function.
1119 (compunit_language): New function.
1120 (iterate_over_some_symtabs): Change type of arguments "first",
1121 "after_last" to "struct compunit_symtab *". All callers updated.
1122 Update to loop over symtabs in each compunit.
1123 (error_in_psymtab_expansion): Rename symtab argument to cust,
1124 and change type to "struct compunit_symtab *". All callers updated.
1125 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1126 Change result type to "struct compunit_symtab *". All callers updated.
1127 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1128 Change result type to "struct compunit_symtab *". All callers updated.
1129 (find_pc_sect_line): Only loop over symtabs within selected compunit
1130 instead of all symtabs in the objfile.
1131 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1132 <compunit_symtab> New member.
1133 <block_line_section>: Moved to compunit_symtab.
1134 <locations_valid>: Ditto.
1135 <epilogue_unwind_valid>: Ditto.
1136 <macro_table>: Ditto.
1138 <debugformat>: Ditto.
1141 <call_site_htab>: Ditto.
1145 (SYMTAB_COMPUNIT): New macro.
1146 (SYMTAB_BLOCKVECTOR): Update definition.
1147 (SYMTAB_OBJFILE): Update definition.
1148 (SYMTAB_DIRNAME): Update definition.
1149 (struct compunit_symtab): New type. Common members among all source
1150 symtabs within a compilation unit moved here. All uses updated.
1151 (COMPUNIT_OBJFILE): New macro.
1152 (COMPUNIT_FILETABS): New macro.
1153 (COMPUNIT_DEBUGFORMAT): New macro.
1154 (COMPUNIT_PRODUCER): New macro.
1155 (COMPUNIT_DIRNAME): New macro.
1156 (COMPUNIT_BLOCKVECTOR): New macro.
1157 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1158 (COMPUNIT_LOCATIONS_VALID): New macro.
1159 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1160 (COMPUNIT_CALL_SITE_HTAB): New macro.
1161 (COMPUNIT_MACRO_TABLE): New macro.
1162 (ALL_COMPUNIT_FILETABS): New macro.
1163 (compunit_symtab_ptr): New typedef.
1164 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1166 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1168 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1169 if the TYPE_CODE of range_type's base type does not match
1170 the TYPE_CODE of encoding_type's base type.
1172 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1174 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1177 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1179 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1180 (ada_is_redundant_index_type_desc): New function.
1181 (to_fixed_array_type): Ignore parallel XA type if redundant.
1183 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1185 * ada-lang.c (constrained_packed_array_type): Set the length
1186 of the return array as if both bounds where zero if that
1187 returned array's index type is dynamic.
1189 2014-11-19 Yao Qi <yao@codesourcery.com>
1191 * config/i386/go32.mh (CC): Remove.
1193 2014-11-18 Doug Evans <xdje42@gmail.com>
1195 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1198 2014-11-18 Doug Evans <xdje42@gmail.com>
1200 * buildsym.c (buildsym_objfile): New static global.
1201 (buildsym_comp_dir): New static global.
1202 (finish_block_internal): Delete arg objfile. All callers updated.
1203 (finish_block): Delete arg objfile. All callers updated.
1204 (start_subfile): Delete arg dirname. All callers updated.
1205 (patch_subfile_names): Update buildsym_comp_dir.
1206 (get_macro_table): Delete arg objfile. All callers updated.
1207 (start_symtab): New arg objfile. All callers updated.
1208 Rename arg dirname to comp_dir.
1209 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1210 (end_symtab_get_static_block): Delete arg objfile. All callers
1212 (end_symtab_without_blockvector): Ditto.
1213 (end_symtab_with_blockvector): Ditto.
1214 (end_symtab_from_static_block): Ditto.
1215 (end_symtab): Ditto.
1216 (end_expandable_symtab): Ditto.
1217 (augment_type_symtab): Ditto.
1218 * coffread.c (coff_start_symtab): New arg objfile. All callers
1221 2014-11-18 Doug Evans <xdje42@gmail.com>
1223 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1226 2014-11-18 Doug Evans <xdje42@gmail.com>
1228 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1229 symtab.dirname updated to use it.
1231 2014-11-18 Doug Evans <xdje42@gmail.com>
1233 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1234 symtab.objfile updated to use it.
1236 2014-11-18 Doug Evans <xdje42@gmail.com>
1238 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1240 2014-11-18 Doug Evans <xdje42@gmail.com>
1242 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1244 * findvar.c (default_read_var_value): Ditto.
1245 * jv-lang.c (add_class_symtab_symbol): Ditto.
1246 * parse.c (operator_check_standard): Ditto.
1247 * printcmd.c (address_info): Ditto.
1248 * symtab.c (fixup_symbol_section): Ditto.
1249 (skip_prologue_sal): Ditto.
1250 * tracepoint.c (scope_info): Ditto.
1251 * valops.c (find_function_in_inferior): Ditto.
1252 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1253 * python/py-symbol.c (set_symbol): Ditto.
1255 2014-11-18 Doug Evans <xdje42@gmail.com>
1257 * buildsym.c (main_subfile): New static global.
1258 (free_subfiles_list): New function.
1259 (start_symtab): Set main_subfile.
1260 (restart_symtab): Replace init of subfiles, current_subfile with
1261 call to free_subfiles_list.
1262 (watch_main_source_file_lossage): Use main_subfile.
1263 (reset_symtab_globals): Replace init of current_subfile with call
1264 to free_subfiles_list.
1265 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1266 functions, split out from ...
1267 (end_symtab_from_static_block): ... here. Rewrite to call them.
1269 2014-11-18 Doug Evans <xdje42@gmail.com>
1271 The result of symtab expansion is always a primary symtab.
1272 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1273 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1274 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1275 (psymtab_to_symtab): Add comment and assert.
1276 (map_matching_symbols_psymtab): Remove unnecessary test for
1279 2014-11-15 Doug Evans <xdje42@gmail.com>
1282 * symtab.c (find_pc_line_symtab): New function.
1283 * symtab.h (find_pc_line_symtab): Declare.
1284 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1286 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1287 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1288 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1289 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1290 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1291 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1293 2014-11-15 Doug Evans <xdje42@gmail.com>
1295 * symtab.c (expand_symtab_containing_pc): Renamed from
1296 find_pc_sect_symtab_via_partial. All callers updated.
1298 2014-11-15 Yao Qi <yao@codesourcery.com>
1300 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1302 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1304 * common/common-defs.h: Move <stdarg.h> #include ahead of
1307 2014-11-14 Pedro Alves <palves@redhat.com>
1309 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1310 [!PHONY_ICONV] (gdb_iconv): New function.
1311 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1313 2014-11-13 Doug Evans <dje@google.com>
1316 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1317 "(anonymous namespace)".
1319 2014-11-13 Doug Evans <dje@google.com>
1321 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1324 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1326 * NEWS (maint set target-async): Fix typo.
1328 2014-11-12 Pedro Alves <palves@redhat.com>
1330 * infrun.c (enum infwait_states, infwait_state): Delete.
1332 2014-11-12 Pedro Alves <palves@redhat.com>
1334 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1335 Rewrite stepping over a permanent breakpoint.
1336 (thread_still_needs_step_over, proceed): Don't set
1337 stepping_over_breakpoint for permanent breakpoints.
1338 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1339 single-step breakpoints out of the target on hardware step
1341 (process_event_stop_test): If stepping a permanent breakpoint
1342 doesn't hit the step-resume breakpoint, delete the step-resume
1344 (switch_back_to_stepped_thread): Also check if the stepped thread
1345 has advanced already on hardware step targets.
1346 (currently_stepping): Return true if the thread stepped a
1349 2014-11-12 Pedro Alves <palves@redhat.com>
1351 Mark locations as permanent, not the whole breakpoint.
1352 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1353 (mark_breakpoints_out): Don't mark permanent breakpoints as
1355 (breakpoint_init_inferior): Use mark_breakpoints_out.
1356 (breakpoint_here_p): Adjust.
1357 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1358 of permanent breakpoints.
1359 (make_breakpoint_permanent): Mark each location as permanent,
1360 instead of marking the breakpoint.
1361 (add_location_to_breakpoint): If the location is permanent, mark
1362 it as such, and as inserted.
1363 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1364 (bp_location_compare, update_global_location_list): Adjust.
1365 (update_breakpoint_locations): Don't make the breakpoint permanent
1367 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1369 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1370 (struct bp_location) <permanent>: New field.
1371 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1372 reference to bp_permanent.
1374 2014-11-12 Pedro Alves <palves@redhat.com>
1376 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1377 * arch-utils.h (default_skip_permanent_breakpoint): New
1379 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1380 Install default_skip_permanent_breakpoint as default method.
1381 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1382 (i386_gdbarch_init): Don't install it.
1383 * infrun.c (resume): Assume there's always a
1384 gdbarch_skip_permanent_breakpoint implementation.
1385 * gdbarch.h, gdbarch.c: Regenerate.
1387 2014-11-11 Daniel Colascione <dancol@dancol.org>
1389 Warn about cross-PID-namespace debugging.
1390 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1391 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1392 * linux-thread-db.c (check_pid_namespace_match): New function.
1393 (thread_db_inferior_created): Call it.
1395 2014-11-10 Doug Evans <xdje42@gmail.com>
1397 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1398 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1400 2014-11-10 Doug Evans <xdje42@gmail.com>
1402 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1404 2014-11-10 Doug Evans <xdje42@gmail.com>
1407 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1408 (lookup_static_symbol): Move definition to new location and rewrite.
1409 (lookup_symbol_in_objfile): New function.
1410 (lookup_symbol_global_iterator_cb): Call it.
1412 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1414 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1416 2014-11-07 Pedro Alves <palves@redhat.com>
1418 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1419 check if we did a "nexti" inside a prologue.
1420 * symtab.c (in_prologue): Delete function.
1421 * symtab.h (in_prologue): Delete declaration.
1423 2014-11-06 Doug Evans <xdje42@gmail.com>
1425 * symtab.h (lookup_global_symbol): Improve function comment.
1427 2014-11-06 Doug Evans <xdje42@gmail.com>
1429 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1430 All callers updated.
1431 * symtab.h (lookup_global_symbol): Update decl.
1432 (lookup_static_symbol): Move decl to better location.
1434 2014-11-06 Doug Evans <xdje42@gmail.com>
1436 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1438 2014-11-06 Doug Evans <xdje42@gmail.com>
1440 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1441 All callers updated.
1442 (lookup_symbol_in_all_objfiles): Renamed from
1443 lookup_symbol_aux_symtabs. All callers updated.
1444 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1445 All callers updated.
1446 (lookup_symbol_in_objfile_symtabs): Renamed from
1447 lookup_symbol_aux_objfile. All callers updated.
1449 2014-11-06 Doug Evans <xdje42@gmail.com>
1451 * symtab.c (lookup_symbol_in_block): Renamed from
1452 lookup_symbol_aux_block. All callers updated.
1454 2014-11-06 Doug Evans <xdje42@gmail.com>
1456 * symtab.c (lookup_static_symbol): Renamed from
1457 lookup_static_symbol_aux. All callers updated.
1458 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1459 All callers updated.
1461 2014-11-06 Doug Evans <xdje42@gmail.com>
1463 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1464 * block.c (block_lookup_symbol): Use it.
1465 * cp-support.c (make_symbol_overload_list_block): Use it.
1466 * symtab.c (iterate_over_symbols): Use it.
1468 2014-11-06 Doug Evans <xdje42@gmail.com>
1470 * symtab.c (lookup_block_symbol): Moved to ...
1471 * block.c (block_lookup_symbol): ... here and renamed.
1472 All callers updated.
1473 * block.h (block_lookup_symbol): Declare.
1474 * symtab.h (lookup_block_symbol): Delete.
1476 2014-11-06 Doug Evans <xdje42@gmail.com>
1478 * ada-lang.c (ada_make_symbol_completion_list): Use
1479 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1480 * symtab.c (lookup_objfile_from_block): Ditto.
1482 2014-11-06 Doug Evans <xdje42@gmail.com>
1484 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1487 2014-11-06 Doug Evans <xdje42@gmail.com>
1489 * objfiles.c (get_objfile_arch): Constify.
1490 * objfiles.h (get_objfile_arch): Update prototype.
1491 * solib.c (solib_global_lookup): Fetch arch from objfile,
1494 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1496 * nios2-tdep.c (wild_insn): Delete.
1497 (profiler_insn, irqentry_insn): Delete.
1498 (nios2_match_sequence): Delete.
1499 (nios2_analyze_prologue): Update comments. Remove matching
1500 of obsolete profiler_insn and irqentry_insn sequences.
1502 2014-11-05 Alan Modra <amodra@gmail.com>
1504 * charset.c (convert_between_encodings): Shrink obstack using
1506 * minsyms.c (install_minimal_symbols): Likewise.
1507 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1508 to char* before doing pointer arithmetic.
1510 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1512 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1514 2014-11-04 Pedro Alves <palves@redhat.com>
1516 * breakpoint.c (breakpoint_thread_match): Delete function.
1517 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1519 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1522 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1523 the method args also under EVAL_SKIP when evaluating method
1524 calls under EVAL_SKIP.
1526 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1528 * dwarf2loc.c (read_pieced_value): Do big endian
1529 processing only if gdb_regnum is not -1.
1530 (write_pieced_value): Ditto.
1532 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1534 * arm-linux-tdep.c (arm_linux_init_abi): Use
1535 info.byte_order_for_code to choose endianity of breakpoint
1536 instructions snippets.
1538 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1540 * arm-tdep.c (extract_arm_insn): Use
1541 gdbarch_byte_order_for_code to read arm instruction.
1543 2014-11-02 Doug Evans <xdje42@gmail.com>
1545 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1547 2014-11-02 Doug Evans <xdje42@gmail.com>
1549 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1550 main_subfile before returning.
1552 2014-10-31 Doug Evans <xdje42@gmail.com>
1554 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1555 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1557 2014-10-31 Doug Evans <xdje42@gmail.com>
1559 * valops.c (value_cast_pointers): Fix whitespace.
1560 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1563 2014-10-30 Doug Evans <dje@google.com>
1565 * NEWS: Mention ability add attributes to gdb.Objfile and
1566 gdb.Progspace objects.
1567 * python/py-objfile.c (objfile_object): New member dict.
1568 (objfpy_dealloc): Py_XDECREF dict.
1569 (objfpy_initialize): Initialize dict.
1570 (objfile_getset): Add __dict__.
1571 (objfile_object_type): Set tp_dictoffset member.
1572 * python/py-progspace.c (progspace_object): New member dict.
1573 (pspy_dealloc): Py_XDECREF dict.
1574 (pspy_initialize): Initialize dict.
1575 (pspace_getset): Add __dict__.
1576 (pspace_object_type): Set tp_dictoffset member.
1578 2014-10-30 Yao Qi <yao@codesourcery.com>
1580 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1581 replace '\\' with '\\\\'.
1583 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1587 2014-10-29 Pedro Alves <palves@redhat.com>
1590 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1591 instead of assuming a thread with a stepping range is always
1594 2014-10-29 Pedro Alves <palves@redhat.com>
1597 * event-top.c (change_line_handler): Call
1598 gdb_rl_callback_handler_remove instead of
1599 rl_callback_handler_remove.
1600 (callback_handler_installed): New global.
1601 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1602 (gdb_rl_callback_handler_reinstall): New functions.
1603 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1604 gdb_rl_callback_handler_install instead of
1605 rl_callback_handler_remove and rl_callback_handler_install.
1606 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1607 instead of rl_callback_handler_remove.
1608 * event-top.h (gdb_rl_callback_handler_remove)
1609 (gdb_rl_callback_handler_install)
1610 (gdb_rl_callback_handler_reinstall): New declarations.
1611 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1613 (fetch_inferior_event): Install it.
1614 * top.c (gdb_readline_wrapper_line) Call
1615 gdb_rl_callback_handler_remove instead of
1616 rl_callback_handler_remove.
1617 (gdb_readline_wrapper_cleanup): Don't call
1618 rl_callback_handler_install.
1620 2014-10-29 Pedro Alves <palves@redhat.com>
1622 * event-top.c (command_line_handler): Clear the first byte of
1623 linebuffer, when it is first allocated.
1625 2014-10-29 Pedro Alves <palves@redhat.com>
1627 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1630 2014-10-29 Pedro Alves <palves@redhat.com>
1634 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1635 (tui_allowed_p): Delete function.
1636 * tui/tui.c: Include "interps.h".
1637 (tui_enable): Don't use tui_allowed_p. Error out here with
1638 detailed error messages if the TUI is the top level interpreter,
1639 or if output is not a terminal. Use newterm instead of initscr,
1640 and error out if initializing the terminal fails. Also error out if
1641 the terminal doesn't support cursor addressing.
1642 * tui/tui.h (tui_allowed_p): Delete declaration.
1644 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1646 * arm-tdep.c (arm_skip_stack_protector): Return early if
1647 address loaded by first "ldr" instruction does not have
1648 a corresponding minimal symbol. Update comment.
1650 2014-10-29 Yao Qi <yao@codesourcery.com>
1652 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1653 loaded address correctly of ldr instruction.
1655 2014-10-28 Pedro Alves <palves@redhat.com>
1658 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1660 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1661 thread's stepped_breakpoint field. Skip if reverse debugging.
1663 (init_thread_stepping_state, handle_signal_stop): Clear the
1664 thread's stepped_breakpoint field.
1666 2014-10-27 Pedro Alves <palves@redhat.com>
1668 * remote.c (remote_thread_alive): New, factored out from ...
1669 (remote_thread_alive): ... this.
1670 (remote_update_thread_list): Bail out before deleting threads if
1671 the target returned an empty list, and, the current thread has a
1674 2014-10-27 Pedro Alves <palves@redhat.com>
1676 * infrun.c (handle_signal_stop): Also skip handlers when a random
1677 signal arrives while handling a "stepi" or a "nexti". Set the
1678 thread's 'step_after_step_resume_breakpoint' flag.
1680 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1682 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1683 (arm_record_ld_st_imm_offset): Reimplement to cover all
1684 load/store cases for ARM opcode 010.
1685 (arm_record_ld_st_multiple): Reimplement to cover all
1686 load/store cases for ARM opcode 100.
1688 2014-10-26 Doug Evans <xdje42@gmail.com>
1690 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1692 2014-10-26 Doug Evans <xdje42@gmail.com>
1694 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1695 parameter "kind" to "block_index".
1696 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1698 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1700 2014-10-26 Doug Evans <xdje42@gmail.com>
1702 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1704 2014-10-26 Doug Evans <xdje42@gmail.com>
1706 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1709 2014-10-26 Doug Evans <xdje42@gmail.com>
1711 * parser-defs.h (block_found): Move decl from here ...
1712 * symtab.h (block_found): ... to here.
1714 2014-10-26 Doug Evans <xdje42@gmail.com>
1716 * symtab.h (struct field_of_this_result): Fix typo in comment.
1717 (lookup_symbol_in_language): Move function comment here.
1718 (lookup_symbol): Improve function comment.
1719 (basic_lookup_symbol_nonlocal): Ditto.
1720 (lookup_symbol_static, lookup_symbol_global): Ditto.
1721 (lookup_symbol_aux_block): Ditto.
1722 (lookup_language_this): Add function comment.
1723 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1725 (lookup_block_symbol): Improve function comment.
1726 (lookup_struct): Fix capitalization in function comment.
1727 (lookup_transparent_type): Add function comment.
1728 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1729 Improve function comment.
1730 (lookup_objfile_from_block): Add function comment.
1731 * symtab.c (lookup_symbol_in_language): Update function comment.
1732 (lookup_symbol, lookup_language_this): Ditto.
1733 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1734 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1735 (basic_lookup_symbol_nonlocal): Ditto.
1736 (lookup_symbol_static, lookup_symbol_global): Ditto.
1737 (lookup_transparent_type, lookup_block_symbol): Ditto.
1739 2014-10-25 Doug Evans <xdje42@gmail.com>
1741 * symtab.c (types_info): Delete forward decl.
1742 (functions_info, variables_info, sources_info): Ditto.
1743 (_initialize_symtab): Rewrite forward decl to use
1744 initialize_file_ftype.
1746 2014-10-25 Doug Evans <xdje42@gmail.com>
1748 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1750 2014-10-25 Doug Evans <xdje42@gmail.com>
1752 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1753 of local var child_die.
1755 2014-10-24 Don Breazeal <donb@codesourcery.com>
1757 * infrun.c (follow_fork_inferior): Update fork message printing
1758 to use target_terminal_ours_for_output instead of
1759 target_terminal_ours, to use _() for all format strings, to print
1760 "vfork" instead of "fork" for vforks, and to add a detach message.
1761 (handle_vfork_child_exec_or_exit): Update message printing to use
1762 target_terminal_ours_for_output instead of target_terminal_ours, to
1763 use _() for all format strings, and to fix some formatting.
1765 2014-10-24 Pedro Alves <palves@redhat.com>
1767 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1768 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1769 * config/vax/vax.mh: Delete.
1770 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1771 obsolete configurations section.
1772 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1773 * vax-nat.c: Delete file.
1775 2014-10-24 Pedro Alves <palves@redhat.com>
1777 * NEWS (Removed targets): Add OS/arch column.
1779 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1781 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1782 on the arg type of a constructor only if it is of reference type.
1784 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1786 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1787 accessors and constants from nios2 opcodes update.
1788 (nios2_get_next_pc): Likewise.
1790 2014-10-19 Doug Evans <xdje42@gmail.com>
1792 * gdbthread.h (set_running): Fix comment.
1793 (set_executing, finish_thread_state): Fix comment.
1795 2014-10-18 Doug Evans <xdje42@gmail.com>
1797 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1799 2014-10-17 Doug Evans <dje@google.com>
1801 * NEWS: Mention new event gdb.clear_objfiles.
1802 * python/py-event.h (emit_clear_objfiles_event): Clear
1803 * python/py-events.h (events_object): New member clear_objfiles.
1804 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1806 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1807 emit clear_objfiles event.
1808 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1810 (emit_clear_objfiles_event): New function.
1811 (clear_objfiles): New event.
1812 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1814 * python/python.c (_initialize_python): Call
1815 gdbpy_initialize_clear_objfiles_event.
1817 2014-10-17 Doug Evans <dje@google.com>
1819 * NEWS: Mention new gdb.Objfile.progspace attribute.
1820 * python/py-objfile.c (objfpy_get_progspace): New function.
1821 (objfile_getset): New entry for "progspace".
1823 2014-10-17 Pedro Alves <palves@redhat.com>
1826 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1827 returns a copy of the input.
1828 (run_command_1, continue_command, step_1, jump_command)
1829 (signal_command, until_command, advance_command, finish_command)
1830 (attach_command): Adjust and install a cleanup to free the
1833 2014-10-17 Pedro Alves <palves@redhat.com>
1836 * infcmd.c (continue_1): If continuing all threads in the
1837 foreground, make sure the inferior's terminal settings are put in
1840 2014-10-17 Pedro Alves <palves@redhat.com>
1843 * annotate.c (annotate_breakpoints_invalid): Use
1844 target_terminal_our_for_output instead of target_terminal_ours.
1845 Give back the terminal to the target.
1846 (annotate_frames_invalid): Likewise.
1848 2014-10-17 Pedro Alves <palves@redhat.com>
1850 * target.c (enum terminal_state): New enum.
1851 (terminal_state): New global.
1852 (target_terminal_init): New function.
1853 (target_terminal_inferior): Skip if inferior already owns the
1855 (target_terminal_ours, target_terminal_ours_for_output): New
1857 * target.h (target_terminal_init): Convert to function prototype.
1858 (target_terminal_ours_for_output): Convert to function prototype
1860 (target_terminal_ours): Convert to function prototype and tweak
1862 * windows-nat.c (do_initial_windows_stuff): Call
1863 target_terminal_init instead of child_terminal_init_with_pgrp.
1865 2014-10-17 Pedro Alves <palves@redhat.com>
1867 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1868 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1869 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1871 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1872 * ada-lang.h [__alpha__ && __osf__]
1873 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1874 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1875 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1877 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1879 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1880 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1881 * configure: Regenerate.
1882 * configure.ac: Remove references to osf.
1883 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1884 section. Remove all other references to osf.
1885 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1886 Remove all other references to osf.
1887 * dec-thread.c: Delete file.
1888 * defs.h (GDB_OSABI_OSF1): Delete.
1889 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1891 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1892 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1894 (unconditionally_kill_inferior)
1895 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1896 * solib-osf.c: Delete file.
1898 2014-10-17 Pedro Alves <palves@redhat.com>
1900 * remote.c (clear_threads_listing_context): Move higher up, out of
1901 the HAVE_LIBEXPAT guard.
1903 2014-10-16 Tristan Gingold <gingold@adacore.com>
1905 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1906 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1909 2014-10-15 Pedro Alves <palves@redhat.com>
1911 * dec-thread.c (dec_thread_count_gdb_threads)
1912 (dec_thread_add_gdb_thread): Delete.
1913 (dec_thread_update_thread_list): Delete.
1914 (dec_thread_find_new_threads): Rename to ...
1915 (dec_thread_update_thread_list): ... this. Delete GDB-size
1916 threads that are no longer found in dec_thread_list.
1917 (resync_thread_list): Delete.
1918 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1921 2014-10-15 Pedro Alves <palves@redhat.com>
1923 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1924 * remote.c (remote_update_thread_list): Skip calling prune_threads
1925 if any thread listing method is supported, and instead walk over
1926 the set of remote threads listed, deleting those that are not
1927 found in GDB's thread list.
1929 2014-10-15 Pedro Alves <palves@redhat.com>
1931 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1932 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1933 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1934 (bsd_uthread_target): Adjust.
1935 * corelow.c (core_open): Adjust.
1936 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1937 (dec_thread_update_thread_list): New function.
1938 (init_dec_thread_ops): Adjust.
1939 * gdbthread.h (prune_threads): New declaration.
1940 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1941 (thread_db_update_thread_list): ... this. Call prune_threads.
1942 (init_thread_db_ops): Adjust.
1943 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1944 (procfs_update_thread_list): ... this. Call prune_threads.
1945 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1947 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1948 (obsd_update_thread_list): ... this. Call prune_threads.
1949 (obsd_add_target): Adjust.
1950 * procfs.c (procfs_target): Adjust.
1951 (procfs_notice_thread): Update comment.
1952 (procfs_find_new_threads): Rename to ...
1953 (procfs_update_thread_list): ... this. Call prune_threads.
1954 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1956 (ravenscar_wait): Adjust.
1957 (ravenscar_find_new_threads): Rename to ...
1958 (ravenscar_update_thread_list): ... this. Call prune_threads.
1959 (init_ravenscar_thread_ops): Adjust.
1960 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1961 (record_btrace_update_thread_list): ... this. Adjust comment.
1962 (init_record_btrace_ops): Adjust.
1963 * remote.c (remote_threads_info): Rename to ...
1964 (remote_update_thread_list): ... this. Call prune_threads.
1965 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1967 * sol-thread.c (check_for_thread_db): Adjust.
1968 (sol_find_new_threads_callback): Rename to ...
1969 (sol_update_thread_list_callback): ... this.
1970 (sol_find_new_threads): Rename to ...
1971 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1972 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1973 * target-delegates.c: Regenerate.
1974 * target.c (target_find_new_threads): Rename to ...
1975 (target_update_thread_list): ... this.
1976 * target.h (struct target_ops): Rename to_find_new_threads field
1977 to to_update_thread_list.
1978 (target_find_new_threads): Rename to ...
1979 (target_update_thread_list): ... this.
1980 * thread.c (prune_threads): Make extern.
1981 (update_thread_list): Adjust.
1983 2014-10-15 Pedro Alves <palves@redhat.com>
1985 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1986 Add describing comment. Return -1 if the qL packet is not
1988 (struct thread_item, thread_item_t): Move higher up in
1989 the file. Add comments.
1990 (struct threads_parsing_context): Move higher up in
1991 the file, add comments, and remote to ...
1992 (struct threads_listing_context): ... this.
1993 (remote_newthread_step): Don't add the thread to GDB's thread
1994 database here. Instead push it to the thread_listing_context
1996 (remote_find_new_threads): Rename to ...
1997 (remote_get_threads_with_ql): ... this. Add target_ops and
1998 targets_listing_context parameters. Pass down context.
1999 (start_thread): Adjust.
2000 (clear_threads_parsing_context): Rename to ...
2001 (clear_threads_listing_context): ... this.
2002 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2003 remote_threads_info.
2004 (remote_get_threads_with_qthreadinfo): Ditto.
2005 (remote_threads_info): Reimplement.
2007 2014-10-15 Pedro Alves <palves@redhat.com>
2009 * infrun.c (resume): Don't force displaced-stepping for all
2010 single-steps on software single-stepping archs.
2012 2014-10-15 Pedro Alves <palves@redhat.com>
2014 * breakpoint.c (single_step_breakpoints): Delete global.
2015 (insert_single_step_breakpoint): Adjust to store the breakpoint
2016 pointer in the current thread.
2017 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2018 (cancel_single_step_breakpoints): Delete functions.
2019 (breakpoint_has_location_inserted_here): Make extern.
2020 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2022 * breakpoint.h (breakpoint_has_location_inserted_here): New
2024 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2025 (cancel_single_step_breakpoints): Remove declarations.
2026 * gdbthread.h (struct thread_control_state)
2027 <single_step_breakpoints>: New field.
2028 (delete_single_step_breakpoints)
2029 (thread_has_single_step_breakpoints_set)
2030 (thread_has_single_step_breakpoint_here): New declarations.
2031 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2032 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2033 (singlestep_pc): Delete globals.
2034 (infrun_thread_ptid_changed): Remove references to removed
2036 (resume_cleanups): Delete the current thread's single-step
2038 (maybe_software_singlestep): Remove references to removed globals.
2039 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2040 delete_single_step_breakpoints.
2041 (init_wait_for_inferior): Remove references to removed globals.
2042 (delete_thread_infrun_breakpoints): Delete the thread's
2043 single-step breakpoints too.
2044 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2045 single-step breakpoints here.
2046 (delete_stopped_threads_single_step_breakpoints): New function.
2047 (adjust_pc_after_break): Adjust to use
2048 thread_has_single_step_breakpoints_set.
2049 (handle_inferior_event): Remove references to removed globals.
2050 Use delete_stopped_threads_single_step_breakpoints.
2051 (handle_signal_stop): Adjust to per-thread single-step
2052 breakpoints. Swap test order to do cheaper tests first.
2053 (switch_back_to_stepped_thread): Extend debug output. Remove
2054 references to removed globals.
2055 * record-full.c (record_full_wait_1): Adjust to per-thread
2056 single-step breakpoints.
2057 * thread.c (delete_single_step_breakpoints)
2058 (thread_has_single_step_breakpoints_set)
2059 (thread_has_single_step_breakpoint_here): New functions.
2060 (clear_thread_inferior_resources): Also delete the thread's
2061 single-step breakpoints.
2063 2014-10-15 Pedro Alves <palves@redhat.com>
2065 * thread.c (delete_thread_breakpoint): New function.
2066 (delete_step_resume_breakpoint)
2067 (delete_exception_resume_breakpoint): Use it.
2068 (delete_at_next_stop): New function.
2069 (clear_thread_inferior_resources): Use delete_at_next_stop.
2071 2014-10-15 Pedro Alves <palves@redhat.com>
2073 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2074 (breakpoint_inserted_here_p): ... here. Remove special case for
2075 software single-step breakpoints.
2076 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2077 (software_breakpoint_inserted_here_p): ... here. Remove special
2078 case for software single-step breakpoints.
2079 (bp_target_info_copy_insertion_state)
2080 (deprecated_insert_raw_breakpoint)
2081 (deprecated_remove_raw_breakpoint): Delete functions.
2082 * breakpoint.h (deprecated_insert_raw_breakpoint)
2083 (deprecated_remove_raw_breakpoint): Remove declarations.
2085 2014-10-15 Pedro Alves <palves@redhat.com>
2088 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2089 Delete array globals.
2090 (single_step_breakpoints): New global.
2091 (breakpoint_xfer_memory): Remove special handling for single-step
2093 (update_breakpoints_after_exec): Delete bp_single_step
2095 (detach_breakpoints): Remove special handling for single-step
2097 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2098 (bpstat_stop_status): Add comment.
2099 (bpstat_what, bptype_string, print_one_breakpoint_location)
2100 (adjust_breakpoint_address, init_bp_location): Handle
2102 (new_single_step_breakpoint): New function.
2103 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2104 handling for single-step breakpoints.
2105 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2106 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2108 (detach_single_step_breakpoints, find_single_step_breakpoint):
2110 (breakpoint_has_location_inserted_here): New function.
2111 (single_step_breakpoint_inserted_here_p): Rewrite.
2112 * breakpoint.h: Remove FIXME.
2113 (enum bptype) <bp_single_step>: New enum value.
2114 (insert_single_step_breakpoint): Update comment.
2115 * infrun.c (resume_cleanups)
2116 (delete_step_thread_step_resume_breakpoint): Remove single-step
2118 (fetch_inferior_event): Install a cleanup that removes infrun
2120 (switch_back_to_stepped_thread) <expect thread advanced also>:
2121 Clear step-over info.
2123 2014-10-15 Pedro Alves <palves@redhat.com>
2125 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2126 (delete_thread_infrun_breakpoints): New function, with parts
2127 salvaged from delete_step_resume_breakpoint_callback.
2128 (delete_step_thread_step_resume_breakpoint): Delete.
2129 (for_each_just_stopped_thread_callback_func): New typedef.
2130 (for_each_just_stopped_thread): New function.
2131 (delete_just_stopped_threads_infrun_breakpoints): New function.
2132 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2133 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2135 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2137 2014-10-15 Pedro Alves <palves@redhat.com>
2139 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2140 trying to step past a non-steppable watchpoint.
2141 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2143 * infrun.c (struct step_over_info): Add new field
2144 'nonsteppable_watchpoint_p' and adjust comments.
2145 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2147 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2148 (stepping_past_nonsteppable_watchpoint): New function.
2149 (step_over_info_valid_p): Also return true if stepping past a
2150 nonsteppable watchpoint.
2151 (proceed): Adjust call to set_step_over_info. Remove reference to
2153 (init_wait_for_inferior): Remove reference to init_infwait_state.
2154 (waiton_ptid): Delete global.
2155 (struct execution_control_state)
2156 <stepped_after_stopped_by_watchpoint>: Delete field.
2157 (wait_for_inferior, fetch_inferior_event): Always pass
2158 minus_one_ptid to target_wait.
2159 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2161 (init_infwait_state): Delete function.
2162 (handle_inferior_event): Remove infwait_state handling.
2163 (handle_signal_stop) <watchpoints handling>: Adjust after
2164 stepped_after_stopped_by_watchpoint removal. Don't remove
2165 breakpoints here nor set infwait_state. Set the thread's
2166 stepping_over_watchpoint flag, and call keep_going instead.
2167 (keep_going): Handle stepping_over_watchpoint. Adjust
2168 set_step_over_info calls.
2169 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2172 2014-10-15 Pedro Alves <palves@redhat.com>
2174 * infrun.c (step_over_info_valid_p): New function.
2175 (resume): Use step_over_info_valid_p instead of checking the
2176 threads's trap_expected flag.
2178 2014-10-15 Doug Evans <dje@google.com>
2179 Walfred Tedeschi <walfred.tedeschi@intel.com>
2182 * python/lib/gdb/__init__.py (packages): Add "printer".
2183 * python/lib/gdb/command/bound_registers.py: Moved to ...
2184 * python/lib/gdb/printer/bound_registers.py: ... here.
2185 Add printer to global set of builtin printers. Rename printer from
2186 "bound" to "mpx_bound128".
2187 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2188 registered as global "builtin" printer.
2189 (add_builtin_pretty_printer): New function.
2190 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2191 gdb/printer/__init__.py.
2193 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2195 * Makefile.in (SFILES): Remove d-support.c.
2196 (COMMON_OBS): Remove d-support.o.
2197 * d-lang.h (d_parse_symbol): Remove declaration.
2198 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2199 * d-support.c: Remove file.
2201 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2203 * gdb/infrun.c (process_event_stop_test): Apply
2204 gdbarch_addr_bits_remove to longjmp resume address.
2206 2014-10-15 Pedro Alves <palves@redhat.com>
2208 * regformats/microblaze.dat: Delete file.
2210 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2212 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2213 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2215 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2217 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2220 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2224 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2225 with qualified args.
2227 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2229 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2230 of the case where the second operand is a pointer.
2231 <BINOP_SUB>: Likewise.
2233 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2235 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2236 only if it is not NULL.
2237 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2238 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2239 (struct probe_ops) <clear_semaphore>: Likewise.
2240 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2242 (stop_tracing): Likewise, for clear_semaphore.
2244 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2246 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2247 using language_c, instead of current_language.
2249 2014-10-13 Doug Evans <dje@google.com>
2251 * python/py-objfile.c (objfpy_initialize): New function.
2252 (objfpy_new, objfile_to_objfile_object): Call it.
2253 * python/py-progspace.c (pspy_initialize): New function.
2254 (pspy_new, pspace_to_pspace_object): Call it.
2256 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2257 Jan Kratochvil <jan.kratochvil@redhat.com>
2259 Fix "save breakpoints" for "catch" command.
2260 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2263 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2265 Fix "save breakpoints" for "disable $bpnum" command.
2266 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2268 2014-10-10 Pedro Alves <palves@redhat.com>
2270 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2271 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2272 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2273 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2275 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2276 * configure.ac: Remove references to IRIX.
2277 * configure.host: Add *-*-irix* to the obsolete hosts section.
2278 Remove all other references to irix.
2279 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2282 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2284 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2285 isn't valid, release the tdesc arch data and return NULL.
2287 2014-10-10 Pedro Alves <palves@redhat.com>
2289 * linux-tdep.c: Include observer.h.
2290 (linux_inferior_data): New global.
2291 (struct linux_info): New structure.
2292 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2293 (get_linux_inferior_data): New functions.
2294 (linux_vsyscall_range): Rename to ...
2295 (linux_vsyscall_range_raw): ... this.
2296 (linux_vsyscall_range): New function; handles caching.
2297 (_initialize_linux_tdep): Register linux_inferior_data. Install
2298 inferior_exit and inferior_appeared observers.
2300 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2301 Pedro Alves <palves@redhat.com>
2304 * solib-svr4.c (svr4_read_so_list): Rename to ...
2305 (svr4_current_sos_1): ... this and change the function comment.
2306 (svr4_current_sos): New function.
2308 2014-10-10 Pedro Alves <palves@redhat.com>
2310 * arch-utils.c (default_vsyscall_range): New function.
2311 * arch-utils.h (default_vsyscall_range): New declaration.
2312 * gdbarch.sh (vsyscall_range): New hook.
2313 * gdbarch.h, gdbarch.c: Regenerate.
2314 * linux-tdep.c (linux_vsyscall_range): New function.
2315 (linux_init_abi): Install linux_vsyscall_range as
2316 vsyscall_range gdbarch hook.
2317 * memrange.c (address_in_mem_range): New function.
2318 * memrange.h (address_in_mem_range): New declaration.
2319 * symfile-mem.c (find_vdso_size): Delete function.
2320 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2322 2014-10-10 Pedro Alves <palves@redhat.com>
2324 * infrun.c (normal_stop): Fix typo in comment.
2326 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2329 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2330 typo when using logical AND to determine instruction type.
2332 2014-10-09 Yao Qi <yao@codesourcery.com>
2334 * infrun.c (handle_signal_stop): Remove local variable
2337 2014-10-08 Stan Shebs <stan@codesourcery.com>
2339 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2341 2014-10-08 Gary Benson <gbenson@redhat.com>
2343 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2345 2014-10-08 Gary Benson <gbenson@redhat.com>
2347 * common/common-defs.h: Include common-exceptions.h.
2348 * exceptions.h: Do not include common-exceptions.h.
2350 2014-10-08 Gary Benson <gbenson@redhat.com>
2352 * common/common-defs.h: Include cleanups.h.
2353 * common/common-exceptions.c: Do not include cleanups.h.
2354 * utils.h: Likewise.
2356 2014-10-08 Gary Benson <gbenson@redhat.com>
2358 * ada-lang.c: Do not include exceptions.h.
2359 * ada-valprint.c: Likewise.
2360 * amd64-tdep.c: Likewise.
2361 * auto-load.c: Likewise.
2362 * block.c: Likewise.
2363 * break-catch-throw.c: Likewise.
2364 * breakpoint.c: Likewise.
2365 * btrace.c: Likewise.
2366 * c-lang.c: Likewise.
2367 * cli/cli-cmds.c: Likewise.
2368 * cli/cli-interp.c: Likewise.
2369 * cli/cli-script.c: Likewise.
2370 * completer.c: Likewise.
2371 * corefile.c: Likewise.
2372 * corelow.c: Likewise.
2373 * cp-abi.c: Likewise.
2374 * cp-support.c: Likewise.
2375 * cp-valprint.c: Likewise.
2376 * darwin-nat.c: Likewise.
2377 * dwarf2-frame-tailcall.c: Likewise.
2378 * dwarf2-frame.c: Likewise.
2379 * dwarf2loc.c: Likewise.
2380 * dwarf2read.c: Likewise.
2382 * event-loop.c: Likewise.
2383 * event-top.c: Likewise.
2384 * f-valprint.c: Likewise.
2385 * frame-unwind.c: Likewise.
2386 * frame.c: Likewise.
2387 * gdbtypes.c: Likewise.
2388 * gnu-v2-abi.c: Likewise.
2389 * gnu-v3-abi.c: Likewise.
2390 * guile/scm-auto-load.c: Likewise.
2391 * guile/scm-breakpoint.c: Likewise.
2392 * guile/scm-cmd.c: Likewise.
2393 * guile/scm-frame.c: Likewise.
2394 * guile/scm-lazy-string.c: Likewise.
2395 * guile/scm-param.c: Likewise.
2396 * guile/scm-symbol.c: Likewise.
2397 * guile/scm-type.c: Likewise.
2398 * hppa-hpux-tdep.c: Likewise.
2399 * i386-tdep.c: Likewise.
2400 * inf-loop.c: Likewise.
2401 * infcall.c: Likewise.
2402 * infcmd.c: Likewise.
2403 * infrun.c: Likewise.
2404 * interps.c: Likewise.
2405 * interps.h: Likewise.
2407 * linespec.c: Likewise.
2408 * linux-nat.c: Likewise.
2409 * linux-thread-db.c: Likewise.
2410 * m32r-rom.c: Likewise.
2412 * memory-map.c: Likewise.
2413 * mi/mi-cmd-break.c: Likewise.
2414 * mi/mi-cmd-stack.c: Likewise.
2415 * mi/mi-interp.c: Likewise.
2416 * mi/mi-main.c: Likewise.
2417 * monitor.c: Likewise.
2418 * nto-procfs.c: Likewise.
2419 * objc-lang.c: Likewise.
2420 * p-valprint.c: Likewise.
2421 * parse.c: Likewise.
2422 * ppc-linux-tdep.c: Likewise.
2423 * printcmd.c: Likewise.
2424 * probe.c: Likewise.
2425 * python/py-auto-load.c: Likewise.
2426 * python/py-breakpoint.c: Likewise.
2427 * python/py-cmd.c: Likewise.
2428 * python/py-finishbreakpoint.c: Likewise.
2429 * python/py-frame.c: Likewise.
2430 * python/py-framefilter.c: Likewise.
2431 * python/py-function.c: Likewise.
2432 * python/py-gdb-readline.c: Likewise.
2433 * python/py-inferior.c: Likewise.
2434 * python/py-infthread.c: Likewise.
2435 * python/py-lazy-string.c: Likewise.
2436 * python/py-linetable.c: Likewise.
2437 * python/py-param.c: Likewise.
2438 * python/py-prettyprint.c: Likewise.
2439 * python/py-symbol.c: Likewise.
2440 * python/py-type.c: Likewise.
2441 * python/py-value.c: Likewise.
2442 * python/python-internal.h: Likewise.
2443 * python/python.c: Likewise.
2444 * record-btrace.c: Likewise.
2445 * record-full.c: Likewise.
2446 * regcache.c: Likewise.
2447 * remote-fileio.c: Likewise.
2448 * remote-mips.c: Likewise.
2449 * remote.c: Likewise.
2450 * rs6000-aix-tdep.c: Likewise.
2451 * rs6000-nat.c: Likewise.
2453 * solib-darwin.c: Likewise.
2454 * solib-dsbt.c: Likewise.
2455 * solib-frv.c: Likewise.
2456 * solib-ia64-hpux.c: Likewise.
2457 * solib-spu.c: Likewise.
2458 * solib-svr4.c: Likewise.
2459 * solib.c: Likewise.
2460 * spu-tdep.c: Likewise.
2461 * stack.c: Likewise.
2462 * stap-probe.c: Likewise.
2463 * symfile-mem.c: Likewise.
2464 * symmisc.c: Likewise.
2465 * target.c: Likewise.
2466 * thread.c: Likewise.
2468 * tracepoint.c: Likewise.
2469 * tui/tui-interp.c: Likewise.
2470 * typeprint.c: Likewise.
2471 * utils.c: Likewise.
2472 * valarith.c: Likewise.
2473 * valops.c: Likewise.
2474 * valprint.c: Likewise.
2475 * value.c: Likewise.
2476 * varobj.c: Likewise.
2477 * windows-nat.c: Likewise.
2478 * xml-support.c: Likewise.
2480 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2482 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2484 (extended_mips16_next_pc): Update accordingly.
2486 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2488 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2490 (micromips_instruction_is_compact_branch): Likewise.
2491 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2492 or a compact jump, reaching a jump delay slot, or seeing a
2493 second non-prologue instruction.
2494 (micromips_scan_prologue): Also terminate scanning upon seeing a
2495 compact branch or jump, or reaching a branch or jump delay slot.
2496 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2497 or jump delay slot, or seeing a second non-prologue instruction.
2498 (mips32_instruction_has_delay_slot): Retain instruction
2499 examination code only, update arguments accordingly and move
2500 instruction fetch pieces to...
2501 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2502 (micromips_instruction_has_delay_slot): Likewise and to...
2503 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2504 (mips16_instruction_has_delay_slot): Likewise and to...
2505 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2506 (mips_single_step_through_delay): Update accordingly.
2507 (mips_adjust_breakpoint_address): Likewise.
2509 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2511 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2512 !mustbe32 also return 1 for 32-bit instructions.
2513 (mips16_instruction_has_delay_slot): Likewise. Add an
2514 explanatory comment.
2516 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2518 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2521 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2523 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2525 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2526 for the breakpoint's address. Don't preinitialize `placed_size'.
2527 (insert_bp_location): Set `reqstd_address' rather than
2529 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2530 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2532 (bkpt_remove_location): Likewise.
2533 (deprecated_insert_raw_breakpoint): Likewise.
2534 (deprecated_remove_raw_breakpoint): Likewise.
2535 (find_single_step_breakpoint): Likewise.
2536 * mem-break.c (default_memory_insert_breakpoint): Use
2537 `reqstd_address' for the breakpoint's address. Don't set
2538 `placed_address' or `placed_size' if breakpoint contents couldn't
2539 have been determined.
2540 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2541 the breakpoint's address.
2542 (remote_insert_hw_breakpoint): Likewise. Don't set
2543 `placed_address' or `placed_size' if breakpoint couldn't have been
2545 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2546 `reqstd_address' for the breakpoint's address.
2547 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2548 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2549 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2550 * microblaze-linux-tdep.c
2551 (microblaze_linux_memory_remove_breakpoint): Likewise.
2552 * monitor.c (monitor_insert_breakpoint): Likewise.
2553 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2554 (procfs_insert_hw_breakpoint): Likewise.
2555 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2556 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2557 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2558 * remote-mips.c (mips_insert_breakpoint): Likewise.
2559 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2561 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2563 * valops.c (value_assign): Check for bit field assignments
2564 before calling architecture-specific register value
2565 conversion functions.
2567 2014-10-03 Pierre Muller <muller@sourceware.org>
2569 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2571 2014-10-02 Pedro Alves <palves@redhat.com>
2573 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2574 threads_are_executing.
2575 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2577 * gdbthread.h (threads_are_executing): Declare.
2578 (handle_signal_stop) <random signals>: Don't print about the
2579 signal here if stopping.
2580 (end_stepping_range): Don't notify observers here.
2581 (normal_stop): Update the thread list. If stopped by a random
2582 signal or a stepping range ended, notify observers.
2583 * thread.c (threads_executing): New global.
2584 (init_thread_list): Clear 'threads_executing'.
2585 (set_executing): Set or clear 'threads_executing'.
2586 (threads_are_executing): New function.
2587 (update_threads_executing): New function.
2588 (update_thread_list): Use it.
2590 2014-10-02 Pedro Alves <palves@redhat.com>
2592 PR breakpoints/17431
2593 * breakpoint.c (update_breakpoints_after_exec): Don't create
2594 overlay, longjmp, std terminate nor exception breakpoints here.
2596 2014-10-02 Pedro Alves <palves@redhat.com>
2598 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2600 * inferior.c (find_inferior_for_program_space): Give preference to
2601 the current inferior.
2602 * inferior.h (find_inferior_for_program_space): Update comment.
2603 * progspace.c (switch_to_program_space_and_thread): Prefer the
2604 current inferior if it's bound to the program space requested. If
2605 the inferior found doesn't have a PID yet, don't bother looking up
2607 * progspace.h (switch_to_program_space_and_thread): Adjust
2609 * thread.c (any_thread_of_process, any_live_thread_of_process):
2610 Give preference to the current thread.
2612 2014-10-01 Pedro Alves <palves@redhat.com>
2614 * breakpoint.c (insert_bp_location): Error out if inserting a
2615 software breakpoint at a read-only address.
2616 * target.c (memory_xfer_check_region): New function, factored out
2618 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2620 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2621 against the memory region attributes.
2623 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2625 * NEWS: Announce new exit-code field in -list-thread-groups
2627 * inferior.c (exit_inferior_1): Don't clear exit code.
2628 (inferior_appeared): Clear exit code.
2629 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2632 2014-10-01 Pedro Alves <palves@redhat.com>
2634 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2635 GENERATED" along with emacs/vi read-only markers.
2636 * regformats/aarch64.dat: Regenerate.
2637 * regformats/arm-with-iwmmxt.dat: Regenerate.
2638 * regformats/arm-with-neon.dat: Regenerate.
2639 * regformats/arm-with-vfpv2.dat: Regenerate.
2640 * regformats/arm-with-vfpv3.dat: Regenerate.
2641 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2642 * regformats/i386/amd64-avx.dat: Regenerate.
2643 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2644 * regformats/i386/amd64-avx512.dat: Regenerate.
2645 * regformats/i386/amd64-linux.dat: Regenerate.
2646 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2647 * regformats/i386/amd64-mpx.dat: Regenerate.
2648 * regformats/i386/amd64.dat: Regenerate.
2649 * regformats/i386/i386-avx-linux.dat: Regenerate.
2650 * regformats/i386/i386-avx.dat: Regenerate.
2651 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2652 * regformats/i386/i386-avx512.dat: Regenerate.
2653 * regformats/i386/i386-linux.dat: Regenerate.
2654 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2655 * regformats/i386/i386-mmx.dat: Regenerate.
2656 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2657 * regformats/i386/i386-mpx.dat: Regenerate.
2658 * regformats/i386/i386.dat: Regenerate.
2659 * regformats/i386/x32-avx-linux.dat: Regenerate.
2660 * regformats/i386/x32-avx.dat: Regenerate.
2661 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2662 * regformats/i386/x32-avx512.dat: Regenerate.
2663 * regformats/i386/x32-linux.dat: Regenerate.
2664 * regformats/i386/x32.dat: Regenerate.
2665 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2666 * regformats/mips-dsp-linux.dat: Regenerate.
2667 * regformats/mips-linux.dat: Regenerate.
2668 * regformats/mips64-dsp-linux.dat: Regenerate.
2669 * regformats/mips64-linux.dat: Regenerate.
2670 * regformats/nios2-linux.dat: Regenerate.
2671 * regformats/rs6000/powerpc-32.dat: Regenerate.
2672 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2673 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2674 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2675 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2676 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2677 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2678 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2679 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2680 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2681 * regformats/s390-linux32.dat: Regenerate.
2682 * regformats/s390-linux32v1.dat: Regenerate.
2683 * regformats/s390-linux32v2.dat: Regenerate.
2684 * regformats/s390-linux64.dat: Regenerate.
2685 * regformats/s390-linux64v1.dat: Regenerate.
2686 * regformats/s390-linux64v2.dat: Regenerate.
2687 * regformats/s390-te-linux64.dat: Regenerate.
2688 * regformats/s390x-linux64.dat: Regenerate.
2689 * regformats/s390x-linux64v1.dat: Regenerate.
2690 * regformats/s390x-linux64v2.dat: Regenerate.
2691 * regformats/s390x-te-linux64.dat: Regenerate.
2692 * regformats/tic6x-c62x-linux.dat: Regenerate.
2693 * regformats/tic6x-c62x.dat: Regenerate.
2694 * regformats/tic6x-c64x-linux.dat: Regenerate.
2695 * regformats/tic6x-c64x.dat: Regenerate.
2696 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2697 * regformats/tic6x-c64xp.dat: Regenerate.
2699 2014-10-01 Pedro Alves <palves@redhat.com>
2701 * features/Makefile: Update comments.
2702 (XMLTOC): List all xml files we build C files from.
2703 (clean-cfiles): New rule.
2705 2014-10-01 Pedro Alves <palves@redhat.com>
2707 * features/i386/amd64-avx512-linux.c: Regenerate.
2708 * features/i386/amd64-avx512.c: Regenerate.
2709 * features/i386/x32-avx512-linux.c: Regenerate.
2710 * features/i386/x32-avx512.c: Regenerate.
2712 2014-10-01 Pedro Alves <palves@redhat.com>
2714 * features/Makefile (WHICH): Remove arm-with-m,
2715 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2717 2014-10-01 Pedro Alves <palves@redhat.com>
2719 * features/Makefile (clean): New rule.
2721 2014-10-01 Pedro Alves <palves@redhat.com>
2723 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2724 (zmm14h): Add missing end quotes.
2726 2014-10-01 Pedro Alves <palves@redhat.com>
2728 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2729 * features/aarch64.c: Regenerate.
2731 2014-09-30 Don Breazeal <donb@codesourcery.com>
2733 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2734 code so as to work with follow_fork_inferior.
2735 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2736 (inf_ttrace_create_inferior): Remove reference to
2737 inf_ttrace_vfork_ppid.
2738 (inf_ttrace_attach): Ditto.
2739 (inf_ttrace_detach): Ditto.
2740 (inf_ttrace_kill): Use current_inferior instead of
2741 inf_ttrace_vfork_ppid.
2742 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2743 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2744 inferior away from the parent.
2745 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2747 (follow_fork_inferior): New function.
2748 (follow_inferior_reset_breakpoints): Make function static.
2749 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2750 * linux-nat.c (linux_child_follow_fork): Move target-independent
2751 code to infrun.c:follow_fork_inferior.
2753 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2755 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2756 * gdbarch.c: Regenerate.
2757 * gdbarch.h: Likewise.
2758 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2759 gdbarch method 'regset_from_core_section'.
2760 (get_core_register_section): Remove handling for the case that
2761 regset == NULL and regset_from_core_section is defined.
2762 (get_core_registers): Drop check for deleted method.
2763 * procfs.c (procfs_do_thread_registers): Adjust comment.
2765 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2767 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2768 (linux_nat_make_corefile_notes): Remove.
2769 (linux_target_install_ops): Do not set target method
2770 'make_corefile_notes'.
2771 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2773 (linux_corefile_thread_callback): Instead of args->collect, call
2774 linux_collect_thread_registers.
2775 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2776 NULL unless there is a regset iterator.
2777 (linux_make_corefile_notes_1): Remove.
2778 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2779 by linux_make_corefile_notes.
2780 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2782 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2784 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2785 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2787 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2789 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2791 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2792 (xtensa_iterate_over_regset_sections): New.
2793 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2795 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2797 * vax-tdep.c (vax_regset_from_core_section): Remove.
2798 (vax_iterate_over_regset_sections): New.
2799 (vax_gdbarch_init): Adjust gdbarch initialization.
2801 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2803 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2804 (tilegx_regset_from_core_section): Remove.
2805 (tilegx_iterate_over_regset_sections): New.
2806 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2808 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2810 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2811 (sparc_iterate_over_regset_sections): New.
2812 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2813 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2815 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2816 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2817 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2818 target method 'make_corefile_notes'.
2820 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2822 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2823 'sizeof_gregset' and 'sizeof_fpregset'.
2824 * sh-tdep.c (sh_regset_from_core_section): Remove.
2825 (sh_iterate_over_regset_sections): New.
2826 (sh_gdbarch_init): Adjust gdbarch initialization.
2827 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2829 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2832 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2834 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2835 (score7_linux_iterate_over_regset_sections): New.
2836 (score_gdbarch_init): Adjust gdbarch initialization.
2838 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2840 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2842 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2843 method 'make_corefile_notes'.
2844 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2845 (ppcfbsd_regset_from_core_section): Remove.
2846 (ppcfbsd_iterate_over_regset_sections): New.
2847 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2849 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2850 (ppcnbsd_iterate_over_regset_sections): New.
2851 (ppcnbsd_init_abi): Adjust.
2852 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2853 (ppcobsd_iterate_over_regset_sections): New.
2854 (ppcobsd_init_abi): Adjust.
2855 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2856 (rs6000_aix_iterate_over_regset_sections): New.
2857 (rs6000_aix_init_osabi): Adjust.
2859 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2861 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2862 (nios2_regset_from_core_section): Remove.
2863 (nios2_iterate_over_regset_sections): New.
2864 (nios2_linux_init_abi): Adjust gdbarch initialization.
2866 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2868 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2869 (am33_iterate_over_regset_sections): New.
2870 (am33_linux_init_osabi): Adjust gdbarch initialization.
2872 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2874 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2875 (mips_linux_iterate_over_regset_sections): New.
2876 (mips_linux_init_abi): Adjust gdbarch initialization.
2877 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2878 (mips64obsd_iterate_over_regset_sections): New.
2879 (mips64obsd_init_abi): Adjust.
2880 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2881 (mipsnbsd_iterate_over_regset_sections): New.
2882 (mipsnbsd_init_abi): Adjust.
2884 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2886 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2887 (m88k_iterate_over_regset_sections): New.
2888 (m88k_gdbarch_init): Adjust gdbarch initialization.
2890 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2892 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2893 (ia64_linux_iterate_over_regset_sections): New.
2894 (ia64_linux_init_abi): Adjust gdbarch initialization.
2896 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2898 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2899 (m68kbsd_iterate_over_regset_sections): New.
2900 (m68kbsd_init_abi): Adjust gdbarch initialization.
2901 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2902 (m68k_linux_iterate_over_regset_sections): New.
2903 (m68k_linux_init_abi): Adjust gdbarch initialization.
2905 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2907 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2908 (m32r_linux_regset_from_core_section): Remove.
2909 (m32r_linux_iterate_over_regset_sections): New.
2910 (m32r_linux_init_abi): Adjust gdbarch initialization.
2912 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2914 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2915 (amd64obsd_iterate_over_regset_sections): New.
2916 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2917 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2919 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2920 regset_from_core_section initialization.
2921 * i386-tdep.c (i386_regset_from_core_section): Remove.
2922 (i386_iterate_over_regset_sections): New.
2923 (i386_gdbarch_init): Adjust gdbarch initialization.
2924 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2925 (i386_iterate_over_regset_sections): New prototype.
2926 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2928 (i386obsd_aout_iterate_over_regset_sections): New.
2929 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2930 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2932 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2933 (amd64fbsd_init_abi): Call fbsd_init_abi.
2934 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2935 (i386fbsd4_init_abi): Call fbsd_init_abi.
2936 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2937 target method 'make_corefile_notes'.
2938 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2940 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2942 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2943 (hppa_hpux_iterate_over_regset_sections): New.
2944 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2945 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2946 (hppa_linux_iterate_over_regset_sections): New.
2947 (hppa_linux_init_abi): Adjust.
2948 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2949 (hppanbsd_iterate_over_regset_sections): New.
2950 (hppanbsd_init_abi): Adjust.
2951 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2952 (hppaobsd_iterate_over_regset_sections): New.
2953 (hppaobsd_init_abi): Adjust.
2955 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2957 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2958 (frv_linux_iterate_over_regset_sections): New.
2959 (frv_linux_init_abi): Adjust gdbarch initialization.
2961 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2963 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2964 (armbsd_iterate_over_regset_sections): New prototype.
2965 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2966 (armbsd_iterate_over_regset_sections): New.
2967 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2970 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2972 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2973 (alpha_linux_iterate_over_regset_sections): New.
2974 (alpha_linux_init_abi): Adjust gdbarch initialization.
2975 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2977 (alphanbsd_iterate_over_regset_sections): New prototype.
2979 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2981 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2983 (aarch64_linux_iterate_over_regset_sections): New.
2984 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2986 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2988 * fbsd-tdep.c: New file.
2989 * fbsd-tdep.h: New file.
2990 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2991 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2992 (ALLDEPFILES): Add fbsd-tdep.c.
2994 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2996 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2998 * gdbarch.h: Regenerate.
2999 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3001 (get_core_register_section): Add parameter 'regset' and use it, if
3002 set. Add parameter 'min_size' and verify the bfd section size
3004 (get_core_registers_cb): Add parameter 'regset' and pass it to
3005 get_core_register section. For the "standard" register sections
3006 ".reg" and ".reg2", set an appropriate default for human_name.
3007 (get_core_registers): Don't abort when the gdbarch has an iterator
3008 but no regset_from_core_section. Add NULL/0 for parameters
3009 'regset'/'min_size' in calls to get_core_register_section.
3010 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3011 'regset' and use it instead of calling the
3012 regset_from_core_section gdbarch method.
3013 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3014 * i386-tdep.c (i386_supply_xstateregset)
3015 (i386_collect_xstateregset, i386_xstateregset): Moved to
3017 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3019 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3020 core file support only if the regset iterator hasn't been set.
3021 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3022 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3023 Moved from i386-tdep.c and renamed to *_linux*.
3024 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3025 each callback invocation. Allow any .reg-xstate size when reading
3027 * amd64-tdep.c (amd64_supply_xstateregset)
3028 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3030 (amd64_regset_from_core_section): Remove.
3031 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3032 install an amd64-specific regset_from_core_section gdbarch method.
3033 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3034 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3035 Moved from amd64-tdep.c and renamed to *_linux*.
3036 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3037 to each callback invocation. Allow any .reg-xstate size when
3038 reading from a core file.
3039 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3040 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3041 each callback invocation.
3042 (arm_linux_init_abi): No longer set the regset_from_core_section
3044 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3045 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3046 each callback invocation.
3047 (ppc_linux_init_abi): No longer set the regset_from_core_section
3049 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3050 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3051 (s390_regset_from_core_section): Remove.
3052 (s390_iterate_over_regset_sections): Add regset parameter to each
3053 callback invocation.
3054 (s390_gdbarch_init): No longer set the regset_from_core_section
3055 gdbarch method. Drop initialization of deleted tdep fields.
3057 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3059 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3060 (amd64_linux_iterate_over_regset_sections): New.
3061 (amd64_linux_init_abi_common): Don't install the regset section
3062 list, but the new iterator in gdbarch.
3063 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3064 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3065 (arm_linux_iterate_over_regset_sections): ...here. New function.
3066 (arm_linux_init_abi): Set iterator instead of section list.
3067 * corelow.c (get_core_registers_cb): New function, logic moved
3069 (get_core_registers): ...loop body here. Use new iterator method
3070 instead of walking through the regset section list.
3071 * gdbarch.sh: Remove 'core_regset_sections'. New method
3072 'iterate_over_regset_sections'. New typedef
3073 'iterate_over_regset_sections_cb'.
3074 * gdbarch.c: Regenerate.
3075 * gdbarch.h: Likewise.
3076 * i386-linux-tdep.c (i386_linux_regset_sections)
3077 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3079 (i386_linux_iterate_over_regset_sections): New.
3080 (i386_linux_init_abi): Don't choose a regset section list, but
3081 install new iterator in gdbarch.
3082 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3083 (linux_collect_regset_section_cb): New function, logic moved
3085 (linux_collect_thread_registers): ...loop body here. Use iterator
3086 method instead of walking through list.
3087 (linux_make_corefile_notes_1): Check for presence of iterator
3088 method instead of regset section list.
3089 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3090 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3091 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3092 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3093 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3094 (ppc_linux_init_abi): Don't choose from above regset section
3095 lists, but install new iterator in gdbarch.
3096 * regset.h (struct core_regset_section): Remove.
3097 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3098 have_linux_v1, have_linux_v2, and have_tdb.
3099 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3100 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3101 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3102 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3103 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3104 (s390_iterate_over_regset_sections): ...here. New function. Use
3106 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3107 regset section lists, but install new iterator.
3109 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3111 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3113 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3115 * progspace.c (print_program_space): Don't prune program spaces
3116 before printing them.
3118 2014-09-25 Pedro Alves <palves@redhat.com>
3120 * infrun.c (user_visible_resume_ptid): Don't check
3121 singlestep_breakpoints_inserted_p.
3123 2014-09-25 Pedro Alves <palves@redhat.com>
3125 * breakpoint.c (should_be_inserted): Add debug output.
3127 2014-09-25 Pedro Alves <palves@redhat.com>
3129 * infrun.c (stepping_past_instruction_at)
3130 (clear_exit_convenience_vars): Point at infrun.h instead of
3132 (handle_signal_stop): Fix typo.
3134 2014-09-24 Yao Qi <yao@codesourcery.com>
3136 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3139 2014-09-22 Gary Benson <gbenson@redhat.com>
3141 * target.c (target_stop): Updated comment.
3143 2014-09-22 Gary Benson <gbenson@redhat.com>
3145 * target/target.h (target_stop_ptid): Renamed as...
3146 (target_stop_and_wait): New function. Updated comment.
3148 (target_continue_ptid): Renamed as...
3149 (target_continue_no_signal): New function. Updated comment.
3152 2014-09-22 Pedro Alves <palves@redhat.com>
3154 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3156 * breakpoint.c (enum ugll_insert_mode): New enum.
3157 (always_inserted_mode): Now a plain boolean.
3158 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3159 (breakpoints_always_inserted_mode): Delete.
3160 (breakpoints_should_be_inserted_now): New function.
3161 (insert_breakpoints): Pass UGLL_INSERT to
3162 update_global_location_list instead of calling
3163 insert_breakpoint_locations manually.
3164 (create_solib_event_breakpoint_1): New, factored out from ...
3165 (create_solib_event_breakpoint): ... this.
3166 (create_and_insert_solib_event_breakpoint): Use
3167 create_solib_event_breakpoint_1 instead of calling
3168 insert_breakpoint_locations manually.
3169 (update_global_location_list): Change parameter type from boolean
3170 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3171 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3172 (update_global_location_list_nothrow): Change parameter type from
3173 boolean to enum ugll_insert_mode.
3174 (_initialize_breakpoint): "breakpoint always-inserted" option is
3175 now a boolean command. Update help text.
3176 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3177 (breakpoints_should_be_inserted_now): New declaration.
3178 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3179 Remove breakpoints_always_inserted_mode check.
3180 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3181 * remote.c (remote_start_remote): Likewise.
3183 2014-09-22 Pedro Alves <palves@redhat.com>
3185 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3186 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3187 Instead, pass UGLL_INSERT to update_global_location_list.
3188 (update_global_location_list): Change parameter type from boolean
3189 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3190 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3191 (create_solib_event_breakpoint_1): New, factored out from ...
3192 (create_solib_event_breakpoint): ... this.
3193 (create_and_insert_solib_event_breakpoint): Use
3194 create_solib_event_breakpoint_1 instead of calling
3195 insert_breakpoint_locations manually.
3196 (update_global_location_list): Handle UGLL_INSERT.
3198 2014-09-22 Pedro Alves <palves@redhat.com>
3200 * breakpoint.c (enum ugll_insert_mode): New enum.
3201 (update_global_location_list)
3202 (update_global_location_list_nothrow): Change parameter type from
3203 boolean to enum ugll_insert_mode. All callers adjusted.
3205 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3207 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3208 SystemTap support in GDB.
3210 2014-09-19 Don Breazeal <donb@codesourcery.com>
3212 * linux-nat.c (linux_handle_extended_wait): Call
3213 linux_ptrace_get_extended_event.
3214 (wait_lwp): Call linux_is_extended_waitstatus.
3215 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3216 and linux_is_extended_waitstatus.
3217 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3218 linux_ptrace_get_extended_event.
3219 (linux_ptrace_get_extended_event): New function.
3220 (linux_is_extended_waitstatus): New function.
3221 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3222 (linux_is_extended_waitstatus): New declarations.
3224 2014-09-19 Yao Qi <yao@codesourcery.com>
3226 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3227 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3228 comments. Callers update.
3229 (dwarf_decode_lines): Likewise.
3230 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3231 comments. Skip the line table if 'lowpc' is greater than
3232 'address'. Don't check
3233 dwarf2_per_objfile->has_section_at_zero.
3235 2014-09-18 Doug Evans <dje@google.com>
3237 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3238 * python/py-symtab.c (stpy_get_producer): New function.
3239 (symtab_object_getset): Add "producer" attribute.
3241 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3244 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3245 (do_captured_read_memory_integer): Remove.
3246 (safe_read_memory_integer): Use target_read_memory directly instead
3247 of catching errors in do_captured_read_memory_integer.
3249 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3251 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3254 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3256 * objc-lang.c (find_implementation_from_class): Remove dead code.
3258 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3261 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3262 "fprintf_unfiltered (gdb_stdlog...)".
3264 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3266 PR breakpoints/12526
3267 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3269 * breakpoint.c (watch_command_1): Use these fields to retain
3270 bitfield information.
3271 (extract_bitfield_from_watchpoint_value): New function.
3272 (watchpoint_check): Use it.
3273 (update_watchpoint): Use it. Optimize the address and length of a
3274 HW watchpoint pointing to a bitfield.
3275 * value.h (unpack_value_bitfield): New prototype.
3276 * value.c (unpack_value_bitfield): Make extern.
3278 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3280 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3282 * gnu-nat.c (inf_threads): New function.
3283 * gnu-nat.h (inf_threads_ftype): New typedef.
3284 (inf_threads): New declaration.
3285 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3286 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3287 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3288 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3289 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3290 (i386_gnu_dr_get_control): New functions.
3291 (reg_addr): New structure.
3292 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3293 i386 debugging register hooks.
3294 * NEWS: Mention this.
3296 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3298 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3299 vector data transfer instructions.
3300 (arm_record_coproc_data_proc): Updated.
3302 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3304 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3305 arm_record_exreg_ld_st_insn.
3306 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3309 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3311 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3312 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3313 processing instructions.
3315 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3317 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3318 for advance SIMD struct ld/st insn.
3319 (thumb2_record_decode_insn_handler): Replace stub handler with
3320 thumb2_record_asimd_struct_ld_st.
3322 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3324 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3325 for asimd, vfp and coprocessor insns.
3326 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3327 and coprocessor insns.
3328 (thumb2_record_coproc_insn): New function.
3329 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3331 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3334 2014-09-13 Doug Evans <xdje42@gmail.com>
3336 * NEWS: Mention new "queue-signal" command.
3337 * infcmd.c (queue_signal_command): New function.
3338 (_initialize_infcmd): Add new queue-signal command.
3340 2014-09-13 Doug Evans <xdje42@gmail.com>
3342 * linux-nat.c (wait_lwp): Add debugging printf.
3343 (linux_nat_wait_1): Ditto.
3345 2014-09-12 Pedro Alves <palves@redhat.com>
3347 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3348 (create_and_insert_solib_event_breakpoint): New functions.
3349 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3350 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3351 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3352 (remove_dbx_link_breakpoint): Delete function.
3353 (insert_dbx_link_bpt_in_file): Use
3354 create_and_insert_solib_event_breakpoint instead of
3355 deprecated_insert_raw_breakpoint.
3356 (procfs_wait): Don't check whether we hit __dbx_link here.
3357 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3359 * solib-irix.c (base_breakpoint): Delete global.
3360 (disable_break): Delete function.
3361 (enable_break): Use create_solib_event_breakpoint
3362 instead of deprecated_insert_raw_breakpoint.
3363 (irix_solib_handle_event): New function.
3364 (irix_solib_create_inferior_hook): Don't run the target or disable
3365 the mapping-complete breakpoint here.
3366 (_initialize_irix_solib): Install irix_solib_handle_event as
3367 so_ops->handle_event hook.
3369 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3370 Ulrich Weigand <uweigand@de.ibm.com>
3373 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3374 instead of read_memory_unsigned_integer.
3376 2014-09-12 Gary Benson <gbenson@redhat.com>
3378 * nat/linux-waitpid.c: Include common-defs.h.
3379 [GDBSERVER]: Add FIXME comment.
3380 [!GDBSERVER]: Don't include defs.h or signal.h.
3381 (linux_debug) [!GDBSERVER]: Remove empty block.
3383 2014-09-12 Gary Benson <gbenson@redhat.com>
3385 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3386 Don't include defs.h or server.h.
3388 2014-09-12 Gary Benson <gbenson@redhat.com>
3390 * nat/linux-btrace.c: Include common-defs.h.
3391 Don't include defs.h, server.h or gdbthread.h.
3392 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3394 2014-09-12 Gary Benson <gbenson@redhat.com>
3396 * common/agent.c: Include common-defs.h.
3397 Don't include defs.h or server.h.
3398 * common/buffer.c: Likewise.
3399 * common/common-debug.c: Likewise.
3400 * common/common-utils.c: Likewise.
3401 * common/errors.c: Likewise.
3402 * common/filestuff.c: Likewise.
3403 * common/format.c: Likewise.
3404 * common/gdb_vecs.c: Likewise.
3405 * common/print-utils.c: Likewise.
3406 * common/ptid.c: Likewise.
3407 * common/rsp-low.c: Likewise.
3408 * common/signals.c: Likewise.
3409 * common/vec.c: Likewise.
3410 * common/xml-utils.c: Likewise.
3411 * nat/linux-osdata.c: Likewise.
3412 * nat/linux-procfs.c: Likewise.
3413 * nat/linux-ptrace.c: Likewise.
3414 * nat/mips-linux-watch.c: Likewise.
3415 * target/waitstatus.c: Likewise.
3417 2014-09-12 Tom Tromey <tromey@redhat.com>
3418 Gary Benson <gbenson@redhat.com>
3420 * common/common-regcache.h: New file.
3421 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3422 * regcache.h: Include common-regcache.h.
3423 (regcache_read_pc): Don't declare.
3424 * regcache.c (get_thread_regcache_for_ptid): New function.
3425 * nat/linux-btrace.c: Don't include regcache.h.
3426 Include common-regcache.h.
3427 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3429 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3431 * regcache.h (struct regset): Declare.
3433 2014-09-11 Pedro Alves <palves@redhat.com>
3436 * main.c: Include "infrun.h".
3437 (catch_command_errors, catch_command_errors_const): Wait for the
3438 foreground command to complete.
3439 * top.c (maybe_wait_sync_command_done): New function, factored out
3441 (maybe_wait_sync_command_done): ... here.
3442 * top.h (maybe_wait_sync_command_done): New declaration.
3444 2014-09-11 Tom Tromey <tromey@redhat.com>
3445 Gary Benson <gbenson@redhat.com>
3447 * common/symbol.h: New file.
3448 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3449 * minsyms.c (find_minimal_symbol_address): New function.
3450 * common/agent.c: Include common/symbol.h.
3451 [!GDBSERVER]: Don't include objfiles.h.
3452 (agent_look_up_symbols): Use find_minimal_symbol_address.
3454 2014-09-11 Gary Benson <gbenson@redhat.com>
3456 * target/target.h (target_stop_ptid, target_continue_ptid):
3458 * target.c (target_stop_ptid, target_continue_ptid): New
3460 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3461 (agent_run_command): Always use target_stop_ptid and
3462 target_continue_ptid.
3464 2014-09-11 Tom Tromey <tromey@redhat.com>
3465 Gary Benson <gbenson@redhat.com>
3467 * target/target.h: New file.
3468 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3469 * target.h: Include target/target.h.
3470 (target_read_memory, target_write_memory): Don't declare.
3471 * target.c (target_read_uint32): New function.
3472 * common/agent.c: Include target/target.h.
3473 [!GDBSERVER]: Don't include target.h.
3474 (helper_thread_id): Type changed to uint32_t.
3475 (agent_get_helper_thread_id): Use target_read_uint32.
3476 (agent_run_command): Always use target_read_memory and
3477 target_write_memory.
3478 (agent_capability): Type changed to uint32_t.
3479 (agent_capability_check): Use target_read_uint32.
3481 2014-09-11 Gary Benson <gbenson@redhat.com>
3483 * common/common-debug.h (show_debug_regs): Declare.
3484 * common/common-debug.c (show_debug_regs): Define.
3485 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3486 all uses with show_debug_regs. Replace all uses that considered
3487 debug_hw_points as a multi-value integer with straight boolean
3489 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3490 with show_debug_regs.
3491 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3492 all uses with show_debug_regs.
3493 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3494 uses with show_debug_regs.
3496 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3498 * findvar.c (address_from_register): Handle targets requiring
3499 a special conversion routine even for plain pointer types.
3501 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3503 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3504 (store_register): Do not call exec_one_dummy_insn.
3506 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3508 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3509 dereference it first. Use value_enclosing_type instead of
3511 (ada_array_length): Likewise.
3513 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3515 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3516 Adjust function implementation and documentation accordingly.
3517 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3518 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3519 Update call to ada_value_ptr_subscript.
3521 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3523 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3524 instead of VAL's type.
3526 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3528 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3530 2014-09-09 Doug Evans <xdje42@gmail.com>
3533 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3534 last parameter to pkg-config, not first.
3535 * configure.ac: Pass --with-guile provided pkg-config path to
3536 GDB_GUILE_PROGRAM_NAMES.
3537 * configure: Regenerate.
3539 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3541 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3544 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3546 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3547 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3548 the list of sections determining GDB_OSABI_IRIX.
3550 2014-09-09 James Hogan <james.hogan@imgtec.com>
3552 * MAINTAINERS (Write After Approval): Add "James Hogan".
3554 2014-09-09 James Hogan <james.hogan@imgtec.com>
3556 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3558 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3560 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3562 2014-09-08 Doug Evans <xdje42@gmail.com>
3565 * guile.c: #include <signal.h>.
3566 (_initialize_guile): Block SIGCHLD while initializing Guile.
3568 Replaces the following, which is reverted.
3570 2014-07-26 Doug Evans <xdje42@gmail.com>
3573 * configure.ac: Add check for header gc/gc.h.
3574 Add check for function setenv.
3575 * configure: Regenerate.
3576 * config.in: Regenerate.
3577 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3579 2014-09-08 Doug Evans <xdje42@gmail.com>
3581 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3582 with named constant. Fix style of pointer comparison.
3583 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3585 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3588 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3589 decide whether we display the command on "show user".
3590 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3591 printing command name.
3592 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3593 * cli/cli-decode.c (cli_user_command_p): Create helper function
3594 to verify whether cmd_list_element is a user-defined command.
3596 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3599 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3600 Fix goto out of TRY_CATCH.
3602 2014-09-06 Doug Evans <xdje42@gmail.com>
3603 Tom Tromey <tromey@redhat.com>
3606 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3607 $_any_caller_matches.
3608 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3609 * python/lib/gdb/function/caller_is.py: New file.
3611 2014-09-06 Doug Evans <xdje42@gmail.com>
3613 * infcmd.c (program_info): Fix typo.
3615 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3618 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3619 'number'. New variable 'has_digit'. Rewrite code to deal with
3620 subexpressions on SDT probes.
3622 2014-09-04 Pedro Alves <palves@redhat.com>
3624 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3625 the input is only one character long.
3627 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3630 * f-valprint.c (f_val_print): Specify the correct print option to
3631 use when printing integer values.
3633 2014-09-04 Gary Benson <gbenson@redhat.com>
3635 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3636 Remove code to cope with LWPs wrapped as PIDs.
3637 Add assertions to ensure no wrapped LWPs are passed.
3639 2014-09-04 Pedro Alves <palves@redhat.com>
3641 * value.c (value_ranges_copy_adjusted): New function, factored out
3643 (value_contents_copy_raw): ... here.
3644 (unpack_value_bits_as_long_1): Rename back to ...
3645 (unpack_bits_as_long): ... this. Remove 'original_value' and
3646 'result' parameters. Change return type to LONGEST.
3647 (unpack_value_bits_as_long): Delete.
3648 (unpack_value_field_as_long_1): Delete.
3649 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3650 (unpack_value_bitfield): New function.
3651 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3652 (value_fetch_lazy): Use unpack_value_bitfield.
3653 * value.h (unpack_value_bits_as_long): Delete declaration.
3655 2014-09-03 Sasha Smundak <asmundak@google.com>
3657 * python/py-frame.c (frapy_read_register): New function.
3659 2014-09-03 James Hogan <james.hogan@imgtec.com>
3661 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3662 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3664 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3667 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3669 (add_cmd): Set "completer_handle_brkchars" to NULL.
3670 * cli/cli-decode.h (struct cmd_list_element)
3671 <completer_handle_brkchars>: New field.
3672 * command.h (completer_ftype_void): New typedef.
3673 (set_cmd_completer_handle_brkchars): New prototype.
3674 * completer.c (set_gdb_completion_word_break_characters): New
3676 (complete_line_internal): Call "completer_handle_brkchars"
3677 callback from command.
3678 * completer.h: Include "command.h".
3679 (set_gdb_completion_word_break_characters): New prototype.
3680 * python/py-cmd.c (cmdpy_completer_helper): New function.
3681 (cmdpy_completer_handle_brkchars): New function.
3682 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3683 (cmdpy_init): Set completer_handle_brkchars to
3684 cmdpy_completer_handle_brkchars.
3686 2014-09-03 Gary Benson <gbenson@redhat.com>
3688 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3689 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3690 Loop conditions changed to equivalent form.
3691 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3692 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3693 ALL_DEBUG_ADDRESS_REGISTERS.
3695 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3697 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3700 2014-09-02 Doug Evans <dje@google.com>
3702 * typeprint.c (find_global_typedef): Fix comment.
3704 2014-09-02 Gary Benson <gbenson@redhat.com>
3706 * i386-nat.h: Renamed as...
3707 * x86-nat.h: New file. All type, function and variable name
3708 prefixes changed from "i386_" to "x86_". All references updated.
3709 * i386-nat.c: Renamed as...
3710 * x86-nat.c: New file. All type, function and variable name
3711 prefixes changed from "i386_" to "x86_". All references updated.
3712 * common/i386-xstate.h: Renamed as...
3713 * common/x86-xstate.h: New file. All type, function and variable
3714 name prefixes changed from "i386_" to "x86_". All references
3716 * nat/i386-cpuid.h: Renamed as...
3717 * nat/x86-cpuid.h: New file. All type, function and variable name
3718 prefixes changed from "i386_" to "x86_". All references updated.
3719 * nat/i386-gcc-cpuid.h: Renamed as...
3720 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3721 name prefixes changed from "i386_" to "x86_". All references
3723 * nat/i386-dregs.h: Renamed as...
3724 * nat/x86-dregs.h: New file. All type, function and variable name
3725 prefixes changed from "i386_" to "x86_". All references updated.
3726 * nat/i386-dregs.c: Renamed as...
3727 * nat/x86-dregs.c: New file. All type, function and variable name
3728 prefixes changed from "i386_" to "x86_". All references updated.
3730 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3732 * varobj.c (_initialize_varobj): Move to the end of file.
3734 2014-08-29 Gary Benson <gbenson@redhat.com>
3736 * common/common-exceptions.h: New file.
3737 * common/common-exceptions.c: Likewise.
3738 * Makefile.in (SFILES): Add common/common-exceptions.c.
3739 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3740 (COMMON_OBS): Add common-exceptions.o.
3741 (common-exceptions.o): New rule.
3742 * exceptions.h (common-exceptions.h): Include.
3743 (gdb_setjmp.h): Do not include.
3744 (return_reason): Moved to common-exceptions.h.
3745 (enum return_reason): Likewise.
3746 (RETURN_MASK): Likewise.
3747 (typedef return_mask): Likewise.
3748 (enum errors): Likewise.
3749 (struct gdb_exception): Likewise.
3750 (exceptions_state_mc_init): Likewise.
3751 (exceptions_state_mc_action_iter): Likewise.
3752 (exceptions_state_mc_action_iter_1): Likewise.
3753 (TRY_CATCH): Likewise.
3754 (throw_exception): Likewise.
3755 (throw_verror): Likewise.
3756 (throw_vquit): Likewise.
3757 (throw_error): Likewise.
3758 (throw_quit): Likewise.
3759 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3760 (enum catcher_action): Likewise.
3761 (struct catcher): Likewise.
3762 (current_catcher): Likewise.
3763 (catcher_list_size): Likewise.
3764 (exceptions_state_mc_init): Likewise.
3765 (catcher_pop): Likewise.
3766 (exceptions_state_mc): Likewise.
3767 (exceptions_state_mc_action_iter): Likewise.
3768 (exceptions_state_mc_action_iter_1): Likewise.
3769 (throw_exception): Likewise.
3770 (exception_messages): Likewise.
3771 (exception_messages_size): Likewise.
3772 (throw_it): Likewise.
3773 (throw_verror): Likewise.
3774 (throw_vquit): Likewise.
3775 (throw_error): Likewise.
3776 (throw_quit): Likewise.
3777 (prepare_to_throw_exception): New function.
3779 2014-08-29 Gary Benson <gbenson@redhat.com>
3781 * common/gdb_setjmp.h: New file.
3782 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3783 * configure.ac: Move sigsetjmp check...
3784 * common/common.m4: ...here.
3785 * configure: Regenerate.
3786 * cp-support.c (SIGJMP_BUF): Delete.
3787 (SIGSETJMP): Likewise.
3788 (SIGLONGJMP): Likewise.
3789 * exceptions.h (gdb_setjmp.h): Include.
3790 (setjmp.h): Do not include.
3791 (EXCEPTIONS_SIGJMP_BUF): Delete.
3792 (EXCEPTIONS_SIGSETJMP): Likewise.
3793 (EXCEPTIONS_SIGLONGJMP): Likewise.
3794 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3796 * exceptions.c: Likewise.
3798 2014-08-29 Gary Benson <gbenson@redhat.com>
3800 * cleanups.h: Moved to...
3801 * common/cleanups.h: New file.
3802 * cleanups.c: Moved to...
3803 * common/cleanups.c: New file. Include common-defs.h and
3804 cleanups.h. Do not include defs.h.
3805 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3806 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3807 (cleanups.o): New rule.
3809 2014-08-29 Gary Benson <gbenson@redhat.com>
3811 * common/errors.h (internal_warning): New declaration.
3812 (internal_vwarning): Likewise.
3813 * common/errors.c (internal_warning): New function.
3814 * utils.h (internal_warning): Don't declare.
3815 (internal_vwarning): Likewise.
3816 * utils.c (internal_warning): Removed.
3818 2014-08-29 Gary Benson <gbenson@redhat.com>
3820 * main.c (captured_main): Use warning during startup.
3821 Prefix startup warning messages with command name.
3823 2014-08-29 Gary Benson <gbenson@redhat.com>
3825 * main.c (captured_main): Handle usage errors with error.
3827 2014-08-29 Gary Benson <gbenson@redhat.com>
3829 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3830 exit pair with a call to error. Wrap the message with _().
3832 2014-08-29 Gary Benson <gbenson@redhat.com>
3834 * main.c (captured_main): Replace a fprintf/exit
3835 pair with a call to error. Wrap the message with _().
3837 2014-08-29 Gary Benson <gbenson@redhat.com>
3839 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3840 pairs with calls to error. Wrap the message with _().
3842 2014-08-29 Gary Benson <gbenson@redhat.com>
3844 * utils.c (vwarning): Protect calls to target_terminal_ours
3847 2014-08-29 Gary Benson <gbenson@redhat.com>
3849 * exceptions.c (print_flush): Protect calls to
3850 target_terminal_ours and wrap_here.
3852 2014-08-29 Gary Benson <gbenson@redhat.com>
3854 * utils.h (filtered_printing_initialized): New declaration.
3855 * utils.c (abort_with_message): New function.
3856 (internal_vproblem): Use abort_with_message for first level
3857 recursive internal problems, and if gdb_stderr is not set up.
3858 Protect calls to target_terminal_ours, begin_line and query.
3860 2014-08-28 Doug Evans <dje@google.com>
3862 * symtab.c (in_prologue): Move definition to better spot.
3863 (skip_prologue_using_sal): Ditto.
3865 2014-08-28 Doug Evans <dje@google.com>
3867 * symtab.c (find_function_start_sal): Move definition to better spot.
3869 2014-08-28 Yao Qi <yao@codesourcery.com>
3871 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3872 found_stack_adjust in forward scan. Remove condition check
3873 on found_stack_adjust which is always true. Indent the code.
3875 2014-08-28 Yao Qi <yao@codesourcery.com>
3877 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3878 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3879 (dwarf_decode_lines): Remove argument
3880 want_line_info. Remove condition check on want_line_info.
3883 2014-08-27 Doug Evans <dje@google.com>
3885 * dwarf2read.c (dwarf_record_line): Fix typo.
3887 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3889 * target.h (struct target_ops::to_terminal_save_ours): Remove
3891 (target_terminal_save_ours): Remove macro.
3892 * target-delegates.c: Regenerate.
3893 * inf-child.c (inf_child_target): Don't set the nonexistent
3894 field to_terminal_save_ours.
3895 * inferior.h (child_terminal_save_ours): Remove declaration.
3896 * terminal.h (gdb_save_tty_state): New declaration.
3897 * inflow.c (child_terminal_save_ours): Rename to ...
3898 (gdb_save_tty_state): ... this.
3899 * tui/tui.c: Include terminal.h.
3900 (tui_enable): Use gdb_save_tty_state instead of
3901 target_terminal_save_ours.
3902 (tui_disable): Likewise.
3904 2014-08-25 Doug Evans <dje@google.com>
3906 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3907 Pass NULL instead of 0 for context pointer.
3909 2014-08-25 Yao Qi <yao@codesourcery.com>
3911 * dwarf2read.c: Fix grammatical error.
3913 2014-08-24 Yao Qi <yao@codesourcery.com>
3915 * dwarf2read.c (scan_partial_symbols): Update comments.
3916 Rename argument 'need_pc' with 'set_addrmap'.
3917 (add_partial_namespace): Rename argument 'need_pc' with
3919 (add_partial_module): Likewise.
3920 (add_partial_subprogram): Likewise. Update comments.
3921 (dwarf2_name): Fix typo.
3923 2014-08-22 Doug Evans <dje@google.com>
3926 * dwarf2read.c (dwarf_record_line_p): New function.
3927 (dwarf_decode_lines_1): Ignore subsequent line number entries
3928 for the same line if any entry had a non-zero discriminator.
3930 2014-08-22 Doug Evans <dje@google.com>
3932 * buildsym.h (record_line_ftype): New typedef.
3933 (record_line): Use it.
3934 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3935 (dwarf_decode_lines_1): Call them.
3937 2014-08-22 Yao Qi <yao@codesourcery.com>
3939 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3940 (ctf_end): Remove code.
3942 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3944 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3945 (linux_make_corefile_notes): call update_thread_list, protected against
3948 2014-08-21 Pedro Alves <palves@redhat.com>
3950 * infcmd.c (attach_command): Remove comment.
3952 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3954 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3955 unsigned LONGEST to ULONGEST.
3957 2014-08-20 Pedro Alves <palves@redhat.com>
3959 * Makefile.in (check-read1): New rule.
3961 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3963 * value.c (value_from_contents_and_address): Strip resolved_type's
3964 typedef layers before checking its TYPE_DATA_LOCATION.
3966 2014-08-20 Pedro Alves <palves@redhat.com>
3968 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3970 2014-08-20 Yao Qi <yao@codesourcery.com>
3972 * amd64-tdep.c (amd64_classify): Add a blank line after the
3973 example. Move "*/" to a new line.
3974 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3975 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3976 * dwarf2read.c (psymtab_include_file_name): Likewise.
3978 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3979 Pedro Alves <palves@redhat.com>
3983 * ada-lang.c (coerce_unspec_val_to_type): Use
3984 value_contents_copy_raw.
3985 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3986 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3987 * cp-valprint.c (cp_print_value_fields): Let the common printing
3988 code handle optimized out values.
3989 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3990 * d-valprint.c (dynamic_array_type): Use
3991 value_bits_any_optimized_out.
3992 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3993 check_any_valid fields.
3994 (check_pieced_value_bits): Delete and inline ...
3995 (check_pieced_synthetic_pointer): ... here.
3996 (check_pieced_value_validity): Delete.
3997 (check_pieced_value_invalid): Delete.
3998 (pieced_value_funcs): Remove check_validity and check_any_valid
4000 (read_pieced_value): Use mark_value_bits_optimized_out.
4001 (write_pieced_value): Switch to use
4002 mark_value_bytes_optimized_out.
4003 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4004 of assuming the whole value is optimized out.
4005 * findvar.c (read_frame_register_value): Remove special handling
4006 of optimized out registers.
4007 (value_from_register): Use mark_value_bytes_optimized_out.
4008 * frame-unwind.c (frame_unwind_got_optimized): Use
4009 mark_value_bytes_optimized_out.
4010 * jv-valprint.c (java_value_print): Adjust.
4011 (java_print_value_fields): Let the common printing code handle
4012 optimized out values.
4013 * mips-tdep.c (mips_print_register): Remove special handling of
4014 optimized out registers.
4015 * opencl-lang.c (lval_func_check_validity): Delete.
4016 (lval_func_check_any_valid): Delete.
4017 (opencl_value_funcs): Remove check_validity and check_any_valid
4019 * p-valprint.c (pascal_object_print_value_fields): Let the common
4020 printing code handle optimized out values.
4021 * stack.c (read_frame_arg): Remove special handling of optimized
4022 out values. Fetch both VAL and ENTRYVAL before comparing
4023 contents. Adjust to value_available_contents_eq rename.
4024 * valprint.c (valprint_check_validity)
4025 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4026 (val_print_array_elements): Adjust.
4027 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4028 (value_bits_any_optimized_out): New function.
4029 (value_entirely_covered_by_range_vector): New function, factored
4030 out from value_entirely_unavailable.
4031 (value_entirely_unavailable): Reimplement.
4032 (value_entirely_optimized_out): New function.
4033 (insert_into_bit_range_vector): New function, factored out from
4034 mark_value_bits_unavailable.
4035 (mark_value_bits_unavailable): Reimplement.
4036 (struct ranges_and_idx): New struct.
4037 (find_first_range_overlap_and_match): New function, factored out
4038 from value_available_contents_bits_eq.
4039 (value_available_contents_bits_eq): Rename to ...
4040 (value_contents_bits_eq): ... this. Check both unavailable
4041 contents and optimized out contents.
4042 (value_available_contents_eq): Rename to ...
4043 (value_contents_eq): ... this.
4044 (allocate_value_lazy): Remove reference to the old optimized_out
4046 (allocate_optimized_out_value): Use
4047 mark_value_bytes_optimized_out.
4048 (require_not_optimized_out): Adjust to check whether the
4049 optimized_out vec is empty.
4050 (ranges_copy_adjusted): New function, factored out from
4051 value_contents_copy_raw.
4052 (value_contents_copy_raw): Also copy the optimized out ranges.
4053 Assert the destination ranges aren't optimized out.
4054 (value_contents_copy): Update comment, remove call to
4055 require_not_optimized_out.
4056 (value_contents_equal): Adjust to check whether the optimized_out
4058 (set_value_optimized_out, value_optimized_out_const): Delete.
4059 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4061 (value_entirely_optimized_out, value_bits_valid): Delete.
4062 (value_copy): Take a VEC copy of the 'optimized_out' field.
4063 (value_primitive_field): Remove special handling of optimized out.
4064 (value_fetch_lazy): Assert that lazy values have no unavailable
4065 regions. Use value_bits_any_optimized_out. Remove some special
4066 handling for optimized out values.
4067 * value.h: Add intro comment about <optimized out> and
4069 (struct lval_funcs): Remove check_validity and check_any_valid
4071 (set_value_optimized_out, value_optimized_out_const): Remove.
4072 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4074 (value_bits_any_optimized_out): New declaration.
4075 (value_bits_valid): Delete declaration.
4076 (value_available_contents_eq): Rename to ...
4077 (value_contents_eq): ... this, and extend comments.
4079 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4081 Fix -fsanitize=address on unreadable inferior strings.
4082 * valprint.c (val_print_string): Fix access before BUFFER.
4084 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4086 * target.c (target_struct_size): Remove.
4087 (target_struct_allocsize): Remove.
4088 (DEFAULT_ALLOCSIZE): Remove.
4089 (target_ops_p): New typedef.
4090 (DEF_VEC_P (target_ops_p)): New vector type.
4091 (target_structs): Change type to VEC (target_ops_p).
4092 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4093 (find_default_run_target): Rewrite for loop following changes to
4096 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4098 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4099 Adjust code accordingly. Adjust function description comment.
4101 2014-08-19 Yao Qi <yao@codesourcery.com>
4103 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4106 2014-08-19 Alan Modra <amodra@gmail.com>
4108 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4109 * config.in: Regenerate.
4110 * configure: Regenerate.
4112 2014-08-19 Tom Tromey <tromey@redhat.com>
4113 Gary Benson <gbenson@redhat.com>
4115 * common/common-debug.h: New file.
4116 * common/common-debug.c: Likewise.
4117 * debug.c: Likewise.
4118 * Makefile.in (SFILES): Add common/common-debug.c.
4119 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4120 (COMMON_OBS): Add common-debug.o and debug.o.
4121 (common-debug.o): New rule.
4122 * common/common-defs.h: Include common-debug.h.
4123 * common/agent.c (debug_agent_printf): New function.
4124 (DEBUG_AGENT): Redefine.
4125 * nat/i386-dregs.c (debug_printf): Undefine.
4127 2014-08-19 Gary Benson <gbenson@redhat.com>
4129 * common/common-defs.h: Include print-utils.h.
4130 * utils.h: Do not include print-utils.h.
4132 2014-08-19 Tom Tromey <tromey@redhat.com>
4133 Gary Benson <gbenson@redhat.com>
4135 * common/common-types.h: New file.
4136 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4137 * common/common-defs.h: Include common-types.h.
4138 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4141 2014-08-19 Tom Tromey <tromey@redhat.com>
4142 Gary Benson <gbenson@redhat.com>
4144 * common/errors.h: New file.
4145 * common/errors.c: Likewise.
4146 * Makefile.in (SFILES): Add common/errors.c.
4147 (HFILES_NO_SRCDIR): Add common/errors.h.
4148 (COMMON_OBS): Add errors.o.
4149 (errors.o): New rule.
4150 * common/common-defs.h: Include errors.h.
4151 * utils.h (perror_with_name, error, verror, warning, vwarning):
4153 * common/common-utils.h: (malloc_failure, internal_error):
4156 2014-08-19 Gary Benson <gbenson@redhat.com>
4158 * utils.c (internal_vproblem): Always print the message.
4160 2014-08-18 Doug Evans <dje@google.com>
4162 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4164 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4166 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4167 Return 0 if TYPE is dynamic.
4168 (print_range): Add handling of dynamic ranges.
4170 2014-08-18 Keven Boell <keven.boell@intel.com>
4171 Joel Brobecker <brobecker@adacore.com>
4173 * gdbtypes.h (struct main_type): Add field "data_location".
4174 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4175 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4176 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4177 a dynamic data location.
4178 (resolve_dynamic_type): Add DW_AT_data_location handling.
4179 (copy_recursive, copy_type): Copy the data_location information
4181 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4182 * value.c (value_from_contents_and_address): Add
4183 DW_AT_data_location handling.
4185 2014-08-18 Keven Boell <keven.boell@intel.com>
4186 Joel Brobecker <brobecker@adacore.com>
4188 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4189 field "get_object_address".
4190 * dwarf2expr.c (execute_stack_op): Add handling for
4191 DW_OP_push_object_address.
4192 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4193 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4194 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4195 (dwarf_expr_get_obj_addr): New function.
4196 (dwarf_expr_ctx_funcs): Add get_object_address field.
4197 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4198 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4199 (dwarf2_evaluate_property): Add parameter "address". Use it.
4200 (needs_get_obj_addr): New function.
4201 (needs_frame_ctx_funcs): Add get_object_address field.
4202 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4203 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4204 (resolve_dynamic_array): Likewise.
4206 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4208 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4209 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4210 fixed value for records and unions for which some GNAT encodings
4213 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4215 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4216 rewrite to avoid "else if" and "else" constructs. Should be
4217 a no-op in practice.
4219 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4221 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4224 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4227 * eval.c: Update all calls to find_overload_match.
4228 * valarith.c: Likewise.
4229 (value_user_defined_cpp_op, value_user_defined_op): New
4230 argument NOSIDE. Update all callers.
4231 * valops.c (find_overload_match): New argument NOSIDE.
4232 * value.h (find_overload_match): Update signature.
4234 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4236 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4237 'items' methods instead of 'iteritems' method on dictionaries.
4239 2014-08-15 Doug Evans <dje@google.com>
4241 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4244 2014-08-15 Doug Evans <dje@google.com>
4246 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4248 2014-08-15 Doug Evans <dje@google.com>
4250 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4252 2014-08-15 Doug Evans <dje@google.com>
4254 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4257 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4259 * dcache.h: Include target.h, to avoid compile time warnings.
4261 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4263 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4264 frame_info" partial declaration.
4265 * gdbarch.h: Regenerate.
4267 2014-08-15 Yao Qi <yao@codesourcery.com>
4269 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4270 Add parameter 'decode_for_pst_p'. Callers update.
4272 2014-08-13 Yao Qi <yao@codesourcery.com>
4275 * configure.ac: Use local variable 'pos'.
4276 * configure: Regenerated.
4278 2014-08-11 Doug Evans <dje@google.com>
4280 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4281 message, it is redundant with "Reading symbols from ..." message.
4283 2014-08-10 Doug Evans <xdje42@gmail.com>
4285 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4287 2014-08-09 Yao Qi <yao@codesourcery.com>
4290 * remote.c (remote_xfer_partial): Remove dead code.
4292 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4294 * ia64-linux-tdep.c: Include "regset.h".
4295 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4296 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4297 (ia64_linux_supply_fpregset): New function.
4298 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4299 (ia64_linux_regset_from_core_section): New function.
4300 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4303 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4305 * m68klinux-tdep.c: Include "regset.h".
4306 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4307 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4308 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4309 (m68k_linux_regset_from_core_section): New function.
4310 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4313 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4315 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4316 function. Move logic to...
4317 (tilegx_linux_regmap): ... this new register map.
4318 (tilegx_linux_regset): Refer to register map, replace supply
4319 method by regcache_supply_regset, and add collect method.
4320 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4321 TILEGX_FIRST_EASY_REGNUM.
4323 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4325 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4326 that calls regcache_supply_regset and handles the EPC register
4327 separately. Move main logic to...
4328 (score7_linux_gregmap): ... this new register map.
4329 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4330 (score7_linux_gregset): Refer to register map. Add collect method.
4331 (score7_linux_regset_from_core_section): Replace
4332 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4333 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4334 (struct regset): Delete unused forward declaraction.
4335 (struct pt_regs): Delete structure definition.
4336 (elf_gregset_t): Delete typedef.
4338 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4340 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4341 (nios2_core_regset): Add collect method.
4343 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4345 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4346 platform-independent and don't write to read-only input buffer.
4347 (m32r_linux_collect_gregset): New function.
4348 (m32r_linux_gregset): Add collect method.
4350 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4352 * hppa-linux-tdep.c (greg_map): Rename to...
4353 (hppa_linux_gregmap): ... this. Also convert to
4354 regcache_map_entry format.
4355 (hppa_linux_supply_regset): Delete function.
4356 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4357 (hppa_linux_fpregmap): ... this new register map.
4358 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4359 register map, replace supply method by regcache_supply_regset, and
4360 add collect method regcache_collect_regset.
4362 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4364 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4365 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4366 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4367 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4368 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4369 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4370 (frv_linux_supply_gregset): Replace main logic by call to
4371 regcache_supply_regset, but keep clearing gr32-gr63.
4372 (frv_linux_supply_fpregset): Delete function.
4373 (frv_linux_gregset): Refer to appropriate register map and add
4374 regcache_collect_regset as the collect method.
4375 (frv_linux_fpregset): Likewise. Also exchange the supply method
4376 by regcache_supply_regset.
4378 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4380 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4381 by call to alpha_supply_int_regs.
4382 (alpha_linux_collect_gregset): New function.
4383 (alpha_linux_supply_fpregset): Replace logic by call to
4384 alpha_supply_fp_regs.
4385 (alpha_linux_collect_fpregset): New function.
4386 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4388 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4390 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4391 by call to regcache_collect_regset.
4392 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4393 instead of aarch64_linux_supply_gregset/_fpregset.
4394 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4395 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4396 header file instead.
4397 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4398 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4399 functions. Move logic to ...
4400 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4402 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4403 refer to new register maps, replace *_regset_from_core by
4404 regcache_supply_regset, and also use regcache_collect_regset.
4405 * aarch64-linux-tdep.h: Include "regset.h".
4406 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4408 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4409 macros, moved from C source file.
4410 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4411 variable declarations.
4413 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4415 * s390-linux-nat.c: Include "regset.h".
4416 (regmap_gregset): Delete macro.
4417 (s390_64_regmap_gregset): New register map for
4418 regcache_supply/_collect_regset.
4419 (s390_64_gregset): New regset.
4420 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4421 (regmap_fpregset): Delete macro.
4422 (s390_native_supply, s390_native_collect): Delete functions.
4423 (supply_gregset, fill_gregset): Replace s390-specific regmap
4424 handling by a call to regcache_supply/_collect_regset.
4425 (supply_fpregset, fill_fpregset): Call regcache_supply/
4426 _collect_regset instead of s390_native_supply/_collect.
4427 (fetch_regset, store_regset): Likewise. Also change the last
4428 parameter to a regset instead of a regmap.
4429 (s390_linux_fetch_inferior_registers)
4430 (390_linux_store_inferior_registers): Adjust last parameter in
4431 calls to fetch_regset and store_regset.
4432 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4433 (s390_gregmap): ... this. Also make static const and convert to
4434 regcache_map_entry format.
4435 (s390x_regmap_gregset): Delete.
4436 (s390_regmap_fpregset): Rename to...
4437 (s390_fpregmap): ... this. Make static const and convert to
4438 regcache_map_entry format.
4439 (s390_regmap_upper, s390_regmap_last_break)
4440 (s390x_regmap_last_break, s390_regmap_system_call)
4441 (s390_regmap_tdb): Likewise.
4442 (s390_supply_regset, s390_collect_regset): Remove functions.
4443 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4445 (s390_gregset, s390_fpregset, s390_upper_regset)
4446 (s390_last_break_regset, s390x_last_break_regset)
4447 (s390_system_call_regset, s390_tdb_regset): Make global and
4448 replace s390_supply/_collect_regset by regcache_supply/
4450 (s390x_gregset): Delete.
4451 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4452 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4453 (s390_regmap_fpregset, s390_regmap_last_break)
4454 (s390x_regmap_last_break, s390_regmap_system_call)
4455 (s390_regmap_tdb): Delete global variable declarations.
4456 (s390_gregset, s390_fpregset, s390_last_break_regset)
4457 (s390x_last_break_regset, s390_system_call_regset)
4458 (s390_tdb_regset): New global variable declarations.
4460 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4462 * regcache.c: Include "regset.h".
4463 (regcache_transfer_regset): New local function.
4464 (regcache_supply_regset, regcache_collect_regset): New functions.
4465 * regcache.h (struct regcache_map_entry): New structure.
4466 (REGCACHE_MAP_SKIP): New enum value.
4467 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4469 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4471 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4472 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4473 (ppc_linux_collect_gregset ): Likewise.
4474 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4475 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4476 (ppc_collect_vrregset): Likewise.
4477 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4480 2014-08-07 Yao Qi <yao@codesourcery.com>
4482 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4483 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4484 * remote.c (remote_read_bytes): Likewise.
4486 2014-08-07 Yao Qi <yao@codesourcery.com>
4488 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4490 2014-08-07 Yao Qi <yao@codesourcery.com>
4493 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4494 TARGET_XFER_OK instead of 0.
4496 2014-08-07 Gary Benson <gbenson@redhat.com>
4498 * common/common-defs.h: Include errno.h.
4499 * defs.h: Do not include errno.h.
4500 * ada-typeprint.c: Likewise.
4501 * c-typeprint.c: Likewise.
4502 * core-regset.c: Likewise.
4503 * corefile.c: Likewise.
4504 * corelow.c: Likewise.
4505 * event-loop.c: Likewise.
4506 * f-typeprint.c: Likewise.
4507 * gnu-nat.c: Likewise.
4508 * go32-nat.c: Likewise.
4509 * i386gnu-nat.c: Likewise.
4510 * m2-typeprint.c: Likewise.
4511 * nat/linux-btrace.c: Likewise.
4512 * p-typeprint.c: Likewise.
4513 * procfs.c: Likewise.
4514 * remote-sim.c: Likewise.
4515 * rs6000-nat.c: Likewise.
4516 * target.c: Likewise.
4517 * typeprint.c: Likewise.
4518 * ui-file.c: Likewise.
4519 * valops.c: Likewise.
4520 * valprint.c: Likewise.
4522 2014-08-07 Gary Benson <gbenson@redhat.com>
4524 * common/common-defs.h: Include string.h.
4525 * aarch64-tdep.c: Do not include string.h.
4526 * ada-exp.y: Likewise.
4527 * ada-lang.c: Likewise.
4528 * ada-lex.l: Likewise.
4529 * ada-typeprint.c: Likewise.
4530 * ada-valprint.c: Likewise.
4531 * aix-thread.c: Likewise.
4532 * alpha-linux-tdep.c: Likewise.
4533 * alpha-mdebug-tdep.c: Likewise.
4534 * alpha-nat.c: Likewise.
4535 * alpha-osf1-tdep.c: Likewise.
4536 * alpha-tdep.c: Likewise.
4537 * alphanbsd-tdep.c: Likewise.
4538 * amd64-dicos-tdep.c: Likewise.
4539 * amd64-linux-tdep.c: Likewise.
4540 * amd64-nat.c: Likewise.
4541 * amd64-sol2-tdep.c: Likewise.
4542 * amd64fbsd-tdep.c: Likewise.
4543 * amd64obsd-tdep.c: Likewise.
4544 * arch-utils.c: Likewise.
4545 * arm-linux-nat.c: Likewise.
4546 * arm-linux-tdep.c: Likewise.
4547 * arm-tdep.c: Likewise.
4548 * arm-wince-tdep.c: Likewise.
4549 * armbsd-tdep.c: Likewise.
4550 * armnbsd-nat.c: Likewise.
4551 * armnbsd-tdep.c: Likewise.
4552 * armobsd-tdep.c: Likewise.
4553 * avr-tdep.c: Likewise.
4554 * ax-gdb.c: Likewise.
4555 * ax-general.c: Likewise.
4556 * bcache.c: Likewise.
4557 * bfin-tdep.c: Likewise.
4558 * breakpoint.c: Likewise.
4559 * build-id.c: Likewise.
4560 * buildsym.c: Likewise.
4561 * c-exp.y: Likewise.
4562 * c-lang.c: Likewise.
4563 * c-typeprint.c: Likewise.
4564 * c-valprint.c: Likewise.
4565 * charset.c: Likewise.
4566 * cli-out.c: Likewise.
4567 * cli/cli-cmds.c: Likewise.
4568 * cli/cli-decode.c: Likewise.
4569 * cli/cli-dump.c: Likewise.
4570 * cli/cli-interp.c: Likewise.
4571 * cli/cli-logging.c: Likewise.
4572 * cli/cli-script.c: Likewise.
4573 * cli/cli-setshow.c: Likewise.
4574 * cli/cli-utils.c: Likewise.
4575 * coffread.c: Likewise.
4576 * common/agent.c: Likewise.
4577 * common/buffer.c: Likewise.
4578 * common/buffer.h: Likewise.
4579 * common/common-utils.c: Likewise.
4580 * common/filestuff.c: Likewise.
4581 * common/filestuff.c: Likewise.
4582 * common/format.c: Likewise.
4583 * common/print-utils.c: Likewise.
4584 * common/rsp-low.c: Likewise.
4585 * common/signals.c: Likewise.
4586 * common/vec.h: Likewise.
4587 * common/xml-utils.c: Likewise.
4588 * core-regset.c: Likewise.
4589 * corefile.c: Likewise.
4590 * corelow.c: Likewise.
4591 * cp-abi.c: Likewise.
4592 * cp-name-parser.y: Likewise.
4593 * cp-support.c: Likewise.
4594 * cp-valprint.c: Likewise.
4595 * cris-tdep.c: Likewise.
4596 * d-exp.y: Likewise.
4597 * darwin-nat.c: Likewise.
4598 * dbxread.c: Likewise.
4599 * dcache.c: Likewise.
4600 * demangle.c: Likewise.
4601 * dicos-tdep.c: Likewise.
4602 * disasm.c: Likewise.
4603 * doublest.c: Likewise.
4604 * dsrec.c: Likewise.
4605 * dummy-frame.c: Likewise.
4606 * dwarf2-frame.c: Likewise.
4607 * dwarf2loc.c: Likewise.
4608 * dwarf2read.c: Likewise.
4609 * elfread.c: Likewise.
4610 * environ.c: Likewise.
4612 * event-loop.c: Likewise.
4613 * exceptions.c: Likewise.
4615 * expprint.c: Likewise.
4616 * f-exp.y: Likewise.
4617 * f-lang.c: Likewise.
4618 * f-typeprint.c: Likewise.
4619 * f-valprint.c: Likewise.
4620 * fbsd-nat.c: Likewise.
4621 * findcmd.c: Likewise.
4622 * findvar.c: Likewise.
4623 * fork-child.c: Likewise.
4624 * frame.c: Likewise.
4625 * frv-linux-tdep.c: Likewise.
4626 * frv-tdep.c: Likewise.
4628 * gdb_bfd.c: Likewise.
4629 * gdbarch.c: Likewise.
4630 * gdbarch.sh: Likewise.
4631 * gdbtypes.c: Likewise.
4632 * gnu-nat.c: Likewise.
4633 * gnu-v2-abi.c: Likewise.
4634 * gnu-v3-abi.c: Likewise.
4635 * go-exp.y: Likewise.
4636 * go-lang.c: Likewise.
4637 * go32-nat.c: Likewise.
4638 * guile/guile.c: Likewise.
4639 * guile/scm-auto-load.c: Likewise.
4640 * hppa-hpux-tdep.c: Likewise.
4641 * hppa-linux-nat.c: Likewise.
4642 * hppanbsd-tdep.c: Likewise.
4643 * hppaobsd-tdep.c: Likewise.
4644 * i386-cygwin-tdep.c: Likewise.
4645 * i386-dicos-tdep.c: Likewise.
4646 * i386-linux-tdep.c: Likewise.
4647 * i386-nto-tdep.c: Likewise.
4648 * i386-sol2-tdep.c: Likewise.
4649 * i386-tdep.c: Likewise.
4650 * i386bsd-tdep.c: Likewise.
4651 * i386gnu-nat.c: Likewise.
4652 * i386nbsd-tdep.c: Likewise.
4653 * i386obsd-tdep.c: Likewise.
4654 * i387-tdep.c: Likewise.
4655 * ia64-libunwind-tdep.c: Likewise.
4656 * ia64-linux-nat.c: Likewise.
4657 * inf-child.c: Likewise.
4658 * inf-ptrace.c: Likewise.
4659 * inf-ttrace.c: Likewise.
4660 * infcall.c: Likewise.
4661 * infcmd.c: Likewise.
4662 * inflow.c: Likewise.
4663 * infrun.c: Likewise.
4664 * interps.c: Likewise.
4665 * iq2000-tdep.c: Likewise.
4666 * irix5-nat.c: Likewise.
4667 * jv-exp.y: Likewise.
4668 * jv-lang.c: Likewise.
4669 * jv-typeprint.c: Likewise.
4670 * jv-valprint.c: Likewise.
4671 * language.c: Likewise.
4672 * linux-fork.c: Likewise.
4673 * linux-nat.c: Likewise.
4674 * lm32-tdep.c: Likewise.
4675 * m2-exp.y: Likewise.
4676 * m2-typeprint.c: Likewise.
4677 * m32c-tdep.c: Likewise.
4678 * m32r-linux-nat.c: Likewise.
4679 * m32r-linux-tdep.c: Likewise.
4680 * m32r-rom.c: Likewise.
4681 * m32r-tdep.c: Likewise.
4682 * m68hc11-tdep.c: Likewise.
4683 * m68k-tdep.c: Likewise.
4684 * m68kbsd-tdep.c: Likewise.
4685 * m68klinux-nat.c: Likewise.
4686 * m68klinux-tdep.c: Likewise.
4687 * m88k-tdep.c: Likewise.
4688 * machoread.c: Likewise.
4689 * macrocmd.c: Likewise.
4691 * mdebugread.c: Likewise.
4692 * mem-break.c: Likewise.
4693 * memattr.c: Likewise.
4694 * memory-map.c: Likewise.
4695 * mep-tdep.c: Likewise.
4696 * mi/mi-cmd-break.c: Likewise.
4697 * mi/mi-cmd-disas.c: Likewise.
4698 * mi/mi-cmd-env.c: Likewise.
4699 * mi/mi-cmd-stack.c: Likewise.
4700 * mi/mi-cmd-var.c: Likewise.
4701 * mi/mi-cmds.c: Likewise.
4702 * mi/mi-console.c: Likewise.
4703 * mi/mi-getopt.c: Likewise.
4704 * mi/mi-interp.c: Likewise.
4705 * mi/mi-main.c: Likewise.
4706 * mi/mi-parse.c: Likewise.
4707 * microblaze-rom.c: Likewise.
4708 * microblaze-tdep.c: Likewise.
4709 * mingw-hdep.c: Likewise.
4710 * minidebug.c: Likewise.
4711 * minsyms.c: Likewise.
4712 * mips-irix-tdep.c: Likewise.
4713 * mips-linux-tdep.c: Likewise.
4714 * mips-tdep.c: Likewise.
4715 * mips64obsd-tdep.c: Likewise.
4716 * mipsnbsd-tdep.c: Likewise.
4717 * mipsread.c: Likewise.
4718 * mn10300-linux-tdep.c: Likewise.
4719 * mn10300-tdep.c: Likewise.
4720 * monitor.c: Likewise.
4721 * moxie-tdep.c: Likewise.
4722 * mt-tdep.c: Likewise.
4723 * nat/linux-btrace.c: Likewise.
4724 * nat/linux-osdata.c: Likewise.
4725 * nat/linux-procfs.c: Likewise.
4726 * nat/linux-ptrace.c: Likewise.
4727 * nat/linux-waitpid.c: Likewise.
4728 * nbsd-tdep.c: Likewise.
4729 * nios2-linux-tdep.c: Likewise.
4730 * nto-procfs.c: Likewise.
4731 * nto-tdep.c: Likewise.
4732 * objc-lang.c: Likewise.
4733 * objfiles.c: Likewise.
4734 * opencl-lang.c: Likewise.
4735 * osabi.c: Likewise.
4736 * osdata.c: Likewise.
4737 * p-exp.y: Likewise.
4738 * p-lang.c: Likewise.
4739 * p-typeprint.c: Likewise.
4740 * parse.c: Likewise.
4741 * posix-hdep.c: Likewise.
4742 * ppc-linux-nat.c: Likewise.
4743 * ppc-sysv-tdep.c: Likewise.
4744 * ppcfbsd-tdep.c: Likewise.
4745 * ppcnbsd-tdep.c: Likewise.
4746 * ppcobsd-tdep.c: Likewise.
4747 * printcmd.c: Likewise.
4748 * procfs.c: Likewise.
4749 * prologue-value.c: Likewise.
4750 * python/py-auto-load.c: Likewise.
4751 * python/py-gdb-readline.c: Likewise.
4752 * ravenscar-thread.c: Likewise.
4753 * regcache.c: Likewise.
4754 * registry.c: Likewise.
4755 * remote-fileio.c: Likewise.
4756 * remote-m32r-sdi.c: Likewise.
4757 * remote-mips.c: Likewise.
4758 * remote-notif.c: Likewise.
4759 * remote-sim.c: Likewise.
4760 * remote.c: Likewise.
4761 * reverse.c: Likewise.
4762 * rs6000-aix-tdep.c: Likewise.
4763 * ser-base.c: Likewise.
4764 * ser-go32.c: Likewise.
4765 * ser-mingw.c: Likewise.
4766 * ser-pipe.c: Likewise.
4767 * ser-tcp.c: Likewise.
4768 * ser-unix.c: Likewise.
4769 * serial.c: Likewise.
4770 * sh-tdep.c: Likewise.
4771 * sh64-tdep.c: Likewise.
4772 * shnbsd-tdep.c: Likewise.
4774 * sol-thread.c: Likewise.
4775 * solib-dsbt.c: Likewise.
4776 * solib-frv.c: Likewise.
4777 * solib-osf.c: Likewise.
4778 * solib-som.c: Likewise.
4779 * solib-spu.c: Likewise.
4780 * solib-target.c: Likewise.
4781 * solib.c: Likewise.
4782 * somread.c: Likewise.
4783 * source.c: Likewise.
4784 * sparc-nat.c: Likewise.
4785 * sparc-sol2-tdep.c: Likewise.
4786 * sparc-tdep.c: Likewise.
4787 * sparc64-tdep.c: Likewise.
4788 * sparc64fbsd-tdep.c: Likewise.
4789 * sparc64nbsd-tdep.c: Likewise.
4790 * sparcnbsd-tdep.c: Likewise.
4791 * spu-linux-nat.c: Likewise.
4792 * spu-multiarch.c: Likewise.
4793 * spu-tdep.c: Likewise.
4794 * stabsread.c: Likewise.
4795 * stack.c: Likewise.
4796 * std-regs.c: Likewise.
4797 * symfile.c: Likewise.
4798 * symmisc.c: Likewise.
4799 * symtab.c: Likewise.
4800 * target.c: Likewise.
4801 * thread.c: Likewise.
4802 * tilegx-linux-nat.c: Likewise.
4803 * tilegx-tdep.c: Likewise.
4805 * tracepoint.c: Likewise.
4806 * tui/tui-command.c: Likewise.
4807 * tui/tui-data.c: Likewise.
4808 * tui/tui-disasm.c: Likewise.
4809 * tui/tui-file.c: Likewise.
4810 * tui/tui-layout.c: Likewise.
4811 * tui/tui-out.c: Likewise.
4812 * tui/tui-regs.c: Likewise.
4813 * tui/tui-source.c: Likewise.
4814 * tui/tui-stack.c: Likewise.
4815 * tui/tui-win.c: Likewise.
4816 * tui/tui-windata.c: Likewise.
4817 * tui/tui-winsource.c: Likewise.
4818 * typeprint.c: Likewise.
4819 * ui-file.c: Likewise.
4820 * ui-out.c: Likewise.
4821 * user-regs.c: Likewise.
4822 * utils.c: Likewise.
4823 * v850-tdep.c: Likewise.
4824 * valarith.c: Likewise.
4825 * valops.c: Likewise.
4826 * valprint.c: Likewise.
4827 * value.c: Likewise.
4828 * varobj.c: Likewise.
4829 * vax-tdep.c: Likewise.
4830 * vaxnbsd-tdep.c: Likewise.
4831 * vaxobsd-tdep.c: Likewise.
4832 * windows-nat.c: Likewise.
4833 * xcoffread.c: Likewise.
4834 * xml-support.c: Likewise.
4835 * xstormy16-tdep.c: Likewise.
4836 * xtensa-linux-nat.c: Likewise.
4838 2014-08-07 Gary Benson <gbenson@redhat.com>
4840 * common/common-defs.h: Include gdb_assert.h.
4841 * aarch64-tdep.c: Do not include gdb_assert.h.
4842 * addrmap.c: Likewise.
4843 * aix-thread.c: Likewise.
4844 * alpha-linux-tdep.c: Likewise.
4845 * alpha-mdebug-tdep.c: Likewise.
4846 * alphanbsd-tdep.c: Likewise.
4847 * amd64-nat.c: Likewise.
4848 * amd64-tdep.c: Likewise.
4849 * amd64bsd-nat.c: Likewise.
4850 * amd64fbsd-nat.c: Likewise.
4851 * amd64fbsd-tdep.c: Likewise.
4852 * amd64nbsd-nat.c: Likewise.
4853 * amd64nbsd-tdep.c: Likewise.
4854 * amd64obsd-nat.c: Likewise.
4855 * amd64obsd-tdep.c: Likewise.
4856 * arch-utils.c: Likewise.
4857 * arm-tdep.c: Likewise.
4858 * armbsd-tdep.c: Likewise.
4860 * bcache.c: Likewise.
4861 * bfin-tdep.c: Likewise.
4862 * blockframe.c: Likewise.
4863 * breakpoint.c: Likewise.
4864 * bsd-kvm.c: Likewise.
4865 * bsd-uthread.c: Likewise.
4866 * buildsym.c: Likewise.
4867 * c-exp.y: Likewise.
4868 * c-lang.c: Likewise.
4869 * charset.c: Likewise.
4870 * cleanups.c: Likewise.
4871 * cli-out.c: Likewise.
4872 * cli/cli-decode.c: Likewise.
4873 * cli/cli-dump.c: Likewise.
4874 * cli/cli-logging.c: Likewise.
4875 * cli/cli-script.c: Likewise.
4876 * cli/cli-utils.c: Likewise.
4877 * coffread.c: Likewise.
4878 * common/common-utils.c: Likewise.
4879 * common/queue.h: Likewise.
4880 * common/signals.c: Likewise.
4881 * common/vec.h: Likewise.
4882 * complaints.c: Likewise.
4883 * completer.c: Likewise.
4884 * corelow.c: Likewise.
4885 * cp-abi.c: Likewise.
4886 * cp-name-parser.y: Likewise.
4887 * cp-namespace.c: Likewise.
4888 * cp-support.c: Likewise.
4889 * cris-tdep.c: Likewise.
4890 * dbxread.c: Likewise.
4891 * dictionary.c: Likewise.
4892 * doublest.c: Likewise.
4893 * dsrec.c: Likewise.
4894 * dummy-frame.c: Likewise.
4895 * dwarf2-frame-tailcall.c: Likewise.
4896 * dwarf2-frame.c: Likewise.
4897 * dwarf2expr.c: Likewise.
4898 * dwarf2loc.c: Likewise.
4899 * dwarf2read.c: Likewise.
4901 * event-loop.c: Likewise.
4902 * exceptions.c: Likewise.
4903 * expprint.c: Likewise.
4904 * f-valprint.c: Likewise.
4905 * fbsd-nat.c: Likewise.
4906 * findvar.c: Likewise.
4907 * frame-unwind.c: Likewise.
4908 * frame.c: Likewise.
4909 * frv-tdep.c: Likewise.
4910 * gcore.c: Likewise.
4911 * gdb-dlfcn.c: Likewise.
4912 * gdb_bfd.c: Likewise.
4913 * gdbarch.c: Likewise.
4914 * gdbarch.sh: Likewise.
4915 * gdbtypes.c: Likewise.
4916 * gnu-nat.c: Likewise.
4917 * gnu-v3-abi.c: Likewise.
4918 * go-lang.c: Likewise.
4919 * guile/scm-exception.c: Likewise.
4920 * guile/scm-gsmob.c: Likewise.
4921 * guile/scm-lazy-string.c: Likewise.
4922 * guile/scm-math.c: Likewise.
4923 * guile/scm-pretty-print.c: Likewise.
4924 * guile/scm-safe-call.c: Likewise.
4925 * guile/scm-utils.c: Likewise.
4926 * guile/scm-value.c: Likewise.
4927 * h8300-tdep.c: Likewise.
4928 * hppa-hpux-nat.c: Likewise.
4929 * hppa-tdep.c: Likewise.
4930 * hppanbsd-tdep.c: Likewise.
4931 * hppaobsd-tdep.c: Likewise.
4932 * i386-darwin-nat.c: Likewise.
4933 * i386-darwin-tdep.c: Likewise.
4934 * i386-nto-tdep.c: Likewise.
4935 * i386-tdep.c: Likewise.
4936 * i386bsd-nat.c: Likewise.
4937 * i386fbsd-tdep.c: Likewise.
4938 * i386gnu-nat.c: Likewise.
4939 * i386nbsd-tdep.c: Likewise.
4940 * i386obsd-tdep.c: Likewise.
4941 * i387-tdep.c: Likewise.
4942 * ia64-libunwind-tdep.c: Likewise.
4943 * ia64-tdep.c: Likewise.
4944 * inf-ptrace.c: Likewise.
4945 * inf-ttrace.c: Likewise.
4946 * infcall.c: Likewise.
4947 * infcmd.c: Likewise.
4948 * infrun.c: Likewise.
4949 * inline-frame.c: Likewise.
4950 * interps.c: Likewise.
4951 * jv-lang.c: Likewise.
4952 * jv-typeprint.c: Likewise.
4953 * linux-fork.c: Likewise.
4954 * linux-nat.c: Likewise.
4955 * linux-thread-db.c: Likewise.
4956 * m32c-tdep.c: Likewise.
4957 * m32r-linux-nat.c: Likewise.
4958 * m32r-tdep.c: Likewise.
4959 * m68k-tdep.c: Likewise.
4960 * m68kbsd-nat.c: Likewise.
4961 * m68kbsd-tdep.c: Likewise.
4962 * m88k-tdep.c: Likewise.
4963 * machoread.c: Likewise.
4964 * macroexp.c: Likewise.
4965 * macrotab.c: Likewise.
4966 * maint.c: Likewise.
4967 * mdebugread.c: Likewise.
4968 * memory-map.c: Likewise.
4969 * mep-tdep.c: Likewise.
4970 * mi/mi-common.c: Likewise.
4971 * microblaze-tdep.c: Likewise.
4972 * mingw-hdep.c: Likewise.
4973 * mips-linux-nat.c: Likewise.
4974 * mips-linux-tdep.c: Likewise.
4975 * mips-tdep.c: Likewise.
4976 * mips64obsd-tdep.c: Likewise.
4977 * mipsnbsd-tdep.c: Likewise.
4978 * mn10300-linux-tdep.c: Likewise.
4979 * mn10300-tdep.c: Likewise.
4980 * moxie-tdep.c: Likewise.
4981 * mt-tdep.c: Likewise.
4982 * nat/linux-btrace.c: Likewise.
4983 * nat/linux-osdata.c: Likewise.
4984 * nat/linux-ptrace.c: Likewise.
4985 * nat/mips-linux-watch.c: Likewise.
4986 * nios2-linux-tdep.c: Likewise.
4987 * nios2-tdep.c: Likewise.
4988 * objc-lang.c: Likewise.
4989 * objfiles.c: Likewise.
4990 * obsd-nat.c: Likewise.
4991 * opencl-lang.c: Likewise.
4992 * osabi.c: Likewise.
4993 * parse.c: Likewise.
4994 * ppc-linux-nat.c: Likewise.
4995 * ppc-sysv-tdep.c: Likewise.
4996 * ppcfbsd-nat.c: Likewise.
4997 * ppcfbsd-tdep.c: Likewise.
4998 * ppcnbsd-nat.c: Likewise.
4999 * ppcnbsd-tdep.c: Likewise.
5000 * ppcobsd-nat.c: Likewise.
5001 * ppcobsd-tdep.c: Likewise.
5002 * printcmd.c: Likewise.
5003 * procfs.c: Likewise.
5004 * prologue-value.c: Likewise.
5005 * psymtab.c: Likewise.
5006 * python/py-lazy-string.c: Likewise.
5007 * python/py-value.c: Likewise.
5008 * regcache.c: Likewise.
5009 * reggroups.c: Likewise.
5010 * registry.c: Likewise.
5011 * remote-sim.c: Likewise.
5012 * remote.c: Likewise.
5013 * rs6000-aix-tdep.c: Likewise.
5014 * rs6000-tdep.c: Likewise.
5015 * s390-linux-tdep.c: Likewise.
5016 * score-tdep.c: Likewise.
5017 * ser-base.c: Likewise.
5018 * ser-mingw.c: Likewise.
5019 * sh-tdep.c: Likewise.
5020 * sh64-tdep.c: Likewise.
5021 * solib-darwin.c: Likewise.
5022 * solib-spu.c: Likewise.
5023 * solib-svr4.c: Likewise.
5024 * source.c: Likewise.
5025 * sparc-nat.c: Likewise.
5026 * sparc-sol2-tdep.c: Likewise.
5027 * sparc-tdep.c: Likewise.
5028 * sparc64-sol2-tdep.c: Likewise.
5029 * sparc64-tdep.c: Likewise.
5030 * sparc64fbsd-tdep.c: Likewise.
5031 * sparc64nbsd-tdep.c: Likewise.
5032 * sparc64obsd-tdep.c: Likewise.
5033 * sparcnbsd-tdep.c: Likewise.
5034 * sparcobsd-tdep.c: Likewise.
5035 * spu-multiarch.c: Likewise.
5036 * spu-tdep.c: Likewise.
5037 * stabsread.c: Likewise.
5038 * stack.c: Likewise.
5039 * symfile.c: Likewise.
5040 * symtab.c: Likewise.
5041 * target-descriptions.c: Likewise.
5042 * target-memory.c: Likewise.
5043 * target.c: Likewise.
5044 * tic6x-linux-tdep.c: Likewise.
5045 * tic6x-tdep.c: Likewise.
5046 * tilegx-linux-nat.c: Likewise.
5047 * tilegx-tdep.c: Likewise.
5049 * tramp-frame.c: Likewise.
5050 * tui/tui-out.c: Likewise.
5051 * tui/tui-winsource.c: Likewise.
5052 * ui-out.c: Likewise.
5053 * user-regs.c: Likewise.
5054 * utils.c: Likewise.
5055 * v850-tdep.c: Likewise.
5056 * valops.c: Likewise.
5057 * value.c: Likewise.
5058 * varobj.c: Likewise.
5059 * vax-nat.c: Likewise.
5060 * xml-syscall.c: Likewise.
5061 * xml-tdesc.c: Likewise.
5062 * xstormy16-tdep.c: Likewise.
5063 * xtensa-linux-nat.c: Likewise.
5064 * xtensa-tdep.c: Likewise.
5066 2014-08-07 Gary Benson <gbenson@redhat.com>
5068 * common/common-defs.h: Include common-utils.h.
5069 * defs.h: Do not include common-utils.h.
5070 * common/gdb_assert.h: Likewise.
5071 * darwin-nat.h: Likewise.
5072 * nat/linux-btrace.c: Likewise.
5073 * target/waitstatus.h: Likewise.
5075 2014-08-07 Gary Benson <gbenson@redhat.com>
5077 * common/common-defs.h: Include ptid.h.
5078 * defs.h: Do not include ptid.h.
5079 * inferior.h: Likewise.
5080 * infrun.h: Likewise.
5081 * nat/linux-btrace.h: Likewise.
5082 * nat/linux-osdata.h: Likewise.
5083 * target/waitstatus.h: Likewise.
5085 2014-08-07 Gary Benson <gbenson@redhat.com>
5087 * common/common-defs.h: Include gdb_locale.h.
5088 * defs.h: Do not include gdb_locale.h.
5090 2014-08-07 Gary Benson <gbenson@redhat.com>
5092 * common/common-defs.h: Include gdb/signals.h.
5093 * defs.h: Do not include gdb/signals.h.
5095 2014-08-07 Gary Benson <gbenson@redhat.com>
5097 * common/common-defs.h: Include pathmax.h.
5098 * defs.h: Do not include pathmax.h.
5100 2014-08-07 Gary Benson <gbenson@redhat.com>
5102 * common/common-defs.h: Include libiberty.h.
5103 * defs.h: Do not include libiberty.h.
5104 * common/queue.h: Likewise.
5105 * cp-name-parser.y: Likewise.
5106 * mi/mi-cmd-catch.c: Likewise.
5107 * python/python.c: Likewise.
5109 2014-08-07 Gary Benson <gbenson@redhat.com>
5111 * common/common-defs.h: Include ansidecl.h.
5112 * defs.h: Do not include ansidecl.h.
5113 * common/buffer.h: Likewise.
5114 * common/common-utils.h: Likewise.
5116 2014-08-07 Gary Benson <gbenson@redhat.com>
5118 * common/common-defs.h: Include stddef.h.
5119 * defs.h: Do not include stddef.h.
5120 * common/common-utils.h: Likewise.
5121 * amd64fbsd-nat.c: Likewise.
5122 * bcache.c: Likewise.
5123 * charset.c: Likewise.
5124 * common/buffer.h: Likewise.
5125 * common/vec.h: Likewise.
5126 * i386bsd-nat.c: Likewise.
5127 * nat/linux-btrace.h: Likewise.
5128 * ppcfbsd-nat.c: Likewise.
5129 * ppcnbsd-tdep.h: Likewise.
5130 * ppcobsd-nat.c: Likewise.
5131 * ppcobsd-tdep.h: Likewise.
5132 * python/py-gdb-readline.c: Likewise.
5134 2014-08-07 Gary Benson <gbenson@redhat.com>
5136 * common/common-defs.h: Include stdarg.h.
5137 * defs.h: Do not include stdarg.h.
5138 * ada-lang.c: Likewise.
5139 * common/common-utils.h: Likewise.
5140 * guile/scm-string.c: Likewise.
5141 * guile/scm-utils.c: Likewise.
5142 * m32c-tdep.c: Likewise.
5144 2014-08-07 Gary Benson <gbenson@redhat.com>
5146 * common/common-defs.h: Include stdlib.h.
5147 * defs.h: Do not include stdlib.h.
5148 * addrmap.c: Likewise.
5149 * bcache.c: Likewise.
5150 * common/buffer.c: Likewise.
5151 * common/common-utils.c: Likewise.
5152 * cp-name-parser.y: Likewise.
5153 * go32-nat.c: Likewise.
5154 * mn10300-linux-tdep.c: Likewise.
5155 * nat/linux-osdata.c: Likewise.
5156 * tui/tui.c: Likewise.
5157 * windows-nat.c: Likewise.
5159 2014-08-07 Gary Benson <gbenson@redhat.com>
5161 * common/common-defs.h: Include stdio.h.
5162 * defs.h: Do not include stdio.h.
5163 * ada-lang.c: Likewise.
5164 * common/buffer.c: Likewise.
5165 * common/common-utils.c: Likewise.
5166 * cp-name-parser.y: Likewise.
5167 * gnu-nat.c: Likewise.
5168 * go32-nat.c: Likewise.
5169 * i386gnu-nat.c: Likewise.
5170 * proc-api.c: Likewise.
5171 * proc-events.c: Likewise.
5172 * proc-flags.c: Likewise.
5173 * proc-why.c: Likewise.
5174 * python/python-internal.h: Likewise.
5175 * target-memory.c: Likewise.
5176 * tui/tui-io.c: Likewise.
5177 * tui/tui.c: Likewise.
5179 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5181 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5182 (scan_dyntag_auxv): Same.
5184 2014-08-06 Yao Qi <yao@codesourcery.com>
5186 * amd64-linux-nat.c: Remove duplicated include
5188 * i386-linux-nat.c: Likewise.
5190 2014-08-06 Yao Qi <yao@codesourcery.com>
5192 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5193 operand" with "Special opcode" in comments.
5195 2014-08-05 Gary Benson <gbenson@redhat.com>
5197 * interps.c (initialize_interps): Remove prototype.
5198 (interpreter_initialized): Remove static global.
5199 (interp_add): Do not call initialize_interps.
5200 (initialize_interps): Remove function.
5202 2014-08-05 Gary Benson <gbenson@redhat.com>
5204 * utils.c (vwarning): Remove spurious va_end.
5206 2014-08-05 Alan Modra <amodra@gmail.com>
5208 * charset.c (convert_between_encodings): Cast result of obstack_base.
5209 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5210 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5211 (read_unwind_info): Use size_t for some locals.
5212 * jit.c (finalize_symtab): Likewise.
5213 * utils.c (hashtab_obstack_allocate): Likewise.
5214 * symmisc.c (print_objfile_statistics): Update format strings.
5216 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5218 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5219 (Changes in GDB 7.8): ... here.
5221 2014-08-04 Tom Tromey <tromey@redhat.com>
5223 * target.c (set_targetdebug): New function.
5224 (initialize_targets): Pass set_targetdebug when creating "set
5227 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5229 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5230 if detecting a variable-sized field that is not the last field.
5231 Fix struct type length computation.
5233 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5235 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5238 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5240 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5241 Remove "+ 8" offset in computation of CHAIN_VMA.
5243 2014-07-31 Doug Evans <dje@google.com>
5245 * inflow.c (child_terminal_inferior): Add comment.
5246 (child_terminal_ours_for_output): Add comment.
5247 (child_terminal_ours): Add comment.
5248 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5249 (linux_nat_terminal_ours): Add comment.
5251 2014-07-31 Gary Benson <gbenson@redhat.com>
5253 * common/btrace-common.h: Do not include defs.h or server.h.
5254 * nat/mips-linux-watch.h: Likewise.
5255 * gdb-dlfcn.h: Do not include defs.h.
5256 * tracefile.h: Likewise.
5258 2014-07-30 Roland McGrath <mcgrathr@google.com>
5260 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5262 2014-07-30 Tom Tromey <tromey@redhat.com>
5264 * bsd-kvm.c (bsd_kvm_open): Constify.
5265 * corelow.c (core_open): Constify.
5266 * ctf.c (ctf_open): Constify.
5267 * dbug-rom.c (dbug_open): Constify.
5268 * exec.c (exec_open): Constify.
5269 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5270 * microblaze-rom.c (picobug_open): Constify.
5271 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5273 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5274 * record-btrace.c (record_btrace_open): Constify.
5275 * record-full.c (record_full_core_open_1, record_full_open_1)
5276 (record_full_open): Constify.
5277 * remote-m32r-sdi.c (m32r_open): Constify.
5278 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5279 (rockhopper_open, lsi_open): Constify.
5280 * remote-sim.c (gdbsim_open): Constify.
5281 * remote.c (remote_open, extended_remote_open, remote_open_1):
5283 * target.h (struct target_ops) <to_open>: Make "arg" const.
5284 * tracefile-tfile.c (tfile_open): Constify.
5286 2014-07-30 Tom Tromey <tromey@redhat.com>
5288 * breakpoint.c (map_breakpoint_numbers): Update.
5289 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5290 (get_number_const): New function.
5291 (get_number): Rewrite using get_number_const.
5292 (init_number_or_range): Make "string" const.
5293 (number_is_in_list): Make "list" const.
5294 * cli/cli-utils.h (get_number_const): Declare.
5295 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5296 (init_number_or_range, number_is_in_list): Update.
5297 * printcmd.c (map_display_numbers): Update.
5298 * value.c (value_from_history_ref): Constify.
5299 * value.h (value_from_history_ref): Update.
5301 2014-07-30 Tom Tromey <tromey@redhat.com>
5303 * corefile.c (hook_type, call_extra_exec_file_hooks)
5304 (specify_exec_file_hook): Constify.
5305 * exec.c (exec_file_attach): Make "filename" const.
5306 * gdbcore.h (deprecated_exec_file_display_hook)
5307 (specify_exec_file_hook, exec_file_attach): Constify.
5308 * main.c (captured_main): Use catch_command_errors_const.
5310 2014-07-30 Tom Tromey <tromey@redhat.com>
5312 * target.c (open_target): New function.
5313 (add_target_with_completer, add_deprecated_target_alias): Use
5314 set_cmd_sfunc, set_cmd_context.
5315 (debug_to_open): Remove.
5316 (setup_target_debug): Update.
5318 2014-07-30 Yao Qi <yao@codesourcery.com>
5320 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5322 * parse.c (exp_iterate): Update comments.
5324 2014-07-30 Gary Benson <gbenson@redhat.com>
5326 * common/common-defs.h: New file.
5327 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5328 * defs.h: Include common-defs.h.
5329 Do not include config.h or build-gnulib/config.h.
5331 2014-07-30 Gary Benson <gbenson@redhat.com>
5333 * common/common-utils.h: Do not include config.h.
5334 * nat/linux-btrace.h: Likewise.
5336 2014-07-30 Gary Benson <gbenson@redhat.com>
5338 * btrace.c: Include defs.h.
5339 * common/ptid.c: Include defs.h or server.h as appropriate.
5340 * nat/mips-linux-watch.c: Likewise.
5342 2014-07-29 Tom Tromey <tromey@redhat.com>
5344 * target.c (target_is_pushed): Simplify.
5346 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5350 2014-07-29 Yao Qi <yao@codesourcery.com>
5353 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5355 2014-07-28 Doug Evans <xdje42@gmail.com>
5358 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5359 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5362 2014-07-28 Will Newton <will.newton@linaro.org>
5364 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5365 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5366 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5367 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5368 (THUMB2_EABI_SYSCALL): Likewise.
5369 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5371 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5372 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5374 2014-07-27 Doug Evans <xdje42@gmail.com>
5376 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5378 2014-07-27 Doug Evans <xdje42@gmail.com>
5380 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5382 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5383 Doug Evans <xdje42@gmail.com>
5386 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5387 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5388 * configure.ac: Try to use guild to compile an scm file, if it fails
5389 then disable guile support.
5390 * configure: Regenerate.
5391 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5393 (GUILE_COMPILED_FILES): New variable.
5394 (GUILE_FILES) Update.
5395 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5396 (stamp-guile): Compile scm files.
5397 * guile/guile.c (boot_guile_support): New function.
5398 (standard_throw_args_p): New function.
5399 (print_standard_throw_error, print_throw_error): New functions.
5400 (handle_boot_error): New function.
5401 (initialize_scheme_side): Rewrite to call boot_guile_support.
5402 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5403 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5405 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5406 Doug Evans <xdje42@gmail.com>
5409 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5410 * guile/lib/gdb/support.scm: New file.
5411 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5412 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5414 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5416 (%assert-type): Ditto, and renamed to assert-type.
5417 (%exception-print-style): Delete.
5419 2014-07-26 Doug Evans <xdje42@gmail.com>
5422 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5423 * configure: Regenerate.
5424 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5426 (PYTHON_FILES): New variable.
5427 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5428 (GUILE_FILES): New variable.
5429 (stamp-python, install-python, uninstall-python): Handle empty
5431 (stamp-guile, install-guile, uninstall-guile): Ditto.
5433 2014-07-26 Doug Evans <xdje42@gmail.com>
5436 * guile/lib/gdb.scm (pretty-printers): Export.
5437 (set-pretty-printers!): Export.
5438 * guile/lib/gdb/printing.scm (gdb module): Update.
5439 (prepend-pretty-printer!, append-pretty-printer!): Update.
5440 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5441 (pretty_printer_list_var): Delete.
5442 (pretty_printer_list): New static global.
5443 (gdbscm_pretty_printers): New function.
5444 (gdbscm_set_pretty_printers_x): New function.
5445 (ppscm_find_pretty_printer_from_gdb): Update.
5446 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5447 (gdbscm_initialize_pretty_printers): Update.
5449 2014-07-26 Doug Evans <xdje42@gmail.com>
5452 * configure.ac: Add check for header gc/gc.h.
5453 Add check for function setenv.
5454 * configure: Regenerate.
5455 * config.in: Regenerate.
5456 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5458 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5460 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5461 variation in gdbarch matching.
5463 2014-07-25 Tom Tromey <tromey@redhat.com>
5465 * exec.c (using_exec_ops): Remove.
5466 (exec_close_1): Update. Remove extraneous block, reindent.
5467 (add_target_sections): Use target_is_pushed.
5469 2014-07-25 Pedro Alves <palves@redhat.com>
5471 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5472 * monitor.c (monitor_create_inferior): Likewise.
5473 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5474 * remote-sim.c (gdbsim_create_inferior): Likewise.
5475 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5476 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5477 * windows-nat.c (do_initial_windows_stuff): Likewise.
5479 2014-07-25 Pedro Alves <palves@redhat.com>
5481 * NEWS: Mention signal passing and "signal" command changes.
5482 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5484 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5486 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5487 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5488 (jump_command): Adjust clear_proceed_status call.
5489 (signal_command): Warn if other thread that are resumed have
5490 signals that will be delivered. Adjust clear_proceed_status call.
5491 (until_next_command, finish_command)
5492 (proceed_after_attach_callback, attach_command_post_wait)
5493 (attach_command): Adjust clear_proceed_status call.
5494 * infrun.c (proceed_after_vfork_done): Likewise.
5495 (proceed_after_attach_callback): Adjust comment.
5496 (clear_proceed_status_thread): Clear stop_signal if not in pass
5498 (clear_proceed_status_callback): Delete.
5499 (clear_proceed_status): New 'step' parameter. Only clear the
5500 proceed status of threads the command being prepared is about to
5502 (proceed): If passed in an explicit signal, override stop_signal
5503 with it. Don't pass the last stop signal to the thread we're
5505 (init_wait_for_inferior): Adjust clear_proceed_status call.
5506 (switch_back_to_stepped_thread): Clear the signal if it should not
5508 * infrun.h (clear_proceed_status): New 'step' parameter.
5509 (user_visible_resume_ptid): Add comment.
5510 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5511 signal is in pass state.
5512 * remote.c (append_pending_thread_resumptions): Likewise.
5513 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5515 2014-07-25 Tom Tromey <tromey@redhat.com>
5517 * target.h (target_stopped_data_address)
5518 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5521 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5523 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5525 (avr_pointer_to_address): Likewise.
5527 2014-07-24 Tom Tromey <tromey@redhat.com>
5529 * monitor.c (compile_pattern): Update.
5530 * target.h (struct target_ops) <to_shortname, to_longname,
5533 2014-07-24 Tom Tromey <tromey@redhat.com>
5535 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5536 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5537 (add_info_alias, add_com): Make "doc" const.
5538 (print_doc_line): Make "str" const.
5539 (delete_cmd): Update.
5540 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5541 (print_doc_line): Update.
5542 * cli/cli-script.c (document_command): Update.
5543 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5544 (add_com, add_info, add_info_alias): Update.
5545 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5546 * python/py-cmd.c (cmdpy_destroyer): Update.
5548 2014-07-24 Tom Tromey <tromey@redhat.com>
5550 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5551 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5552 (help_cmd_list): Constify.
5553 (lookup_cmd): Update.
5554 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5556 (help_cmd_list, apropos_cmd): Update.
5557 * cli/cli-script.c (show_user): Update.
5558 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5559 * cli/cli-setshow.h (cmd_show_list): Update.
5560 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5561 (cmd_show_list): Update.
5562 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5563 * python/py-cmd.c (cmdpy_destroyer): Update.
5565 2014-07-24 Tom Tromey <tromey@redhat.com>
5567 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5568 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5570 * command.h (deprecate_cmd): Update.
5571 * maint.c (maintenance_do_deprecate): Add casts.
5573 2014-07-24 Tom Tromey <tromey@redhat.com>
5575 * cli/cli-decode.c (help_cmd): Make parameter "const".
5576 * cli/cli-decode.h (help_cmd): Update.
5578 2014-07-24 Tom Tromey <tromey@redhat.com>
5580 * stack.c (up_silently_base, down_silently_base): Make argument
5583 2014-07-24 Tom Tromey <tromey@redhat.com>
5585 * solib.c (solib_add): Make "pattern" const.
5586 * solib.h (solib_add): Update.
5588 2014-07-24 Tom Tromey <tromey@redhat.com>
5590 * remote.c (remote_serial_open, print_packet, putpkt)
5591 (putpkt_binary): Constify.
5592 * remote.h (putpkt): Update.
5594 2014-07-24 Tom Tromey <tromey@redhat.com>
5596 * monitor.c (monitor_open): Make "args" const.
5597 * monitor.h (monitor_open): Update.
5599 2014-07-24 Tom Tromey <tromey@redhat.com>
5601 * maint.c (match_bfd_flags): Make "string" const.
5602 (print_bfd_section_info): Remove casts.
5603 (print_objfile_section_info): Make "string" const.
5605 2014-07-24 Tom Tromey <tromey@redhat.com>
5607 * inf-child.c (inf_child_open_target): Make "arg" const.
5608 * inf-child.h (inf_child_open_target): Update.
5610 2014-07-24 Tom Tromey <tromey@redhat.com>
5612 * environ.c (unset_in_environ): Make "var" const.
5613 * environ.h (unset_in_environ): Update.
5615 2014-07-24 Tom Tromey <tromey@redhat.com>
5617 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5619 (scan_filename_with_cleanup): Likewise.
5620 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5621 Make arguments const.
5622 (restore_command): Update.
5624 2014-07-24 Pedro Alves <palves@redhat.com>
5626 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5628 2014-07-24 Tom Tromey <tromey@redhat.com>
5629 Gary Benson <gbenson@redhat.com>
5631 * nat/linux-ptrace.c (additional_flags): New global.
5632 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5633 additional_flags; don't check GDBSERVER.
5634 (linux_ptrace_set_additional_flags): New function.
5635 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5637 * linux-nat.c (_initialize_linux_nat): Call
5638 linux_ptrace_set_additional_flags.
5640 2014-07-24 Tom Tromey <tromey@redhat.com>
5642 * make-target-delegates (munge_type, write_debugmethod): New
5644 (debug_names): New global.
5645 ($TARGET_DEBUG_PRINTER): New global.
5646 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5648 Write debug methods. Generate init_debug_target.
5649 * target-debug.h: New file.
5650 * target-delegates.c: Rebuild.
5651 * target.c: Include target-debug.h.
5652 (debug_target): Hoist definition.
5653 (target_kill, target_get_section_table, target_memory_map)
5654 (target_flash_erase, target_flash_done, target_detach)
5655 (target_disconnect, target_wait, target_resume)
5656 (target_pass_signals, target_program_signals, target_follow_fork)
5657 (target_mourn_inferior, target_search_memory)
5658 (target_thread_address_space, target_close)
5659 (target_find_new_threads, target_core_of_thread)
5660 (target_verify_memory, target_insert_mask_watchpoint)
5661 (target_remove_mask_watchpoint): Remove targetdebug code.
5662 (debug_to_post_attach, debug_to_prepare_to_store)
5663 (debug_to_files_info, debug_to_insert_breakpoint)
5664 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5665 (debug_to_region_ok_for_hw_watchpoint)
5666 (debug_to_can_accel_watchpoint_condition)
5667 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5668 (debug_to_watchpoint_addr_within_range)
5669 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5670 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5671 (debug_to_terminal_init, debug_to_terminal_inferior)
5672 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5673 (debug_to_terminal_save_ours, debug_to_terminal_info)
5674 (debug_to_load, debug_to_post_startup_inferior)
5675 (debug_to_insert_fork_catchpoint)
5676 (debug_to_remove_fork_catchpoint)
5677 (debug_to_insert_vfork_catchpoint)
5678 (debug_to_remove_vfork_catchpoint)
5679 (debug_to_insert_exec_catchpoint)
5680 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5681 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5682 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5683 (setup_target_debug): Call init_debug_target.
5684 * target.h (TARGET_DEBUG_PRINTER): New macro.
5685 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5686 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5688 2014-07-24 Gary Benson <gbenson@redhat.com>
5690 * exceptions.h (throw_vfatal): Renamed to...
5691 (throw_vquit): New declaration.
5692 (throw_quit): Likewise.
5693 * exceptions.c (throw_vfatal): Renamed to...
5694 (throw_vquit): New function.
5695 (throw_quit): Likewise.
5696 (throw_error): Call throw_verror rather than throw_it.
5697 * utils.h (vfatal): Removed.
5699 * utils.c (vfatal): Removed.
5701 (internal_verror): Replaced call to fatal with call to throw_quit.
5702 (quit): Replaced calls to fatal with calls to throw_quit.
5704 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5706 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5709 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5711 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5712 less than zero in conditional expression.
5714 2014-07-23 Tom Tromey <tromey@redhat.com>
5716 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5717 ($INTRO_PART): Don't match whitespace.
5718 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5720 ($METHOD): Add $METHOD_TRAILER.
5722 (scan_target_h): New sub.
5723 Change main loop not to collect state.
5724 * target-delegates.c: Rebuild.
5726 2014-07-23 Gary Benson <gbenson@redhat.com>
5728 * cp-support.c (gdb_demangle): Fix build on systems without
5731 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5733 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5734 for reference entry value target data value.
5736 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5738 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5739 value_available_contents_eq.
5741 2014-07-22 Pedro Alves <palves@redhat.com>
5743 * value.c (allocate_optimized_out_value): Don't mark value as
5746 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5748 * MAINTAINERS (Write After Approval): Update my email address.
5750 2014-07-20 Doug Evans <dje@google.com>
5753 * remote.c (putpkt_binary): Add text to error message.
5755 2014-07-20 Yao Qi <yao@codesourcery.com>
5757 * eval.c: Remove "Chill" from comments.
5758 * gdbtypes.h: Likewise.
5759 * symtab.h: Likewise.
5761 2014-07-20 Yao Qi <yao@codesourcery.com>
5763 * std-operator.def: Update comments to TERNOP_SLICE.
5765 2014-07-20 Yao Qi <yao@codesourcery.com>
5767 * std-operator.def: Remove BINOP_RANGE.
5768 * breakpoint.c (watchpoint_exp_is_const): Update.
5769 * expprint.c (dump_subexp_body_standard): Likewise.
5770 * eval.c (init_array_element): Remove dead code.
5771 (evaluate_subexp_standard): Likewise.
5773 2014-07-20 Yao Qi <yao@codesourcery.com>
5775 * std-operator.def: Remove BINOP_IN.
5776 * breakpoint.c (watchpoint_exp_is_const): Update.
5777 * eval.c (evaluate_subexp_standard): Likewise.
5778 * expprint.c (dump_subexp_body_standard): Likewise.
5780 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5782 * microblaze-tdep.c (microblaze_register_names): Add
5783 the rshr and rslr register names.
5784 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5785 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5786 Use of tdesc_numbered_register. Use of
5787 microblaze_register_g_packet_guesses. Use of
5788 tdesc_use_registers. Use of set_gdbarch_register_type.
5789 (microblaze_register_g_packet_guesses): New.
5790 * microblaze-tdep.h (microblaze_reg_num): Add
5791 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5792 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5793 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5794 * features/microblaze-core.xml: New file.
5795 * features/microblaze-stack-protect.xml: New file.
5796 * features/microblaze-with-stack-protect.c: New file.
5797 * features/microblaze-with-stack-protect.xml: New file.
5798 * features/microblaze.xml: New file.
5799 * features/microblaze.c: New file.
5800 * features/Makefile (microblaze-with-stack-protect): Add
5801 microblaze-with-stack-protect microblaze and microblaze-expedite.
5802 * regformats/microblaze-with-stack-protect.dat: New file.
5803 * regformats/microblaze.dat: New file.
5804 * doc/gdb.texinfo (MicroBlaze Features): Added.
5806 2014-07-18 Tom Tromey <tromey@redhat.com>
5808 * exec.c (exec_ops): Now static.
5809 * exec.h (exec_ops): Don't declare.
5811 2014-07-18 Tom Tromey <tromey@redhat.com>
5813 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5814 to find_target_beneath.
5815 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5816 find_target_beneath.
5817 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5819 2014-07-18 Tom Tromey <tromey@redhat.com>
5822 * utils.c (quit): Use target_supports_terminal_ours.
5823 * target.h (target_supports_terminal_ours): Declare.
5824 * target.c (target_supports_delete_record): Don't check
5825 to_delete_record against NULL.
5826 (target_supports_terminal_ours): New function.
5828 2014-07-18 Tom Tromey <tromey@redhat.com>
5831 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5832 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5833 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5834 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5835 * windows-nat.c (windows_xfer_partial): Always delegate.
5836 * record-btrace.c (record_btrace_xfer_partial): Simplify
5838 (record_btrace_fetch_registers, record_btrace_store_registers)
5839 (record_btrace_prepare_to_store, record_btrace_resume)
5840 (record_btrace_wait, record_btrace_find_new_threads)
5841 (record_btrace_thread_alive): Likewise.
5842 * procfs.c (procfs_xfer_partial): Always delegate.
5843 * corelow.c (core_xfer_partial): Always delegate.
5844 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5846 2014-07-18 Tom Tromey <tromey@redhat.com>
5848 * exec.c (exec_make_note_section): Move earlier.
5850 2014-07-17 Doug Evans <dje@google.com>
5853 * maint.c (count_symtabs_and_blocks): Handle NULL
5854 current_program_space.
5855 (report_command_stats): Check global enabled flag in addition to
5856 recorded enabled flag.
5857 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5859 2014-07-16 Pedro Alves <palves@redhat.com>
5861 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5863 2014-07-16 Tom Tromey <tromey@redhat.com>
5865 * target.h (struct target_ops) <to_delete_record>: Reformat
5868 2014-07-16 Tom Tromey <tromey@redhat.com>
5870 * target-delegates.c: Rebuild.
5872 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5874 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5875 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5876 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5877 (avr_pointer_to_address): Likewise.
5878 (avr_address_class_type_flags): New function.
5879 (avr_address_class_type_flags_to_name): Likewise.
5880 (avr_address_class_name_to_type_flags): Likewise.
5881 (avr_gdbarch_init): Set address_class_type_flags,
5882 address_class_type_flags_to_name and
5883 address_class_name_to_type_flags.
5885 2014-07-15 Pedro Alves <palves@redhat.com>
5887 * linux-nat.c (kill_callback): Save errno and work with saved
5890 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5892 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5894 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5896 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5897 breakpoint support correctly.
5899 2014-07-14 Pedro Alves <palves@redhat.com>
5901 * utils.c (prompt_for_continue): Call target_terminal_ours.
5903 2014-07-14 Pedro Alves <palves@redhat.com>
5905 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5906 catch_errors. Don't re-enable stdin or notify observers where,
5908 (fetch_inferior_event_wrapper): Delete.
5910 2014-07-14 Pedro Alves <palves@redhat.com>
5913 * top.c: Include "inf-loop.h".
5914 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5916 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5918 (gdb_readline_wrapper): Store whether the target is async, and
5921 2014-07-14 Pedro Alves <palves@redhat.com>
5924 * top.c (gdb_readline_wrapper_line): Tweak comment.
5925 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5926 the input handler callback.
5928 2014-07-14 Pedro Alves <palves@redhat.com>
5931 * main.c: Include event-top.h.
5932 (handle_command_errors): New function.
5933 (catch_command_errors, catch_command_errors_const): Use it.
5935 2014-07-14 Pedro Alves <palves@redhat.com>
5937 * exceptions.c (catch_command_errors, catch_command_errors_const):
5939 * exceptions.h (catch_command_errors_ftype)
5940 (catch_command_errors_const_ftype): Moved to main.c.
5941 (catch_command_errors, catch_command_errors_const): Delete
5943 * main.c (catch_command_errors_ftype)
5944 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5945 (catch_command_errors, catch_command_errors_const)): Moved here
5946 from exceptions.c and make static.
5948 2014-07-14 Pedro Alves <palves@redhat.com>
5950 * exceptions.c (print_any_exception): Delete.
5951 (catch_exceptions_with_msg): Use exception_print instead of
5952 print_any_exception.
5953 (catch_errors): Use exception_fprintf instead of
5954 print_any_exception.
5955 (catch_command_errors, catch_command_errors_const): Use
5956 exception_print instead of print_any_exception.
5958 2014-07-14 Pedro Alves <palves@redhat.com>
5960 * infcall.c (run_inferior_call): Set 'sync_execution' while
5961 running the inferior call.
5963 2014-07-14 Pedro Alves <palves@redhat.com>
5965 * value.c (value_contents_equal): Delete function.
5966 * value.h (value_contents_equal): Delete declaration.
5968 2014-07-14 Tom Tromey <tromey@redhat.com>
5971 * gdbtypes.c (is_dynamic_type_internal): New function, from
5973 (is_dynamic_type): Rewrite.
5974 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5975 (resolve_dynamic_struct): Likewise.
5976 (resolve_dynamic_type_internal): New function, from
5977 resolve_dynamic_type.
5978 (resolve_dynamic_type): Rewrite.
5980 2014-07-14 Tom Tromey <tromey@redhat.com>
5982 * target.c (target_require_runnable): Also check record_stratum.
5985 2014-07-11 Yao Qi <yao@codesourcery.com>
5987 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5988 thumb_instruction_restores_sp return true.
5990 2014-07-11 Yao Qi <yao@codesourcery.com>
5992 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5993 (thumb_in_function_epilogue_p): Call
5994 thumb_instruction_restores_sp.
5996 2014-07-11 Yao Qi <yao@codesourcery.com>
5998 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6000 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6002 2014-07-11 Gary Benson <gbenson@redhat.com>
6004 * amd64-linux-nat.c (gdbcore.h): Remove include.
6005 (regset.h): Likewise.
6006 (nat/linux-btrace.h): Likewise.
6007 (btrace.h): Likewise.
6008 (gdb_assert.h): Likewise.
6009 (string.h): Likewise.
6010 (sys/uio.h): Likewise.
6011 (sys/debugreg.h): Likewise.
6012 (sys/syscall.h): Likewise.
6013 (sys/procfs.h): Likewise.
6014 (sys/user.h): Likewise.
6015 (asm/ptrace.h): Likewise.
6016 (i386-nat.h): Likewise.
6017 * i386-linux-nat.c (i386-nat.h): Likewise.
6018 (regset.h): Likewise.
6019 (target.h): Likewise.
6020 (linux-nat.h): Likewise.
6021 (nat/linux-btrace.h): Likewise.
6022 (btrace.h): Likewise.
6023 (gdb_assert.h): Likewise.
6024 (string.h): Likewise.
6025 (sys/uio.h): Likewise.
6026 (sys/user.h): Likewise.
6027 (sys/procfs.h): Likewise.
6028 (sys/reg.h): Likewise.
6029 (sys/debugreg.h): Likewise.
6030 (ORIG_EAX): Remove definition.
6032 2014-07-11 Gary Benson <gbenson@redhat.com>
6034 * i386-linux-nat.h: New file.
6035 * x86-linux-nat.h: Likewise.
6036 * x86-linux-nat.c: Likewise.
6037 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6038 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6039 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6040 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6041 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6042 (PTRACE_SETREGSET): Likewise.
6043 (arch_lwp_info): Now in x86-linux-nat.c.
6044 (have_ptrace_getregset): Now in x86-linux-nat.h.
6045 (x86_linux_dr_get): Now in x86-linux-nat.c.
6046 (x86_linux_dr_set): Likewise.
6047 (x86_linux_dr_get_addr): Likewise.
6048 (x86_linux_dr_get_control): Likewise.
6049 (x86_linux_dr_get_status): Likewise.
6050 (update_debug_registers_callback): Likewise.
6051 (x86_linux_dr_set_control): Likewise.
6052 (x86_linux_dr_set_addr): Likewise.
6053 (x86_linux_prepare_to_resume): Likewise.
6054 (x86_linux_new_thread): Likewise.
6055 (x86_linux_new_fork): Likewise.
6056 (x86_linux_get_thread_area): Likewise.
6057 (super_post_startup_inferior): Likewise.
6058 (x86_linux_child_post_startup_inferior): Likewise.
6059 (AMD64_LINUX_USER64_CS): Likewise.
6060 (AMD64_LINUX_X32_DS): Likewise.
6061 (x86_linux_read_description): Likewise.
6062 (x86_linux_enable_btrace): Likewise.
6063 (x86_linux_disable_btrace): Likewise.
6064 (x86_linux_teardown_btrace): Likewise.
6065 (x86_linux_read_btrace): Likewise.
6066 (x86_linux_create_target): Likewise.
6067 (x86_linux_add_target): Likewise.
6068 * i386-linux-nat.c (x86-linux-nat.h): New include.
6069 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6070 (PTRACE_SETREGSET): Likewise.
6071 (arch_lwp_info): Now in x86-linux-nat.c.
6072 (have_ptrace_getregset): Now in x86-linux-nat.h.
6073 (x86_linux_dr_get): Now in x86-linux-nat.c.
6074 (x86_linux_dr_set): Likewise.
6075 (x86_linux_dr_get_addr): Likewise.
6076 (x86_linux_dr_get_control): Likewise.
6077 (x86_linux_dr_get_status): Likewise.
6078 (update_debug_registers_callback): Likewise.
6079 (x86_linux_dr_set_control): Likewise.
6080 (x86_linux_dr_set_addr): Likewise.
6081 (x86_linux_prepare_to_resume): Likewise.
6082 (x86_linux_new_thread): Likewise.
6083 (x86_linux_new_fork): Likewise.
6084 (x86_linux_get_thread_area): Likewise.
6085 (super_post_startup_inferior): Likewise.
6086 (x86_linux_child_post_startup_inferior): Likewise.
6087 (AMD64_LINUX_USER64_CS): Likewise.
6088 (AMD64_LINUX_X32_DS): Likewise.
6089 (x86_linux_read_description): Likewise.
6090 (x86_linux_enable_btrace): Likewise.
6091 (x86_linux_disable_btrace): Likewise.
6092 (x86_linux_teardown_btrace): Likewise.
6093 (x86_linux_read_btrace): Likewise.
6094 (x86_linux_create_target): Likewise.
6095 (x86_linux_add_target): Likewise.
6097 2014-07-11 Gary Benson <gbenson@redhat.com>
6099 * amd64-linux-nat.c: Comment and whitespace changes.
6100 * i386-linux-nat.c: Comment and whitespace changes.
6102 2014-07-11 Gary Benson <gbenson@redhat.com>
6104 * amd64-linux-nat.c (x86_linux_create_target): New function.
6105 (x86_linux_add_target): Likewise.
6106 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6107 * i386-linux-nat.c (x86_linux_create_target): New function.
6108 (x86_linux_add_target): Likewise.
6109 (_initialize_i386_linux_nat): Delegate to the above new functions.
6111 2014-07-11 Gary Benson <gbenson@redhat.com>
6113 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6114 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6115 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6116 (ps_get_thread_area): Delegate to the above.
6118 2014-07-11 Gary Benson <gbenson@redhat.com>
6120 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6121 x86_linux_read_description. All uses updated. amd64-specific
6122 code conditionalized. Conditionalized i386-specific code added.
6123 Redundant cast removed.
6124 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6125 x86_linux_read_description. All uses updated. i386-specific
6126 code conditionalized. Conditionalized amd64-specific code added.
6127 One sizeof replaced with the actual type it is describing.
6129 2014-07-11 Gary Benson <gbenson@redhat.com>
6131 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6132 x86_linux_dr_get. All uses updated.
6133 (amd64_linux_dr_set): Renamed to
6134 x86_linux_dr_set. All uses updated.
6135 (amd64_linux_dr_get_addr): Renamed to
6136 x86_linux_dr_get_addr. All uses updated.
6137 (amd64_linux_dr_get_control): Renamed to
6138 x86_linux_dr_get_control. All uses updated.
6139 (amd64_linux_dr_get_status): Renamed to
6140 x86_linux_dr_get_status. All uses updated.
6141 (amd64_linux_dr_set_control): Renamed to
6142 x86_linux_dr_set_control. All uses updated.
6143 (amd64_linux_dr_set_addr): Renamed to
6144 x86_linux_dr_set_addr. All uses updated.
6145 (amd64_linux_prepare_to_resume): Renamed to
6146 x86_linux_prepare_to_resume. All uses updated.
6147 (amd64_linux_new_thread): Renamed to
6148 x86_linux_new_thread. All uses updated.
6149 (amd64_linux_new_fork): Renamed to
6150 x86_linux_new_fork. All uses updated.
6151 (amd64_linux_child_post_startup_inferior): Renamed to
6152 x86_linux_child_post_startup_inferior. All uses updated.
6153 (amd64_linux_enable_btrace): Renamed to
6154 x86_linux_enable_btrace. All uses updated.
6155 (amd64_linux_disable_btrace): Renamed to
6156 x86_linux_disable_btrace. All uses updated.
6157 (amd64_linux_teardown_btrace): Renamed to
6158 x86_linux_teardown_btrace. All uses updated.
6159 (amd64_linux_read_btrace): Renamed to
6160 x86_linux_read_btrace. All uses updated.
6161 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6162 x86_linux_dr_get. All uses updated.
6163 (i386_linux_dr_set): Renamed to
6164 x86_linux_dr_set. All uses updated.
6165 (i386_linux_dr_get_addr): Renamed to
6166 x86_linux_dr_get_addr. All uses updated.
6167 (i386_linux_dr_get_control): Renamed to
6168 x86_linux_dr_get_control. All uses updated.
6169 (i386_linux_dr_get_status): Renamed to
6170 x86_linux_dr_get_status. All uses updated.
6171 (i386_linux_dr_set_control): Renamed to
6172 x86_linux_dr_set_control. All uses updated.
6173 (i386_linux_dr_set_addr): Renamed to
6174 x86_linux_dr_set_addr. All uses updated.
6175 (i386_linux_prepare_to_resume): Renamed to
6176 x86_linux_prepare_to_resume. All uses updated.
6177 (i386_linux_new_thread): Renamed to
6178 x86_linux_new_thread. All uses updated.
6179 (i386_linux_new_fork): Renamed to
6180 x86_linux_new_fork. All uses updated.
6181 (i386_linux_child_post_startup_inferior): Renamed to
6182 x86_linux_child_post_startup_inferior. All uses updated.
6183 (i386_linux_enable_btrace): Renamed to
6184 x86_linux_enable_btrace. All uses updated.
6185 (i386_linux_disable_btrace): Renamed to
6186 x86_linux_disable_btrace. All uses updated.
6187 (i386_linux_teardown_btrace): Renamed to
6188 x86_linux_teardown_btrace. All uses updated.
6189 (i386_linux_read_btrace): Renamed to
6190 x86_linux_read_btrace. All uses updated.
6192 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6194 * remote.c (extended_remote_post_attach): New function.
6195 (init_extended_remote_ops): Install it as to_post_attach method.
6197 2014-07-09 Pedro Alves <palves@redhat.com>
6199 * infcmd.c (attach_command_post_wait): Don't call
6200 target_terminal_inferior here.
6201 (attach_command): Call it here instead.
6203 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6205 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6207 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6208 from varobj.c, with additional checks.
6209 (c_varobj_ops): Fill in is_path_expr_parent field.
6210 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6211 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6213 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6215 (varobj_default_is_path_expr_parent): New function.
6216 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6217 (varobj_default_is_path_expr_parent): Declare new function.
6219 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6221 * infcmd.c (finish_backward): Turn internal error into normal error.
6223 2014-07-07 Pedro Alves <palves@redhat.com>
6226 * remote.c (async_handle_remote_sigint)
6227 (async_handle_remote_sigint_twice): Call
6228 gdb_call_async_signal_handler instead of
6229 mark_async_signal_handler.
6231 2014-07-07 Tom Tromey <tromey@redhat.com>
6233 * target-delegates.c: Rebuild.
6234 * target.c (target_info_record): Remove.
6235 * record.c (info_record_command): Unconditionally call
6237 * target.h (struct target_ops) <to_info_record>: Use
6238 TARGET_DEFAULT_IGNORE.
6239 (target_info_record): Remove.
6241 2014-07-07 Tom Tromey <tromey@redhat.com>
6243 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6244 TARGET_DEFAULT_NORETURN.
6245 * target.c (generic_tls_error): New function.
6246 (target_translate_tls_address): Don't search target stack.
6247 * target-delegates.c: Rebuild.
6248 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6250 * linux-thread-db.c (thread_db_get_thread_local_address):
6251 Unconditionally call beneath target.
6253 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6255 * cli/cli-logging.c (pop_output_files): Assign targerr to
6258 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6260 * MAINTAINERS (Write After Approval): Update my email address.
6262 2014-07-02 Gary Benson <gbenson@redhat.com>
6264 * proc-service.c (ps_xfer_memory): Update comment.
6265 (ps_pstop): Remove unused function.
6266 (ps_pcontinue): Likewise.
6267 (ps_lstop): Likewise.
6268 (ps_lcontinue): Likewise.
6269 (ps_lgetxregsize): Likewise.
6270 (ps_lgetxregs): Likewise.
6271 (ps_lsetxregs): Likewise.
6272 (ps_plog): Likewise.
6273 (ps_ptread): Likewise.
6274 (ps_ptwrite): Likewise.
6276 2014-07-01 Mark Wielaard <mjw@redhat.com>
6278 * dwarf2read.c (add_array_cv_type): New function.
6279 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6280 (read_tag_volatile_type): Likewise.
6282 2014-07-01 Tom Tromey <tromey@redhat.com>
6284 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6285 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6286 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6287 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6288 * command.h (cmd_cfunc_ftype): Move earlier.
6289 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6290 (add_com, add_info): Use cmd_cfunc_ftype.
6292 2014-06-30 Tom Tromey <tromey@redhat.com>
6294 * symtab.c (operator_chars): Make parameters and return type
6296 (file_matches): Make "files" const.
6297 (struct search_symbols_data) <files>: Now const.
6298 (search_symbols): Make "regexp" and "files" parameters const.
6300 (symtab_symbol_info): Remove cast.
6301 (rbreak_command): Update.
6302 * symtab.h (search_symbols): Update.
6304 2014-06-27 Yao Qi <yao@codesourcery.com>
6306 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6307 Change parameter type to 'struct thread_info *'. Caller
6309 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6311 * dummy-frame.c (struct dummy_frame_id): New.
6312 (dummy_frame_id_eq): New function.
6313 (struct dummy_frame) <id>: Change its type to 'struct
6315 (dummy_frame_push): Add parameter ptid and save it in
6317 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6319 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6321 (lookup_dummy_frame): Change parameter type to 'struct
6322 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6323 instead of frame_id_eq.
6324 (dummy_frame_pop): Add parameter ptid. Callers updated.
6325 Update comments. Compose dummy_frame_id and pass it to
6327 (dummy_frame_discard): Add parameter ptid.
6328 (dummy_frame_sniffer): Compose dummy_frame_id and call
6329 dummy_frame_id_eq instead of frame_id_eq.
6330 (fprint_dummy_frames): Print ptid.
6331 * dummy-frame.h: Remove comments.
6332 (dummy_frame_push): Add ptid in declaration.
6333 (dummy_frame_pop, dummy_frame_discard): Likewise.
6335 2014-06-26 Tom Tromey <tromey@redhat.com>
6337 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6338 * command.h (error_no_arg): Update.
6340 2014-06-26 Tom Tromey <tromey@redhat.com>
6342 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6343 (do_show_command): Make "arg" const.
6344 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6346 2014-06-26 Tom Tromey <tromey@redhat.com>
6348 * record-full.c (record_full_get_bookmark): Make "args" const.
6349 (record_full_goto_bookmark): Make "raw_bookmark" const.
6350 * record.c (record_goto): New function.
6351 (cmd_record_goto): Use it. Now static.
6352 * record.h (record_goto): Declare.
6353 (cmd_record_goto): Remove declaration.
6354 * target-delegates.c: Rebuild.
6355 * target.h (struct target_ops) <to_get_bookmark,
6356 to_goto_bookmark>: Make parameter const.
6358 2014-06-26 Tom Tromey <tromey@redhat.com>
6360 * defs.h (generic_load): Update.
6361 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6362 * monitor.c (monitor_load): Make "args" const.
6363 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6364 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6366 (mips_load): Make "file" const.
6367 * remote-sim.c (gdbsim_load): Make "args" const.
6368 * remote.c (remote_load): Make "name" const.
6369 * symfile.c (generic_load): Make "args" const.
6370 * target-delegates.c: Rebuild.
6371 * target.c (target_load): Make "arg" const.
6372 (debug_to_load): Make "args" const.
6373 * target.h (struct target_ops) <to_load>: Make parameter const.
6374 (target_load): Update.
6376 2014-06-26 Tom Tromey <tromey@redhat.com>
6379 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6380 (dwarf2_physname, read_partial_die)
6381 (guess_partial_die_structure_name, fixup_partial_die)
6382 (guess_full_die_structure_name, anonymous_struct_prefix)
6383 (dwarf2_name): Use per-BFD obstack.
6385 2014-06-26 Yao Qi <yao@codesourcery.com>
6387 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6388 dummyframe and this_id into inner block below.
6390 2014-06-26 Yao Qi <yao@codesourcery.com>
6392 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6393 with "signal_pass[0]" in the initialization of signal_pass.
6395 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6397 * record-btrace.c (record_btrace_generating_corefile)
6398 (record_btrace_prepare_to_generate_core)
6399 (record_btrace_done_generating_core): New.
6400 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6401 (record_btrace_store_registers, record_btrace_prepare_to_store):
6402 Forward request when generating a core file.
6403 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6404 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6405 to_done_generating_core.
6407 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6409 * target.h (target_ops) <to_prepare_to_generate_core>
6410 <to_done_generating_core>: New.
6411 (target_prepare_to_generate_core, target_done_generating_core): New.
6412 * target.c (target_prepare_to_generate_core)
6413 (target_done_generating_core): New.
6414 * target-delegates.c: Regenerate.
6415 * gcore.c: (write_gcore_file): Rename to ...
6416 (write_gcore_file_1): ...this.
6417 (write_gcore_file): Call target_prepare_to_generate_core
6418 and target_done_generating_core.
6420 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6422 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6423 * gcore.c (write_gcore_file): Free memory returned from
6424 make_corefile_notes.
6425 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6426 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6428 2014-06-24 Yao Qi <yao@codesourcery.com>
6430 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6431 (arm_linux_init_abi): Set skip_trampoline_code with
6432 gdbarch_skip_trampoline_code instead of
6433 find_solib_trampoline_target.
6435 2014-06-24 Yao Qi <yao@codesourcery.com>
6437 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6438 arm_skip_bx_reg returns non-zero.
6440 2014-06-24 Yao Qi <yao@codesourcery.com>
6442 * arm-tdep.c (arm_skip_bx_reg): New function.
6443 (arm_skip_stub): Call arm_skip_bx_reg.
6445 2014-06-23 Don Breazeal <donb@codesourcery.com>
6447 * MAINTAINERS: Add myself as write-after-approval maintainer.
6449 2014-06-23 Pedro Alves <palves@redhat.com>
6451 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6452 DR_CONTROL before setting DR0..DR3.
6453 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6454 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6455 bits of DR_CONTROL related to the debug register slot being
6456 disabled. If all slots are vacant, clear local slowdown as well,
6457 and assert DR_CONTROL is 0.
6459 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6461 * python/lib/gdb/command/xmethods.py
6462 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6463 current progspace only if the string "progspace" matches LOCUS_RE.
6465 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6467 Fix --with-system-readline with readline-6.3 patch 5.
6468 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6469 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6472 2014-06-20 Tom Tromey <tromey@redhat.com>
6474 * dwarf2read.c (dw2_get_real_path): Use correct type in
6476 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6478 2014-06-20 Gary Benson <gbenson@redhat.com>
6480 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6481 * common/glibc_thread_db.h: Likewise.
6482 * common/i386-cpuid.h: Likewise.
6483 * common/i386-gcc-cpuid.h: Likewise.
6484 * common/linux-btrace.h: Likewise.
6485 * common/linux-osdata.h: Likewise.
6486 * common/linux-procfs.h: Likewise.
6487 * common/linux-ptrace.h: Likewise.
6488 * common/mips-linux-watch.h: Likewise.
6489 * common/linux-btrace.c: Moved to nat.
6490 * common/linux-osdata.c: Likewise.
6491 * common/linux-procfs.c: Likewise.
6492 * common/linux-ptrace.c: Likewise.
6493 * common/mips-linux-watch.c: Likewise.
6494 * nat/gdb_thread_db.h: Moved from common.
6495 * nat/glibc_thread_db.h: Likewise.
6496 * nat/i386-cpuid.h: Likewise.
6497 * nat/i386-gcc-cpuid.h: Likewise.
6498 * nat/linux-btrace.c: Likewise.
6499 * nat/linux-btrace.h: Likewise.
6500 * nat/linux-osdata.c: Likewise.
6501 * nat/linux-osdata.h: Likewise.
6502 * nat/linux-procfs.c: Likewise.
6503 * nat/linux-procfs.h: Likewise.
6504 * nat/linux-ptrace.c: Likewise.
6505 * nat/linux-ptrace.h: Likewise.
6506 * nat/mips-linux-watch.c: Likewise.
6507 * nat/mips-linux-watch.h: Likewise.
6508 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6509 (object file files): Reordered.
6510 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6511 of glibc_thread_db.h.
6513 2014-06-20 Gary Benson <gbenson@redhat.com>
6515 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6516 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6517 (i386_dr_low): Likewise.
6518 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6519 (i386_dr_low_set_addr): Likewise.
6520 (i386_dr_low_get_addr): Likewise.
6521 (i386_dr_low_can_set_control): Likewise.
6522 (i386_dr_low_set_control): Likewise.
6523 (i386_dr_low_get_control): Likewise.
6524 (i386_dr_low_get_status): Likewise.
6525 (i386_get_debug_register_length): Likewise.
6526 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6527 (i386_dr_low): Likewise.
6528 * nat/i386-dregs.c (i386-low.h): Remove include.
6529 (i386-nat.h): Likewise.
6530 (nat/i386-dregs.h): New include.
6531 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6532 (i386_dr_low_set_addr): Likewise.
6533 (i386_dr_low_get_addr): Likewise.
6534 (i386_dr_low_can_set_control): Likewise.
6535 (i386_dr_low_set_control): Likewise.
6536 (i386_dr_low_get_control): Likewise.
6537 (i386_dr_low_get_status): Likewise.
6538 (i386_get_debug_register_length): Likewise.
6539 (debug_hw_points): Likewise.
6541 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6543 * Makefile.in (SFILES): Add d-exp.y.
6544 (YYFILES): Add d-exp.c.
6545 (YYOBJ): Add d-exp.o.
6546 (local-maintainer-clean): Delete d-exp.c.
6547 * d-exp.y: New file.
6548 * d-lang.h (d_parse): New declaration.
6549 (d_error): New declaration.
6550 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6551 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6552 PREC_ORDER operators.
6553 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6555 2014-06-19 Yao Qi <yao@codesourcery.com>
6557 * gdbthread.h (any_running): Remove the declaration.
6558 * thread.c (any_running): Remove.
6560 2014-06-19 Yao Qi <yao@codesourcery.com>
6562 * gdbthread.h (struct thread_info) <state>: Change its type to
6563 'enum thread_state'. Update comments.
6565 2014-06-19 Pedro Alves <palves@redhat.com>
6567 * gdbthread.h (ALL_THREADS): Delete.
6568 (ALL_NON_EXITED_THREADS): New macro.
6569 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6570 instead of ALL_THREADS.
6571 * infrun.c (find_thread_needs_step_over)
6572 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6573 instead of ALL_THREADS.
6574 * record-btrace.c (record_btrace_open)
6575 (record_btrace_stop_recording, record_btrace_close)
6576 (record_btrace_is_replaying, record_btrace_resume)
6577 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6578 * remote.c (append_pending_thread_resumptions): Likewise.
6579 * thread.c (thread_apply_all_command): Likewise.
6581 2014-06-19 Gary Benson <gbenson@redhat.com>
6583 * i386-nat.c (i386_stopped_by_watchpoint):
6584 Use i386_dr_stopped_by_watchpoint.
6585 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6586 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6588 2014-06-19 Gary Benson <gbenson@redhat.com>
6590 * nat/i386-dregs.c: New file.
6591 * Makefile.in (i386-dregs.o): New rule.
6592 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6593 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6594 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6595 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6596 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6597 * config/i386/go32.mh (NATDEPFILES): Likewise.
6598 * config/i386/linux.mh (NATDEPFILES): Likewise.
6599 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6600 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6601 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6602 * i386-nat.h (debug_hw_points): New declaration.
6603 * i386-nat.c (breakpoint.h): Remove include.
6604 (command.h): Likewise.
6605 (target.h): Likewise.
6606 (gdb_assert.h): Likewise.
6607 (debug_hw_points): Made nonstatic.
6608 (debug_printf): Now in i386-dregs.c.
6609 (TARGET_HAS_DR_LEN_8): Likewise.
6610 (DR_CONTROL_SHIFT): Likewise.
6611 (DR_CONTROL_SIZE): Likewise.
6612 (DR_RW_EXECUTE): Likewise.
6613 (DR_RW_WRITE): Likewise.
6614 (DR_RW_READ): Likewise.
6615 (DR_RW_IORW): Likewise.
6616 (DR_LEN_1): Likewise.
6617 (DR_LEN_2): Likewise.
6618 (DR_LEN_4): Likewise.
6619 (DR_LEN_8): Likewise.
6620 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6621 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6622 (DR_ENABLE_SIZE): Likewise.
6623 (DR_LOCAL_SLOWDOWN): Likewise.
6624 (DR_GLOBAL_SLOWDOWN): Likewise.
6625 (DR_CONTROL_RESERVED): Likewise.
6626 (I386_DR_CONTROL_MASK): Likewise.
6627 (I386_DR_VACANT): Likewise.
6628 (I386_DR_LOCAL_ENABLE): Likewise.
6629 (I386_DR_GLOBAL_ENABLE): Likewise.
6630 (I386_DR_DISABLE): Likewise.
6631 (I386_DR_SET_RW_LEN): Likewise.
6632 (I386_DR_GET_RW_LEN): Likewise.
6633 (I386_DR_WATCH_HIT): Likewise.
6634 (i386_wp_op_t): Likewise.
6635 (i386_show_dr): Likewise.
6636 (i386_length_and_rw_bits): Likewise.
6637 (i386_insert_aligned_watchpoint): Likewise.
6638 (i386_remove_aligned_watchpoint): Likewise.
6639 (i386_handle_nonaligned_watchpoint): Likewise.
6640 (i386_update_inferior_debug_regs): Likewise.
6641 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6642 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6643 (i386_region_ok_for_watchpoint):
6644 Use i386_dr_region_ok_for_watchpoint.
6645 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6647 2014-06-19 Gary Benson <gbenson@redhat.com>
6649 * i386-nat.c (i386_insert_hw_breakpoint): Use
6650 i386_insert_watchpoint.
6651 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6653 2014-06-19 Gary Benson <gbenson@redhat.com>
6655 * i386-nat.c (i386_dr_show): Renamed to
6656 i386_show_dr and made static. All uses updated.
6657 (i386_dr_length_and_rw_bits): Renamed to
6658 i386_length_and_rw_bits and made static.
6660 (i386_dr_insert_aligned_watchpoint): Renamed to
6661 i386_insert_aligned_watchpoint and made static.
6663 (i386_dr_remove_aligned_watchpoint): Renamed to
6664 i386_remove_aligned_watchpoint and made static.
6666 (i386_dr_update_inferior_debug_regs): Renamed to
6667 i386_update_inferior_debug_regs and made static.
6669 * nat/i386-dregs.h (i386_dr_show): Removed.
6670 (i386_dr_length_and_rw_bits): Likewise.
6671 (i386_dr_insert_aligned_watchpoint): Likewise.
6672 (i386_dr_remove_aligned_watchpoint): Likewise.
6673 (i386_dr_update_inferior_debug_regs): Likewise.
6675 2014-06-19 Gary Benson <gbenson@redhat.com>
6677 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6678 * configure: Regenerate.
6679 * config.in: Likewise.
6680 * main.c (signal.h): New include.
6681 (setup_alternate_signal_stack): New function.
6682 (captured_main): Call the above.
6683 * cp-support.c (signal.h): New include.
6684 (catch_demangler_crashes): New flag.
6685 (SIGJMP_BUF): New define.
6686 (SIGSETJMP): Likewise.
6687 (SIGLONGJMP): Likewise.
6688 (gdb_demangle_jmp_buf): New static global.
6689 (gdb_demangle_attempt_core_dump): Likewise.
6690 (gdb_demangle_signal_handler): New function.
6691 (gdb_demangle): If catch_demangler_crashes is set, install the
6692 above signal handler before calling bfd_demangle, and restore
6693 the original signal handler afterwards. Display the offending
6694 symbol and call demangler_warning the first time a segmentation
6696 (_initialize_cp_support): New maint set/show command.
6698 2014-06-19 Gary Benson <gbenson@redhat.com>
6700 * utils.h (resource_limit_kind): New enum.
6701 (can_dump_core): New declaration.
6702 (warn_cant_dump_core): Likewise.
6703 (dump_core): Likewise.
6704 * utils.c (dump_core): Made nonstatic. Added new
6705 parameter "limit_kind".
6706 (can_dump_core): Made nonstatic. Moved printing code to...
6707 (warn_cant_dump_core): New function.
6708 (can_dump_core_warn): Likewise.
6709 (internal_vproblem): Replace calls to can_dump_core with
6710 calls to can_dump_core_warn. Supply new argument to each.
6712 2014-06-19 Gary Benson <gbenson@redhat.com>
6714 * utils.h (demangler_vwarning): New declaration.
6715 (demangler_warning): Likewise.
6716 * utils.c (struct internal_problem)
6717 <user_settable_should_quit>: New field.
6718 <user_settable_should_dump_core>: Likewise
6719 (internal_error_problem): Add values for above new fields.
6720 (internal_warning_problem): Likewise.
6721 (demangler_warning_problem): New static global.
6722 (demangler_vwarning): New function.
6723 (demangler_warning): Likewise.
6724 (add_internal_problem_command): Selectively add commands.
6725 (_initialize_utils): New internal problem command.
6726 * maint.c (maintenance_demangler_warning): New function.
6727 (_initialize_maint_cmds): New command.
6729 2014-06-18 Tom Tromey <tromey@redhat.com>
6731 * f-valprint.c (info_common_command_for_block): Update.
6732 * symtab.h (struct general_symbol_info) <common_block>: Now
6735 2014-06-18 Tom Tromey <tromey@redhat.com>
6737 * symtab.h (struct symtab) <blockvector>: Now const.
6738 * ada-lang.c (ada_add_global_exceptions): Update.
6739 * buildsym.c (augment_type_symtab): Update.
6740 * dwarf2read.c (dw2_lookup_symbol): Update.
6741 * jit.c (finalize_symtab): Update.
6742 * jv-lang.c (add_class_symtab_symbol): Update.
6743 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6745 * objfiles.c (objfile_relocate1): Update.
6746 * psymtab.c (lookup_symbol_aux_psymtabs)
6747 (maintenance_check_psymtabs): Update.
6748 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6750 * spu-tdep.c (spu_catch_start): Update.
6751 * symmisc.c (dump_symtab_1): Update.
6752 * symtab.c (lookup_global_symbol_from_objfile)
6753 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6754 (basic_lookup_transparent_type_quick)
6755 (basic_lookup_transparent_type, find_pc_sect_symtab)
6756 (find_pc_sect_line, search_symbols): Update.
6757 * block.c (find_block_in_blockvector): Make "bl" const.
6758 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6760 (blockvector_contains_pc): Make "bv" const.
6761 (block_for_pc_sect): Update.
6762 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6763 (blockvector_contains_pc): Update.
6764 * breakpoint.c (resolve_sal_pc): Update.
6765 * inline-frame.c (block_starting_point_at): Update.
6767 2014-06-18 Tom Tromey <tromey@redhat.com>
6769 * completer.c (complete_line): Make "line_buffer" const.
6770 * completer.h (complete_line): Update.
6772 2014-06-18 Tom Tromey <tromey@redhat.com>
6774 * symtab.c (add_macro_name): Remove unneeded cast.
6776 2014-06-18 Tom Tromey <tromey@redhat.com>
6778 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6779 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6781 2014-06-18 Tom Tromey <tromey@redhat.com>
6783 * probe.c (info_probes_for_ops): Make "arg" const.
6784 * probe.h (info_probes_for_ops): Update.
6786 2014-06-18 Tom Tromey <tromey@redhat.com>
6788 * varobj.c (varobj_create): Update.
6789 * valops.c (value_of_this): Update.
6790 * tracepoint.c (add_local_symbols, scope_info): Update.
6791 * symtab.h (struct general_symbol_info) <block>: Now const.
6792 * symtab.c (skip_prologue_sal)
6793 (default_make_symbol_completion_list_break_on)
6794 (skip_prologue_using_sal): Update.
6795 * stack.h (iterate_over_block_locals)
6796 (iterate_over_block_local_vars): Update.
6797 * stack.c (print_frame_args): Update.
6798 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6800 (get_selected_block): Make return type const.
6801 * python/py-frame.c (frapy_block): Update.
6802 * python/py-block.c (gdbpy_block_for_pc): Update.
6803 * p-exp.y (%union) <bval>: Now const.
6804 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6805 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6806 * m2-exp.y (%union) <bval>: Now const.
6807 * linespec.c (get_current_search_block): Make return type const.
6808 (create_sals_line_offset, find_label_symbols): Update.
6809 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6811 (block_starting_point_at): Make "block" const.
6812 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6813 (check_exception_resume): Update.
6814 * guile/scm-frame.c (gdbscm_frame_block): Update.
6815 * guile/scm-block.c (gdbscm_lookup_block): Update.
6816 * frame.h (get_frame_block): Update.
6817 (get_selected_block): Make return type const.
6818 * frame.c (frame_id_inner): Update.
6819 * f-valprint.c (info_common_command_for_block)
6820 (info_common_command): Update.
6821 * dwarf2loc.c (dwarf2_find_location_expression)
6822 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6823 (locexpr_describe_location_piece): Update.
6824 * c-exp.y (%union) <bval>: Now const.
6825 * breakpoint.c (resolve_sal_pc): Update.
6826 * blockframe.c (get_frame_block):Make return type const.
6827 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6828 (block_innermost_frame): Update.
6829 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6830 (block_for_pc, block_for_pc_sect): Update.
6831 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6833 (block_for_pc_sect, block_for_pc): Make return type const.
6834 * ax-gdb.c (gen_expr): Update.
6835 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6836 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6837 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6838 (ada_read_var_value): Update.
6839 * ada-exp.y (struct name_info) <block>: Now const.
6841 (block_lookup): Constify.
6843 2014-06-18 Gary Benson <gbenson@redhat.com>
6845 * nat/i386-dregs.h: New file.
6846 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6847 * i386-nat.h (i386-dregs.h): New include.
6848 (DR_FIRSTADDR): Now in i386-dregs.h.
6849 (DR_LASTADDR): Likewise.
6850 (DR_NADDR): Likewise.
6851 (DR_STATUS): Likewise.
6852 (DR_CONTROL): Likewise.
6853 (i386_debug_reg_state): Likewise.
6854 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6856 2014-06-18 Don Breazeal <donb@codesourcery.com>
6858 * breakpoint.c (set_longjmp_breakpoint): Call
6859 momentary_breakpoint_from_master with additional argument.
6860 (set_longjmp_breakpoint_for_call_dummy): Call
6861 momentary_breakpoint_from_master with additional argument.
6862 (set_std_terminate_breakpoint): Call
6863 momentary_breakpoint_from_master with additional argument.
6864 (momentary_breakpoint_from_master): Add argument to function
6865 definition and use it to initialize structure member flag.
6866 (clone_momentary_breakpoint): Call
6867 momentary_breakpoint_from_master with additional argument.
6868 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6869 member flags set in momentary_breakpoint_from_master.
6871 2014-06-18 Gary Benson <gbenson@redhat.com>
6873 * i386-nat.c (i386_show_dr): Renamed to
6874 i386_dr_show and made nonstatic. All uses updated.
6875 (i386_length_and_rw_bits): Renamed to
6876 i386_dr_length_and_rw_bits and made nonstatic.
6878 (i386_insert_aligned_watchpoint): Renamed to
6879 i386_dr_insert_aligned_watchpoint and made nonstatic.
6881 (i386_remove_aligned_watchpoint): Renamed to
6882 i386_dr_remove_aligned_watchpoint and made nonstatic.
6884 (i386_update_inferior_debug_regs): Renamed to
6885 i386_dr_update_inferior_debug_regs and made nonstatic.
6888 2014-06-18 Gary Benson <gbenson@redhat.com>
6890 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6891 (i386_dr_low_can_set_control): Likewise.
6892 (i386_dr_low_set_addr): Likewise.
6893 (i386_dr_low_set_control): Likewise.
6894 (i386_dr_low_get_addr): Likewise.
6895 (i386_dr_low_get_status): Likewise.
6896 (i386_dr_low_get_control): Likewise.
6897 (i386_insert_aligned_watchpoint): Use new macros.
6898 (i386_update_inferior_debug_regs): Likewise.
6899 (i386_stopped_data_address): Likewise.
6901 2014-06-18 Gary Benson <gbenson@redhat.com>
6903 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6904 New parameter. All uses updated.
6906 2014-06-18 Gary Benson <gbenson@redhat.com>
6908 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6911 2014-06-18 Gary Benson <gbenson@redhat.com>
6913 * i386-nat.c (debug_printf): New macro.
6914 (i386_get_debug_register_length): Likewise.
6915 (TARGET_HAS_DR_LEN_8): Use above macro.
6916 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6917 and printf_unfiltered. Use phex to format values.
6919 2014-06-18 Gary Benson <gbenson@redhat.com>
6921 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6924 2014-06-18 Gary Benson <gbenson@redhat.com>
6926 * i386-nat.c: Comment changes.
6928 2014-06-18 Gary Benson <gbenson@redhat.com>
6930 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6932 2014-06-18 Gary Benson <gbenson@redhat.com>
6934 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6935 (i386_insert_aligned_watchpoint): Likewise.
6936 (i386_remove_aligned_watchpoint): Likewise.
6937 (i386_handle_nonaligned_watchpoint): Likewise.
6939 2014-06-18 Gary Benson <gbenson@redhat.com>
6941 * i386-nat.c: Whitespace changes.
6943 2014-06-17 Samuel Bronson <naesten@gmail.com>
6945 * MAINTAINERS: Update Roland McGrath's email address.
6946 Thanks to Sergio Durigan Junior for pointing out that he left
6947 Red Hat a while ago, and giving me a current address.
6949 2014-06-17 Tom Tromey <tromey@redhat.com>
6951 * utils.h (savestring): Remove declaration.
6953 2014-06-17 Tom Tromey <tromey@redhat.com>
6955 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6957 2014-06-16 Keith Seitz <keiths@redhat.com>
6960 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6961 to update the varobj if inferior_ptid is null_ptid.
6963 2014-06-16 Tom Tromey <tromey@redhat.com>
6965 * target.h (struct target_ops) <to_info_proc>: Make parameter
6967 (target_info_proc): Update.
6968 * target.c (target_info_proc): Make "args" const.
6969 * procfs.c (procfs_info_proc): Update.
6970 * linux-tdep.c (linux_info_proc): Update.
6971 (linux_core_info_proc_mappings): Make "args" const.
6972 (linux_core_info_proc): Update.
6973 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6974 * gdbarch.c: Rebuild.
6975 * gdbarch.h: Rebuild.
6976 * corelow.c (core_info_proc): Update.
6978 2014-06-16 Tom Tromey <tromey@redhat.com>
6980 * target.h (struct target_ops) <to_disconnect>: Make parameter
6982 (target_disconnect): Update.
6983 * target.c (target_disconnect): Make "args" const.
6984 * target-delegates.c: Rebuild.
6985 * remote.c (remote_disconnect): Update.
6986 * record.h (record_disconnect): Update.
6987 * record.c (record_disconnect): Update.
6988 * inf-child.c (inf_child_disconnect): Update.
6990 2014-06-16 Tom Tromey <tromey@redhat.com>
6992 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6993 * target.c (debug_to_rcmd, default_rcmd): Update.
6994 * target-delegates.c: Rebuild.
6995 * remote.c (remote_rcmd): Update.
6996 * monitor.c (monitor_rcmd): Update.
6998 2014-06-16 Pedro Alves <palves@redhat.com>
7000 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7001 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7002 have OBJF_SHARED set.
7003 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7004 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7005 instead of OBJF_USERLOADED.
7006 * objfiles.h (OBJF_SHARED): Update comment.
7007 (userloaded_objfile_contains_address_p): Rename to ...
7008 (shared_objfile_contains_address_p): ... this, and update
7010 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7012 (remove_symbol_file_command): Skip objfiles that don't have
7015 2014-06-16 Tom Tromey <tromey@redhat.com>
7017 * minsyms.h (prim_record_minimal_symbol)
7018 (prim_record_minimal_symbol_and_info): Update comments.
7020 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7022 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7023 or --without-guile, according to how GDB was built.
7025 2014-06-13 Tom Tromey <tromey@redhat.com>
7027 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7029 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7031 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7033 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7034 help_list.Pass all_commands, not -1, to help_list.
7035 * cli/cli-dump.c (dump_command, append_command)
7036 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7037 (binary_dump_command, binary_append_command): Pass all_commands,
7038 not -1, to help_list.
7039 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7041 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7043 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7045 * top.c (set_history): Pass all_commands, not -1, to help_list.
7046 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7047 all_commands, not -1, to help_list.
7048 * symfile.c (overlay_command): Pass all_commands, not -1, to
7050 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7052 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7054 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7056 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7057 not -1, to help_list.
7058 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7059 not -1, to help_list.
7060 * maint.c (maintenance_command, maintenance_info_command)
7061 (maintenance_print_command, maintenance_set_cmd): Pass
7062 all_commands, not -1, to help_list.
7063 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7065 * language.c (set_check): Pass all_commands, not -1, to help_list.
7066 * infcmd.c (unset_command): Pass all_commands, not -1, to
7068 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7070 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7072 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7074 * breakpoint.c (save_command): Pass all_commands, not -1, to
7076 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7077 all_commands, not -1, to help_list.
7079 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7081 * regcache.c (struct register_to_invalidate): New structure.
7082 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7084 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7086 2014-06-12 Yao Qi <yao@codesourcery.com>
7088 * varobj.c (varobj_get_num_children): Call
7089 varobj_is_dynamic_p.
7090 (varobj_list_children): Likewise.
7091 (varobj_update): Likewise. Update comments.
7093 2014-06-12 Yao Qi <yao@codesourcery.com>
7095 * varobj.c (varobj_pretty_printed_p): Rename to ...
7096 (varobj_is_dynamic_p): ... this. New function.
7097 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7098 (varobj_is_dynamic_p): Declare.
7099 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7100 (mi_print_value_p, varobj_update_one): Likewise.
7102 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7103 Yao Qi <yao@codesourcery.com>
7105 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7106 (varobj_get_iterator): Wrap up code for pretty-printer by
7107 "#if HAVE_PYTHON" and "#endif".
7108 (update_dynamic_varobj_children): Likewise.
7110 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7111 Yao Qi <yao@codesourcery.com>
7113 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7114 gdb_python_initialized is false. Move some code from varobj.c.
7115 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7116 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7117 (struct varobj_item): Moved to varobj-iter.h".
7118 (varobj_clear_saved_item): New function.
7119 (update_dynamic_varobj_children): Move python-related code to
7121 (free_variable): Call varobj_clear_saved_item and
7124 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7125 Yao Qi <yao@codesourcery.com>
7127 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7128 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7129 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7130 (py-varobj.o): New rule.
7131 * python/py-varobj.c: New file.
7132 * python/python-internal.h (py_varobj_get_iterator): Declare.
7133 * varobj-iter.h: New file.
7134 * varobj.c: Include "varobj-iter.h"
7135 (struct varobj) <child_iter>: Change its type from "PyObject *"
7136 to "struct varobj_iter *".
7137 <saved_item>: Likewise.
7138 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7139 [HAVE_PYTHON] (varobj_get_iterator): New function.
7140 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7141 python-specific code to python/py-varobj.c.
7142 (install_visualizer): Call varobj_iter_delete instead of
7144 * varobj.h (varobj_ensure_python_env): Declare.
7146 2014-06-12 Yao Qi <yao@codesourcery.com>
7148 * varobj.c (struct varobj_item): New structure.
7149 (create_child_with_value): Update declaration.
7150 (varobj_add_child): Replace arguments 'name' and 'value' with
7151 'item'. All callers updated.
7152 (install_dynamic_child): Likewise.
7153 (update_dynamic_varobj_children): Likewise.
7154 (varobj_add_child): Likewise.
7155 (create_child_with_value): Likewise.
7157 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7159 * NEWS: Create a new section for the next release branch.
7160 Rename the section of the current branch, now that it has
7163 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7165 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7166 * version.in: Bump version to 7.8.50.DATE-cvs.
7168 2014-06-11 Pedro Alves <palves@redhat.com>
7171 * ser-mingw.c (net_windows_socket_check_pending): New function.
7172 (net_windows_select_thread): Ignore spurious wakeups. Use
7173 net_windows_socket_check_pending.
7174 (net_windows_wait_handle): Check for pending events with
7175 ioctlsocket, through net_windows_socket_check_pending, instead of
7176 checking the socket's event.
7178 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7180 * python/python-internal.h (gdb_PyObject_GetAttrString)
7181 (gdb_PyObject_HasAttrString): New inline function definitions.
7182 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7183 char * of the second argument to PyObject_GetAttrString.
7185 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7187 * serial.c (serial_write): Fix index of character to be printed
7188 in call to serial_logchar when serial debug traces are enabled.
7190 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7192 * gdbtypes (resolve_dynamic_range): Add function description.
7194 2014-06-09 Pedro Alves <palves@redhat.com>
7196 * linux-nat.c (linux_child_follow_fork): Initialize status with
7197 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7198 inner block. Only pass the signal to PTRACE_DETACH if in pass
7201 2014-06-09 Gary Benson <gbenson@redhat.com>
7203 * common/signals.c (gdb_signal_from_host): Reorder to separate
7204 the always-available ANSI-standard signals from the signals that
7206 (do_gdb_signal_to_host): Likewise.
7207 * proc-events.c (signal_table): Likewise.
7209 2014-06-08 Hui Zhu <hui@codesourcery.com>
7211 * common/linux-ptrace.c (linux_disable_event_reporting): New
7213 * common/linux-ptrace.h (linux_disable_event_reporting): New
7215 * linux-nat.c (linux_child_follow_fork): Do a single step before
7218 2014-06-07 Keith Seitz <keiths@redhat.com>
7222 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7223 from symbol_matches_domain in symtab.c. All local callers
7224 of symbol_matches_domain updated.
7225 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7226 search STRUCT_DOMAIN.
7227 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7228 independently. standard_lookup will do that automatically.
7229 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7230 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7231 (cp_lookup_symbol_in_namespace): Likewise.
7232 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7233 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7234 may return a STRUCT_DOMAIN match.
7235 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7236 * cp-support.c: Include language.h.
7237 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7239 * psymtab.c (match_partial_symbol): Compare the requested
7240 domain with the symbol's domain directly.
7241 (lookup_partial_symbol): Likewise.
7242 * symtab.c (lookup_symbol_in_language): Explain when/why
7243 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7244 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7245 appropriate languages.
7246 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7247 and moved to ada-lang.c
7248 (lookup_block_symbol): Explain that this function only returns
7249 symbol matching the requested DOMAIN.
7250 Compare the requested domain with the symbol's domain directly.
7251 (iterate_over_symbols): Compare the requested domain with the
7252 symbol's domain directly.
7253 * symtab.h (symbol_matches_domain): Remove.
7255 2014-06-06 Doug Evans <xdje42@gmail.com>
7257 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7258 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7259 (gdbscm_guile_version_is_at_least): Declare.
7260 (gdbscm_scm_string_to_int): Declare.
7261 * guile/guile.c (gdbscm_guile_major_version): New global.
7262 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7263 (guile_datadir): New static global.
7264 (gdbscm_guile_data_directory): New function.
7265 (initialize_scheme_side): Update.
7266 (misc_guile_functions): Add guile-data-directory.
7267 (initialize_gdb_module): Fetch guile version number.
7268 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7269 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7270 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7271 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7273 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7274 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7275 * guile/scm-value.c (gdbscm_value_to_string): Only call
7276 scm_port_conversion_strategy if Guile version >= 2.0.6.
7278 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7280 * main.c (print_gdb_help): Add -q and --silent.
7282 2014-06-06 Gary Benson <gbenson@redhat.com>
7284 * common/signals.c: Remove preprocessor conditionals for
7285 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7286 SIGSEGV and SIGTERM.
7287 * proc-events.c: Likewise.
7289 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7291 * symfile.c (symfile_free_objfile): Remove restriction to
7293 * symfile-mem.c (symbol_file_add_from_memory): Call
7294 add_target_sections_of_objfile.
7296 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7298 * guile/scm-value.c (gdbscm_history_append_x): Use
7299 'vlscm_get_value_smob_arg_unsafe' instead of
7300 'vlscm_scm_to_value'.
7302 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7305 * utils.c (printchar): Don't escape at all if quoter is NUL.
7306 Update function documentation to clarify effect of parameter
7308 * remote.c (escape_buffer): Pass '\\' as the quoter to
7309 fputstrn_unfiltered.
7310 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7311 generate the output.
7312 (mi_solib_unloaded): Same.
7314 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7316 * development.sh: Delete.
7317 * Makefile.in (config.status): Adjust dependency on development.sh.
7318 * configure.ac: Adjust development.sh source call.
7319 * configure: Regenerate.
7321 2014-06-04 Doug Evans <xdje42@gmail.com>
7323 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7324 is_scheme_bkpt, spec.
7325 (bpscm_make_breakpoint_smob): Initialize new members.
7326 (gdbscm_create_breakpoint_x): Split into two ...
7327 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7328 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7329 (scheme_function breakpoint_functions): Update.
7330 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7331 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7332 register-breakpoint!.
7334 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7337 * mem-break.c (z_type_supported): Return zero if
7338 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7340 2014-06-04 Tom Tromey <tromey@redhat.com>
7342 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7343 value_from_contents_and_address_unresolved.
7344 (ada_template_to_fixed_record_type_1): Likewise.
7345 (ada_which_variant_applies): Likewise.
7346 * value.h (value_from_contents_and_address_unresolved): Declare.
7347 * value.c (value_from_contents_and_address_unresolved): New
7349 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7350 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7351 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7353 2014-06-04 Tom Tromey <tromey@redhat.com>
7355 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7357 2014-06-04 Tom Tromey <tromey@redhat.com>
7359 * procfs.c (procfs_attach): Make "args" const.
7360 * windows-nat.c (windows_attach): Make "args" const.
7361 * nto-procfs.c (procfs_attach): Make "args" const.
7362 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7363 * go32-nat.c (go32_attach): Make "args" const.
7364 * gnu-nat.c (gnu_attach): Make "args" const.
7365 * darwin-nat.c (darwin_attach): Make "args" const.
7366 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7367 * linux-nat.c (linux_nat_attach): Make "args" const.
7368 * remote.c (extended_remote_attach_1, extended_remote_attach):
7370 * target.h (struct target_ops) <to_attach>: Make "args" const.
7371 (find_default_attach): Likewise.
7372 * utils.c (parse_pid_to_attach): Make "args" const.
7373 * utils.h (parse_pid_to_attach): Update.
7375 2014-06-04 Tom Tromey <tromey@redhat.com>
7377 * target-delegates.c: Rebuild.
7378 * target.c (default_thread_address_space): New function.
7379 (target_thread_address_space): Simplify.
7380 * target.h (struct target_ops) <to_thread_address_space>: Add
7381 TARGET_DEFAULT_FUNC.
7383 2014-06-04 Doug Evans <xdje42@gmail.com>
7385 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7387 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7389 * record-btrace.c: Include event-loop.h and inf-loop.h.
7390 (record_btrace_resume_exec_dir)
7391 (record_btrace_async_inferior_event_handler)
7392 (record_btrace_handle_async_inferior_event): New.
7393 (record_btrace_open): Create async event handler.
7394 (record_btrace_close): Delete async event handler.
7395 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7396 Mark async event handler.
7397 (record_btrace_execution_direction): New.
7398 (init_record_btrace_ops): Initialize to_execution_direction.
7400 2014-06-03 Doug Evans <xdje42@gmail.com>
7402 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7403 (gdbscm_make_parameter): Ditto.
7405 2014-06-03 Doug Evans <dje@google.com>
7407 * exec.c (exec_close_1): Call clear_section_table instead of
7408 resize_section_table.
7409 (clear_section_table): New function.
7410 (resize_section_table): Make static. Rename arg num_added to
7412 * exec.h (clear_section_table): Declare.
7413 (resize_section_table): Delete.
7414 * progspace.c (release_program_space): Call clear_section_table
7415 instead of resize_section_table.
7417 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7419 * NEWS (Python Scripting): Add entry about the new xmethods
7422 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7424 * python/py-xmethods.c: New file.
7425 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7426 (objfpy_dealloc): XDECREF on the new xmethods field.
7427 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7429 (objfpy_get_xmethods): New function.
7430 (objfile_getset): New entry 'xmethods'.
7431 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7432 (pspy_dealloc): XDECREF on the new xmethods field.
7433 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7435 (pspy_get_xmethods): New function.
7436 (pspace_getset): New entry 'xmethods'.
7437 * python/python-internal.h: Add declarations for new functions.
7438 * python/python.c (_initialize_python): Invoke
7439 gdbpy_initialize_xmethods.
7440 * python/lib/gdb/__init__.py (xmethods): New
7442 * python/lib/gdb/xmethod.py: New file.
7443 * python/lib/gdb/command/xmethods.py: New file.
7445 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7447 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7448 best match method returned by find_overload_match is an xmethod.
7449 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7450 the best matching operator returned by find_overload_match is an
7452 * valops.c: #include "extension.h".
7453 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7454 Return void. The list of matching source methods is returned in
7455 "fn_list" and a vector of matching debug method workers is
7456 returned in "xm_worker_vec". Update all callers.
7457 (value_find_oload_method_list): Likewise.
7458 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7459 non-NULL, then the index of the best matching method in this
7460 vector is returned. Update all callers.
7461 (find_overload_match): Include xmethods while performing overload
7464 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7466 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7467 * extension-priv.h (struct extension_language_ops): Add the
7469 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7470 get_matching_xmethod_workers, get_xmethod_argtypes,
7471 invoke_xmethod, free_xmethod_worker,
7472 free_xmethod_worker_vec): New functions.
7473 * extension.h: #include "common/vec.h".
7474 New function declarations.
7475 (struct xmethod_worker): New struct.
7476 (VEC (xmethod_worker_ptr)): New vector type.
7477 (xmethod_worker_ptr): New typedef.
7478 (xmethod_worker_vec): Likewise.
7479 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7481 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7482 (struct builtin_type): New field "xmethod".
7483 * valarith.c (value_ptradd): Assert that the value argument is not
7485 * valops.c (value_must_coerce_to_target): Return 0 for
7486 lval_xcallable values.
7487 * value.c (struct value): New field XM_WORKER in the field
7489 (value_address, value_raw_address): Return 0 for lval_xcallable
7491 (set_value_address): Assert that the value is not an
7493 (value_free): Free the associated xmethod worker when freeing
7494 lval_xcallable values.
7495 (set_value_component_location): Assert that the WHOLE value is not
7497 (value_of_xmethod, call_xmethod): New functions.
7498 * value.h: Declare "struct xmethod_worker".
7499 Declare new functions value_of_xmethod, call_xmethod.
7501 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7502 Pedro Alves <palves@redhat.com>
7504 PR breakpoints/17000
7505 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7506 New function, extracted from software_breakpoint_inserted_here_p.
7507 (software_breakpoint_inserted_here_p): Replace factored out code
7508 by call to find_non_raw_software_breakpoint_inserted_here.
7509 (bp_target_info_copy_insertion_state): New function.
7510 (bkpt_insert_location): Handle the case of a single-step
7511 breakpoint already inserted at the same address.
7512 (bkpt_remove_location): Handle the case of a single-step
7513 breakpoint still inserted at the same address.
7514 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7515 breakpoint already inserted at the same address.
7516 (deprecated_remove_raw_breakpoint): Handle the case of a
7517 non-raw breakpoint still inserted at the same address.
7518 (find_single_step_breakpoint): New function, extracted from
7519 single_step_breakpoint_inserted_here_p.
7520 (find_single_step_breakpoint): New function,
7521 factored out from single_step_breakpoint_inserted_here_p.
7522 (single_step_breakpoint_inserted_here_p): Reimplement.
7524 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7526 Pushed by Joel Brobecker <brobecker@adacore.com>
7527 * source.c (show_substitute_path_command): Fix display of matching
7530 2014-06-03 Gary Benson <gbenson@redhat.com>
7532 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7534 2014-06-02 Doug Evans <xdje42@gmail.com>
7536 Add parameter support for Guile.
7537 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7538 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7539 (scm-param.o): New rule.
7540 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7541 (gdbscm_misc_error): Declare.
7542 (gdbscm_canonicalize_command_name): Declare.
7543 (gdbscm_scm_to_host_string): Declare.
7544 (gdbscm_scm_from_host_string): Declare.
7545 (gdbscm_initialize_parameters): Declare.
7546 * guile/guile.c (initialize_gdb_module): Call
7547 gdbscm_initialize_parameters.
7548 * guile/lib/gdb.scm: Export parameter symbols.
7549 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7550 cmdscm_canonicalize_name and made public. All callers updated.
7551 * guile/scm-exception.c (gdbscm_misc_error): New function.
7552 * guile/scm-param.c: New file.
7553 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7554 (gdbscm_scm_to_host_string): New function.
7555 (gdbscm_scm_from_host_string): New function.
7556 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7558 2014-06-02 Doug Evans <xdje42@gmail.com>
7560 Add command support for Guile.
7561 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7562 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7563 (scm-cmd.o): New rule.
7564 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7565 (gdbscm_user_error_p): Declare.
7566 (gdbscm_parse_command_name): Declare.
7567 (gdbscm_valid_command_class_p): Declare.
7568 (gdbscm_initialize_commands): Declare.
7569 * guile/guile.c (initialize_gdb_module): Call
7570 gdbscm_initialize_commands.
7571 * guile/lib/gdb.scm: Export command symbols.
7572 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7573 (throw-user-error): New function.
7574 * guile/scm-cmd.c: New file.
7575 * guile/scm-exception.c (user_error_symbol): New static global.
7576 (gdbscm_user_error_p): New function.
7577 (gdbscm_initialize_exceptions): Set user_error_symbol.
7578 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7580 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7582 * top.c (command_loop): Handle comments here...
7583 (command_line_input): ... not here.
7585 2014-06-02 Doug Evans <xdje42@gmail.com>
7587 Add progspace support for Guile.
7588 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7589 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7590 (scm-progspace.o): New rule.
7591 * guile/guile-internal.h (pspace_smob): New typedef.
7592 (psscm_pspace_smob_pretty_printers): Declare.
7593 (psscm_pspace_smob_from_pspace): Declare.
7594 (psscm_scm_from_pspace): Declare.
7595 * guile/guile.c (initialize_gdb_module): Call
7596 gdbscm_initialize_pspaces.
7597 * guile/lib/gdb.scm: Export progspace symbols.
7598 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7600 (append-pretty-printer!): Ditto.
7601 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7603 * guile/scm-progspace.c: New file.
7605 2014-06-03 Alan Modra <amodra@gmail.com>
7607 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7608 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7610 2014-06-02 Doug Evans <dje@google.com>
7612 Add support for skeletonless type units.
7613 * dwarf2read.c (struct dwarf2_per_objfile): New member
7614 n_allocated_type_units.
7615 (struct dwarf2_per_objfile) <tu_stats>: New member
7616 nr_all_type_units_reallocs.
7617 (create_signatured_type_table_from_index): Initialize
7618 n_allocated_type_units
7619 (create_all_type_units): Ditto.
7620 (add_type_unit): Move up in file. New arg slot.
7621 All callers updated. Increase space for all_type_units more
7623 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7624 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7625 (lookup_dwp_signatured_type): Ditto.
7626 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7627 All callers updated.
7628 (build_type_psymtabs_1): Leave type_unit_groups as
7629 NULL if no TUs present.
7630 (print_tu_stats): New function.
7631 (process_skeletonless_type_unit): New function.
7632 (process_dwo_file_for_skeletonless_type_units): New
7634 (process_skeletonless_type_units): New function.
7635 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7636 Call print tu_stats if debugging enabled.
7638 2014-06-02 Pedro Alves <palves@redhat.com>
7640 * breakpoint.c (build_target_command_list): Don't build a command
7641 list if we have any duplicate location that isn't a dprintf.
7643 2014-06-02 Pedro Alves <palves@redhat.com>
7645 * breakpoint.c (dprintf_breakpoint_hit): New function.
7646 (initialize_breakpoint_ops): Install it as dprintf's
7647 breakpoint_hit method.
7649 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7651 * source.c (substitute_path_rule_matches): Simplify using
7652 filename_ncmp instead of FILENAME_CMP.
7654 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7656 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7658 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7660 * configure.ac: When Guile is available, check for the
7661 availability of 'scm_new_smob'.
7662 * configure, config.h.in: Regenerate.
7663 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7666 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7668 * frame.c (struct frame_info): Add stop_string field.
7669 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7670 (get_prev_frame_always): Old content moved into
7671 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7672 TRY_CATCH, handle MEMORY_ERROR exceptions.
7673 (frame_stop_reason_string): New function definition.
7674 * frame.h (unwind_stop_reason_to_string): Extend comment to
7675 mention frame_stop_reason_string.
7676 (frame_stop_reason_string): New function declaration.
7677 * stack.c (frame_info): Switch to frame_stop_reason_string.
7678 (backtrace_command_1): Switch to frame_stop_reason_string.
7679 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7680 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7681 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7683 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7685 * frame.c (frame_stop_reason_string): Rename to ...
7686 (unwind_stop_reason_to_string): this.
7687 * frame.h (frame_stop_reason_string): Rename to ...
7688 (unwind_stop_reason_to_string): this.
7689 * stack.c (frame_info): Update call to frame_stop_reason_string.
7690 (backtrace_command_1): Likewise.
7691 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7692 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7694 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7696 * frame.c (remove_prev_frame): New function.
7697 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7700 2014-05-29 Pedro Alves <palves@redhat.com>
7702 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7703 and make it const. When a single-step decays to a continue,
7704 clear 'step', not 'hw_step'. Pass whether the caller wanted
7705 to step to user_visible_resume_ptid, not what we ask the
7708 2014-05-29 Pedro Alves <palves@redhat.com>
7710 * infrun.c (process_event_stop_test, handle_step_into_function)
7711 (handle_step_into_function_backward): Adjust.
7712 Don't set the even thread's stop_step and call stop_waiting before
7713 calling end_stepping_range. Instead do that ...
7714 (end_stepping_range): ... here. Take an ecs pointer parameter.
7716 2014-05-29 Pedro Alves <palves@redhat.com>
7718 * infrun.c (stop_stepping): Rename to ...
7719 (stop_waiting): ... this.
7720 (proceed): Update comment.
7721 (process_event_stop_test, handle_inferior_event)
7722 (handle_signal_stop, handle_step_into_function)
7723 (handle_step_into_function_backward): Update.
7725 2014-05-29 Pedro Alves <palves@redhat.com>
7727 * infcall.c (run_inferior_call): Don't check whether the current
7728 thread is running after the proceed call.
7730 2014-05-29 Pedro Alves <palves@redhat.com>
7731 Tom Tromey <tromey@redhat.com>
7733 * NEWS: Mention "maint set target-async", "set mi-async", and that
7734 background execution commands are now always available.
7735 * target.h (target_async_permitted): Update comment.
7736 * target.c (target_async_permitted, target_async_permitted_1):
7738 (set_target_async_command): Rename to ...
7739 (maint_set_target_async_command): ... this.
7740 (show_target_async_command): Rename to ...
7741 (maint_show_target_async_command): ... this.
7742 (_initialize_target): Adjust.
7743 * infcmd.c (prepare_execution_command): Make extern.
7744 * inferior.h (prepare_execution_command): Declare.
7745 * infrun.c (set_observer_mode): Leave target async alone.
7746 * mi/mi-interp.c (mi_interpreter_init): Install
7747 mi_on_sync_execution_done as sync_execution_done observer.
7748 (mi_on_sync_execution_done): New function.
7749 (mi_execute_command_input_handler): Don't print the prompt if we
7750 just started a synchronous command with an async target.
7751 (mi_on_resume): Check sync_execution before printing prompt.
7752 * mi/mi-main.h (mi_async_p): Declare.
7753 * mi/mi-main.c: Include gdbcmd.h.
7754 (mi_async_p): New function.
7755 (mi_async, mi_async_1): New globals.
7756 (set_mi_async_command, show_mi_async_command, mi_async): New
7758 (exec_continue): Call prepare_execution_command.
7759 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7760 (mi_execute_async_cli_command): Use mi_async_p.
7761 (_initialize_mi_main): Install "set mi-async". Make
7762 "target-async" a deprecated alias.
7764 2014-05-29 Pedro Alves <palves@redhat.com>
7766 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7767 (_initialize_cli_interp): Adjust.
7768 * event-loop.c: Include "observer.h".
7769 (start_event_loop): Notify 'command_error' observers instead of
7770 calling display_gdb_prompt. Remove FIXME comment.
7771 * event-top.c (display_gdb_prompt): Remove call into the
7773 * inf-loop.c: Include "observer.h".
7774 (inferior_event_handler): Notify 'command_error' observers instead
7775 of calling display_gdb_prompt.
7776 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7777 observers instead of calling display_gdb_prompt.
7778 * interps.c (interp_set): Don't call display_gdb_prompt.
7779 (current_interp_display_prompt_p): Delete.
7780 * interps.h (interp_prompt_p): Delete declaration.
7781 (interp_prompt_p_ftype): Delete.
7782 (struct interp_procs) <prompt_proc_p>: Delete field.
7783 (current_interp_display_prompt_p): Delete declaration.
7784 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7785 (_initialize_mi_interp): Adjust.
7786 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7787 'command_error' observers.
7788 (tui_on_sync_execution_done, tui_on_command_error): New
7790 (tui_display_prompt_p): Delete.
7791 (_initialize_tui_interp): Adjust.
7793 2014-05-29 Pedro Alves <palves@redhat.com>
7796 * cli/cli-interp.c: Include infrun.h and observer.h.
7797 (cli_uiout, cli_interp): New globals.
7798 (cli_on_signal_received, cli_on_end_stepping_range)
7799 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7801 (cli_interpreter_init): Install them as 'end_stepping_range',
7802 'signal_received' 'signal_exited', 'exited' and 'no_history'
7804 (_initialize_cli_interp): Remove cli_interp local.
7805 * infrun.c (handle_inferior_event): Call the several stop reason
7806 observers instead of printing the stop reason directly.
7807 (end_stepping_range): New function.
7808 (print_end_stepping_range_reason, print_signal_exited_reason)
7809 (print_exited_reason, print_signal_received_reason)
7810 (print_no_history_reason): Make static, and add an uiout
7811 parameter. Print to that instead of to CURRENT_UIOUT.
7812 * infrun.h (print_end_stepping_range_reason)
7813 (print_signal_exited_reason, print_exited_reason)
7814 (print_signal_received_reason print_no_history_reason): New
7816 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7818 <cli_uiout>: New field.
7819 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7820 uiout for CLI output. Install 'signal_received',
7821 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7823 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7824 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7825 (mi_on_no_history): New functions.
7826 (ui_out_free_cleanup): Delete function.
7827 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7828 instead use the one already stored in the MI interpreter data.
7829 (mi_ui_out): Adjust.
7830 * tui/tui-interp.c: Include infrun.h and observer.h.
7831 (tui_interp): New global.
7832 (tui_on_signal_received, tui_on_end_stepping_range)
7833 (tui_on_signal_exited, tui_on_exited)
7834 (tui_on_no_history): New functions.
7835 (tui_init): Install them as 'end_stepping_range',
7836 'signal_received' 'signal_exited', 'exited' and 'no_history'
7838 (_initialize_tui_interp): Delete tui_interp local.
7840 2014-05-29 Pedro Alves <palves@redhat.com>
7843 * linux-nat.c (linux_nat_resume_callback): Rename the second
7844 parameter to 'except'. Skip LP if it points to EXCEPT.
7845 (linux_nat_resume): Don't mark the event lwp as not stopped
7846 before resuming sibling lwps. Instead ask
7847 linux_nat_resume_callback to skip the event lwp. Mark it as not
7848 stopped after actually resuming it.
7849 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7851 (wait_lwp): Mark the lwp as stopped here.
7852 (stop_wait_callback): Mark the lwp as not stopped right after
7853 resuming it. Don't mark lwps as stopped here.
7854 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7855 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7857 2014-05-29 Pedro Alves <palves@redhat.com>
7860 * infrun.c (resume): Determine how much to resume depending on
7861 whether the caller wanted a step, not whether we can hardware step
7862 the target. Mark all threads that we intend to run as running,
7863 unless we're calling an inferior function.
7864 (normal_stop): If the thread is running an infcall, don't finish
7866 * target.c (target_resume): Don't mark threads as running here.
7868 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7870 * serial.c (_initialize_serial): Remove support for
7871 the "set remotebaud" and "show remotebaud" commands.
7872 * NEWS: Add entry documenting the removal of that command.
7874 2014-05-28 Yao Qi <yao@codesourcery.com>
7876 * charset.c: Fix typo in comments.
7878 2014-05-27 Gary Benson <gbenson@redhat.com>
7880 * utils.c (internal_vproblem): Prompt for a bug report.
7882 2014-05-26 Andy Wingo <wingo@igalia.com>
7884 * guile/scm-arch.c (arscm_mark_arch_smob):
7885 * guile/scm-block.c (bkscm_mark_block_smob)
7886 (bkscm_mark_block_syms_progress_smob):
7887 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7888 * guile/scm-exception.c (exscm_mark_exception_smob):
7889 * guile/scm-frame.c (frscm_mark_frame_smob):
7890 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7891 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7892 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7893 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7894 (ppscm_mark_pretty_printer_worker_smob):
7895 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7896 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7897 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7898 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7900 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7903 2014-05-26 Andy Wingo <wingo@igalia.com>
7904 Doug Evans <xdje42@gmail.com>
7906 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7907 empty_base_class. All uses updated.
7908 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7909 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7911 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7912 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7913 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7914 (gdbscm_gsmob_has_property_p, add_property_name)
7915 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7916 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7917 (gdb-object-has-property?, gdb-object-properties): Remove.
7918 (gdb-object-kind): Renamed from gsmob-kind.
7920 2014-05-26 Andy Wingo <wingo@igalia.com>
7922 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7923 * configure: Regenerate.
7925 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7927 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7929 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7931 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7932 (replay_memory_access_read_only, replay_memory_access_read_write)
7933 (replay_memory_access_types, replay_memory_access)
7934 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7935 (cmd_set_record_btrace, cmd_show_record_btrace)
7936 (cmd_show_replay_memory_access): New.
7937 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7938 (record_btrace_remove_breakpoint): Replace
7939 record_btrace_allow_memory_access with replay_memory_access.
7940 (_initialize_record_btrace): Add commands.
7941 * NEWS: Announce it.
7943 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7945 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7947 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7949 * MAINTAINERS (Write After Approval): Move self back from
7952 2014-05-22 Pedro Alves <palves@redhat.com>
7954 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7955 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7956 (disable_randomization, enum exec_direction_kind)
7957 (execution_direction, stop_registers, start_remote)
7958 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7959 (wait_for_inferior, normal_stop, get_last_target_status)
7960 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7961 (insert_step_resume_breakpoint_at_sal)
7962 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7963 (set_step_info, print_stop_event, signal_stop_state)
7964 (signal_print_state, signal_pass_state, signal_stop_update)
7965 (signal_print_update, signal_pass_update)
7966 (update_signals_program_target, clear_exit_convenience_vars)
7967 (displaced_step_dump_bytes, update_observer_mode)
7968 (signal_catch_update, gdb_signal_from_command): Move
7970 * infrun.h: ... to this new file.
7971 * amd64-tdep.c: Include infrun.h.
7972 * annotate.c: Include infrun.h.
7973 * arch-utils.c: Include infrun.h.
7974 * arm-linux-tdep.c: Include infrun.h.
7975 * arm-tdep.c: Include infrun.h.
7976 * break-catch-sig.c: Include infrun.h.
7977 * breakpoint.c: Include infrun.h.
7978 * common/agent.c: Include infrun.h instead of inferior.h.
7979 * corelow.c: Include infrun.h.
7980 * event-top.c: Include infrun.h.
7981 * go32-nat.c: Include infrun.h.
7982 * i386-tdep.c: Include infrun.h.
7983 * inf-loop.c: Include infrun.h.
7984 * infcall.c: Include infrun.h.
7985 * infcmd.c: Include infrun.h.
7986 * infrun.c: Include infrun.h.
7987 * linux-fork.c: Include infrun.h.
7988 * linux-nat.c: Include infrun.h.
7989 * linux-thread-db.c: Include infrun.h.
7990 * monitor.c: Include infrun.h.
7991 * nto-tdep.c: Include infrun.h.
7992 * procfs.c: Include infrun.h.
7993 * record-btrace.c: Include infrun.h.
7994 * record-full.c: Include infrun.h.
7995 * remote-m32r-sdi.c: Include infrun.h.
7996 * remote-mips.c: Include infrun.h.
7997 * remote-notif.c: Include infrun.h.
7998 * remote-sim.c: Include infrun.h.
7999 * remote.c: Include infrun.h.
8000 * reverse.c: Include infrun.h.
8001 * rs6000-tdep.c: Include infrun.h.
8002 * s390-linux-tdep.c: Include infrun.h.
8003 * solib-irix.c: Include infrun.h.
8004 * solib-osf.c: Include infrun.h.
8005 * solib-svr4.c: Include infrun.h.
8006 * target.c: Include infrun.h.
8007 * top.c: Include infrun.h.
8008 * windows-nat.c: Include infrun.h.
8009 * mi/mi-interp.c: Include infrun.h.
8010 * mi/mi-main.c: Include infrun.h.
8011 * python/py-threadevent.c: Include infrun.h.
8013 2014-05-22 Pedro Alves <palves@redhat.com>
8015 * infrun.c (handle_inferior_event): Store the exit code for
8016 --return-child-result here, instead of ...
8017 (print_exited_reason): ... here.
8019 2014-05-21 Pedro Alves <palves@redhat.com>
8022 * gdbthread.h (struct thread_control_state): New field
8024 * infrun.c (follow_fork): Copy the new thread control field to the
8026 (clear_proceed_status_thread): Clear the new thread control field.
8027 (proceed): Set the new thread control field.
8028 * interps.h (command_interp): Declare.
8029 * interps.c (command_interpreter): New global.
8030 (command_interp): New function.
8031 (interp_exec): Set `command_interpreter' while here.
8032 * cli-out.c (cli_uiout_dtor): New function.
8033 (cli_ui_out_impl): Install it.
8034 * mi/mi-interp.c: Include cli-out.h.
8035 (mi_cmd_interpreter_exec): Add comment.
8036 (restore_current_uiout_cleanup): New function.
8037 (ui_out_free_cleanup): New function.
8038 (mi_on_normal_stop): If finishing an execution command started by
8039 a CLI command, or any kind of breakpoint-like event triggered,
8040 print the stop event to the output (CLI) stream.
8041 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8043 2014-05-21 Pedro Alves <palves@redhat.com>
8045 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8046 current source line having changed.
8047 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8048 * infrun.c (normal_stop): Adjust call to
8049 set_current_sal_from_frame.
8050 * source.c (clear_lines_listed_range): New function.
8051 (set_current_source_symtab_and_line, identify_source_line): Clear
8052 the lines listed range.
8053 (line_info): Handle the first "info line" after the current source
8054 line having changed.
8055 * stack.c (print_stack_frame): Remove center handling.
8056 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8059 2014-05-21 Pedro Alves <palves@redhat.com>
8061 * inf-child.c (inf_child_mourn_inferior): New function.
8062 * inf-child.h (inf_child_mourn_inferior): New declaration.
8063 * darwin-nat.c (darwin_mourn_inferior): Use
8064 inf_child_mourn_inferior.
8065 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8066 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8067 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8068 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8069 * windows-nat.c (windows_mourn_inferior): Likewise.
8071 2014-05-21 Doug Evans <xdje42@gmail.com>
8073 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8075 2014-05-21 Doug Evans <xdje42@gmail.com>
8077 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8078 (gdbscm_out_of_range_error): Ditto.
8079 (gdbscm_memory_error): Ditto.
8080 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8081 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8082 (gdbscm_out_of_range_error): Update.
8083 (gdbscm_memory_error): Update.
8084 (gdbscm_scm_to_target_string_unsafe): Delete.
8086 2014-05-21 Pedro Alves <palves@redhat.com>
8088 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8090 (inf_child_open_target): New function.
8091 (inf_child_open): Use inf_child_open_target to push the target
8092 instead of erroring out.
8093 (inf_child_disconnect, inf_child_close)
8094 (inf_child_maybe_unpush_target): New functions.
8095 (inf_child_target): Install inf_child_disconnect and
8096 inf_child_close. Store a pointer to the returned object.
8097 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8099 * target.c (auto_connect_native_target): New global.
8100 (show_default_run_target): New function.
8101 (find_default_run_target): Return NULL if automatically connecting
8102 to the native target is disabled.
8103 (_initialize_target): Install set/show auto-connect-native-target.
8104 * NEWS: Mention "set auto-connect-native-target", and "target
8106 * linux-nat.c (super_close): New global.
8107 (linux_nat_close): Call super_close.
8108 (linux_nat_add_target): Store a pointer to the base class's
8110 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8111 inf_child_maybe_unpush.
8112 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8114 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8115 the inferior. Use inf_child_maybe_unpush_target.
8116 (inf_ttrace_attach): Don't push the target if it is already
8118 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8119 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8120 after mourning the inferior. Use inf_child_maybe_unpush_target.
8121 (darwin_attach_pid): Don't push the target if it is already
8123 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8124 mourning the inferior. Use inf_child_maybe_unpush_target.
8125 (gnu_detach): Use inf_child_maybe_unpush_target.
8126 * go32-nat.c (go32_create_inferior): Don't push the target if it
8128 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8129 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8130 (procfs_open): Rename to ...
8131 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8132 comments. Can target_preopen before changing node. Call
8133 inf_child_open_target to push the target explicitly.
8134 (procfs_attach): Don't push the target if it is already pushed.
8135 (procfs_detach): Use inf_child_maybe_unpush_target.
8136 (procfs_create_inferior): Don't push the target if it is already
8138 (nto_native_ops): New global.
8139 (procfs_open): Reimplement.
8140 (procfs_native_open): New function.
8141 (init_procfs_targets): Install procfs_native_open as to_open of
8142 "target native". Store a pointer to the "native" target in
8144 * procfs.c (procfs_attach): Don't push the target if it is already
8146 (procfs_detach): Use inf_child_maybe_unpush_target.
8147 (procfs_mourn_inferior): Only unpush the target after mourning the
8148 inferior. Use inf_child_maybe_unpush_target.
8149 (procfs_init_inferior): Don't push the target if it is already
8151 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8152 if it is already pushed.
8154 2014-05-21 Pedro Alves <palves@redhat.com>
8156 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8157 and "procfs" targets are now called "native" instead.
8159 2014-05-21 Pedro Alves <palves@redhat.com>
8161 * go32-nat.c (go32_open): Delete.
8162 (go32_target): Don't override the to_open method.
8164 2014-05-21 Pedro Alves <palves@redhat.com>
8166 * nto-procfs.c (procfs_can_run): New function.
8167 (nto_procfs_ops): New global.
8168 (init_procfs_targets): New, based on procfs_target. Install
8169 "target native" in addition to "target procfs".
8170 (_initialize_procfs): Call init_procfs_targets instead of adding
8173 2014-05-21 Pedro Alves <palves@redhat.com>
8175 * windows-nat.c (windows_target): Don't override to_shortname,
8176 to_longname or to_doc.
8178 2014-05-21 Pedro Alves <palves@redhat.com>
8180 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8183 2014-05-21 Pedro Alves <palves@redhat.com>
8185 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8186 to_shortname, to_longname or to_doc.
8188 2014-05-21 Pedro Alves <palves@redhat.com>
8190 * go32-nat.c (go32_target): Don't override to_shortname,
8191 to_longname or to_doc.
8193 2014-05-21 Pedro Alves <palves@redhat.com>
8195 * inf-child.c (inf_child_open): Remove mention of "child".
8196 (inf_child_target): Rename target to "native" instead of "child".
8198 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8200 * Makefile.in (SFILES): Delete "regset.c".
8201 (COMMON_OBS): Delete "regset.o".
8203 * regset.h (regset_alloc): Delete prototype.
8205 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8207 * sparc-linux-tdep.c (sparc32_linux_gregset)
8208 (sparc32_linux_fpregset): New static regset structures.
8209 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8210 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8212 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8213 (sparc64_linux_fpregset): New static regset structures.
8214 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8215 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8216 New static regset structures.
8217 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8218 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8219 New static regset structures.
8220 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8221 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8222 New static regset structures.
8223 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8224 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8225 New static regset structures.
8226 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8228 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8230 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8231 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8232 register maps ("regmaps") from "*regset" to "*regmap". Do this
8233 for all regmap types and variables.
8234 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8235 (sparc32_linux_supply_core_gregset)
8236 (sparc32_linux_collect_core_gregset)
8237 (sparc32_linux_supply_core_fpregset)
8238 (sparc32_linux_collect_core_fpregset): Likewise.
8239 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8240 (sparc_gregmap, sparc_fpregmap): ... these.
8241 (sparc_supply_gregset, sparc_collect_gregset)
8242 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8243 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8244 (_initialize_sparc_nat): Rename regmaps.
8245 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8246 (sparc_gregmap, sparc_fpregmap): ... these.
8247 (sparc_supply_gregset, sparc_collect_gregset)
8248 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8249 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8251 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8252 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8254 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8256 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8257 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8258 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8260 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8261 (sparc32_bsd_fpregset): Rename to...
8262 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8263 (sparc32_bsd_fpregmap): ... these.
8264 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8265 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8266 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8267 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8268 (struct sparc_gregmap, struct sparc_fpregmap)
8269 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8270 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8271 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8272 (sparc32_supply_regset, sparc32_collect_gregset)
8273 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8275 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8276 (sparc64_linux_ptrace_gregmap): ... this.
8277 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8278 (_initialize_sparc64_linux_nat): Rename regmaps.
8279 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8280 (sparc64_linux_core_gregmap): ... this.
8281 (sparc64_linux_supply_core_gregset)
8282 (sparc64_linux_collect_core_gregset)
8283 (sparc64_linux_supply_core_fpregset)
8284 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8285 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8286 (sparc64_sol2_fpregset): Rename to...
8287 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8288 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8289 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8291 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8292 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8293 (sparc64_bsd_fpregset): Rename to...
8294 (struct sparc_gregmap, sparc64_sol2_gregmap)
8295 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8296 (sparc64_bsd_fpregmap): ... these.
8297 (sparc64_supply_gregset, sparc64_collect_gregset)
8298 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8300 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8301 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8302 (sparc64fbsd_gregmap): ... this.
8303 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8304 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8306 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8307 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8308 (sparc64nbsd_collect_fpregset): Likewise.
8309 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8310 (sparc64nbsd_gregmap): ... this.
8311 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8313 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8314 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8315 (sparc64obsd_gregmap): ... this.
8316 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8318 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8319 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8320 (sparc32nbsd_gregmap): ... this.
8321 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8324 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8326 * score-tdep.c (score7_linux_gregset): New static regset
8328 (score7_linux_regset_from_core_section): Remove dynamic regset
8330 (score_gdbarch_init): Drop allocation of tdep structure.
8331 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8333 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8335 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8337 (am33_regset_from_core_section): Remove dynamic regset
8340 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8342 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8343 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8345 (mips_linux_regset_from_core_section): Remove dynamic regset
8347 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8348 'gregset64', 'fpregset', and 'fpregset64'.
8349 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8350 deleted tdep fields.
8352 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8354 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8356 (amd64_regset_from_core_section): Remove dynamic regset
8358 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8360 (amd64obsd_regset_from_core_section): Remove dynamic regset
8362 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8364 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8365 x86-common regset supply function.
8366 * i386-tdep.c (i386_collect_gregset): Make static.
8367 (i386_gregset): New global regset structure.
8368 (i386_fpregset, i386_xstateregset): New static regset structures.
8369 (i386_regset_from_core_section): Remove dynamic regset
8371 (i386_gdbarch_init): Remove initialization of tdep fields
8372 'gregset', 'fpregset', and 'xstateregset'.
8373 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8374 'fpregset', and 'xstateregset'.
8375 (i386_collect_gregset): Remove prototype.
8376 (i386_gregset): New declaration.
8377 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8379 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8382 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8384 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8385 (arm_linux_vfpregset): New static regset structures.
8386 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8388 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8389 and 'vfpregset' fields.
8391 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8393 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8394 (aarch64_linux_fpregset): New static regset structures.
8395 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8396 of regset structures.
8397 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8400 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8402 * regset.h (struct regset): Remove gdbarch field.
8403 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8404 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8405 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8407 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8408 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8409 (ppc32_linux_vsxregset): Likewise.
8410 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8411 via the regcache instead of the regset.
8412 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8413 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8414 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8415 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8418 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8420 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8421 Constify structures.
8422 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8423 (alphanbsd_aout_gregset): Likewise.
8424 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8425 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8427 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8428 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8430 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8431 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8432 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8433 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8434 * m88k-tdep.c (m88k_gregset): Likewise.
8435 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8436 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8437 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8438 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8439 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8440 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8441 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8442 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8443 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8445 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8446 * sh-tdep.h (sh_corefile_gregset): Likewise.
8447 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8448 * vax-tdep.c (vax_gregset): Likewise.
8450 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8452 Fix TLS access for -static -pthread.
8453 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8454 (try_thread_db_load_1): Initialize it.
8455 (thread_db_get_thread_local_address): Call it if LM is zero.
8456 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8457 * target.h (struct target_ops) (to_get_thread_local_address): Add
8458 load_module_addr comment.
8460 2014-05-21 Pedro Alves <palves@redhat.com>
8462 * dcache.c (dcache_read_memory_partial): If reading the cache line
8463 fails, fallback to reading just the memory the caller wanted.
8465 2014-05-20 Doug Evans <dje@google.com>
8467 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8468 instead of get_current_arch.
8470 2014-05-20 Pedro Alves <palves@redhat.com>
8472 * NEWS: Mention that compare-sections now works with all targets.
8474 * remote.c (PACKET_qCRC): New enum value.
8475 (remote_verify_memory): Don't send qCRC if the target has no
8476 execution. Use packet_support/packet_ok. If the target doesn't
8477 support the qCRC packet, fallback to a deep memory copy.
8478 (compare_sections_command): Say "target image" instead of "remote
8480 (_initialize_remote): Add PACKET_qCRC to the list of config
8481 packets that have no associated command. Extend comment.
8482 * target.c (simple_verify_memory, default_verify_memory): New
8484 * target.h (struct target_ops) <to_verify_memory>: Default to
8485 default_verify_memory.
8486 (simple_verify_memory): New declaration.
8487 * target-delegates.c: Regenerate.
8489 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8491 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8493 2014-05-20 Hui Zhu <hui@codesourcery.com>
8494 Yao Qi <yao@codesourcery.com>
8497 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8498 and change address of sp and pc.
8500 2014-05-19 Tom Tromey <tromey@redhat.com>
8502 * gdbtypes.c (rank_function): Use XNEWVEC.
8503 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8505 2014-05-19 Doug Evans <dje@google.com>
8507 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8508 build_type_unit_groups and moved closer to only caller. Remove
8509 arguments. All references updated. Remove outdated .gdb_index
8511 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8512 build_type_psymtabs_1.
8514 2014-05-19 Doug Evans <dje@google.com>
8516 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8517 n_type_unit_groups, all_type_unit_groups. All uses removed.
8518 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8519 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8520 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8521 (add_type_unit_group_to_table): Delete.
8523 2014-05-19 Doug Evans <dje@google.com>
8525 * eval.c (evaluate_subexp_standard): Add some comments.
8527 2014-05-17 Doug Evans <xdje42@gmail.com>
8529 * progspace.c (remove_program_space): Delete, unused.
8530 * progspace.h (remove_program_space): Ditto.
8532 2014-05-17 Doug Evans <xdje42@gmail.com>
8534 * inferior.c (prune_inferiors): Fix comment.
8535 (remove_inferior_command): Call prune_program_spaces.
8537 2014-05-16 Doug Evans <dje@google.com>
8539 New command line option -D.
8541 * main.c (set_gdb_data_directory): New function.
8542 (captured_main): Recognize -D. Flag error for --data-directory "".
8543 Call set_gdb_data_directory.
8544 (print_gdb_help): Print --data-directory, -D.
8545 * main.h (set_gdb_data_directory): Declare.
8546 * top.c (staged_gdb_datadir): New static global.
8547 (set_gdb_datadir): Call set_gdb_data_directory
8548 (show_gdb_datadir): New function.
8549 (init_main): Update init of data-directory parameter.
8551 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8553 Import the "dirfd" gnulib module.
8554 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8555 * gnulib/aclocal.m4: Update.
8556 * gnulib/config.in: Update.
8557 * gnulib/configure: Update.
8558 * gnulib/import/Makefile.am: Update.
8559 * gnulib/import/Makefile.in: Update.
8560 * gnulib/import/dirfd.c: New.
8561 * gnulib/import/m4/dirfd.m4: New.
8562 * gnulib/import/m4/gnulib-cache.m4: Update.
8563 * gnulib/import/m4/gnulib-comp.m4: Update.
8565 2014-05-16 Pierre Muller <muller@sourceware.org>
8566 Yao Qi <yao@codesourcery.com>
8568 * valprint.c (print_wchar): Move the code on checking whether
8569 W is a printable wide char to the default branch of switch
8570 statement below. Call wchar_printable instead of gdb_iswprint.
8572 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8574 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8575 ldr.w and ldrd instructions.
8577 2014-05-15 Doug Evans <dje@google.com>
8579 * dwarf2read.c (read_structure_type): Delete outdated comments.
8581 2014-05-14 Tom Tromey <tromey@redhat.com>
8583 * macrocmd.c (print_macro_definition): Reindent.
8585 2014-05-13 Doug Evans <xdje42@gmail.com>
8587 * python/py-cmd.c (cmdpy_completer): Add comment.
8588 (completers): Make const.
8590 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8592 * infrun.c (resume): Remove should_resume (unused). Move up
8593 declaration of resume_ptid.
8595 2014-05-13 Tom Tromey <tromey@redhat.com>
8597 * language.h (unop_type_check): Remove.
8598 (binop_type_check): Don't declare.
8600 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8602 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8603 call to regcache_raw_collect.
8605 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8607 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8608 mi_console->quote as the quoting character.
8610 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8612 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8614 2014-04-29 Tom Tromey <tromey@redhat.com>
8616 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8617 "show debug varobj".
8619 2014-05-07 Kyle McMartin <kyle@redhat.com>
8621 Pushed by Joel Brobecker <brobecker@adacore.com>.
8622 * aarch64-tdep.c (aarch64_software_single_step): New function.
8623 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8624 with aarch64_software_single_step.
8626 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8630 2014-05-05 Keith Seitz <keiths@redhat.com>
8632 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8633 variable or history value is successfully parsed.
8635 2014-05-05 Yao Qi <yao@codesourcery.com>
8636 Pedro Alves <palves@redhat.com>
8638 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8639 address of blocks that intersects the requested range. Trim
8640 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8642 * ctf.c (ctf_xfer_partial): Likewise.
8644 2014-05-05 Yao Qi <yao@codesourcery.com>
8646 * printcmd.c (display_command): Remove the check to
8647 target_has_execution.
8649 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8651 * ppcobsd-nat.c: Include "obsd-nat.h".
8652 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8654 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8656 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8658 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8659 and 16-bit signed and unsigned arguments. Update comment.
8660 (stap_parse_probe_arguments): Extend code to handle such
8661 arguments. Use warning instead of complaint to notify about
8662 unrecognized bitness.
8664 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8666 PR breakpoints/16889
8667 * stap-probe.c (stap_parse_probe_arguments): Simplify
8668 check for non-prefixed probes (i.e., probes whose
8669 arguments do not start with "N@"). Always set the
8670 argument type to a sane value.
8672 2014-05-01 David Taylor <dtaylor@emc.com>
8674 * remote.c (compare_sections_command): Add -r option to compare
8675 all loadable read-only sections.
8677 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8679 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8680 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8682 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8683 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8684 Remove unused CORE_ADDR argument. Update all callers.
8686 2014-04-29 Pedro Alves <palves@redhat.com>
8688 * remote.c (struct packet_config) <detect>: Extend comment.
8689 (add_packet_config_cmd): Don't set the config's detect or support
8691 (init_all_packet_configs): Also initialize the config's 'detect'
8693 (reset_all_packet_configs_support): New function.
8694 (remote_open_1): Call reset_all_packet_configs_support instead of
8695 init_all_packet_configs.
8696 (_initialize_remote): Initialize all packet configs. Assert that
8697 all packets have an associated command, except a few known
8700 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8702 * dwarf2read.c (read_subrange_type): Handle dynamic
8703 DW_AT_lower_bound attributes.
8705 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8707 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8708 dynamic bounds before computing its upper bound.
8709 (ada_discrete_type_low_bound): Same as above with the lower bound.
8711 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8713 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8714 range types. Adjust the array handling implementation to
8715 take advantage of this change.
8716 (resolve_dynamic_range): New function, mostly extracted from
8717 resolve_dynamic_bounds.
8718 (resolve_dynamic_array): New function, mostly extracted from
8719 resolve_dynamic_bounds.
8720 (resolve_dynamic_bounds): Delete.
8721 (resolve_dynamic_type): Reimplement. Add handling of
8722 TYPE_CODE_RANGE types.
8724 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8726 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8727 handling of parallel ___XA types.
8729 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8731 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8732 unnecessary second call to static_unwrap_type.
8734 2014-04-27 Hui Zhu <hui@codesourcery.com>
8736 * stack.c (print_frame_info): Call do_gdb_disassembly with
8737 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8739 2014-04-26 Doug Evans <xdje42@gmail.com>
8741 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8743 2014-04-25 Pedro Alves <palves@redhat.com>
8746 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8747 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8748 and newline from built string.
8749 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8750 (linux_ptrace_attach_fail_reason): ... this.
8751 * linux-nat.c (linux_nat_attach): Adjust to use
8752 linux_ptrace_attach_fail_reason.
8754 2014-04-25 Pedro Alves <palves@redhat.com>
8756 * remote.c (struct remote_state): Remove multi_process_aware,
8757 non_stop_aware, cond_tracepoints, cond_breakpoints,
8758 breakpoint_commands, fast_tracepoints, static_tracepoints,
8759 install_in_trace, disconnected_tracing,
8760 enable_disable_tracepoints, string_tracing, and
8761 augmented_libraries_svr4_read fields.
8762 (remote_multi_process_p): Move further below in the file.
8763 (struct packet_config): Add comments.
8764 (update_packet_config): Delete function.
8765 (show_packet_config_cmd): Use packet_config_support.
8766 (add_packet_config_cmd): Use NULL as set callback.
8767 (packet_ok): "set remote foo-packet"-style commands no longer
8768 change config->supported -- adjust.
8769 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8770 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8771 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8772 (PACKET_QNonStop, PACKET_multiprocess_feature)
8773 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8774 (PACKET_DisconnectedTracing_feature)
8775 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8776 (set_remote_protocol_packet_cmd): Delete function.
8777 (packet_config_support, packet_support): New functions.
8778 (set_remote_protocol_Z_packet_cmd): Don't call
8779 update_packet_config.
8780 (remote_query_attached, remote_pass_signals)
8781 (remote_program_signals, remote_threads_info)
8782 (remote_threads_extra_info, remote_start_remote): Use
8784 (remote_start_remote): Use packet_config_support and
8786 (init_all_packet_configs): Set all packets to unknown support,
8787 instead of calling update_packet_config.
8788 (remote_check_symbols): Use packet_support.
8789 (remote_supported_packet): Unconditionally set the packet config's
8791 (remote_multi_process_feature, remote_non_stop_feature)
8792 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8793 (remote_breakpoint_commands_feature)
8794 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8795 (remote_install_in_trace_feature)
8796 (remote_disconnected_tracing_feature)
8797 (remote_enable_disable_tracepoint_feature)
8798 (remote_string_tracing_feature)
8799 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8800 (remote_protocol_features): Adjust to use remote_supported_packet
8801 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8802 "ConditionalTracepoints", "ConditionalBreakpoints",
8803 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8804 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8805 "EnableDisableTracepoints", and "tracenz".
8806 (remote_query_supported): Use packet_support.
8807 (remote_open_1): Adjust.
8808 (extended_remote_attach_1): Use packet_support. Switch on the
8809 result of packet_ok instead of checking whether the packet ended
8811 (remote_vcont_resume): Use packet_support.
8812 (remote_resume, remote_stop_ns, fetch_register_using_p)
8813 (remote_prepare_to_store, store_register_using_P)
8814 (check_binary_download, remote_write_bytes): Use packet_support.
8815 (remote_vkill): Use packet_support. Switch on the result of
8816 packet_ok instead of checking whether the packet ended up
8818 (extended_remote_supports_disable_randomization): Use
8820 (extended_remote_run): Switch on the result of packet_ok instead
8821 of checking whether the packet ended up disabled.
8822 (remote_insert_breakpoint, remote_remove_breakpoint)
8823 (remote_insert_watchpoint, remote_remove_watchpoint)
8824 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8826 (remote_search_memory): Use packet_config_support.
8827 (remote_get_thread_local_address, remote_get_tib_address)
8828 (remote_hostio_send_command, remote_can_execute_reverse): Use
8830 (remote_supports_cond_tracepoints)
8831 (remote_supports_cond_breakpoints)
8832 (remote_supports_fast_tracepoints)
8833 (remote_supports_static_tracepoints)
8834 (remote_supports_install_in_trace)
8835 (remote_supports_enable_disable_tracepoint)
8836 (remote_supports_string_tracing)
8837 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8838 the packet config says the feature is enabled or disabled.
8839 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8840 (remote_get_trace_status): Use packet_support.
8841 (remote_set_disconnected_tracing): Adjust to check whether the
8842 feature is enabled with packet_support.
8843 (remote_set_trace_buffer_size, remote_use_agent)
8844 (remote_can_use_agent, remote_supports_btrace): Use
8846 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8847 Use packet_config_support.
8848 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8849 the packet config says the feature is enabled or disabled.
8850 (set_range_stepping): Use packet_support.
8852 2014-04-25 Tom Tromey <tromey@redhat.com>
8854 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8857 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8859 * NEWS: Mention support for C99 variable length arrays.
8861 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8863 * ada-lang.c (standard_exc): Expand introductory comment.
8865 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8866 Walfred Tedeschi <walfred.tedeschi@intel.com>
8868 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8870 (amd64_linux_read_description): Add code to handle AVX512 xstate
8871 mask and return respective tdesc.
8872 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8873 and features/i386/x32-avx512-linux.c.
8874 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8875 (amd64_linux_core_read_description): Add code to handle AVX512
8876 xstate mask and return respective tdesc.
8877 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8878 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8880 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8881 (tdesc_amd64_avx512_linux): New prototype.
8882 (tdesc_x32_avx512_linux): Likewise.
8883 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8884 features/i386/x32-avx512.c.
8885 (amd64_ymm_avx512_names): New register names for pseudo
8887 (amd64_ymmh_avx512_names): New register names for raw registers
8889 (amd64_k_names): New register names for K registers.
8890 (amd64_zmmh_names): New register names for ZMM raw registers.
8891 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8892 (amd64_xmm_avx512_names): New register names for XMM16-31
8894 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8896 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8897 if feature is present.
8898 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8899 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8900 (AMD64_NUM_REGS): Adjust to new number of registers.
8901 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8902 registers supplied via XSTATE by AVX512 registers.
8903 (i386_linux_read_description): Add case for AVX512.
8904 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8905 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8906 (i386_linux_core_read_description): Add case for AVX512.
8907 (i386_linux_init_abi): Install supported register note section
8909 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8911 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8912 registers to be number of zmm7h + 1.
8913 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8914 * i386-tdep.c: Include features/i386/i386-avx512.c.
8915 (i386_zmm_names): Add ZMM pseudo register names array.
8916 (i386_zmmh_names): Add ZMM raw register names array.
8917 (i386_k_names): Add K raw register names array.
8918 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8919 registers. AVX512 has 16 more ZMM registers than there are YMM
8921 (i386_zmmh_regnum_p): Add function to look up register number of
8923 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8924 (i386_k_regnum_p): Likewise for K raw registers.
8925 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8926 registers added by AVX512.
8927 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8928 registers added by AVX512.
8929 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8931 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8932 (i386_pseudo_register_name): Add ZMM pseudo registers.
8933 (i386_zmm_type): Construct and return vector registers type for ZMM
8935 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8936 ZMM0-31 pseudo registers and K registers.
8937 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8938 and YMM16-31 registers from register cache.
8939 (i386_pseudo_register_write): Add code to write K, ZMM and
8941 (i386_register_reggroup_p): Add code to include/exclude AVX512
8942 registers in/from respective register groups.
8943 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8944 registers if feature is present in xcr0.
8945 (i386_gdbarch_init): Add code to initialize AVX512 feature
8946 variables in tdep structure, wire in pseudo registers and call
8947 initialize_tdesc_i386_avx512.
8948 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8950 (i386_regnum): Add AVX512 registers.
8951 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8952 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8953 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8954 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8956 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8957 (i386_ymm_avx512_regnum_p): Likewise.
8958 (i386_k_regnum_p): Likewise.
8959 (i386_zmm_regnum_p): Likewise.
8960 (i386_zmmh_regnum_p): Likewise.
8961 * i387-tdep.c : Update year in copyright notice.
8962 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8964 (XSAVE_YMM_AVX512_ADDR): New macro.
8965 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8967 (XSAVE_XMM_AVX512_ADDR): New macro.
8968 (xsave_avx512_k_offset): New table for K register offsets in
8970 (XSAVE_AVX512_K_ADDR): New macro.
8971 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8973 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8974 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8976 (i387_collect_xsave): Add code to collect AVX512 registers from
8978 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8979 of XMM16-31 registers.
8980 (I387_NUM_K_REGS): New define for number of K registers.
8981 (I387_K0_REGNUM): New define for K0 register number.
8982 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8983 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8984 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8986 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8987 (I387_XMM16_REGNUM): New define for XMM16 register number.
8988 (I387_YMM0_REGNUM): New define for YMM0 register number.
8989 (I387_KEND_REGNUM): New define for last K register number.
8990 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8991 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8993 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8995 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8997 * features/Makefile: Add AVX512 related files.
8998 * features/i386/32bit-avx512.xml: New file.
8999 * features/i386/64bit-avx512.xml: Likewise.
9000 * features/i386/amd64-avx512-linux.c: Likewise.
9001 * features/i386/amd64-avx512-linux.xml: Likewise.
9002 * features/i386/amd64-avx512.c: Likewise.
9003 * features/i386/amd64-avx512.xml: Likewise.
9004 * features/i386/i386-avx512-linux.c: Likewise.
9005 * features/i386/i386-avx512-linux.xml: Likewise.
9006 * features/i386/i386-avx512.c: Likewise.
9007 * features/i386/i386-avx512.xml: Likewise.
9008 * features/i386/x32-avx512-linux.c: Likewise.
9009 * features/i386/x32-avx512-linux.xml: Likewise.
9010 * features/i386/x32-avx512.c: Likewise.
9011 * features/i386/x32-avx512.xml: Likewise.
9012 * regformats/i386/amd64-avx512-linux.dat: New file.
9013 * regformats/i386/amd64-avx512.dat: Likewise.
9014 * regformats/i386/i386-avx512-linux.dat: Likewise.
9015 * regformats/i386/i386-avx512.dat: Likewise.
9016 * regformats/i386/x32-avx512-linux.dat: Likewise.
9017 * regformats/i386/x32-avx512.dat: Likewise.
9018 * NEWS: Add note about new support for AVX512.
9021 2014-04-23 Pedro Alves <palves@redhat.com>
9023 * breakpoint.c (insert_bp_location): Tolerate errors if the
9024 breakpoint is set in a user-loaded objfile.
9025 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9026 location is marked shlib_disabled. If the breakpoint is set in a
9027 user-loaded objfile is a GDB-side memory breakpoint, validate it
9028 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9029 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9031 * mem-break.c (memory_validate_breakpoint): New function.
9032 * objfiles.c (userloaded_objfile_contains_address_p): New
9034 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9035 * target.h (memory_validate_breakpoint): New declaration.
9037 2014-04-23 Pedro Alves <palves@redhat.com>
9039 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9040 the breakpoint is set in a shared library, only suppress
9041 errors for software breakpoints, not hardware breakpoints.
9043 2014-04-22 Pedro Alves <palves@redhat.com>
9045 * infrun.c (schedlock_applies): New function, factored out from
9046 find_thread_needs_step_over.
9047 (find_thread_needs_step_over): Use it.
9048 (switch_back_to_stepped_thread): Always clear trap_expected if the
9049 step over is finished. Return early if scheduler locking applies.
9050 Look for the stepping thread and a potential step-over thread with
9052 (currently_stepping_or_nexting_callback): Delete.
9054 2014-04-22 Nick Clifton <nickc@redhat.com>
9056 * NEWS: Mention that ARM sim now supports tracing.
9058 2014-04-22 Yao Qi <yao@codesourcery.com>
9060 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9062 * tracefile.c (tracefile_fetch_registers): ... it. New
9064 * tracefile.h (tracefile_fetch_registers): Declare.
9065 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9066 tracefile_fetch_registers.
9068 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9071 * windows-nat.c (thread_rec): Don't display a warning when
9072 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9073 fails for any reason, set th->suspended to -1, so that we don't
9074 try to resume such a thread. Also, don't return NULL in these
9075 cases, to avoid completely ruin the session due to "PC register is
9076 not available" error.
9077 (do_windows_fetch_inferior_registers): Check errors in
9078 GetThreadContext call.
9079 (windows_continue): Accept an additional argument KILLED; if not
9080 zero, ignore errors in the SetThreadContext call, since the
9081 inferior was killed and is shutting down.
9082 (windows_resume, get_windows_debug_event)
9083 (windows_create_inferior, windows_mourn_inferior)
9084 (windows_kill_inferior): All callers of windows_continue changed
9085 to adjust to its new calling sequence.
9087 2014-04-19 Yao Qi <yao@codesourcery.com>
9089 * ctf.c (ctf_open): Call post_create_inferior.
9091 2014-04-19 Yao Qi <yao@codesourcery.com>
9093 * ctf.c (handle_id): New static variable.
9094 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9095 value. Get the declaration of event "register" and get length
9096 of field "contents".
9098 2014-04-19 Yao Qi <yao@codesourcery.com>
9100 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9102 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9104 * valops.c (oload_method_static): Remove unnecessary argument
9105 METHOD. Update all callers.
9107 2014-04-18 Pedro alves <palves@redhat.com>
9108 Tom Tromey <tromey@redhat.com>
9111 * frame.c (get_prev_frame_1): Rename to ...
9112 (get_prev_frame_always): ... this, and make extern. Adjust.
9113 (skip_artificial_frames): Use get_prev_frame_always.
9114 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9115 (get_frame_unwind_stop_reason): Adjust to rename.
9116 * frame.h (get_prev_frame_always): Declare.
9117 * inline-frame.c: Include frame.h.
9118 (inline_frame_this_id): Use get_prev_frame_always.
9120 2014-04-18 Tristan Gingold <gingold@adacore.com>
9122 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9123 code by using bfd_mach_o_get_base_address.
9125 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9127 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9128 (spu_ax_pseudo_register_collect): New function.
9129 (spu_ax_pseudo_register_push_stack): Likewise.
9130 (spu_dwarf_reg_to_regnum): Likewise.
9131 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9133 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9135 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9136 Replace FRAME argument with FRAME_ID.
9137 * gdbarch.c, gdbarch.h: Regenerate.
9138 * findvar.c (default_value_from_register): Add GDBARCH argument;
9139 replace FRAME by FRAME_ID. No longer call get_frame_id.
9140 (value_from_register): Update call to gdbarch_value_from_register.
9141 * value.h (default_value_from_register): Update prototype.
9142 * s390-linux-tdep.c (s390_value_from_register): Update interface
9143 and call to default_value_from_register.
9144 * spu-tdep.c (spu_value_from_register): Likewise.
9146 * findvar.c (address_from_register): Remove TYPE argument.
9147 Do not call value_from_register; use gdbarch_value_from_register
9148 with null_frame_id instead.
9149 * value.h (address_from_register): Update prototype.
9150 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9151 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9152 address_from_register interface change.
9154 2014-04-17 Yao Qi <yao@codesourcery.com>
9156 * gdbtypes.h: Update comments to link to types and macros'
9159 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9161 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9163 2014-04-16 Keith Seitz <keiths@redhat.com>
9166 * dwarf2read.c (skip_one_die): Check that all relative-offset
9167 sibling DIEs fall within range of the current reader's buffer.
9168 (read_partial_die): Likewise.
9170 2014-04-16 Keith Seitz <keiths@redhat.com>
9173 * cp-namespace.c (lookup_symbol_file): If the type name of
9174 `this' is NULL, return immediately.
9176 2014-04-14 Keith Seitz <keiths@redhat.com>
9179 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9180 from symbol_matches_domain in symtab.c. All local callers
9181 of symbol_matches_domain updated.
9182 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9183 search STRUCT_DOMAIN.
9184 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9185 independently. standard_lookup will do that automatically.
9186 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9187 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9188 (cp_lookup_symbol_in_namespace): Likewise.
9189 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9190 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9191 may return a STRUCT_DOMAIN match.
9192 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9193 * cp-support.c: Include language.h.
9194 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9196 * psymtab.c (match_partial_symbol): Compare the requested
9197 domain with the symbol's domain directly.
9198 (lookup_partial_symbol): Likewise.
9199 * symtab.c (lookup_symbol_in_language): Explain when/why
9200 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9201 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9202 appropriate languages.
9203 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9204 and moved to ada-lang.c
9205 (lookup_block_symbol): Explain that this function only returns
9206 symbol matching the requested DOMAIN.
9207 Compare the requested domain with the symbol's domain directly.
9208 (iterate_over_symbols): Compare the requested domain with the
9209 symbol's domain directly.
9210 * symtab.h (symbol_matches_domain): Remove.
9212 2014-04-14 Tom Tromey <tromey@redhat.com>
9215 * c-exp.y (type_aggregate_p): New function.
9216 (qualified_name, classify_inner_name): Use it.
9217 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9218 and TYPE_TARGET_TYPE of an enum type.
9219 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9221 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9222 handle TYPE_DECLARED_CLASS.
9223 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9225 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9226 * valops.c (enum_constant_from_type): New function.
9227 (value_aggregate_elt): Use it.
9228 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9231 2014-04-14 Tom Tromey <tromey@redhat.com>
9233 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9234 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9236 * value.h (value_aggregate_elt): Update.
9238 2014-04-14 Tom Tromey <tromey@redhat.com>
9240 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9242 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9244 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9245 (evaluate_subexp_standard): Pass noside argument.
9246 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9247 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9248 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9249 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9250 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9252 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9254 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9255 points to a constant blob.
9257 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9259 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9260 property and store it as the high bound and flag the range accordingly.
9261 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9262 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9263 * gdbtypes.h (enum range_flags): New enum.
9264 (struct range_bounds): Add flags member.
9266 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9268 * c-typeprint.c (c_type_print_varspec_suffix): Added
9269 check for not yet resolved high bound. If unresolved, print
9270 "variable length" string to the console instead of random
9273 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9275 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9277 (ada_template_to_fixed_record_type_1): Likewise.
9278 (ada_to_fixed_type_1): Likewise.
9279 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9280 (cp_print_value): Likewise.
9281 * d-valprint.c (dynamic_array_type): Likewise.
9282 * findvar.c (address_of_variable): Likewise.
9283 * jv-valprint.c (java_value_print): Likewise.
9284 * valops.c (value_ind): Likewise.
9285 * value.c (coerce_ref): Likewise.
9287 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9289 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9290 value and retrieve the dynamic type size.
9292 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9294 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9295 passed to sizeof is dynamic evaluate the argument to compute the length.
9297 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9298 Joel Brobecker <brobecker@adacore.com>
9300 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9301 (dwarf2_evaluate_property): New function.
9302 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9303 * dwarf2read.c (attr_to_dynamic_prop): New function.
9304 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9306 * gdbtypes.c: Include dwarf2loc.h.
9307 (is_dynamic_type): New function.
9308 (resolve_dynamic_type): New function.
9309 (resolve_dynamic_bounds): New function.
9310 (get_type_length): New function.
9311 (check_typedef): Use get_type_length to compute type length.
9312 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9313 (TYPE_LOW_BOUND_KIND): New macro.
9314 (is_dynamic_type): New function prototype.
9315 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9316 to resolve dynamic properties of the type. Update comment.
9317 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9319 2014-04-14 Richard Henderson <rth@redhat.com>
9321 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9323 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9324 Doug Evans <xdje42@gmail.com>
9326 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9327 dereference TYPE_CODE_REF values.
9329 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9331 Revert the following changes due to regressions:
9333 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9334 (dwarf2_evaluate_property): New function.
9335 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9336 * dwarf2read.c (attr_to_dynamic_prop): New function.
9337 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9339 * gdbtypes.c: Include dwarf2loc.h.
9340 (is_dynamic_type): New function.
9341 (resolve_dynamic_type): New function.
9342 (resolve_dynamic_bounds): New function.
9343 (get_type_length): New function.
9344 (check_typedef): Use get_type_length to compute type length.
9345 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9346 (TYPE_LOW_BOUND_KIND): New macro.
9347 (is_dynamic_type): New function prototype.
9348 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9349 to resolve dynamic properties of the type. Update comment.
9350 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9352 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9353 passed to sizeof is dynamic evaluate the argument to compute the length.
9355 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9356 value and retrieve the dynamic type size.
9358 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9359 (ada_template_to_fixed_record_type_1): Likewise.
9360 (ada_to_fixed_type_1): Likewise.
9361 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9362 (cp_print_value): Likewise.
9363 * d-valprint.c (dynamic_array_type): Likewise.
9364 * eval.c (evaluate_subexp_with_coercion): Likewise.
9365 * findvar.c (address_of_variable): Likewise.
9366 * jv-valprint.c (java_value_print): Likewise.
9367 * valops.c (value_ind): Likewise.
9368 * value.c (coerce_ref): Likewise.
9370 * c-typeprint.c (c_type_print_varspec_suffix): Added
9371 check for not yet resolved high bound. If unresolved, print
9372 "variable length" string to the console instead of random
9375 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9376 property and store it as the high bound and flag the range accordingly.
9377 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9378 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9379 * gdbtypes.h (enum range_flags): New enum.
9380 (struct range_bounds): Add flags member.
9382 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9383 points to a constant blob.
9385 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9386 (evaluate_subexp_standard): Pass noside argument.
9387 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9388 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9389 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9390 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9391 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9393 2014-04-11 Keith Seitz <keiths@redhat.com>
9396 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9397 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9400 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9402 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9403 (evaluate_subexp_standard): Pass noside argument.
9404 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9405 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9406 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9407 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9408 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9410 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9412 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9413 points to a constant blob.
9415 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9417 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9418 property and store it as the high bound and flag the range accordingly.
9419 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9420 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9421 * gdbtypes.h (enum range_flags): New enum.
9422 (struct range_bounds): Add flags member.
9424 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9426 * c-typeprint.c (c_type_print_varspec_suffix): Added
9427 check for not yet resolved high bound. If unresolved, print
9428 "variable length" string to the console instead of random
9431 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9433 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9434 (ada_template_to_fixed_record_type_1): Likewise.
9435 (ada_to_fixed_type_1): Likewise.
9436 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9437 (cp_print_value): Likewise.
9438 * d-valprint.c (dynamic_array_type): Likewise.
9439 * eval.c (evaluate_subexp_with_coercion): Likewise.
9440 * findvar.c (address_of_variable): Likewise.
9441 * jv-valprint.c (java_value_print): Likewise.
9442 * valops.c (value_ind): Likewise.
9443 * value.c (coerce_ref): Likewise.
9445 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9447 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9448 value and retrieve the dynamic type size.
9450 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9452 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9453 passed to sizeof is dynamic evaluate the argument to compute the length.
9455 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9457 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9458 (dwarf2_evaluate_property): New function.
9459 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9460 * dwarf2read.c (attr_to_dynamic_prop): New function.
9461 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9463 * gdbtypes.c: Include dwarf2loc.h.
9464 (is_dynamic_type): New function.
9465 (resolve_dynamic_type): New function.
9466 (resolve_dynamic_bounds): New function.
9467 (get_type_length): New function.
9468 (check_typedef): Use get_type_length to compute type length.
9469 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9470 (TYPE_LOW_BOUND_KIND): New macro.
9471 (is_dynamic_type): New function prototype.
9472 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9473 to resolve dynamic properties of the type. Update comment.
9474 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9476 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9478 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9479 declaring high/low bounds and change uses accordingly. Call
9480 create_range_type instead of create_static_range_type.
9481 * gdbtypes.c (create_range_type): New function.
9482 (create_range_type): Convert bounds into struct bound_prop and pass
9483 them to create_range_type.
9484 * gdbtypes.h (struct bound_prop): New struct.
9485 (create_range_type): New function prototype.
9486 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9487 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9488 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9490 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9492 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9494 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9495 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9496 * ada-lang.c: All uses of create_range_type updated.
9497 * coffread.c: All uses of create_range_type updated.
9498 * dwarf2read.c: All uses of create_range_type updated.
9499 * f-exp.y: All uses of create_range_type updated.
9500 * m2-valprint.c: All uses of create_range_type updated.
9501 * mdebugread.c: All uses of create_range_type updated.
9502 * stabsread.c: All uses of create_range_type updated.
9503 * valops.c: All uses of create_range_type updated.
9504 * valprint.c: All uses of create_range_type updated.
9506 2014-04-10 Pedro Alves <palves@redhat.com>
9508 * breakpoint.c (single_step_breakpoints)
9509 (single_step_gdbarch): Move up in the file.
9510 (one_breakpoint_xfer_memory): New function, factored out from ...
9511 (breakpoint_xfer_memory): ... here. Also process single-step
9514 2014-04-09 Tristan Gingold <gingold@adacore.com>
9516 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9518 (darwin_decode_exception_message): Free port only after use.
9520 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9522 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9523 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9524 when setting the size of call_length.
9526 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9528 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9529 dereference TYPE_CODE_REF values.
9531 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9533 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9534 end of warning message.
9536 2014-04-03 Doug Evans <dje@google.com>
9538 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9539 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9541 2014-04-02 Alan Modra <amodra@gmail.com>
9543 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9544 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9545 (struct symbol_file_add_from_memory_args): Add size field.
9546 (find_vdso_size): New function.
9547 (add_vsyscall_page): Attempt to find vdso size.
9549 2014-04-01 Doug Evans <dje@google.com>
9551 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9553 2014-04-01 Tristan Gingold <gingold@adacore.com>
9555 * darwin-nat.c (darwin_encode_reply): Add prototype.
9556 (darwin_decode_exception_message): Reply to unknown inferiors.
9557 (darwin_decode_message): Handle message by id. Ignore message
9558 to unknown inferior.
9559 (darwin_wait): Discard unknown messages, add debug trace.
9561 2014-03-31 Doug Evans <dje@google.com>
9563 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9566 2014-03-31 Doug Evans <dje@google.com>
9568 New option "set print symbol-loading".
9570 * solib.c (solib_read_symbols): Only print symbol loading messages
9572 (solib_add): If symbol loading is in "brief" mode, notify user
9573 symbols are being loaded.
9574 (reload_shared_libraries_1): Ditto.
9575 * symfile.c (print_symbol_loading_off): New static global.
9576 (print_symbol_loading_brief): New static global.
9577 (print_symbol_loading_full): New static global.
9578 (print_symbol_loading_enums): New static global.
9579 (print_symbol_loading): New static global.
9580 (print_symbol_loading_p): New function.
9581 (symbol_file_add_with_addrs): Only print symbol loading messages
9583 (_initialize_symfile): Register "print symbol-loading" set/show
9585 * symfile.h (print_symbol_loading_p): Declare.
9587 2014-03-30 Doug Evans <xdje42@gmail.com>
9589 * infrun.c (set_last_target_status): New function.
9590 (handle_inferior_event): Call it.
9592 2014-03-30 Doug Evans <xdje42@gmail.com>
9594 * inferior.h (enum stop_kind): Improve comment.
9596 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9598 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9599 a reference, strip the reference layer before calling
9600 the lang_ops value_has_mutated callback.
9602 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9604 Remove some globals from our parser.
9605 * language.c (unk_lang_parser): Add "struct parser_state"
9607 * language.h (struct language_defn) <la_parser>: Likewise.
9608 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9609 (initialize_expout): Add "struct parser_state" argument.
9610 Rewrite function to use the parser state.
9611 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9612 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9613 write_exp_elt_longcst, write_exp_elt_dblcst,
9614 write_exp_elt_decfloatcst, write_exp_elt_type,
9615 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9616 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9617 write_dollar_variable): Likewise.
9618 (parse_exp_in_context_1): Use parser state.
9619 (insert_type_address_space): Add "struct parser_state" argument.
9621 (increase_expout_size): New function.
9622 * parser-defs.h: Forward declare "struct language_defn" and
9623 "struct parser_state".
9624 (expout, expout_size, expout_ptr): Remove extern declarations.
9625 (parse_gdbarch, parse_language): Rewrite macro declarations to
9626 accept the parser state.
9627 (struct parser_state): New struct.
9628 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9629 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9630 write_exp_elt_decfloatcst, write_exp_elt_type,
9631 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9632 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9633 write_exp_msymbol, write_dollar_variable,
9634 mark_struct_expression, insert_type_address_space): Add "struct
9635 parser_state" argument.
9636 (increase_expout_size): New function.
9637 * utils.c (do_clear_parser_state): New function.
9638 (make_cleanup_clear_parser_state): Likewise.
9639 * utils.h (make_cleanup_clear_parser_state): New function
9641 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9642 Update calls to write_exp* in order to pass the parser state.
9643 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9644 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9645 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9646 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9647 * stap-probe.c (stap_parse_register_operand): Likewise.
9648 (stap_parse_single_operand): Likewise.
9649 (stap_parse_argument_1): Likewise.
9650 (stap_parse_argument): Use parser state.
9651 * stap-probe.h: Include "parser-defs.h".
9652 (struct stap_parse_info) <pstate>: New field.
9653 * c-exp.y (parse_type): Rewrite to use parser state.
9654 (yyparse): Redefine to c_parse_internal.
9655 (pstate): New global variable.
9656 (parse_number): Add "struct parser_state" argument.
9657 (write_destructor_name): Likewise.
9658 (type_exp): Update calls to write_exp* and similars in order to
9660 (exp1, exp, variable, qualified_name, space_identifier,
9661 typename, typebase): Likewise.
9662 (write_destructor_name, parse_number, lex_one_token,
9663 classify_name, classify_inner_name, c_parse): Add "struct
9664 parser_state" argument. Update function to use parser state.
9665 * c-lang.h: Forward declare "struct parser_state".
9666 (c_parse): Add "struct parser_state" argument.
9667 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9668 (yyparse): Redefine macro to ada_parse_internal.
9669 (pstate): New variable.
9670 (write_int, write_object_renaming, write_var_or_type,
9671 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9672 type_int, type_long, type_long_long, type_float, type_double,
9673 type_long_double, type_char, type_boolean, type_system_address):
9674 Add "struct parser_state" argument.
9675 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9676 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9677 var_or_type, aggregate, aggregate_component_list,
9678 positional_list, others, component_group,
9679 component_associations): Update calls to write_exp* and similar
9680 functions in order to use parser state.
9681 (ada_parse, write_var_from_sym, write_int,
9682 write_exp_op_with_string, write_object_renaming,
9683 find_primitive_type, write_selectors, write_ambiguous_var,
9684 write_var_or_type, write_name_assoc, type_int, type_long,
9685 type_long_long, type_float, type_double, type_long_double,
9686 type_char, type_boolean, type_system_address): Add "struct
9687 parser_state" argument. Adjust function to use parser state.
9688 * ada-lang.c (parse): Likewise.
9689 * ada-lang.h: Forward declare "struct parser_state".
9690 (ada_parse): Add "struct parser_state" argument.
9691 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9692 calls to both functions.
9693 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9695 (yyparse): Redefine macro to f_parse_internal.
9696 (pstate): New variable.
9697 (parse_number): Add "struct parser_state" argument.
9698 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9699 and similars in order to use parser state.
9700 (parse_number): Adjust code to use parser state.
9702 (f_parse): New function.
9703 * f-lang.h: Forward declare "struct parser_state".
9704 (f_parse): Add "struct parser_state" argument.
9705 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9707 (yyparse): Redefine macro for java_parse_internal.
9708 (pstate): New variable.
9709 (push_expression_name, push_expression_name, insert_exp): Add
9710 "struct parser_state" argument.
9711 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9712 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9713 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9714 PostIncrementExpression, PostDecrementExpression,
9715 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9716 UnaryExpressionNotPlusMinus, CastExpression,
9717 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9718 RelationalExpression, EqualityExpression, AndExpression,
9719 ExclusiveOrExpression, InclusiveOrExpression,
9720 ConditionalAndExpression, ConditionalOrExpression,
9721 ConditionalExpression, Assignment, LeftHandSide): Update
9722 calls to write_exp* and similars in order to use parser state.
9723 (parse_number): Ajust code to use parser state.
9725 (java_parse): New function.
9726 (push_variable): Add "struct parser_state" argument. Adjust
9727 code to user parser state.
9728 (push_fieldnames, push_qualified_expression_name,
9729 push_expression_name, insert_exp): Likewise.
9730 * jv-lang.h: Forward declare "struct parser_state".
9731 (java_parse): Add "struct parser_state" argument.
9732 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9734 (yyparse): Redefine macro to m2_parse_internal.
9735 (pstate): New variable.
9736 (type_exp, exp, fblock, variable, type): Update calls to
9737 write_exp* and similars to use parser state.
9739 (m2_parse): New function.
9740 * m2-lang.h: Forward declare "struct parser_state".
9741 (m2_parse): Add "struct parser_state" argument.
9742 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9743 * objc-lang.h: Forward declare "struct parser_state".
9744 (end_msglist): Add "struct parser_state" argument.
9745 * p-exp.y (parse_type): Rewrite macro to use parser state.
9746 (yyparse): Redefine macro to pascal_parse_internal.
9747 (pstate): New variable.
9748 (parse_number): Add "struct parser_state" argument.
9749 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9750 write_exp* and similars in order to use parser state.
9751 (parse_number, yylex): Adjust code to use parser state.
9752 (pascal_parse): New function.
9753 * p-lang.h: Forward declare "struct parser_state".
9754 (pascal_parse): Add "struct parser_state" argument.
9755 * go-exp.y (parse_type): Rewrite macro to use parser state.
9756 (yyparse): Redefine macro to go_parse_internal.
9757 (pstate): New variable.
9758 (parse_number): Add "struct parser_state" argument.
9759 (type_exp, exp1, exp, variable, type): Update calls to
9760 write_exp* and similars in order to use parser state.
9761 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9762 to use parser state.
9763 (go_parse): Likewise.
9764 * go-lang.h: Forward declare "struct parser_state".
9765 (go_parse): Add "struct parser_state" argument.
9767 2014-03-27 Doug Evans <dje@google.com>
9769 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9771 2014-03-27 Doug Evans <dje@google.com>
9773 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9774 Remove argument abbrev_section. All callers updated.
9776 2014-03-27 Doug Evans <dje@google.com>
9778 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9779 addr_base, ranges_base.
9781 2014-03-26 Keith Seitz <keiths@redhat.com>
9783 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9784 types, not VAR_DOMAIN.
9786 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9788 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9790 * features/nios2-linux.c: Regenerated.
9791 * features/nios2.c: Regenerated.
9793 2014-03-25 Pedro Alves <palves@redhat.com>
9795 * cli/cli-script.c (script_from_file): Force the interpreter to
9798 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9800 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9801 small stack allocation.
9803 2014-03-24 Tristan Gingold <gingold@adacore.com>
9805 * darwin-nat.c (exc_server): Remove unused prototype.
9806 (darwin_dump_message): Correctly display data on x86_64.
9807 (darwin_encode_reply): Fix style.
9808 Add comments and fix indentation.
9810 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9812 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9814 2014-03-22 Doug Evans <xdje42@gmail.com>
9816 * infcmd.c: Whitespace fixes.
9817 (interrupt_command): Merge two function comments into one.
9819 2014-03-22 Doug Evans <xdje42@gmail.com>
9821 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9824 2014-03-22 Yao Qi <yao@codesourcery.com>
9826 * remote.c (target_read_live_memory): Remove.
9827 (memory_xfer_live_readonly_partial): Rename it to
9828 remote_xfer_live_readonly_partial. Remove argument 'object'.
9829 All callers updated. Call remote_read_bytes_1
9830 instead of target_read_live_memory.
9831 * tracepoint.c (set_traceframe_number): Remove.
9832 (make_cleanup_restore_traceframe_number): Likewise .
9833 * tracepoint.h (set_traceframe_number): Remove declaration.
9834 (make_cleanup_restore_traceframe_number): Likewise.
9836 2014-03-22 Yao Qi <yao@codesourcery.com>
9838 * remote.c (remote_read_bytes): Move code on reading from the
9840 (remote_read_bytes_1): ... here. New function.
9842 2014-03-22 Yao Qi <yao@codesourcery.com>
9844 * ctf.c (ctf_xfer_partial): Check the return value of
9845 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9846 return TARGET_XFER_UNAVAILABLE.
9847 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9848 * target.c (target_read_live_memory): Move it to remote.c.
9849 (memory_xfer_live_readonly_partial): Likewise.
9850 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9851 * remote.c (target_read_live_memory): Moved from target.c.
9852 (memory_xfer_live_readonly_partial): Likewise.
9853 (remote_read_bytes): Factored out from
9854 memory_xfer_partial_1.
9856 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9858 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9861 2014-03-21 Pedro Alves <palves@redhat.com>
9863 * infrun.c (normal_stop): Extend comment.
9865 2014-03-21 Hui Zhu <hui@codesourcery.com>
9866 Pedro Alves <palves@redhat.com>
9868 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9870 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9871 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9872 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9874 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9876 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9877 `z' formatted output modifier.
9879 2014-03-20 Tom Tromey <tromey@redhat.com>
9880 Sergio Durigan Junior <sergiodj@redhat.com>
9882 * probe.c (parse_probes): Turn assert into an ordinary error.
9883 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9884 exceptions when parsing probes. Rearrange the code for clarity.
9886 2014-03-20 Tom Tromey <tromey@redhat.com>
9889 * top.c (execute_command): Only dispatch events if the command
9892 2014-03-20 Tom Tromey <tromey@redhat.com>
9895 * infcall.c: Include event-top.h.
9896 (run_inferior_call): Call async_disable_stdin if needed.
9898 2014-03-20 Pedro Alves <palves@redhat.com>
9900 * infrun.c (prepare_to_proceed): Delete.
9901 (thread_still_needs_step_over): New function.
9902 (find_thread_needs_step_over): New function.
9903 (proceed): If the current thread needs a step-over, set its
9904 steping_over_breakpoint flag. Adjust to use
9905 find_thread_needs_step_over instead of prepare_to_proceed.
9906 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9907 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9909 (switch_back_to_stepped_thread): Step over breakpoints of all
9910 threads not the stepping thread, before switching back to the
9913 2014-03-20 Pedro Alves <palves@redhat.com>
9915 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9917 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9918 * infrun.c (saved_singlestep_ptid)
9919 (stepping_past_singlestep_breakpoint): Delete.
9920 (resume): Remove stepping_past_singlestep_breakpoint handling.
9921 (proceed): Store the prev_pc of the stepping thread too.
9922 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9924 (enum infwait_states): Delete infwait_thread_hop_state.
9925 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9927 (handle_inferior_event): Adjust.
9928 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9929 handling and the thread-hop code. Before removing single-step
9930 breakpoints, check whether the thread hit a single-step breakpoint
9931 of another thread. If it did, the trap is not a random signal.
9932 (switch_back_to_stepped_thread): If the event thread hit a
9933 single-step breakpoint, unblock it before switching to the
9934 stepping thread. Handle the case of the stepped thread having
9936 (keep_going): Handle the case of the current thread moving past a
9937 single-step breakpoint.
9939 2014-03-20 Pedro Alves <palves@redhat.com>
9942 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9943 are being stepped over.
9944 (breakpoint_address_match): Make extern.
9945 * breakpoint.h (breakpoint_address_match): New declaration.
9946 * inferior.h (stepping_past_instruction_at): New declaration.
9947 * infrun.c (struct step_over_info): New type.
9948 (step_over_info): New global.
9949 (set_step_over_info, clear_step_over_info)
9950 (stepping_past_instruction_at): New functions.
9951 (handle_inferior_event): Clear the step-over info when
9952 trap_expected is cleared.
9953 (resume): Remove now stale comment.
9954 (clear_proceed_status): Clear step-over info.
9955 (proceed): Adjust step-over handling to set or clear the step-over
9956 info instead of removing all breakpoints.
9957 (handle_signal_stop): When setting up a thread-hop, don't remove
9959 (stop_stepping): Clear step-over info.
9960 (keep_going): Adjust step-over handling to set or clear step-over
9961 info and then always inserting breakpoints, instead of removing
9962 all breakpoints when stepping over one.
9964 2014-03-20 Pedro Alves <palves@redhat.com>
9966 * infrun.c (previous_inferior_ptid): Adjust comment.
9967 (deferred_step_ptid): Delete.
9968 (infrun_thread_ptid_changed, prepare_to_proceed)
9969 (init_wait_for_inferior): Adjust.
9970 (handle_signal_stop): Delete deferred_step_ptid handling.
9972 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9975 * defs.h (sync_quit_force_run): New declaration.
9976 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9977 * event-top.c (async_sigterm_handler): New declaration.
9978 (async_sigterm_token): New variable.
9979 (async_init_signals): Create also async_sigterm_token.
9980 (async_sigterm_handler): New function.
9981 (sync_quit_force_run): New variable.
9982 (handle_sigterm): Replace quit_force call by other calls.
9983 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9985 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9987 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9988 offset into SPE pseudo registers.
9990 2014-03-18 Pedro Alves <palves@redhat.com>
9993 * inferior.h (print_stop_event): Declare.
9994 * infrun.c (print_stop_event): New, factored out from ...
9995 (normal_stop): ... this.
9996 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9997 of bpstat_print/print_stack_frame.
9999 2014-03-17 Tom Tromey <tromey@redhat.com>
10001 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10003 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10005 * ada-lang.c (decode_constrained_packed_array): Perform a
10006 minimal coercion for reference with coerce_ref instead of
10009 2014-03-17 Tristan Gingold <gingold@adacore.com>
10011 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10012 (darwin_solib_create_inferior_hook): Emit a warning if version
10015 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10017 * python/py-value.c (get_field_flag): Cast flag_name argument to
10018 PyObject_GetAttrString to support Python 2.4.
10020 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10022 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10023 (Global Maintainers): Remove Jan Kratochvil.
10025 2014-03-14 Pedro Alves <palves@redhat.com>
10027 * inferior.h (terminal_ours_for_output): Rename to ...
10028 (child_terminal_ours_for_output): ... this.
10029 (terminal_save_ours): Rename to ...
10030 (child_terminal_save_ours): ... this.
10031 (terminal_ours): Rename to ...
10032 (child_terminal_ours): ... this.
10033 (terminal_inferior): Rename to ...
10034 (child_terminal_inferior): ... this.
10035 (terminal_init_inferior): Rename to ...
10036 (child_terminal_init_inferior): ... this.
10037 (terminal_init_inferior_with_pgrp): Rename to ...
10038 (child_terminal_init_inferior_with_pgrp): ... this.
10039 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10040 (child_terminal_init_with_pgrp): ... this.
10041 (terminal_save_ours): Rename to ...
10042 (child_terminal_save_ours): ... this.
10043 (terminal_init_inferior): Rename to ...
10044 (child_terminal_init): ... this. Adjust.
10045 (terminal_inferior): Rename to ...
10046 (child_terminal_inferior): ... this.
10047 (terminal_ours_for_output): Rename to ...
10048 (child_terminal_ours_for_output): ... this. Adjust.
10049 (terminal_ours): Rename to ...
10050 (child_terminal_ours): ... this.
10051 (terminal_ours_1): Rename to ...
10052 (child_terminal_ours_1): ... this. Adjust.
10053 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10054 * windows-nat.c (do_initial_windows_stuff): Adjust.
10055 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10056 (gnu_terminal_init): ... this. Adjust.
10057 (gnu_target): Adjust.
10058 * inf-child.c (inf_child_target): Adjust.
10060 2014-03-13 Doug Evans <xdje42@gmail.com>
10063 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10066 2014-03-13 Doug Evans <xdje42@gmail.com>
10068 * value.c (record_latest_value): Call release_value_or_incref
10069 instead of release_value.
10071 2014-03-13 Pedro Alves <palves@redhat.com>
10073 * procfs.c (procfs_target): Don't override to_shortname,
10074 to_longname or to_doc.
10076 2014-03-13 Pedro Alves <palves@redhat.com>
10078 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10079 Unix in user visible strings.
10081 2014-03-12 Stan Shebs <stan@codesourcery.com>
10083 * gdbtypes.h: Annotate comments for Doxygen, add a page
10084 block comment with some general info.
10086 2014-03-12 Pedro Alves <palves@redhat.com>
10088 * infcmd.c (prepare_execution_command): New function, factored out
10089 from several execution commands.
10090 (run_command_1, continue_command, step_1, jump_command)
10091 (signal_command, until_command, advance_command, finish_command)
10092 (attach_command): Use prepare_execution_command.
10094 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10096 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10097 (MAX_BPTS): Define.
10098 (MAX_WPTS): Define.
10099 (struct arm_linux_thread_points): Removed.
10100 (struct arm_linux_process_info): New.
10101 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10102 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10103 (arm_linux_find_breakpoints_by_tid): Removed.
10104 (struct arch_lwp_info): New.
10105 (arm_linux_find_process_pid): New functions.
10106 (arm_linux_add_process): New functions.
10107 (arm_linux_process_info_get): New functions.
10108 (arm_linux_forget_process): New function.
10109 (arm_linux_get_debug_reg_state): New function.
10110 (struct update_registers_data): New.
10111 (update_registers_callback): New function.
10112 (arm_linux_insert_hw_breakpoint1): Updated.
10113 (arm_linux_remove_hw_breakpoint1): Updated.
10114 (arm_linux_insert_hw_breakpoint): Updated.
10115 (arm_linux_remove_hw_breakpoint): Updated.
10116 (arm_linux_insert_watchpoint): Updated.
10117 (arm_linux_remove_watchpoint): Updated.
10118 (arm_linux_new_thread): Updated.
10119 (arm_linux_prepare_to_resume): New function.
10120 (arm_linux_new_fork): New function.
10121 (_initialize_arm_linux_nat): Updated.
10123 2014-03-12 Pedro Alves <palves@redhat.com>
10125 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10127 2014-03-12 Tom Tromey <tromey@redhat.com>
10129 * inf-child.c (return_zero): New function.
10130 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10131 * aix-thread.c (aix_thread_inferior_created): New function.
10132 (aix_thread_attach): Remove.
10133 (init_aix_thread_ops): Don't set to_attach.
10134 (_initialize_aix_thread): Register inferior_created observer.
10135 * corelow.c (init_core_ops): Don't set to_attach or
10136 to_create_inferior.
10137 * exec.c (init_exec_ops): Don't set to_attach or
10138 to_create_inferior.
10139 * infcmd.c (run_command_1): Use find_run_target. Make direct
10141 (attach_command): Use find_attach_target. Make direct target
10143 * record-btrace.c (init_record_btrace_ops): Don't set
10144 to_create_inferior.
10145 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10147 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10148 set to_create_inferior.
10149 * target.c (complete_target_initialization): Add assertion.
10150 (target_create_inferior): Remove.
10151 (find_default_attach, find_default_create_inferior): Remove.
10152 (find_attach_target, find_run_target): New functions.
10153 (find_default_is_async_p, find_default_can_async_p)
10154 (target_supports_non_stop, target_attach): Remove.
10155 (init_dummy_target): Don't set to_create_inferior or
10156 to_supports_non_stop.
10157 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10158 TARGET_DEFAULT_FUNC.
10159 <to_create_inferior>: Add comment.
10160 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10161 TARGET_DEFAULT_RETURN.
10162 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10163 (find_attach_target, find_run_target): Declare.
10164 (target_create_inferior): Remove.
10165 (target_has_execution_1): Update comment.
10166 (target_supports_non_stop): Remove.
10167 * target-delegates.c: Rebuild.
10169 2014-03-12 Pedro Alves <palves@redhat.com>
10171 * inf-child.h: Update comment to not mention Unix.
10173 2014-03-12 Pedro Alves <palves@redhat.com>
10175 * inf-child.c: Update top comment to not mention Unix. Add
10176 generic comment describing how this target is meant to be used.
10177 (inf_child_post_attach, inf_child_post_startup_inferior)
10178 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10181 2014-03-12 Pedro Alves <palves@redhat.com>
10183 * nto-procfs.c: Include inf-child.h.
10184 (procfs_ops): Delete global.
10185 (procfs_can_run): Delete method.
10186 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10187 target pointer instead of referencing procfs_ops.
10188 (procfs_prepare_to_store): Delete.
10189 (init_procfs_ops): Delete function.
10190 (procfs_target): New function, based on init_procfs_ops, but
10191 inherit inf_child_target.
10192 (_initialize_procfs): Use procfs_target.
10194 2014-03-12 Pedro Alves <palves@redhat.com>
10196 * windows-nat.c: Include inf-child.h.
10197 (windows_ops): Delete global.
10198 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10200 (init_windows_ops): Delete function.
10201 (windows_target): New function, based on init_windows_ops, but
10202 inherit inf_child_target.
10203 (_initialize_windows_nat): Use windows_target. Install x86
10204 specific target methods here.
10206 2014-03-10 Doug Evans <xdje42@gmail.com>
10208 * guile/guile.c (call_initialize_gdb_module): New function.
10209 (initialize_guile): Replace call to scm_init_guile with call to
10212 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10214 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10215 in call to TYPE_CODE macro.
10217 2014-03-10 Jerome Guitton <guitton@adacore.com>
10219 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10220 Resolve tagged types to full view.
10222 2014-03-10 Hui Zhu <hui@codesourcery.com>
10224 * target.h (target_insert_breakpoint): Remove "hardware" from its
10227 2014-03-07 Doug Evans <dje@google.com>
10229 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10231 2014-03-07 Doug Evans <dje@google.com>
10233 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10234 Remove unused local comp_dir_attr. Assert exactly one of
10235 stub_comp_unit_die, stub_comp_dir is non-NULL.
10237 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10239 * target.h (complete_target_initialization, add_target):
10242 2014-03-07 Pedro Alves <palves@redhat.com>
10244 * go32-nat.c: Include inf-child.h.
10245 (go32_ops): Delete global.
10246 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10248 (go32_create_inferior): Push the passed in target pointer instead
10249 of referencing go32_ops.
10250 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10251 (go32_target): New function, based on init_go32_ops, but inherit
10253 (_initialize_go32_nat): Use go32_target. Move parts of
10254 init_go32_ops here.
10256 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10258 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10259 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10260 SYMBOL_VALUE_ADDRESS.
10261 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10263 2014-03-06 Yao Qi <yao@codesourcery.com>
10265 * breakpoint.c (get_tracepoint_by_number): Remove argument
10266 optional_p. All callers updated. Adjust comments. Update
10268 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10270 2014-03-06 Yao Qi <yao@codesourcery.com>
10272 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10273 early if get_number returns zero. Use 'p' instead of 'args'.
10275 2014-03-06 Yao Qi <yao@codesourcery.com>
10277 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10280 2014-03-06 Yao Qi <yao@codesourcery.com>
10282 PR breakpoints/16508
10283 * tracepoint.c (check_trace_running): New function.
10284 (trace_find_command): Move code to check_trace_running and
10285 call check_trace_running.
10286 (trace_find_pc_command): Likewise.
10287 (trace_find_tracepoint_command): Likewise.
10288 (trace_find_line_command): Likewise.
10289 (trace_find_range_command): Likewise.
10290 * tracepoint.h (check_trace_running): Likewise.
10291 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10293 2014-03-06 Yao Qi <yao@codesourcery.com>
10295 * target.h (struct target_ops) <to_traceframe_info>: Use
10296 TARGET_DEFAULT_NORETURN (tcomplain ()).
10297 * target-delegates.c: Regenerated.
10299 2014-03-05 Pedro Alves <palves@redhat.com>
10302 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10303 void. Update comment.
10304 (dcache_xfer_memory): Delete.
10305 (dcache_read_memory_partial): New, based on the read bits of
10306 dcache_xfer_memory.
10307 (dcache_update): Add status parameter. Use ULONGEST for len, and
10308 adjust. Discard cache lines if the reason for the update was
10310 * dcache.h (dcache_xfer_memory): Delete declaration.
10311 (dcache_read_memory_partial): New declaration.
10312 (dcache_update): Update prototype.
10313 * target.c (raw_memory_xfer_partial): Update the dcache here.
10314 (memory_xfer_partial_1): Don't handle dcache writes here.
10316 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10318 * remote-sim.c (gdbsim_load): Add const to prog.
10320 2014-03-03 Tom Tromey <tromey@redhat.com>
10322 * elfread.c (probe_key): Change to bfd_data.
10323 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10324 now per-BFD, not per-objfile.
10325 * stap-probe.c (stap_probe_destroy): Update comment.
10326 (handle_stap_probe): Allocate on the per-BFD obstack.
10328 2014-03-03 Tom Tromey <tromey@redhat.com>
10330 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10331 * breakpoint.c (create_longjmp_master_breakpoint): Use
10333 (add_location_to_breakpoint, bkpt_probe_insert_location)
10334 (bkpt_probe_remove_location): Update.
10335 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10336 * elfread.c (elf_symfile_relocate_probe): Remove.
10337 (elf_probe_fns): Update.
10338 (insert_exception_resume_breakpoint): Change type of "probe"
10339 parameter to bound_probe.
10340 (check_exception_resume): Update.
10341 * objfiles.c (objfile_relocate1): Don't relocate probes.
10342 * probe.c (bound_probe_s): New typedef.
10343 (parse_probes): Use get_probe_address. Set sal's objfile.
10344 (find_probe_by_pc): Return a bound_probe.
10345 (collect_probes): Return a VEC(bound_probe_s).
10346 (compare_probes): Update.
10347 (gen_ui_out_table_header_info): Change type of "probes"
10349 (info_probes_for_ops): Update.
10350 (get_probe_address): New function.
10351 (probe_safe_evaluate_at_pc): Update.
10352 * probe.h (struct probe_ops) <get_probe_address>: New field.
10353 <set_semaphore, clear_semaphore>: Add objfile parameter.
10354 (struct probe) <objfile>: Remove field.
10356 <address>: Update comment.
10357 (struct bound_probe): New.
10358 (find_probe_by_pc): Return a bound_probe.
10359 (get_probe_address): Declare.
10360 * solib-svr4.c (struct probe_and_action) <address>: New field.
10361 (hash_probe_and_action, equal_probe_and_action): Update.
10362 (register_solib_event_probe): Add address parameter.
10363 (solib_event_probe_at): Update.
10364 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10366 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10367 (stap_get_probe_address): New function.
10368 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10369 (compile_probe_arg): Update.
10370 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10372 (handle_stap_probe): Don't relocate the probe.
10373 (stap_relocate): Remove.
10374 (stap_gen_info_probes_table_values): Update.
10375 (stap_probe_ops): Remove stap_relocate.
10376 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10377 (debug_sym_probe_fns): Update.
10378 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10379 * symtab.c (init_sal): Use memset.
10380 * symtab.h (struct symtab_and_line) <objfile>: New field.
10381 * tracepoint.c (start_tracing, stop_tracing): Update.
10383 2014-03-03 Tom Tromey <tromey@redhat.com>
10385 * probe.h (parse_probes, find_probe_by_pc)
10386 (find_probes_in_objfile): Fix comments.
10388 2014-03-02 Doug Evans <xdje42@gmail.com>
10390 * infrun.c (handle_signal_stop): Replace test for
10391 TARGET_WAITKIND_STOPPED with an assert.
10393 2014-03-02 Doug Evans <xdje42@gmail.com>
10395 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10397 2014-03-02 Doug Evans <xdje42@gmail.com>
10399 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10401 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10403 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10405 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10407 * i386obsd-nat.c: Include "obsd-nat.h".
10408 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10410 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10412 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10414 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10416 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10418 * mips64obsd-nat.c: Include "obsd-nath".
10419 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10421 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10423 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10425 * amd64obsd-nat.c: Include "obsd-nat,h.
10426 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10428 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10430 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10432 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10433 (find_overload_match): Update call to find_oload_champ.
10434 (find_oload_champ_namespace_loop): Likewise
10436 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10438 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10440 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10441 * config/sparc/obsd64.mh: New file.
10442 * sparc64obsd-nat.c: New file.
10444 * obsd-nat.h: New file.
10445 * obsd-nat.c: New file.
10446 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10447 (ALLDEPFILES): Add obsd-nat.c.
10449 2014-02-28 Tom Tromey <tromey@redhat.com>
10451 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10452 * cli-out.h (cli_ui_out_impl): Now const.
10453 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10454 * ui-out.c (struct ui_out) <impl>: Now const.
10455 (default_ui_out_impl): Now const.
10456 (ui_out_new): Make 'impl' parameter const.
10457 * ui-out.h (ui_out_new): Update.
10459 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10461 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10463 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10465 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10467 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10469 Additional PR 8882 fix.
10470 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10472 2014-02-27 Pedro Alves <palves@redhat.com>
10474 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10477 2014-02-27 Pedro Alves <palves@redhat.com>
10480 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10481 * nat/linux-waitpid.c: Include string.h.
10482 (status_to_str): Moved here and made extern.
10483 * nat/linux-waitpid.h (status_to_str): New declaration.
10485 2014-02-27 Hui Zhu <hui@codesourcery.com>
10488 * infrun.c (ptid_match): Move ...
10489 * common/ptid.c (ptid_match): ... here.
10490 * inferior.h (ptid_match): Move ...
10491 * common/ptid.h (ptid_match): ... here.
10493 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10495 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10496 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10499 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10501 * obsd-tdep.c (obsd_auxv_parse): New function.
10502 (obsd_init_abi): Set auxv_parse.
10504 * gdbarch.sh (auxv_parse): New.
10505 * gdbarch.h: Regenerated.
10506 * gdbarch.c: Regenerated.
10507 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10509 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10511 * guile/scm-value.c (gdbscm_history_append_x): New function.
10512 (value_functions): Add it.
10514 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10516 * dwarf2read.c (attr_value_as_address): New function.
10517 (dwarf2_find_base_address, read_call_site_scope): Use
10518 attr_value_as_address in place of DW_ADDR.
10519 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10520 the low and high addresses. Slight rework of the handling
10521 of the high pc being a constant form, and limit it to
10522 DWARF verson 4 or higher.
10523 (dwarf2_record_block_ranges): Likewise.
10524 (read_partial_die): Likewise.
10525 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10527 2014-02-26 Tom Tromey <tromey@redhat.com>
10529 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10531 2014-02-26 Tom Tromey <tromey@redhat.com>
10533 * elfread.c (elf_read_minimal_symbols): Return early if
10534 minimal symbols have already been read. Add "ei" parameter.
10535 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10536 * minsyms.c (prim_record_minimal_symbol_full): Update.
10537 * objfiles.h (struct objstats) <n_minsyms>: Move...
10538 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10539 * symmisc.c (print_objfile_statistics): Update.
10541 2014-02-26 Tom Tromey <tromey@redhat.com>
10543 * elfread.c (elf_read_minimal_symbols): New function, from
10545 (elf_symfile_read): Call it.
10547 2014-02-26 Tom Tromey <tromey@redhat.com>
10549 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10550 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10551 (lookup_minimal_symbol_solib_trampoline)
10552 (lookup_minimal_symbol_by_pc_section_1)
10553 (lookup_minimal_symbol_and_objfile): Update.
10554 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10555 Don't allocate a minimal symbol if minsyms have already been read.
10556 (build_minimal_symbol_hash_tables): Update.
10557 (install_minimal_symbols): Do nothing if minsyms already read.
10558 Use the per-BFD obstack.
10559 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10560 * objfiles.c (allocate_objfile): Call
10561 terminate_minimal_symbol_table later.
10562 (have_minimal_symbols): Update.
10563 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10564 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10565 Move from struct objfile.
10566 <minsyms_read>: New field.
10567 (struct objfile) <msymbols, minimal_symbol_count,
10568 msymbol_hash, msymbol_demangled_hash>: Move.
10569 (ALL_OBJFILE_MSYMBOLS): Update.
10570 * symfile.c (read_symbols): Set minsyms_read.
10571 (reread_symbols): Update.
10572 * symmisc.c (dump_objfile, dump_msymbols): Update.
10574 2014-02-26 Tom Tromey <tromey@redhat.com>
10576 * minsyms.c (msymbols_sort): Remove.
10577 * minsyms.h (msymbols_sort): Remove.
10578 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10579 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10580 * elfread.c (elf_symtab_read): Don't add section offsets.
10581 * xcoffread.c (record_minimal_symbol): Don't add section offset
10582 to minimal symbol address.
10583 * somread.c (text_offset, data_offset): Remove.
10584 (som_symtab_read): Don't add section offsets to minimal symbol
10586 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10587 Don't add section offsets to minimal symbols.
10588 * coffread.c (coff_symtab_read): Don't add section offsets
10589 to minimal symbol addresses.
10590 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10591 to minimal symbol addresses.
10592 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10593 section offset to minimal symbol addresses.
10594 * mdebugread.c (parse_partial_symbols): Don't add section
10595 offset to minimal symbol addresses.
10596 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10597 offset to minimal symbol addresses.
10599 2014-02-26 Tom Tromey <tromey@redhat.com>
10601 * ada-lang.c (ada_main_name): Update.
10602 (ada_add_standard_exceptions): Update.
10603 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10604 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10605 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10606 * auxv.c (ld_so_xfer_auxv): Update.
10607 * avr-tdep.c (avr_scan_prologue): Update.
10608 * ax-gdb.c (gen_var_ref): Update.
10609 * blockframe.c (get_pc_function_start)
10610 (find_pc_partial_function_gnu_ifunc): Update.
10611 * breakpoint.c (create_overlay_event_breakpoint)
10612 (create_longjmp_master_breakpoint)
10613 (create_std_terminate_master_breakpoint)
10614 (create_exception_master_breakpoint): Update.
10615 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10616 * c-valprint.c (c_val_print): Update.
10617 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10618 * common/agent.c (agent_look_up_symbols): Update.
10619 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10620 * dwarf2loc.c (call_site_to_target_addr): Update.
10621 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10622 * elfread.c (elf_gnu_ifunc_record_cache)
10623 (elf_gnu_ifunc_resolve_by_got): Update.
10624 * findvar.c (default_read_var_value): Update.
10625 * frame.c (inside_main_func): Update.
10626 * frv-tdep.c (frv_frame_this_id): Update.
10627 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10628 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10630 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10631 (hppa_hpux_find_dummy_bpaddr): Update.
10632 * hppa-tdep.c (hppa_symbol_address): Update.
10633 * infcmd.c (until_next_command): Update.
10634 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10636 * linespec.c (minsym_found, add_minsym): Update.
10637 * linux-nat.c (get_signo): Update.
10638 * linux-thread-db.c (inferior_has_bug): Update.
10639 * m32c-tdep.c (m32c_return_value)
10640 (m32c_m16c_address_to_pointer): Update.
10641 * m32r-tdep.c (m32r_frame_this_id): Update.
10642 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10643 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10644 * maint.c (maintenance_translate_address): Update.
10645 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10646 (frob_address): New function.
10647 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10648 frob_address. Rename parameter to "pc_in".
10649 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10651 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10653 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10654 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10655 * objc-lang.c (find_objc_msgsend): Update.
10656 * objfiles.c (objfile_relocate1): Update.
10657 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10658 * p-valprint.c (pascal_val_print): Update.
10659 * parse.c (write_exp_msymbol): Update.
10660 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10661 (ppc_elfv2_skip_entrypoint): Update.
10662 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10663 * printcmd.c (build_address_symbolic, msym_info)
10664 (address_info): Update.
10665 * proc-service.c (ps_pglobal_lookup): Update.
10666 * psymtab.c (find_pc_sect_psymtab_closer)
10667 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10668 Change msymbol parameter to bound_minimal_symbol.
10669 * ravenscar-thread.c (get_running_thread_id): Update.
10670 * remote.c (remote_check_symbols): Update.
10671 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10673 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10674 * solib-dsbt.c (lm_base): Update.
10675 * solib-frv.c (lm_base, main_got): Update.
10676 * solib-irix.c (locate_base): Update.
10677 * solib-som.c (som_solib_create_inferior_hook)
10678 (link_map_start): Update.
10679 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10680 * solib-svr4.c (elf_locate_base, enable_break): Update.
10681 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10682 (flush_ea_cache): Update.
10683 * stabsread.c (define_symbol, scan_file_globals): Update.
10684 * stack.c (find_frame_funname): Update.
10685 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10686 (debug_qf_find_pc_sect_symtab): Update.
10687 * symfile.c (simple_read_overlay_table)
10688 (simple_overlay_update): Update.
10689 * symfile.h (struct quick_symbol_functions)
10690 <find_pc_sect_symtab>: Change type of msymbol to
10691 bound_minimal_symbol.
10692 * symmisc.c (dump_msymbols): Update.
10693 * symtab.c (find_pc_sect_symtab_via_partial)
10694 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10695 (search_symbols, print_msymbol_info): Update.
10696 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10697 (MSYMBOL_VALUE_ADDRESS): Redefine.
10698 (BMSYMBOL_VALUE_ADDRESS): New macro.
10699 * tracepoint.c (scope_info): Update.
10700 * tui/tui-disasm.c (tui_find_disassembly_address)
10701 (tui_get_begin_asm_address): Update.
10702 * valops.c (find_function_in_inferior): Update.
10703 * value.c (value_static_field, value_fn_field): Update.
10705 2014-02-26 Tom Tromey <tromey@redhat.com>
10707 * ada-lang.c (ada_update_initial_language): Update.
10708 (ada_main_name, ada_has_this_exception_support): Update.
10709 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10710 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10711 * arm-tdep.c (arm_skip_stub): Update.
10712 * auxv.c (ld_so_xfer_auxv): Update.
10713 * avr-tdep.c (avr_scan_prologue): Update.
10714 * ax-gdb.c (gen_var_ref): Update.
10715 * breakpoint.c (struct breakpoint_objfile_data)
10716 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10717 type to bound_minimal_symbol.
10718 (create_overlay_event_breakpoint)
10719 (create_longjmp_master_breakpoint)
10720 (create_std_terminate_master_breakpoint)
10721 (create_exception_master_breakpoint): Update.
10722 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10723 * c-exp.y (classify_name): Update.
10724 * coffread.c (coff_symfile_read): Update.
10725 * common/agent.c (agent_look_up_symbols): Update.
10726 * d-lang.c (d_main_name): Update.
10727 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10728 * dec-thread.c (enable_dec_thread): Update.
10729 * dwarf2loc.c (call_site_to_target_addr): Update.
10730 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10731 * eval.c (evaluate_subexp_standard): Update.
10732 * findvar.c (struct minsym_lookup_data) <result>: Change type
10733 to bound_minimal_symbol.
10735 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10736 * frame.c (inside_main_func): Update.
10737 * frv-tdep.c (frv_frame_this_id): Update.
10738 * gcore.c (call_target_sbrk): Update.
10739 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10740 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10742 * go-lang.c (go_main_name): Update.
10743 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10744 (hppa_hpux_find_import_stub_for_addr): Update.
10745 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10746 Update. Change return type.
10747 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10749 * jit.c (jit_breakpoint_re_set_internal): Update.
10750 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10752 * linux-nat.c (get_signo): Update.
10753 * linux-thread-db.c (inferior_has_bug): Update
10754 * m32c-tdep.c (m32c_return_value)
10755 (m32c_m16c_address_to_pointer): Update.
10756 * m32r-tdep.c (m32r_frame_this_id): Update.
10757 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10758 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10759 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10760 lookup_minimal_symbol. Change return type.
10761 (lookup_minimal_symbol): Remove.
10762 (lookup_bound_minimal_symbol): Update.
10763 (lookup_minimal_symbol_text): Change return type.
10764 (lookup_minimal_symbol_solib_trampoline): Change return type.
10765 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10766 (lookup_minimal_symbol_solib_trampoline): Change return type.
10767 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10768 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10769 (value_nsstring, find_imps): Update.
10770 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10771 * p-lang.c (pascal_main_name): Update.
10772 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10773 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10774 * proc-service.c (ps_pglobal_lookup): Update.
10775 * ravenscar-thread.c (get_running_thread_msymbol): Change
10777 (has_ravenscar_runtime, get_running_thread_id): Update.
10778 * remote.c (remote_check_symbols): Update.
10779 * sol-thread.c (ps_pglobal_lookup): Update.
10780 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10781 * solib-dsbt.c (lm_base): Update.
10782 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10784 * solib-irix.c (locate_base): Update.
10785 * solib-som.c (som_solib_create_inferior_hook)
10786 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10788 * solib-spu.c (spu_enable_break): Update.
10789 * solib-svr4.c (elf_locate_base, enable_break): Update.
10790 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10791 (flush_ea_cache): Update.
10792 * stabsread.c (define_symbol): Update.
10793 * symfile.c (simple_read_overlay_table): Update.
10794 * symtab.c (find_pc_sect_line): Update.
10795 * tracepoint.c (scope_info): Update.
10796 * tui-disasm.c (tui_get_begin_asm_address): Update.
10797 * value.c (value_static_field): Update.
10799 2014-02-26 Tom Tromey <tromey@redhat.com>
10801 * minsyms.c (prim_record_minimal_symbol_full): Use
10802 SET_MSYMBOL_VALUE_ADDRESS.
10803 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10804 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10805 SET_MSYMBOL_VALUE_ADDRESS.
10806 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10807 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10809 2014-02-26 Tom Tromey <tromey@redhat.com>
10811 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10812 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10813 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10814 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10815 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10816 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10817 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10818 * ada-lang.c (ada_main_name): Update.
10819 (ada_lookup_simple_minsym): Update.
10820 (ada_make_symbol_completion_list): Update.
10821 (ada_add_standard_exceptions): Update.
10822 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10823 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10824 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10825 * arm-tdep.c (skip_prologue_function): Update.
10826 (arm_skip_stack_protector, arm_skip_stub): Update.
10827 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10828 (arm_wince_skip_main_prologue): Update.
10829 * auxv.c (ld_so_xfer_auxv): Update.
10830 * avr-tdep.c (avr_scan_prologue): Update.
10831 * ax-gdb.c (gen_var_ref): Update.
10832 * block.c (call_site_for_pc): Update.
10833 * blockframe.c (get_pc_function_start): Update.
10834 (find_pc_partial_function_gnu_ifunc): Update.
10835 * breakpoint.c (create_overlay_event_breakpoint): Update.
10836 (create_longjmp_master_breakpoint): Update.
10837 (create_std_terminate_master_breakpoint): Update.
10838 (create_exception_master_breakpoint): Update.
10839 (resolve_sal_pc): Update.
10840 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10841 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10843 * c-valprint.c (c_val_print): Update.
10844 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10845 * coffread.c (coff_symfile_read): Update.
10846 * common/agent.c (agent_look_up_symbols): Update.
10847 * dbxread.c (find_stab_function_addr): Update.
10848 (end_psymtab): Update.
10849 * dwarf2loc.c (call_site_to_target_addr): Update.
10850 (func_verify_no_selftailcall): Update.
10851 (tailcall_dump): Update.
10852 (call_site_find_chain_1): Update.
10853 (dwarf_expr_reg_to_entry_parameter): Update.
10854 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10855 (elf_gnu_ifunc_resolve_by_got): Update.
10856 * f-valprint.c (info_common_command): Update.
10857 * findvar.c (read_var_value): Update.
10858 * frame.c (get_prev_frame_1): Update.
10859 (inside_main_func): Update.
10860 * frv-tdep.c (frv_skip_main_prologue): Update.
10861 (frv_frame_this_id): Update.
10862 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10863 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10864 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10865 (gnuv3_skip_trampoline): Update.
10866 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10867 (hppa64_hpux_in_solib_call_trampoline): Update.
10868 (hppa_hpux_skip_trampoline_code): Update.
10869 (hppa64_hpux_search_dummy_call_sequence): Update.
10870 (hppa_hpux_find_import_stub_for_addr): Update.
10871 (hppa_hpux_find_dummy_bpaddr): Update.
10872 * hppa-tdep.c (hppa_symbol_address)
10873 (hppa_lookup_stub_minimal_symbol): Update.
10874 * i386-tdep.c (i386_skip_main_prologue): Update.
10875 (i386_pe_skip_trampoline_code): Update.
10876 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10877 * infcall.c (get_function_name): Update.
10878 * infcmd.c (until_next_command): Update.
10879 * jit.c (jit_breakpoint_re_set_internal): Update.
10880 (jit_inferior_init): Update.
10881 * linespec.c (minsym_found): Update.
10882 (add_minsym): Update.
10883 * linux-fork.c (info_checkpoints_command): Update.
10884 * linux-nat.c (get_signo): Update.
10885 * linux-thread-db.c (inferior_has_bug): Update.
10886 * m32c-tdep.c (m32c_return_value): Update.
10887 (m32c_m16c_address_to_pointer): Update.
10888 (m32c_m16c_pointer_to_address): Update.
10889 * m32r-tdep.c (m32r_frame_this_id): Update.
10890 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10891 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10892 * maint.c (maintenance_translate_address): Update.
10893 * minsyms.c (add_minsym_to_hash_table): Update.
10894 (add_minsym_to_demangled_hash_table): Update.
10895 (msymbol_objfile): Update.
10896 (lookup_minimal_symbol): Update.
10897 (iterate_over_minimal_symbols): Update.
10898 (lookup_minimal_symbol_text): Update.
10899 (lookup_minimal_symbol_by_pc_name): Update.
10900 (lookup_minimal_symbol_solib_trampoline): Update.
10901 (lookup_minimal_symbol_by_pc_section_1): Update.
10902 (lookup_minimal_symbol_and_objfile): Update.
10903 (prim_record_minimal_symbol_full): Update.
10904 (compare_minimal_symbols): Update.
10905 (compact_minimal_symbols): Update.
10906 (build_minimal_symbol_hash_tables): Update.
10907 (install_minimal_symbols): Update.
10908 (terminate_minimal_symbol_table): Update.
10909 (find_solib_trampoline_target): Update.
10910 (minimal_symbol_upper_bound): Update.
10911 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10912 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10913 (mips_skip_pic_trampoline_code): Update.
10914 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10915 * objc-lang.c (selectors_info): Update.
10916 (classes_info): Update.
10917 (find_methods): Update.
10918 (find_imps): Update.
10919 (find_objc_msgsend): Update.
10920 * objfiles.c (objfile_relocate1): Update.
10921 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10922 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10923 * p-valprint.c (pascal_val_print): Update.
10924 * parse.c (write_exp_msymbol): Update.
10925 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10926 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10927 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10928 * printcmd.c (build_address_symbolic): Update.
10929 (sym_info): Update.
10930 (address_info): Update.
10931 * proc-service.c (ps_pglobal_lookup): Update.
10932 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10933 (find_pc_sect_psymtab): Update.
10934 * python/py-framefilter.c (py_print_frame): Update.
10935 * ravenscar-thread.c (get_running_thread_id): Update.
10936 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10938 * remote.c (remote_check_symbols): Update.
10939 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10940 (rs6000_skip_trampoline_code): Update.
10941 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10942 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10943 * solib-dsbt.c (lm_base): Update.
10944 * solib-frv.c (lm_base): Update.
10945 (main_got): Update.
10946 * solib-irix.c (locate_base): Update.
10947 * solib-som.c (som_solib_create_inferior_hook): Update.
10948 (som_solib_desire_dynamic_linker_symbols): Update.
10949 (link_map_start): Update.
10950 * solib-spu.c (spu_enable_break): Update.
10951 (ocl_enable_break): Update.
10952 * solib-svr4.c (elf_locate_base): Update.
10953 (enable_break): Update.
10954 * spu-tdep.c (spu_get_overlay_table): Update.
10955 (spu_catch_start): Update.
10956 (flush_ea_cache): Update.
10957 * stabsread.c (define_symbol): Update.
10958 (scan_file_globals): Update.
10959 * stack.c (find_frame_funname): Update.
10960 (frame_info): Update.
10961 * symfile.c (simple_read_overlay_table): Update.
10962 (simple_overlay_update): Update.
10963 * symmisc.c (dump_msymbols): Update.
10964 * symtab.c (fixup_section): Update.
10965 (find_pc_sect_line): Update.
10966 (skip_prologue_sal): Update.
10967 (search_symbols): Update.
10968 (print_msymbol_info): Update.
10969 (rbreak_command): Update.
10970 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10971 (completion_list_objc_symbol): Update.
10972 (default_make_symbol_completion_list_break_on): Update.
10973 * tracepoint.c (scope_info): Update.
10974 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10975 (tui_get_begin_asm_address): Update.
10976 * valops.c (find_function_in_inferior): Update.
10977 * value.c (value_static_field): Update.
10978 (value_fn_field): Update.
10980 2014-02-26 Tom Tromey <tromey@redhat.com>
10982 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10983 bound minimal symbols. Move code that knows about minsym
10985 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10987 * minsyms.h (minimal_symbol_upper_bound): Declare.
10988 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10989 minimal_symbol_upper_bound.
10991 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10993 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10994 Use the type's name if its basic type does not have a tag.
10996 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10998 * dwarf2read.c (read_subrange_type): Add comment.
11000 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11002 * dwarf2read.c (update_enumeration_type_from_children): New
11003 function, mostly extracted from process_structure_scope.
11004 (read_enumeration_type): Call update_enumeration_type_from_children.
11005 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11006 and flag_flag_enum fields.
11008 2014-02-26 Pedro Alves <palves@redhat.com>
11010 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11011 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11012 to_xfer_partial method.
11014 2014-02-26 Pedro Alves <palves@redhat.com>
11016 * target.c (complete_target_initialization): Don't install
11017 default_xfer_partial as to_xfer_partial hook.
11018 (nomemory): Delete.
11019 (update_current_target): Don't INHERIT nor de_fault
11020 deprecated_xfer_memory. Delete de_fault macro.
11021 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11022 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11023 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11026 2014-02-26 Pedro Alves <palves@redhat.com>
11028 * go32-nat.c (my_write_child): New function.
11029 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11030 (go32_xfer_partial): New function.
11031 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11032 Instead install a to_xfer_partial hook.
11034 2014-02-26 Pedro Alves <palves@redhat.com>
11036 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11037 to_xfer_partial helper. Rewrite.
11038 (procfs_xfer_partial): New function.
11039 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11040 Install a to_xfer_partial hook.
11042 2014-02-26 Pedro Alves <palves@redhat.com>
11044 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11045 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11046 (m32r_xfer_partial): New function.
11047 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11048 Install a to_xfer_partial hook.
11050 2014-02-26 Pedro Alves <palves@redhat.com>
11052 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11054 (mips_xfer_partial): New function.
11055 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11056 hook. Install a to_xfer_partial hook.
11058 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11060 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11061 * gdbtypes.c (create_array_type_with_stride): New function,
11062 renaming create_array_type, but with an added parameter
11063 called "bit_stride".
11064 (create_array_type): Re-implement using
11065 create_array_type_with_stride.
11066 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11067 and DW_AT_bit_stride attributes.
11069 2014-02-26 Pedro Alves <palves@redhat.com>
11071 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11072 task-specific breakpoints.
11074 2014-02-25 Pedro Alves <palves@redhat.com>
11076 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11077 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11079 2014-02-25 Stan Shebs <stan@codesourcery.com>
11081 * defs.h: Annotate comments for Doxygen.
11083 2014-02-25 Tom Tromey <tromey@redhat.com>
11085 * target.h (target_ignore): Don't declare.
11086 * target.c (target_ignore): Remove.
11088 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11091 * auto-load.c (auto_load_objfile_script_1): Change filename to
11094 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11096 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11097 documentation. Adjust prototype to match the target_ops
11098 to_xfer_partial method. Adjust implementation accordingly.
11100 2014-02-25 Hui Zhu <hui@codesourcery.com>
11102 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11103 to_traceframe_info.
11105 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11107 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11108 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11109 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11110 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11111 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11112 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11113 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11114 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11116 (rl78_register_type): Use a data pointer type for SP and
11117 new pseudo registers mentioned above. Use a 16 bit integer
11118 type for all other register pairs.
11119 (rl78_register_name, rl78_g10_register_name): Update for
11120 new pseudo registers.
11121 (rl78_pseudo_register_read): Likewise.
11122 (rl78_pseudo_register_write): Likewise.
11123 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11124 to the newly added pseudo registers.
11126 2014-02-24 Doug Evans <dje@google.com>
11128 * value.c (record_latest_value): Fix comment.
11129 * printcmd.c (print_command_1): Remove code to handle -1 return from
11130 record_latest_value.
11132 2014-02-24 Pedro Alves <palves@redhat.com>
11134 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11135 deprecated_xfer_memory hook.
11136 (procfs_xfer_partial): Call procfs_xfer_memory instead
11137 of the deprecated_xfer_memory target hook.
11138 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11141 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11143 * windows-nat.c (windows_xfer_shared_libraries): Return
11144 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11145 requested object is TARGET_OBJECT_LIBRARIES.
11147 2014-02-24 Yao Qi <yao@codesourcery.com>
11149 * target.h (enum target_xfer_status)
11150 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11151 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11153 * corefile.c (memory_error_message): User updated.
11154 * exec.c (section_table_read_available_memory): Likewise.
11155 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11156 * target.c (target_xfer_status_to_string): Likewise.
11157 (raw_memory_xfer_partial): Likewise.
11158 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11159 * valops.c (read_value_memory): Likewise.
11160 * exec.h: Update comments.
11162 2014-02-24 Yao Qi <yao@codesourcery.com>
11164 * target.c (target_xfer_status_to_string): Rename argument err
11166 * target.h (target_xfer_status_to_string): Update declaration.
11167 Replace target_xfer_error_to_string with
11168 target_xfer_status_to_string in comment.
11170 2014-02-24 Yao Qi <yao@codesourcery.com>
11172 * mips-linux-nat.c (super_close): Update its type.
11173 (mips_linux_close): Pass 'self' to super_close.
11175 2014-02-24 Yao Qi <yao@codesourcery.com>
11177 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11178 * corefile.c (read_memory): Adjusted.
11179 * target.c (target_write_with_progress): Adjusted.
11181 2014-02-23 Yao Qi <yao@codesourcery.com>
11183 Revert two patches:
11185 2013-10-25 Yao Qi <yao@codesourcery.com>
11187 * remote.c (remote_traceframe_info): Return early if
11188 traceframe is not selected.
11190 2013-07-19 Yao Qi <yao@codesourcery.com>
11192 * target.c (update_current_target): Change the default action
11193 of 'to_traceframe_info' from tcomplain to return_zero.
11194 * target.h (struct target_ops) <to_traceframe_info>: Add more
11197 2014-02-23 Yao Qi <yao@codesourcery.com>
11199 * valops.c (read_value_memory): Rewrite it. Call
11200 target_xfer_partial in a loop.
11201 * exec.h (section_table_available_memory): Remove declaration.
11202 Move comments to ...
11203 * exec.c (section_table_available_memory): ... here. Make it
11206 2014-02-23 Yao Qi <yao@codesourcery.com>
11208 * exec.c (section_table_read_available_memory): New function.
11209 * exec.h (section_table_read_available_memory): Declare.
11210 * ctf.c (ctf_xfer_partial): Call
11211 section_table_read_available_memory.
11212 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11214 2014-02-23 Yao Qi <yao@codesourcery.com>
11216 * ctf.c (ctf_xfer_partial): Move code to ...
11217 * exec.c (exec_read_partial_read_only): ... it. New function.
11218 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11219 * tracefile.c: Include "exec.h".
11220 * exec.h (exec_read_partial_read_only): Declare.
11222 2014-02-23 Yao Qi <yao@codesourcery.com>
11224 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11225 (tfile_has_memory): Remove.
11226 (init_tfile_ops): Don't set fields to_has_all_memory and
11227 to_has_memory of tfile_ops.
11228 * tracefile.c (tracefile_has_all_memory): New function.
11229 (tracefile_has_memory): New function.
11230 (init_tracefile_ops): Initialize fields to_has_all_memory and
11231 to_has_memory of 'ops'.
11233 2014-02-23 Yao Qi <yao@codesourcery.com>
11235 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11236 (ctf_thread_alive, ctf_get_trace_status): Remove.
11237 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11238 init_tracefile_ops.
11239 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11240 (tfile_has_stack, tfile_has_registers): Remove.
11241 (tfile_thread_alive): Remove.
11242 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11243 init_tracefile_ops.
11244 * tracefile.c (tracefile_has_stack): New function.
11245 (tracefile_has_registers): New function.
11246 (tracefile_thread_alive): New function.
11247 (tracefile_get_trace_status): New function.
11248 (init_tracefile_ops): New function.
11249 * tracefile.h (init_tracefile_ops): Declare.
11251 2014-02-23 Yao Qi <yao@codesourcery.com>
11253 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11254 (O_LARGEFILE): Likewise.
11255 (tfile_ops): Likewise.
11256 (TRACE_HEADER_SIZE): Likewise.
11257 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11258 (cur_data_size): Likewise.
11259 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11260 (tfile_close, tfile_files_info): Likewise.
11261 (tfile_get_trace_status): Likewise.
11262 (tfile_get_tracepoint_status): Likewise.
11263 (tfile_get_traceframe_address): Likewise.
11264 (tfile_trace_find, match_blocktype): Likewise.
11265 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11266 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11267 (tfile_get_trace_state_variable_value): Likewise.
11268 (tfile_has_all_memory, tfile_has_memory): Likewise.
11269 (tfile_has_stack, tfile_has_registers): Likewise.
11270 (tfile_thread_alive, build_traceframe_info): Likewise.
11271 (tfile_traceframe_info, init_tfile_ops): Likewise.
11272 (_initialize_tracepoint): Don't call init_tfile_ops
11273 and add_target_with_completer.
11274 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11275 exec.h, completer.h and filenames.h.
11276 (_initialize_tracefile_tfile): New function.
11278 2014-02-23 Yao Qi <yao@codesourcery.com>
11280 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11282 (HFILES_NO_SRCDIR): Add tracefile.h.
11283 * ctf.c: Include "tracefile.h".
11284 * tracefile.h: New file.
11285 * tracefile.c: New file
11286 * tracefile-tfile.c: New file.
11287 * tracepoint.c: Include "tracefile.h".
11288 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11289 (stop_reason_names): Add const.
11290 (trace_file_writer_xfree): Move it to tracefile.c.
11291 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11292 (trace_save_ctf): Likewise.
11293 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11294 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11295 (tfile_write_header, tfile_write_regblock_type): Likewise.
11296 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11297 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11298 (tfile_write_raw_data, tfile_end): Likewise.
11299 (tfile_trace_file_writer_new): Likewise.
11300 (free_uploaded_tp): Make it extern.
11301 (free_uploaded_tsv): Make it extern.
11302 (_initialize_tracepoint): Move code to register command 'tsave'
11304 * tracepoint.h (stop_reason_names): Declare.
11305 (struct trace_frame_write_ops): Move it to tracefile.h.
11306 (struct trace_file_write_ops): Likewise.
11307 (struct trace_file_writer): Likewise.
11308 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11310 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11313 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11315 (get_cores_used_by_process): New parameter num_cores, use it.
11316 (linux_xfer_osdata_processes): Pass num_cores to it.
11317 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11320 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11322 * target.c (memory_xfer_partial): Fix length arg in call to
11323 breakpoint_xfer_memory.
11325 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11328 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11329 number comes after the + or - signs. Adjust length of register
11330 name to be extracted.
11332 2014-02-20 Tom Tromey <tromey@redhat.com>
11334 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11335 (ada_varobj_ops): Mark "extern".
11337 2014-02-20 Tom Tromey <tromey@redhat.com>
11339 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11341 2014-02-20 Doug Evans <xdje42@gmail.com>
11343 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11344 All callers updated.
11345 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11346 All callers updated.
11347 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11348 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11350 2014-02-20 lin zuojian <manjian2006@gmail.com>
11351 Joel Brobecker <brobecker@adacore.com>
11352 Doug Evans <xdje42@gmail.com>
11355 * dwarf2read.c (struct die_info): New member in_process.
11356 (reset_die_in_process): New function.
11357 (process_die): Set it at the start, reset when returning.
11358 (inherit_abstract_dies): Only call process_die if origin_child_die
11359 not already being processed.
11361 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11363 * windows-nat.c (handle_unload_dll): Add function documentation.
11364 (do_initial_windows_stuff): Add comment explaining why we wait
11365 until after inferior initialization has finished before
11366 processing all DLLs.
11368 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11370 * windows-nat.c (get_module_name): Delete.
11371 (windows_get_exec_module_filename): New function, mostly
11372 inspired from get_module_name.
11373 (windows_pid_to_exec_file): Replace call to get_module_name
11374 by call to windows_get_exec_module_filename.
11376 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11378 * windows-nat.c (handle_load_dll): Rewrite this function's
11379 introductory comment. Remove code using get_module_name
11380 to get the DLL's name.
11382 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11384 * windows-nat.c (get_windows_debug_event): Ignore
11385 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11386 if windows_initialization_done == 0.
11387 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11388 Adjust implementation to always load all DLLs.
11389 (do_initial_windows_stuff): Replace call to
11390 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11392 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11394 * windows-nat.c (_initialize_windows_nat): Deprecate the
11395 "dll-symbols" command. Turn the "add-shared-symbol-files"
11396 and "assf" aliases into commands, and deprecate them as well.
11397 * NEWS: Add entry explaining that "dll-symbols" and its two
11398 aliases are now deprecated.
11400 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11402 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11403 new-line in debug string. Remove trailing spaces.
11405 2014-02-19 Stan Shebs <stan@codesourcery.com>
11407 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11409 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11411 * NEWS: Add entry for the new feature
11412 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11415 2014-02-19 Stan Shebs <stan@codesourcery.com>
11417 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11419 2014-02-19 Pedro Alves <palves@redhat.com>
11421 * common/ptid.h (struct ptid): Mention that process_stratum
11422 targets should prefer ptid.lwp.
11424 2014-02-19 Pedro Alves <palves@redhat.com>
11426 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11427 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11428 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11429 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11430 store remote thread ids rather than ptid.tid.
11431 (_initialize_remote): Adjust.
11433 2014-02-19 Tom Tromey <tromey@redhat.com>
11435 * target.c (target_get_unwinder): Rewrite.
11436 (target_get_tailcall_unwinder): Rewrite.
11437 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11438 (record_btrace_to_get_tailcall_unwinder): New function.
11439 (init_record_btrace_ops): Update.
11440 * target.h (struct target_ops) <to_get_unwinder,
11441 to_get_tailcall_unwinder>: Now function pointers. Use
11442 TARGET_DEFAULT_RETURN.
11444 2014-02-19 Tom Tromey <tromey@redhat.com>
11446 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11448 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11452 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11454 * target-delegates.c: Rebuild.
11455 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11456 TARGET_DEFAULT_FUNC.
11457 * target.c (default_target_decr_pc_after_break): Rename from
11458 forward_target_decr_pc_after_break. Simplify.
11459 (target_decr_pc_after_break): Rely on delegation.
11461 2014-02-19 Tom Tromey <tromey@redhat.com>
11463 * target.c (update_current_target): Do not INHERIT to_doc or
11464 to_magic. Do not de_fault to_open or to_close.
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * gcore.h (objfile_find_memory_regions): Declare.
11469 * gcore.c (objfile_find_memory_regions): No longer static. Add
11471 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11472 * exec.c: Include gcore.h.
11473 (exec_set_find_memory_regions): Remove.
11474 (exec_find_memory_regions): Remove.
11475 (exec_do_find_memory_regions): Remove.
11476 (init_exec_ops): Update.
11477 * defs.h (exec_set_find_memory_regions): Remove.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.h (struct target_ops) <to_extra_thread_info,
11483 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11484 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11485 not 0, in TARGET_DEFAULT_RETURN.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target.c (complete_target_initialization): Remove casts. Use
11490 return_zero_has_execution.
11491 (return_zero): Add "ignore" argument.
11492 (return_zero_has_execution): New function.
11493 (init_dummy_target): Remove casts. Use
11494 return_zero_has_execution.
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target.c (update_current_target): Update comments. Do not
11499 INHERIT to_stratum.
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11503 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11505 * corelow.c (core_read_description): Delegate when needed.
11506 * remote.c (remote_read_description): Delegate when needed.
11507 * target-delegates.c: Rebuild.
11508 * target.c (target_read_description): Rewrite.
11509 * target.h (struct target_ops) <to_read_description>: Update
11510 comment. Use TARGET_DEFAULT_RETURN.
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11517 (find_default_run_target): Check against delegate_can_run.
11518 * target.h (struct target_ops) <to_can_run>: Use
11519 TARGET_DEFAULT_RETURN.
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11523 * target-delegates.c: Rebuild.
11524 * target.c (target_disconnect): Unconditionally delegate.
11525 * target.h (struct target_ops) <to_disconnect>: Use
11526 TARGET_DEFAULT_NORETURN.
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11530 * record.c (record_stop): Unconditionally delegate.
11531 * target-delegates.c: Rebuild.
11532 * target.c (target_stop_recording): Unconditionally delegate.
11533 * target.h (struct target_ops) <to_stop_recording>: Use
11534 TARGET_DEFAULT_IGNORE.
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11538 * target-delegates.c: Rebuild.
11539 * target.c (target_enable_btrace): Unconditionally delegate.
11540 * target.h (struct target_ops) <to_enable_btrace>: Use
11541 TARGET_DEFAULT_NORETURN.
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11545 * target-delegates.c: Rebuild.
11546 * target.c (target_read_btrace): Unconditionally delegate.
11547 * target.h (struct target_ops) <to_read_btrace>: Use
11548 TARGET_DEFAULT_NORETURN.
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11552 * target-delegates.c: Rebuild.
11553 * target.c (target_teardown_btrace): Unconditionally delegate.
11554 * target.h (struct target_ops) <to_teardown_btrace>: Use
11555 TARGET_DEFAULT_NORETURN.
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11559 * target-delegates.c: Rebuild.
11560 * target.c (target_disable_btrace): Unconditionally delegate.
11561 * target.h (struct target_ops) <to_disable_btrace>: Use
11562 TARGET_DEFAULT_NORETURN.
11564 2014-02-19 Tom Tromey <tromey@redhat.com>
11566 * target-delegates.c: Rebuild.
11567 * target.c (default_search_memory): New function.
11568 (simple_search_memory): Update comment.
11569 (target_search_memory): Unconditionally delegate.
11570 * target.h (struct target_ops) <to_search_memory>: Use
11571 TARGET_DEFAULT_FUNC.
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11575 * auxv.c (default_auxv_parse): No longer static.
11576 (target_auxv_parse): Unconditionally delegate.
11577 * auxv.h (default_auxv_parse): Declare.
11578 * target-delegates.c: Rebuild.
11579 * target.c: Include auxv.h.
11580 * target.h (struct target_ops) <to_auxv_parse>: Use
11581 TARGET_DEFAULT_FUNC.
11583 2014-02-19 Tom Tromey <tromey@redhat.com>
11585 * target-delegates.c: Rebuild.
11586 * target.c (target_memory_map): Unconditionally delegate.
11587 * target.h (struct target_ops) <to_memory_map>: Use
11588 TARGET_DEFAULT_RETURN.
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11592 * target-delegates.c: Rebuild.
11593 * target.c (target_thread_alive): Unconditionally delegate.
11594 * target.h (struct target_ops) <to_thread_alive>: Use
11595 TARGET_DEFAULT_RETURN.
11597 2014-02-19 Tom Tromey <tromey@redhat.com>
11599 * target-delegates.c: Rebuild.
11600 * target.c (target_save_record): Unconditionally delegate.
11601 * target.h (struct target_ops) <to_save_record>: Use
11602 TARGET_DEFAULT_NORETURN.
11604 2014-02-19 Tom Tromey <tromey@redhat.com>
11606 * target-delegates.c: Rebuild.
11607 * target.c (target_delete_record): Unconditionally delegate.
11608 * target.h (struct target_ops) <to_delete_record>: Use
11609 TARGET_DEFAULT_NORETURN.
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11613 * target-delegates.c: Rebuild.
11614 * target.c (target_record_is_replaying): Unconditionally
11616 * target.h (struct target_ops) <to_record_is_replaying>: Use
11617 TARGET_DEFAULT_RETURN.
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * target-delegates.c: Rebuild.
11622 * target.c (target_goto_record_begin): Unconditionally delegate.
11623 * target.h (struct target_ops) <to_goto_record_begin>: Use
11624 TARGET_DEFAULT_NORETURN.
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11628 * target-delegates.c: Rebuild.
11629 * target.c (target_goto_record_end): Unconditionally delegate.
11630 * target.h (struct target_ops) <to_goto_record_end>: Use
11631 TARGET_DEFAULT_NORETURN.
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11635 * target-delegates.c: Rebuild.
11636 * target.c (target_goto_record): Unconditionally delegate.
11637 * target.h (struct target_ops) <to_goto_record>: Use
11638 TARGET_DEFAULT_NORETURN.
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11642 * target-delegates.c: Rebuild.
11643 * target.c (target_insn_history): Unconditionally delegate.
11644 * target.h (struct target_ops) <to_insn_history>: Use
11645 TARGET_DEFAULT_NORETURN.
11647 2014-02-19 Tom Tromey <tromey@redhat.com>
11649 * target-delegates.c: Rebuild.
11650 * target.c (target_insn_history_from): Unconditionally delegate.
11651 * target.h (struct target_ops) <to_insn_history_from>: Use
11652 TARGET_DEFAULT_NORETURN.
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11656 * target-delegates.c: Rebuild.
11657 * target.c (target_insn_history_range): Unconditionally delegate.
11658 * target.h (struct target_ops) <to_insn_history_range>: Use
11659 TARGET_DEFAULT_NORETURN.
11661 2014-02-19 Tom Tromey <tromey@redhat.com>
11663 * target-delegates.c: Rebuild.
11664 * target.c (target_call_history): Unconditionally delegate.
11665 * target.h (struct target_ops) <to_call_history>: Use
11666 TARGET_DEFAULT_NORETURN.
11668 2014-02-19 Tom Tromey <tromey@redhat.com>
11670 * target-delegates.c: Rebuild.
11671 * target.c (target_call_history_from): Unconditionally delegate.
11672 * target.h (struct target_ops) <to_call_history_from>: Use
11673 TARGET_DEFAULT_NORETURN.
11675 2014-02-19 Tom Tromey <tromey@redhat.com>
11677 * target-delegates.c: Rebuild.
11678 * target.c (target_call_history_range): Unconditionally delegate.
11679 * target.h (struct target_ops) <to_call_history_range>: Use
11680 TARGET_DEFAULT_NORETURN.
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11684 * target-delegates.c: Rebuild.
11685 * target.c (target_verify_memory): Unconditionally delegate.
11686 * target.h (struct target_ops) <to_verify_memory>: Use
11687 TARGET_DEFAULT_NORETURN.
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11691 * target-delegates.c: Rebuild.
11692 * target.c (target_core_of_thread): Unconditionally delegate.
11693 * target.h (struct target_ops) <to_core_of_thread>: Use
11694 TARGET_DEFAULT_RETURN.
11696 2014-02-19 Tom Tromey <tromey@redhat.com>
11698 * target-delegates.c: Rebuild.
11699 * target.c (target_flash_done): Unconditionally delegate.
11700 * target.h (struct target_ops) <to_flash_done>: Use
11701 TARGET_DEFAULT_NORETURN.
11703 2014-02-19 Tom Tromey <tromey@redhat.com>
11705 * target-delegates.c: Rebuild.
11706 * target.c (target_flash_erase): Unconditionally delegate.
11707 * target.h (struct target_ops) <to_flash_erase>: Use
11708 TARGET_DEFAULT_NORETURN.
11710 2014-02-19 Tom Tromey <tromey@redhat.com>
11712 * target-delegates.c: Rebuild.
11713 * target.c (target_get_section_table): Unconditionally delegate.
11714 * target.h (struct target_ops) <to_get_section_table>: Use
11715 TARGET_DEFAULT_RETURN.
11717 2014-02-19 Tom Tromey <tromey@redhat.com>
11719 * target-delegates.c: Rebuild.
11720 * target.c (target_pid_to_str): Unconditionally delegate.
11721 (init_dummy_target): Don't initialize to_pid_to_str.
11722 (default_pid_to_str): Rename from dummy_pid_to_str.
11723 * target.h (struct target_ops) <to_pid_to_str>: Use
11724 TARGET_DEFAULT_FUNC.
11726 2014-02-19 Tom Tromey <tromey@redhat.com>
11728 * target-delegates.c: Rebuild.
11729 * target.c (target_find_new_threads): Unconditionally delegate.
11730 * target.h (struct target_ops) <to_find_new_threads>: Use
11731 TARGET_DEFAULT_RETURN.
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11735 * target-delegates.c: Rebuild.
11736 * target.c (target_program_signals): Unconditionally delegate.
11737 * target.h (struct target_ops) <to_program_signals>: Use
11738 TARGET_DEFAULT_IGNORE.
11740 2014-02-19 Tom Tromey <tromey@redhat.com>
11742 * target-delegates.c: Rebuild.
11743 * target.c (target_pass_signals): Unconditionally delegate.
11744 * target.h (struct target_ops) <to_pass_signals>: Use
11745 TARGET_DEFAULT_IGNORE.
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11749 * target-delegates.c: Rebuild.
11750 * target.c (default_mourn_inferior): New function.
11751 (target_mourn_inferior): Unconditionally delegate.
11752 * target.h (struct target_ops) <to_mourn_inferior>: Use
11753 TARGET_DEFAULT_FUNC.
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11757 * target-delegates.c: Rebuild.
11758 * target.c (default_follow_fork): New function.
11759 (target_follow_fork): Unconditionally delegate.
11760 * target.h (struct target_ops) <to_follow_fork>: Use
11761 TARGET_DEFAULT_FUNC.
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11765 * target-delegates.c: Rebuild.
11766 * target.c (target_kill): Unconditionally delegate.
11767 * target.h (struct target_ops) <to_kill>: Use
11768 TARGET_DEFAULT_NORETURN.
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11772 * target-delegates.c: Rebuild.
11773 * target.c (target_masked_watch_num_registers): Unconditionally
11775 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11776 Use TARGET_DEFAULT_RETURN.
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11780 * target-delegates.c: Rebuild.
11781 * target.c (target_remove_mask_watchpoint): Unconditionally
11783 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11784 TARGET_DEFAULT_RETURN.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * target-delegates.c: Rebuild.
11789 * target.c (target_insert_mask_watchpoint): Unconditionally
11791 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11792 TARGET_DEFAULT_RETURN.
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11796 * target-delegates.c: Rebuild.
11797 * target.c (target_ranged_break_num_registers): Unconditionally
11799 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11800 Use TARGET_DEFAULT_RETURN.
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11804 * target-delegates.c: Rebuild.
11805 * target.c (target_fetch_registers): Unconditionally delegate.
11806 * target.h (struct target_ops) <to_fetch_registers>: Use
11807 TARGET_DEFAULT_NORETURN.
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target-delegates.c: Rebuild.
11812 * target.c (update_current_target): Don't inherit or default
11814 * target.h (struct target_ops) <to_stop>: Use
11815 TARGET_DEFAULT_IGNORE.
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11819 * target-delegates.c: Rebuild.
11820 * target.c (update_current_target): Don't inherit or default
11821 to_can_run_breakpoint_commands.
11822 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11823 Use TARGET_DEFAULT_RETURN.
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11827 * target-delegates.c: Rebuild.
11828 * target.c (update_current_target): Don't inherit or default
11829 to_supports_evaluation_of_breakpoint_conditions.
11830 * target.h (struct target_ops)
11831 <to_supports_evaluation_of_breakpoint_conditions>: Use
11832 TARGET_DEFAULT_RETURN.
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11836 * target-delegates.c: Rebuild.
11837 * target.c (update_current_target): Don't inherit or default
11838 to_augmented_libraries_svr4_read.
11839 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11840 Use TARGET_DEFAULT_RETURN.
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target-delegates.c: Rebuild.
11845 * target.c (update_current_target): Don't inherit or default
11847 * target.h (struct target_ops) <to_can_use_agent>: Use
11848 TARGET_DEFAULT_RETURN.
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11852 * target-delegates.c: Rebuild.
11853 * target.c (update_current_target): Don't inherit or default
11855 * target.h (struct target_ops) <to_use_agent>: Use
11856 TARGET_DEFAULT_NORETURN.
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11860 * target-delegates.c: Rebuild.
11861 * target.c (update_current_target): Don't inherit or default
11862 to_traceframe_info.
11863 (return_null): Remove.
11864 * target.h (struct target_ops) <to_traceframe_info>: Use
11865 TARGET_DEFAULT_RETURN.
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11869 * target-delegates.c: Rebuild.
11870 * target.c (update_current_target): Don't inherit or default
11871 to_static_tracepoint_markers_by_strid.
11872 * target.h (struct target_ops)
11873 <to_static_tracepoint_markers_by_strid>: Use
11874 TARGET_DEFAULT_NORETURN.
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11878 * target-delegates.c: Rebuild.
11879 * target.c (update_current_target): Don't inherit or default
11880 to_static_tracepoint_marker_at.
11881 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11882 Use TARGET_DEFAULT_RETURN.
11884 2014-02-19 Tom Tromey <tromey@redhat.com>
11886 * target-delegates.c: Rebuild.
11887 * target.c (update_current_target): Don't inherit or default
11888 to_set_permissions.
11889 * target.h (struct target_ops) <to_set_permissions>: Use
11890 TARGET_DEFAULT_IGNORE.
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11894 * target-delegates.c: Rebuild.
11895 * target.c (update_current_target): Don't inherit or default
11896 to_get_tib_address.
11897 * target.h (struct target_ops) <to_get_tib_address>: Use
11898 TARGET_DEFAULT_NORETURN.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target-delegates.c: Rebuild.
11903 * target.c (update_current_target): Don't inherit or default
11904 to_set_trace_notes.
11905 * target.h (struct target_ops) <to_set_trace_notes>: Use
11906 TARGET_DEFAULT_RETURN.
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11910 * target-delegates.c: Rebuild.
11911 * target.c (update_current_target): Don't initialize
11912 to_set_trace_buffer_size.
11913 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11914 TARGET_DEFAULT_IGNORE.
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_set_circular_trace_buffer.
11921 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11922 TARGET_DEFAULT_IGNORE.
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11926 * target-delegates.c: Rebuild.
11927 * target.c (update_current_target): Don't inherit or default
11928 to_set_disconnected_tracing.
11929 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11930 TARGET_DEFAULT_IGNORE.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11936 to_get_min_fast_tracepoint_insn_len.
11937 (return_minus_one): Remove.
11938 * target.h (struct target_ops)
11939 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11941 2014-02-19 Tom Tromey <tromey@redhat.com>
11943 * target-delegates.c: Rebuild.
11944 * target.c (update_current_target): Don't inherit or default
11945 to_get_raw_trace_data.
11946 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11947 TARGET_DEFAULT_NORETURN.
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11951 * target-delegates.c: Rebuild.
11952 * target.c (update_current_target): Don't inherit or default
11953 to_upload_trace_state_variables.
11954 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11955 Use TARGET_DEFAULT_RETURN.
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11959 * target-delegates.c: Rebuild.
11960 * target.c (update_current_target): Don't inherit or default
11961 to_upload_tracepoints.
11962 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11963 TARGET_DEFAULT_RETURN.
11965 2014-02-19 Tom Tromey <tromey@redhat.com>
11967 * target-delegates.c: Rebuild.
11968 * target.c (update_current_target): Don't inherit or default
11969 to_save_trace_data.
11970 * target.h (struct target_ops) <to_save_trace_data>: Use
11971 TARGET_DEFAULT_NORETURN.
11973 2014-02-19 Tom Tromey <tromey@redhat.com>
11975 * target-delegates.c: Rebuild.
11976 * target.c (update_current_target): Don't inherit or default
11977 to_get_trace_state_variable_value.
11978 * target.h (struct target_ops)
11979 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11983 * target-delegates.c: Rebuild.
11984 * target.c (update_current_target): Don't inherit or default
11986 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11990 * target-delegates.c: Rebuild.
11991 * target.c (update_current_target): Don't inherit or default
11993 * target.h (struct target_ops) <to_trace_stop>: Use
11994 TARGET_DEFAULT_NORETURN.
11996 2014-02-19 Tom Tromey <tromey@redhat.com>
11998 * target-delegates.c: Rebuild.
11999 * target.c (update_current_target): Don't inherit or default
12000 to_get_tracepoint_status.
12001 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12002 TARGET_DEFAULT_NORETURN.
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12008 to_get_trace_status.
12009 * target.h (struct target_ops) <to_get_trace_status>: Use
12010 TARGET_DEFAULT_RETURN.
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12017 * target.h (struct target_ops) <to_trace_start>: Use
12018 TARGET_DEFAULT_NORETURN.
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_trace_set_readonly_regions.
12025 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12026 Use TARGET_DEFAULT_NORETURN.
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_disable_tracepoint.
12033 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12034 TARGET_DEFAULT_NORETURN.
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_enable_tracepoint.
12041 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12042 TARGET_DEFAULT_NORETURN.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_download_trace_state_variable.
12049 * target.h (struct target_ops) <to_download_trace_state_variable>:
12050 Use TARGET_DEFAULT_NORETURN.
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_can_download_tracepoint.
12057 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12058 TARGET_DEFAULT_RETURN.
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_download_tracepoint.
12065 * target.h (struct target_ops) <to_download_tracepoint>: Use
12066 TARGET_DEFAULT_NORETURN.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12073 * target.h (struct target_ops) <to_trace_init>: Use
12074 TARGET_DEFAULT_RETURN.
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_supports_string_tracing.
12081 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12082 TARGET_DEFAULT_RETURN.
12084 2014-02-19 Tom Tromey <tromey@redhat.com>
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12088 to_supports_enable_disable_tracepoint.
12089 * target.h (struct target_ops)
12090 <to_supports_enable_disable_tracepoint>: Use
12091 TARGET_DEFAULT_RETURN.
12093 2014-02-19 Tom Tromey <tromey@redhat.com>
12095 * target-delegates.c: Rebuild.
12096 * target.c (update_current_target): Don't inherit or default
12097 to_supports_multi_process.
12098 * target.h (struct target_ops) <to_supports_multi_process>: Use
12099 TARGET_DEFAULT_RETURN.
12101 2014-02-19 Tom Tromey <tromey@redhat.com>
12103 * target-delegates.c: Rebuild.
12104 * target.c (update_current_target): Don't inherit or default
12105 to_get_ada_task_ptid.
12106 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12107 TARGET_DEFAULT_FUNC.
12109 2014-02-19 Tom Tromey <tromey@redhat.com>
12111 * target-delegates.c: Rebuild.
12112 * target.c (update_current_target): Don't inherit or default
12113 to_thread_architecture.
12114 * target.h (struct target_ops) <to_thread_architecture>: Use
12115 TARGET_DEFAULT_FUNC.
12117 2014-02-19 Tom Tromey <tromey@redhat.com>
12119 * target-delegates.c: Rebuild.
12120 * target.c (update_current_target): Don't inherit or default
12121 to_execution_direction.
12122 * target.h (struct target_ops) <to_execution_direction>: Use
12123 TARGET_DEFAULT_FUNC.
12125 2014-02-19 Tom Tromey <tromey@redhat.com>
12127 * target-delegates.c: Rebuild.
12128 * target.c (update_current_target): Don't inherit or default
12129 to_can_execute_reverse.
12130 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12131 TARGET_DEFAULT_RETURN.
12132 (target_can_execute_reverse): Unconditionally delegate.
12134 2014-02-19 Tom Tromey <tromey@redhat.com>
12136 * target-delegates.c: Rebuild.
12137 * target.c (update_current_target): Don't inherit or default
12139 (dummy_goto_bookmark): Remove.
12140 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12141 * target.h (struct target_ops) <to_goto_bookmark>: Use
12142 TARGET_DEFAULT_NORETURN.
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * target-delegates.c: Rebuild.
12147 * target.c (update_current_target): Don't inherit or default
12149 (dummy_get_bookmark): Remove.
12150 (init_dummy_target): Don't inherit or default to_get_bookmark.
12151 * target.h (struct target_ops) <to_get_bookmark>: Use
12152 TARGET_DEFAULT_NORETURN
12154 2014-02-19 Tom Tromey <tromey@redhat.com>
12156 * target-delegates.c: Rebuild.
12157 * target.c (update_current_target): Don't inherit or default
12158 to_make_corefile_notes.
12159 (init_dummy_target): Don't initialize to_make_corefile_notes.
12160 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12161 TARGET_DEFAULT_FUNC.
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12165 * target-delegates.c: Rebuild.
12166 * target.c (update_current_target): Don't inherit or default
12167 to_find_memory_regions.
12168 (init_dummy_target): Don't initialize to_find_memory_regions.
12169 * target.h (struct target_ops) <to_find_memory_regions>: Use
12170 TARGET_DEFAULT_FUNC.
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12174 * target-delegates.c: Rebuild.
12175 * target.c (update_current_target): Don't inherit or default
12177 * target.h (struct target_ops) <to_log_command>: Use
12178 TARGET_DEFAULT_IGNORE.
12179 (target_log_command): Unconditionally delegate.
12181 2014-02-19 Tom Tromey <tromey@redhat.com>
12183 * target-delegates.c: Rebuild.
12184 * target.c (update_current_target): Don't inherit or default
12185 to_pid_to_exec_file.
12186 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12187 TARGET_DEFAULT_RETURN.
12189 2014-02-19 Tom Tromey <tromey@redhat.com>
12191 * target-delegates.c: Rebuild.
12192 * target.c (update_current_target): Don't inherit or default
12194 (target_thread_name): Unconditionally delegate.
12195 * target.h (struct target_ops) <to_thread_name>: Use
12196 TARGET_DEFAULT_RETURN.
12198 2014-02-19 Tom Tromey <tromey@redhat.com>
12200 * target-delegates.c: Rebuild.
12201 * target.c (update_current_target): Don't inherit or default
12202 to_extra_thread_info.
12203 * target.h (struct target_ops) <to_extra_thread_info>: Use
12204 TARGET_DEFAULT_RETURN.
12206 2014-02-19 Tom Tromey <tromey@redhat.com>
12208 * target-delegates.c: Rebuild.
12209 * target.c (update_current_target): Don't inherit or default
12211 * target.h (struct target_ops) <to_has_exited>: Use
12212 TARGET_DEFAULT_RETURN..
12214 2014-02-19 Tom Tromey <tromey@redhat.com>
12216 * target-delegates.c: Rebuild.
12217 * target.c (update_current_target): Don't inherit or default
12218 to_set_syscall_catchpoint.
12219 (return_one): Remove.
12220 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12221 TARGET_DEFAULT_RETURN.
12223 2014-02-19 Tom Tromey <tromey@redhat.com>
12225 * target-delegates.c: Rebuild.
12226 * target.c (update_current_target): Don't inherit or default
12227 to_insert_exec_catchpoint.
12228 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12229 TARGET_DEFAULT_RETURN.
12231 2014-01-08 Tom Tromey <tromey@redhat.com>
12233 * target-delegates.c: Rebuild.
12234 * target.c (update_current_target): Don't inherit or default
12235 to_insert_exec_catchpoint.
12236 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12237 TARGET_DEFAULT_RETURN.
12239 2014-02-19 Tom Tromey <tromey@redhat.com>
12241 * target-delegates.c: Rebuild.
12242 * target.c (update_current_target): Don't inherit or default
12243 to_remove_vfork_catchpoint.
12244 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12245 TARGET_DEFAULT_RETURN.
12247 2014-02-19 Tom Tromey <tromey@redhat.com>
12249 * target-delegates.c: Rebuild.
12250 * target.c (update_current_target): Don't inherit or default
12251 to_insert_vfork_catchpoint.
12252 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12253 TARGET_DEFAULT_RETURN.
12255 2014-02-19 Tom Tromey <tromey@redhat.com>
12257 * target-delegates.c: Rebuild.
12258 * target.c (update_current_target): Don't inherit or default
12259 to_remove_fork_catchpoint.
12260 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12261 TARGET_DEFAULT_RETURN.
12263 2014-02-19 Tom Tromey <tromey@redhat.com>
12265 * target-delegates.c: Rebuild.
12266 * target.c (update_current_target): Don't inherit or default
12267 to_insert_fork_catchpoint.
12268 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12269 TARGET_DEFAULT_RETURN.
12271 2014-02-19 Tom Tromey <tromey@redhat.com>
12273 * target-delegates.c: Rebuild.
12274 * target.c (update_current_target): Don't inherit or default
12275 to_post_startup_inferior.
12276 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12277 TARGET_DEFAULT_IGNORE.
12279 2014-02-19 Tom Tromey <tromey@redhat.com>
12281 * target-delegates.c: Rebuild.
12282 * target.c (update_current_target): Don't inherit or default
12284 * target.h (struct target_ops) <to_load>: Use
12285 TARGET_DEFAULT_NORETURN.
12287 2014-02-19 Tom Tromey <tromey@redhat.com>
12289 * target-delegates.c: Rebuild.
12290 * target.c (update_current_target): Don't inherit or default
12292 * target.h (struct target_ops) <to_terminal_info>: Use
12293 TARGET_DEFAULT_FUNC.
12295 2014-02-19 Tom Tromey <tromey@redhat.com>
12297 * target-delegates.c: Rebuild.
12298 * target.c (update_current_target): Don't inherit or default
12299 to_terminal_save_ours.
12300 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12301 TARGET_DEFAULT_IGNORE.
12303 2014-02-19 Tom Tromey <tromey@redhat.com>
12305 * target-delegates.c: Rebuild.
12306 * target.c (update_current_target): Don't inherit or default
12308 * target.h (struct target_ops) <to_terminal_ours>: Use
12309 TARGET_DEFAULT_IGNORE.
12311 2014-02-19 Tom Tromey <tromey@redhat.com>
12313 * target-delegates.c: Rebuild.
12314 * target.c (update_current_target): Don't inherit or default
12315 to_terminal_ours_for_output.
12316 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12317 TARGET_DEFAULT_IGNORE.
12319 2014-02-19 Tom Tromey <tromey@redhat.com>
12321 * target-delegates.c: Rebuild.
12322 * target.c (update_current_target): Don't inherit or default
12323 to_terminal_inferior.
12324 * target.h (struct target_ops) <to_terminal_inferior>: Use
12325 TARGET_DEFAULT_IGNORE.
12327 2014-02-19 Tom Tromey <tromey@redhat.com>
12329 * target-delegates.c: Rebuild.
12330 * target.c (update_current_target): Don't inherit or default
12332 * target.h (struct target_ops) <to_terminal_init>: Use
12333 TARGET_DEFAULT_IGNORE.
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * target-delegates.c: Rebuild.
12338 * target.c (update_current_target): Don't inherit or default
12339 to_can_accel_watchpoint_condition.
12340 * target.h (struct target_ops)
12341 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12343 2014-02-19 Tom Tromey <tromey@redhat.com>
12345 * target-delegates.c: Rebuild.
12346 * target.c (update_current_target): Don't inherit or default
12347 to_region_ok_for_hw_watchpoint.
12348 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12349 Use TARGET_DEFAULT_FUNC.
12351 2014-02-19 Tom Tromey <tromey@redhat.com>
12353 * target-delegates.c: Rebuild.
12354 * target.c (update_current_target): Don't inherit or default
12355 to_watchpoint_addr_within_range.
12356 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12357 Use TARGET_DEFAULT_FUNC.
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12361 * target-delegates.c: Rebuild.
12362 * target.c (update_current_target): Don't inherit or default
12363 to_remove_watchpoint.
12364 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12365 TARGET_DEFAULT_NORETURN.
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12369 * target-delegates.c: Rebuild.
12370 * target.c (update_current_target): Don't inherit or default
12371 to_insert_watchpoint.
12372 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12373 TARGET_DEFAULT_RETURN.
12375 2014-02-19 Tom Tromey <tromey@redhat.com>
12377 * target-delegates.c: Rebuild.
12378 * target.c (update_current_target): Don't inherit or default
12379 to_remove_hw_breakpoint.
12380 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12381 TARGET_DEFAULT_RETURN.
12383 2014-02-19 Tom Tromey <tromey@redhat.com>
12385 * target-delegates.c: Rebuild.
12386 * target.c (update_current_target): Don't inherit or default
12387 to_insert_hw_breakpoint.
12388 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12389 TARGET_DEFAULT_RETURN.
12391 2014-02-19 Tom Tromey <tromey@redhat.com>
12393 * target-delegates.c: Rebuild.
12394 * target.c (update_current_target): Don't inherit or default
12395 to_can_use_hw_breakpoint.
12396 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12397 TARGET_DEFAULT_RETURN.
12399 2014-02-19 Tom Tromey <tromey@redhat.com>
12401 * target-delegates.c: Rebuild.
12402 * target.c (update_current_target): Don't inherit or default
12404 * target.h (struct target_ops) <to_files_info>: Use
12405 TARGET_DEFAULT_IGNORE.
12407 2014-02-19 Tom Tromey <tromey@redhat.com>
12409 * target-delegates.c: Rebuild.
12410 * target.c (update_current_target): Don't inherit or default
12412 * target.h (struct target_ops) <to_store>: Use
12413 TARGET_DEFAULT_NORETURN.
12415 2014-02-19 Tom Tromey <tromey@redhat.com>
12417 * target-delegates.c: Rebuild.
12418 * target.c (update_current_target): Don't inherit or default
12420 * target.h (struct target_ops) <to_post_attach>: Use
12421 TARGET_DEFAULT_IGNORE.
12423 2014-02-19 Tom Tromey <tromey@redhat.com>
12425 * target-delegates.c: Rebuild.
12426 * target.c (update_current_target): Don't inherit or default
12428 (default_rcmd): New function.
12429 (do_monitor_command): Unconditionally delegate.
12430 * target.h (struct target_ops) <to_rmcd>: Use
12431 TARGET_DEFAULT_FUNC.
12433 2014-02-19 Tom Tromey <tromey@redhat.com>
12435 * target-delegates.c: Rebuild.
12436 * target.c (init_dummy_target): Don't initialize to_attach.
12437 (target_attach): Unconditionally delegate.
12438 * target.h (struct target_ops) <to_attach>: Use
12439 TARGET_DEFAULT_FUNC.
12441 2014-02-19 Tom Tromey <tromey@redhat.com>
12443 * target-delegates.c: Rebuild.
12444 * target.c (target_detach): Unconditionally delegate.
12445 (init_dummy_target): Don't initialize to_detach.
12446 * target.h (struct target_ops) <to_detach>: Use
12447 TARGET_DEFAULT_IGNORE.
12449 2014-02-19 Tom Tromey <tromey@redhat.com>
12451 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12453 (target_augmented_libraries_svr4_read): Add argument.
12454 * target.c (update_current_target): Update.
12455 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12458 2014-02-19 Tom Tromey <tromey@redhat.com>
12460 * target.h (struct target_ops) <to_call_history_range>: Add
12462 * target.c (target_call_history_range): Add argument.
12463 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12465 (record_btrace_call_history_from): Update.
12467 2014-02-19 Tom Tromey <tromey@redhat.com>
12469 * target.h (struct target_ops) <to_call_history_from>: Add
12471 * target.c (target_call_history_from): Add argument.
12472 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12475 2014-02-19 Tom Tromey <tromey@redhat.com>
12477 * target.h (struct target_ops) <to_call_history>: Add argument.
12478 * target.c (target_call_history): Add argument.
12479 * record-btrace.c (record_btrace_call_history): Add 'self'
12482 2014-02-19 Tom Tromey <tromey@redhat.com>
12484 * target.h (struct target_ops) <to_insn_history_range>: Add
12486 * target.c (target_insn_history_range): Add argument.
12487 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12489 (record_btrace_insn_history_from): Update.
12491 2014-02-19 Tom Tromey <tromey@redhat.com>
12493 * target.h (struct target_ops) <to_insn_history_from>: Add
12495 * target.c (target_insn_history_from): Add argument.
12496 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12501 * target.h (struct target_ops) <to_insn_history>: Add argument.
12502 * target.c (target_insn_history): Add argument.
12503 * record-btrace.c (record_btrace_insn_history): Add 'self'
12506 2014-02-19 Tom Tromey <tromey@redhat.com>
12508 * target.h (struct target_ops) <to_goto_record>: Add argument.
12509 * target.c (target_goto_record): Add argument.
12510 * record-full.c (record_full_goto): Add 'self' argument.
12511 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12513 2014-02-19 Tom Tromey <tromey@redhat.com>
12515 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12516 * target.c (target_goto_record_end): Add argument.
12517 * record-full.c (record_full_goto_end): Add 'self' argument.
12518 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12520 2014-02-19 Tom Tromey <tromey@redhat.com>
12522 * target.h (struct target_ops) <to_goto_record_begin>: Add
12524 * target.c (target_goto_record_begin): Add argument.
12525 * record-full.c (record_full_goto_begin): Add 'self' argument.
12526 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12529 2014-02-19 Tom Tromey <tromey@redhat.com>
12531 * target.h (struct target_ops) <to_record_is_replaying>: Add
12533 * target.c (target_record_is_replaying): Add argument.
12534 * record-full.c (record_full_is_replaying): Add 'self' argument.
12535 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12537 (record_btrace_xfer_partial, record_btrace_store_registers)
12538 (record_btrace_prepare_to_store, record_btrace_resume)
12539 (record_btrace_wait, record_btrace_decr_pc_after_break)
12540 (record_btrace_find_new_threads, record_btrace_thread_alive):
12543 2014-02-19 Tom Tromey <tromey@redhat.com>
12545 * target.h (struct target_ops) <to_delete_record>: Add argument.
12546 * target.c (target_delete_record): Add argument.
12547 * record-full.c (record_full_delete): Add 'self' argument.
12549 2014-02-19 Tom Tromey <tromey@redhat.com>
12551 * target.h (struct target_ops) <to_save_record>: Add argument.
12552 * target.c (target_save_record): Add argument.
12553 * record-full.c (record_full_save): Add 'self' argument.
12554 (record_full_save): Add 'self' argument.
12556 2014-02-19 Tom Tromey <tromey@redhat.com>
12558 * target.h (struct target_ops) <to_info_record>: Add argument.
12559 * target.c (target_info_record): Add argument.
12560 * record.c (info_record_command): Add argument.
12561 * record-full.c (record_full_info): Add 'self' argument.
12562 * record-btrace.c (record_btrace_info): Add 'self' argument.
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12566 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12567 * target.c (target_stop_recording): Add argument.
12568 * record.c (record_stop): Add argument.
12569 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12574 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12575 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12576 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12578 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12579 (_initialize_amd64_linux_nat): Use it.
12580 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12581 (_initialize_i386_linux_nat): Use it.
12583 2014-02-19 Tom Tromey <tromey@redhat.com>
12585 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12586 * target.c (target_teardown_btrace): Add argument.
12587 * remote.c (remote_teardown_btrace): Add 'self' argument.
12588 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12590 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12593 2014-02-19 Tom Tromey <tromey@redhat.com>
12595 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12596 * target.c (target_disable_btrace): Add argument.
12597 * remote.c (remote_disable_btrace): Add 'self' argument.
12598 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12600 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12603 2014-02-19 Tom Tromey <tromey@redhat.com>
12605 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12606 * target.c (target_enable_btrace): Add argument.
12607 * remote.c (remote_enable_btrace): Add 'self' argument.
12608 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12610 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12613 2014-02-19 Tom Tromey <tromey@redhat.com>
12615 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12616 (target_can_use_agent): Add argument.
12617 * target.c (update_current_target): Update.
12618 * remote.c (remote_can_use_agent): Add 'self' argument.
12619 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12621 2014-02-19 Tom Tromey <tromey@redhat.com>
12623 * target.h (struct target_ops) <to_use_agent>: Add argument.
12624 (target_use_agent): Add argument.
12625 * target.c (update_current_target): Update.
12626 * remote.c (remote_use_agent): Add 'self' argument.
12627 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12629 2014-02-19 Tom Tromey <tromey@redhat.com>
12631 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12632 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12633 (target_traceframe_info): Add argument.
12634 * target.c (update_current_target): Update.
12635 * remote.c (remote_traceframe_info): Add 'self' argument.
12636 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12638 2014-02-19 Tom Tromey <tromey@redhat.com>
12640 * target.h (target_static_tracepoint_markers_by_strid): Add
12642 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12644 * target.c (update_current_target): Update.
12645 * remote.c (struct target_ops)
12646 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12647 * linux-nat.c (struct target_ops)
12648 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12650 2014-02-19 Tom Tromey <tromey@redhat.com>
12652 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12654 (target_static_tracepoint_marker_at): Add argument.
12655 * target.c (update_current_target): Update.
12656 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12659 2014-02-19 Tom Tromey <tromey@redhat.com>
12661 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12662 (target_set_permissions): Add argument.
12663 * target.c (update_current_target): Update.
12664 * remote.c (remote_set_permissions): Add 'self' argument.
12665 (remote_start_remote): Update.
12667 2014-02-19 Tom Tromey <tromey@redhat.com>
12669 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12670 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12671 (target_get_tib_address): Add argument.
12672 * target.c (update_current_target): Update.
12673 * remote.c (remote_get_tib_address): Add 'self' argument.
12675 2014-02-19 Tom Tromey <tromey@redhat.com>
12677 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12678 (target_set_trace_notes): Add argument.
12679 * target.c (update_current_target): Update.
12680 * remote.c (remote_set_trace_notes): Add 'self' argument.
12682 2014-02-19 Tom Tromey <tromey@redhat.com>
12684 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12686 (target_set_trace_buffer_size): Add argument.
12687 * target.c (update_current_target): Update.
12688 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12690 2014-02-19 Tom Tromey <tromey@redhat.com>
12692 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12694 (target_set_circular_trace_buffer): Add argument.
12695 * target.c (update_current_target): Update.
12696 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12699 2014-02-19 Tom Tromey <tromey@redhat.com>
12701 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12703 (target_set_disconnected_tracing): Add argument.
12704 * target.c (update_current_target): Update.
12705 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12707 2014-02-19 Tom Tromey <tromey@redhat.com>
12709 * target.h (struct target_ops)
12710 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12711 (target_get_min_fast_tracepoint_insn_len): Add argument.
12712 * target.c (update_current_target): Update.
12713 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12716 2014-02-19 Tom Tromey <tromey@redhat.com>
12718 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12720 (target_get_raw_trace_data): Add argument.
12721 * target.c (update_current_target): Update.
12722 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12726 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12728 (target_upload_trace_state_variables): Add argument.
12729 * target.c (update_current_target): Update.
12730 * remote.c (remote_upload_trace_state_variables): Add 'self'
12732 (remote_start_remote): Update.
12734 2014-02-19 Tom Tromey <tromey@redhat.com>
12736 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12738 (target_upload_tracepoints): Add argument.
12739 * target.c (update_current_target): Update.
12740 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12741 (remote_start_remote): Update.
12743 2014-02-19 Tom Tromey <tromey@redhat.com>
12745 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12746 (target_save_trace_data): Add argument.
12747 * target.c (update_current_target): Update.
12748 * remote.c (remote_save_trace_data): Add 'self' argument.
12750 2014-02-19 Tom Tromey <tromey@redhat.com>
12752 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12754 * target.h (struct target_ops)
12755 <to_get_trace_state_variable_value>: Add argument.
12756 (target_get_trace_state_variable_value): Add argument.
12757 * target.c (update_current_target): Update.
12758 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12760 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12762 2014-02-19 Tom Tromey <tromey@redhat.com>
12764 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12765 * target.h (struct target_ops) <to_trace_find>: Add argument.
12766 (target_trace_find): Add argument.
12767 * target.c (update_current_target): Update.
12768 * remote.c (remote_trace_find): Add 'self' argument.
12769 * ctf.c (ctf_trace_find): Add 'self' argument.
12771 2014-02-19 Tom Tromey <tromey@redhat.com>
12773 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12774 (target_trace_stop): Add argument.
12775 * target.c (update_current_target): Update.
12776 * remote.c (remote_trace_stop): Add 'self' argument.
12778 2014-02-19 Tom Tromey <tromey@redhat.com>
12780 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12781 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12783 (target_get_tracepoint_status): Add argument.
12784 * target.c (update_current_target): Update.
12785 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12787 2014-02-19 Tom Tromey <tromey@redhat.com>
12789 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12790 * target.h (struct target_ops) <to_get_trace_status>: Add
12792 (target_get_trace_status): Add argument.
12793 * target.c (update_current_target): Update.
12794 * remote.c (remote_get_trace_status): Add 'self' argument.
12795 (remote_start_remote, remote_can_download_tracepoint): Update.
12796 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12798 2014-02-19 Tom Tromey <tromey@redhat.com>
12800 * target.h (struct target_ops) <to_trace_start>: Add argument.
12801 (target_trace_start): Add argument.
12802 * target.c (update_current_target): Update.
12803 * remote.c (remote_trace_start): Add 'self' argument.
12805 2014-02-19 Tom Tromey <tromey@redhat.com>
12807 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12809 (target_trace_set_readonly_regions): Add argument.
12810 * target.c (update_current_target): Update.
12811 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12814 2014-02-19 Tom Tromey <tromey@redhat.com>
12816 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12818 (target_disable_tracepoint): Add argument.
12819 * target.c (update_current_target): Update.
12820 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12824 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12826 (target_enable_tracepoint): Add argument.
12827 * target.c (update_current_target): Update.
12828 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12830 2014-02-19 Tom Tromey <tromey@redhat.com>
12832 * target.h (struct target_ops) <to_download_trace_state_variable>:
12834 (target_download_trace_state_variable): Add argument.
12835 * target.c (update_current_target): Update.
12836 * remote.c (remote_download_trace_state_variable): Add 'self'
12839 2014-02-19 Tom Tromey <tromey@redhat.com>
12841 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12843 (target_can_download_tracepoint): Add argument.
12844 * target.c (update_current_target): Update.
12845 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12847 2014-02-19 Tom Tromey <tromey@redhat.com>
12849 * target.h (struct target_ops) <to_download_tracepoint>: Add
12851 (target_download_tracepoint): Add argument.
12852 * target.c (update_current_target): Update.
12853 * remote.c (remote_download_tracepoint): Add 'self' argument.
12855 2014-02-19 Tom Tromey <tromey@redhat.com>
12857 * target.h (struct target_ops) <to_trace_init>: Add argument.
12858 (target_trace_init): Add argument.
12859 * target.c (update_current_target): Update.
12860 * remote.c (remote_trace_init): Add 'self' argument.
12862 2014-02-19 Tom Tromey <tromey@redhat.com>
12864 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12865 * target.c (target_fileio_readlink): Add argument.
12866 * remote.c (remote_hostio_readlink): Add 'self' argument.
12867 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12869 2014-02-19 Tom Tromey <tromey@redhat.com>
12871 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12872 * target.c (target_fileio_unlink): Add argument.
12873 * remote.c (remote_hostio_unlink): Add 'self' argument.
12874 (remote_file_delete): Update.
12875 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12877 2014-02-19 Tom Tromey <tromey@redhat.com>
12879 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12880 * target.c (target_fileio_close): Add argument.
12881 * remote.c (remote_hostio_close): Add 'self' argument.
12882 (remote_hostio_close_cleanup): Update.
12883 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12885 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12887 2014-02-19 Tom Tromey <tromey@redhat.com>
12889 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12890 * target.c (target_fileio_pread): Add argument.
12891 * remote.c (remote_hostio_pread): Add 'self' argument.
12892 (remote_bfd_iovec_pread, remote_file_get): Update.
12893 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12895 2014-02-19 Tom Tromey <tromey@redhat.com>
12897 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12898 * target.c (target_fileio_pwrite): Add argument.
12899 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12900 (remote_file_put): Update.
12901 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12903 2014-02-19 Tom Tromey <tromey@redhat.com>
12905 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12906 * target.c (target_fileio_open): Add argument.
12907 * remote.c (remote_hostio_open): Add 'self' argument.
12908 (remote_bfd_iovec_open): Add 'self' argument.
12909 (remote_file_put): Add 'self' argument.
12910 (remote_file_get): Add 'self' argument.
12911 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12913 2014-02-19 Tom Tromey <tromey@redhat.com>
12915 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12917 (target_can_run_breakpoint_commands): Add argument.
12918 * target.c (update_current_target): Update.
12919 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12921 (remote_insert_breakpoint): Add 'self' argument.
12922 (remote_insert_hw_breakpoint): Add 'self' argument.
12923 (remote_can_run_breakpoint_commands): Add 'self' argument.
12925 2014-02-19 Tom Tromey <tromey@redhat.com>
12927 * target.h (struct target_ops)
12928 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12929 (target_supports_evaluation_of_breakpoint_conditions): Add
12931 * target.c (update_current_target): Update.
12932 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12934 (remote_insert_breakpoint): Add 'self' argument.
12935 (remote_insert_hw_breakpoint): Add 'self' argument.
12936 (remote_supports_cond_breakpoints): Add 'self' argument.
12938 2014-02-19 Tom Tromey <tromey@redhat.com>
12940 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12942 (target_supports_string_tracing): Add argument.
12943 * target.c (update_current_target): Update.
12944 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12946 2014-02-19 Tom Tromey <tromey@redhat.com>
12948 * target.h (struct target_ops)
12949 <to_supports_disable_randomization>: Add argument.
12950 * target.c (find_default_supports_disable_randomization): Add
12952 (target_supports_disable_randomization): Add argument.
12953 (find_default_supports_disable_randomization): Add 'self'
12955 * remote.c (extended_remote_supports_disable_randomization): Add
12957 (remote_supports_disable_randomization): Add 'self' argument.
12958 (extended_remote_create_inferior): Update.
12959 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12962 2014-02-19 Tom Tromey <tromey@redhat.com>
12964 * target.h (struct target_ops)
12965 <to_supports_enable_disable_tracepoint>: Add argument.
12966 (target_supports_enable_disable_tracepoint): Add argument.
12967 * target.c (update_current_target): Update.
12968 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12971 2014-02-19 Tom Tromey <tromey@redhat.com>
12973 * target.h (struct target_ops) <to_supports_multi_process>: Add
12975 (target_supports_multi_process): Add argument.
12976 * target.c (update_current_target): Update.
12977 * remote.c (remote_supports_multi_process): Add 'self' argument.
12978 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12980 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12983 2014-02-19 Tom Tromey <tromey@redhat.com>
12985 * target.h (struct target_ops) <to_execution_direction>: Add
12987 (target_execution_direction): Add argument.
12988 * target.c (default_execution_direction): Add 'self' argument.
12989 * record-full.c (record_full_execution_direction): Add 'self'
12992 2014-02-19 Tom Tromey <tromey@redhat.com>
12994 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12996 (target_can_execute_reverse): Add argument.
12997 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12998 * record-full.c (record_full_can_execute_reverse): Add 'self'
13000 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13003 2014-02-19 Tom Tromey <tromey@redhat.com>
13005 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13006 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13008 (target_get_ada_task_ptid): Add argument.
13009 * target.c (update_current_target): Update.
13010 (default_get_ada_task_ptid): Add 'self' argument.
13011 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13012 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13013 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13015 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13017 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13019 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13021 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13022 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13025 2014-02-19 Tom Tromey <tromey@redhat.com>
13027 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13028 (target_goto_bookmark): Add argument.
13029 * target.c (dummy_goto_bookmark): Add 'self' argument.
13030 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13032 2014-02-19 Tom Tromey <tromey@redhat.com>
13034 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13035 (target_get_bookmark): Add argument.
13036 * target.c (dummy_get_bookmark): Add 'self' argument.
13037 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13039 2014-02-19 Tom Tromey <tromey@redhat.com>
13041 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13043 (target_make_corefile_notes): Add argument.
13044 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13045 * procfs.c (procfs_make_note_section): Add 'self' argument.
13046 (procfs_make_note_section): Add 'self' argument.
13047 (procfs_make_note_section): Add 'self' argument.
13048 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13050 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13051 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13052 * exec.c (exec_make_note_section): Add 'self' argument.
13053 (exec_make_note_section): Add 'self' argument.
13055 2014-02-19 Tom Tromey <tromey@redhat.com>
13057 * target.h (struct target_ops) <to_find_memory_regions>: Add
13059 (target_find_memory_regions): Add argument.
13060 * target.c (dummy_find_memory_regions): Add 'self' argument.
13061 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13062 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13063 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13064 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13065 * exec. (exec_do_find_memory_regions): New global.
13066 (exec_set_find_memory_regions): Rewrite.
13067 (exec_find_memory_regions): New function.
13068 (init_exec_ops): Use exec_find_memory_regions.
13070 2014-02-19 Tom Tromey <tromey@redhat.com>
13072 * target.h (struct target_ops) <to_supports_non_stop>: Add
13074 * target.c (find_default_supports_non_stop): Add argument.
13075 (target_supports_non_stop): Add argument.
13076 (find_default_supports_non_stop): Add 'self' argument.
13077 * remote.c (remote_supports_non_stop): Add 'self' argument.
13078 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13080 2014-02-19 Tom Tromey <tromey@redhat.com>
13082 * target.h (struct target_ops) <to_log_command>: Add argument.
13083 (target_log_command): Add argument.
13084 * serial.h (serial_log_command): Add 'self' argument.
13085 * serial.c (serial_log_command): Add 'self' argument.
13087 2014-02-19 Tom Tromey <tromey@redhat.com>
13089 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13090 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13092 (target_pid_to_exec_file): Add argument.
13093 * target.c (debug_to_pid_to_exec_file): Add argument.
13094 (update_current_target): Update.
13095 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13096 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13097 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13098 (linux_handle_extended_wait): Update.
13099 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13100 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13101 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13102 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13104 2014-02-19 Tom Tromey <tromey@redhat.com>
13106 * target.h (struct target_ops) <to_rcmd>: Add argument.
13107 (target_rcmd): Add argument.
13108 * target.c (debug_to_rcmd): Add argument.
13109 (update_current_target, do_monitor_command): Update.
13110 * remote.c (remote_rcmd): Add 'self' argument.
13111 * monitor.c (monitor_rcmd): Add 'self' argument.
13113 2014-02-19 Tom Tromey <tromey@redhat.com>
13115 * windows-nat.c (windows_stop): Add 'self' argument.
13116 * target.h (struct target_ops) <to_stop>: Add argument.
13117 * target.c (target_stop): Add argument.
13118 (debug_to_stop): Add argument.
13119 (update_current_target): Update.
13120 * remote.c (remote_stop): Add 'self' argument.
13121 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13122 (gdbsim_cntrl_c): Update.
13123 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13124 * procfs.c (procfs_stop): Add 'self' argument.
13125 * nto-procfs.c (procfs_stop): Add 'self' argument.
13126 * monitor.c (monitor_stop): Add 'self' argument.
13127 (monitor_open): Update.
13128 * linux-nat.c (linux_nat_stop): Add argument.
13129 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13130 * gnu-nat.c (gnu_stop): Add 'self' argument.
13131 * darwin-nat.c (darwin_stop): Add 'self' argument.
13133 2014-02-19 Tom Tromey <tromey@redhat.com>
13135 * target.h (struct target_ops) <to_thread_name>: Add argument.
13136 * target.c (target_thread_name): Add argument.
13137 (update_current_target): Update.
13138 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13140 2014-02-19 Tom Tromey <tromey@redhat.com>
13142 * target.h (struct target_ops) <to_extra_thread_info>: Add
13144 (target_extra_thread_info): Add argument.
13145 * target.c (update_current_target): Update.
13146 * remote.c (remote_threads_extra_info): Add 'self' argument.
13147 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13149 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13150 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13151 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13153 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13155 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13157 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13160 2014-02-19 Tom Tromey <tromey@redhat.com>
13162 * target.h (struct target_ops) <to_program_signals>: Add argument.
13163 * target.c (target_program_signals): Add argument.
13164 * remote.c (remote_program_signals): Add 'self' argument.
13166 2014-02-19 Tom Tromey <tromey@redhat.com>
13168 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13169 * target.c (target_pass_signals): Add argument.
13170 * remote.c (remote_pass_signals): Add 'self' argument.
13171 (remote_start_remote): Update.
13172 * procfs.c (procfs_pass_signals): Add 'self' argument.
13173 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13174 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13175 (linux_nat_create_inferior, linux_nat_attach): Update.
13177 2014-02-19 Tom Tromey <tromey@redhat.com>
13179 * windows-nat.c (windows_can_run): Add 'self' argument.
13180 * target.h (struct target_ops) <to_can_run>: Add argument.
13181 (target_can_run): Add argument.
13182 * target.c (debug_to_can_run): Add argument.
13183 (update_current_target): Update.
13184 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13185 * inf-child.c (inf_child_can_run): Add 'self' argument.
13186 * go32-nat.c (go32_can_run): Add 'self' argument.
13188 2014-02-19 Tom Tromey <tromey@redhat.com>
13190 * target.h (struct target_ops) <to_has_exited>: Add argument.
13191 (target_has_exited): Add argument.
13192 * target.c (debug_to_has_exited): Add argument.
13193 (update_current_target): Update.
13195 2014-02-19 Tom Tromey <tromey@redhat.com>
13197 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13199 (target_set_syscall_catchpoint): Add argument.
13200 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13202 * target.c (update_current_target): Update.
13204 2014-02-19 Tom Tromey <tromey@redhat.com>
13206 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13208 (target_remove_exec_catchpoint): Add argument.
13209 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13210 (update_current_target): Update.
13211 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13214 2014-02-19 Tom Tromey <tromey@redhat.com>
13216 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13218 (target_insert_exec_catchpoint): Add argument.
13219 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13220 (update_current_target): Update.
13221 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13224 2014-02-19 Tom Tromey <tromey@redhat.com>
13226 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13228 (target_remove_vfork_catchpoint): Add argument.
13229 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13230 (update_current_target): Update.
13231 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13234 2014-02-19 Tom Tromey <tromey@redhat.com>
13236 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13238 (target_insert_vfork_catchpoint): Add argument.
13239 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13240 (update_current_target): Update.
13241 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13244 2014-02-19 Tom Tromey <tromey@redhat.com>
13246 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13248 (target_remove_fork_catchpoint): Add argument.
13249 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13250 (update_current_target): Update.
13251 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13254 2014-02-19 Tom Tromey <tromey@redhat.com>
13256 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13258 (target_insert_fork_catchpoint): Add argument.
13259 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13260 (update_current_target): Update.
13261 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13264 2014-02-19 Tom Tromey <tromey@redhat.com>
13266 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13268 (target_post_startup_inferior): Add argument.
13269 * target.c (debug_to_post_startup_inferior): Add argument.
13270 (update_current_target): Update.
13271 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13273 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13275 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13277 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13279 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13281 (super_post_startup_inferior): Likewise.
13282 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13284 (super_post_startup_inferior): Likewise.
13285 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13286 Add 'self' argument.
13287 (super_post_startup_inferior): Likewise.
13289 2014-02-19 Tom Tromey <tromey@redhat.com>
13291 * target.h (struct target_ops) <to_load>: Add argument.
13292 * target.c (target_load): Add argument.
13293 (debug_to_load): Add argument.
13294 (update_current_target): Update.
13295 * remote.c (remote_load): Add 'self' argument.
13296 * remote-sim.c (gdbsim_load): Add 'self' argument.
13297 * remote-mips.c (mips_load): Add 'self' argument.
13298 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13299 * monitor.c (monitor_load): Add 'self' argument.
13300 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13302 2014-02-19 Tom Tromey <tromey@redhat.com>
13304 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13305 (target_terminal_info): Add argument.
13306 * target.c (debug_to_terminal_info): Add argument.
13307 (default_terminal_info): Likewise.
13308 * inflow.c (child_terminal_info): Add 'self' argument.
13309 * inferior.h (child_terminal_info): Add 'self' argument.
13310 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13312 2014-02-19 Tom Tromey <tromey@redhat.com>
13314 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13316 (target_terminal_save_ours): Add argument.
13317 * target.c (debug_to_terminal_save_ours): Add argument.
13318 (update_current_target): Update.
13319 * inflow.c (terminal_save_ours): Add 'self' argument.
13320 * inferior.h (terminal_save_ours): Add 'self' argument.
13322 2014-02-19 Tom Tromey <tromey@redhat.com>
13324 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13325 (target_terminal_ours): Add argument.
13326 * target.c (debug_to_terminal_ours): Add argument.
13327 (update_current_target): Update.
13328 * remote.c (remote_terminal_ours): Add 'self' argument.
13329 (remote_close): Update.
13330 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13331 * inflow.c (terminal_ours): Add 'self' argument.
13332 * inferior.h (terminal_ours): Add 'self' argument.
13333 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13335 2014-02-19 Pedro Alves <palves@redhat.com>
13336 Tom Tromey <tromey@redhat.com>
13338 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13340 (target_terminal_ours_for_output): Add argument.
13341 * target.c (debug_to_terminal_ours_for_output): Add argument.
13342 (update_current_target): Update.
13343 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13344 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13345 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13347 2014-02-19 Tom Tromey <tromey@redhat.com>
13349 * target.h (struct target_ops) <to_terminal_inferior>: Add
13351 * target.c (target_terminal_inferior): Add argument.
13352 (update_current_target): Update.
13353 * remote.c (remote_terminal_inferior): Add 'self' argument.
13354 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13355 * inflow.c (terminal_inferior): Add 'self' argument.
13356 * inferior.h (terminal_inferior): Add 'self' argument.
13357 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13358 (go32_terminal_inferior): Add 'self' argument.
13360 2014-02-19 Tom Tromey <tromey@redhat.com>
13362 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13363 (target_terminal_init): Add argument.
13364 * target.c (debug_to_terminal_init): Add argument.
13365 (update_current_target): Update.
13366 * inflow.c (terminal_init_inferior): Add 'self' argument.
13367 * inferior.h (terminal_init_inferior): Add 'self' argument.
13368 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13369 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13371 2014-02-19 Tom Tromey <tromey@redhat.com>
13373 * target.h (struct target_ops)
13374 <to_can_accel_watchpoint_condition>: Add argument.
13375 (target_can_accel_watchpoint_condition): Add argument.
13376 * target.c (debug_to_can_accel_watchpoint_condition): Add
13378 (update_current_target): Update.
13379 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13382 2014-02-19 Tom Tromey <tromey@redhat.com>
13384 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13386 (target_region_ok_for_hw_watchpoint): Add argument.
13387 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13388 (default_region_ok_for_hw_watchpoint): Add argument.
13389 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13390 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13392 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13394 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13396 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13398 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13400 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13402 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13403 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13405 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13406 Add 'self' argument.
13408 2014-02-19 Tom Tromey <tromey@redhat.com>
13410 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13412 (target_insert_watchpoint): Add argument.
13413 * target.c (debug_to_insert_watchpoint): Add argument.
13414 (update_current_target): Update.
13415 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13416 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13417 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13418 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13419 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13420 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13422 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13423 (procfs_insert_hw_watchpoint): Add 'self' argument.
13424 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13426 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13428 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13430 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13431 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13433 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13436 2014-02-19 Tom Tromey <tromey@redhat.com>
13438 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13440 (target_remove_watchpoint): Add argument.
13441 * target.c (debug_to_remove_watchpoint): Add argument.
13442 (update_current_target): Update.
13443 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13444 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13445 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13446 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13447 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13448 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13450 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13451 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13453 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13455 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13457 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13458 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13460 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13463 2014-02-19 Tom Tromey <tromey@redhat.com>
13465 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13467 (target_remove_hw_breakpoint): Add argument.
13468 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13469 (update_current_target): Update.
13470 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13471 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13473 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13474 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13476 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13479 2014-02-19 Tom Tromey <tromey@redhat.com>
13481 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13483 (target_insert_hw_breakpoint): Add argument.
13484 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13485 (update_current_target): Update.
13486 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13487 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13489 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13490 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13491 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13493 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13496 2014-02-19 Tom Tromey <tromey@redhat.com>
13498 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13500 (target_can_use_hardware_watchpoint): Add argument.
13501 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13502 (update_current_target): Update.
13503 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13505 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13507 * remote.c (remote_check_watch_resources): Add 'self' argument.
13508 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13509 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13511 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13512 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13514 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13516 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13518 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13520 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13522 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13524 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13525 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13527 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13530 2014-02-19 Tom Tromey <tromey@redhat.com>
13532 * target.h (struct target_ops) <to_post_attach>: Add argument.
13533 (target_post_attach): Add argument.
13534 * target.c (debug_to_post_attach): Add argument.
13535 (update_current_target): Update.
13536 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13537 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13538 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13539 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13540 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13542 2014-02-19 Tom Tromey <tromey@redhat.com>
13544 * windows-nat.c (windows_close): Add 'self' argument.
13545 * tracepoint.c (tfile_close): Add 'self' argument.
13546 * target.h (struct target_ops) <to_close>: Add argument.
13547 * target.c (target_close): Add argument.
13548 (update_current_target): Update.
13549 * remote.c (remote_close): Add 'self' argument.
13550 * remote-sim.c (gdbsim_close): Add 'self' argument.
13551 * remote-mips.c (mips_close): Add 'self' argument.
13552 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13553 * record-full.c (record_full_close): Add 'self' argument.
13554 * record-btrace.c (record_btrace_close): Add 'self' argument.
13555 * monitor.h (monitor_close): Add 'self' argument.
13556 * monitor.c (monitor_close): Add 'self' argument.
13557 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13558 * linux-nat.c (linux_nat_close): Add argument.
13559 * go32-nat.c (go32_close): Add 'self' argument.
13560 * exec.c (exec_close_1): Add 'self' argument.
13561 * ctf.c (ctf_close): Add 'self' argument.
13562 * corelow.c (core_close): Add 'self' argument.
13563 (core_close_cleanup): Update.
13564 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13565 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13567 2014-02-19 Tom Tromey <tromey@redhat.com>
13569 * remote.c (remote_load): New function.
13570 (init_remote_ops): Use it.
13572 2014-02-19 Tom Tromey <tromey@redhat.com>
13574 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13576 * common/linux-btrace.h (linux_supports_btrace): Update.
13577 * remote.c (remote_supports_btrace): Add "self" argument.
13578 * target-delegates.c: Rebuild.
13579 * target.c (target_supports_btrace): Remove.
13580 * target.h (struct target_ops) <to_supports_btrace>: Add
13581 target_ops argument.
13582 (target_supports_btrace): New define.
13584 2014-02-19 Tom Tromey <tromey@redhat.com>
13586 * record-full.c (record_full_beneath_to_resume_ops)
13587 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13588 (record_full_beneath_to_wait)
13589 (record_full_beneath_to_store_registers_ops)
13590 (record_full_beneath_to_store_registers)
13591 (record_full_beneath_to_xfer_partial_ops)
13592 (record_full_beneath_to_xfer_partial)
13593 (record_full_beneath_to_insert_breakpoint_ops)
13594 (record_full_beneath_to_insert_breakpoint)
13595 (record_full_beneath_to_remove_breakpoint_ops)
13596 (record_full_beneath_to_remove_breakpoint)
13597 (record_full_beneath_to_stopped_by_watchpoint)
13598 (record_full_beneath_to_stopped_data_address)
13599 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13600 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13601 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13602 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13603 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13604 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13605 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13606 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13607 (record_full_resume, record_full_wait_1)
13608 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13609 (record_full_store_registers, record_full_xfer_partial)
13610 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13611 (record_full_async, record_full_core_xfer_partial): Use target
13613 * target-delegates.c: Rebuild.
13614 * target.c (current_xfer_partial): Remove.
13615 (update_current_target): Do not INHERIT or de_fault
13616 to_insert_breakpoint, to_remove_breakpoint,
13617 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13618 to_is_async_p, to_async. Do not set to_xfer_partial field.
13619 (default_xfer_partial): Simplify.
13620 (current_xfer_partial): Remove.
13621 (target_wait, target_resume): Simplify.
13622 (find_default_can_async_p, find_default_is_async_p): Update.
13623 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13624 to_xfer_partial, to_stopped_by_watchpoint,
13625 to_stopped_data_address.
13626 (target_store_registers): Simplify.
13627 (forward_target_remove_breakpoint)
13628 (forward_target_insert_breakpoint): Remove.
13629 (target_remove_breakpoint, target_insert_breakpoint)
13630 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13631 * target.h (struct target_ops) <to_resume, to_wait,
13632 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13633 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13634 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13636 (forward_target_remove_breakpoint)
13637 (forward_target_insert_breakpoint): Remove.
13638 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13640 (record_btrace_insert_breakpoint): Delegate directly.
13642 2014-02-19 Tom Tromey <tromey@redhat.com>
13645 * target-delegates.c: New file.
13646 * target.c: Include target-delegates.c.
13647 (init_dummy_target): Call install_dummy_methods.
13648 (complete_target_initialization): Call install_delegators.
13649 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13650 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13651 * make-target-delegates: New file.
13653 2014-02-19 Tom Tromey <tromey@redhat.com>
13655 * record.c (find_record_target): Use find_target_at.
13656 * target.c (find_target_at): New function.
13657 * target.h (find_target_at): Declare.
13659 2014-02-19 Tom Tromey <tromey@redhat.com>
13661 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13662 Add 'ops' argument.
13663 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13665 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13666 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13668 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13670 * linux-nat.c (save_sigtrap): Update.
13671 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13672 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13673 (linux_nat_close): Update.
13674 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13676 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13678 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13679 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13680 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13681 (tmp_to_async): Add 'ops' argument.
13682 (record_full_stopped_by_watchpoint, record_full_async)
13683 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13685 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13686 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13687 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13688 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13689 (remote_is_async_p, remote_async): Add 'ops' argument.
13690 (remote_stopped_data_address): Update.
13691 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13692 * target.c (update_current_target)
13693 (find_default_can_async_p, find_default_is_async_p): Update.
13694 (init_dummy_target): Update.
13695 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13696 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13697 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13698 (target_can_async_p, target_is_async_p, target_async)
13699 (target_stopped_by_watchpoint): Update.
13701 2014-02-19 Yao Qi <yao@codesourcery.com>
13704 * gdbarch.sh: Remove startup_gdbarch.
13705 * gdbarch.c: Regenerated.
13706 * gdbarch.h: Likewise.
13708 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13710 * rl78-tdep.c (rl78_g10_register_name): New function.
13711 (rl78_return_value): Add g10 support.
13712 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13715 2014-02-17 Doug Evans <xdje42@gmail.com>
13717 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13718 (SUBDIR_GUILE_SRCS): Ditto.
13719 (scm-gsmob.o): Ditto.
13721 2014-02-17 Yao Qi <yao@codesourcery.com>
13723 * gnu-nat.c (ILL_RPC): Declare defined function.
13725 2014-02-17 Yao Qi <yao@codesourcery.com>
13727 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13728 mach_msg_type_number_t.
13729 (gnu_write_inferior): Likewise.
13731 2014-02-17 Yao Qi <yao@codesourcery.com>
13733 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13735 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13736 (inf_validate_procs, inf_signal): Likewise.
13737 (S_exception_raise_request): Likewise.
13738 (do_mach_notify_dead_name): Likewise.
13739 (steal_exc_port): Likewise.
13740 (gnu_read_inferior): Change 'copy_count''s type to
13741 mach_msg_type_number_t.
13742 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13745 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13747 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13748 flag. Adjust all users; in particular...
13749 (gnu_wait): ..., don't decrement its value in here...
13750 (gnu_create_inferior): ..., and instead set the flag in here,
13751 around the startup_inferior call, and call that one with
13752 START_INFERIOR_TRAPS_EXPECTED.
13754 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13755 (ILL_RPC): ... new macro.
13756 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13757 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13758 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13759 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13760 functions with ILL_RPC macro.
13761 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13762 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13763 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13764 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13765 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13766 (S_proc_getlogin_reply, S_proc_getsid_reply)
13767 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13768 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13769 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13770 (S_proc_getnports_reply, S_proc_is_important_reply)
13771 (S_proc_get_code_reply): New stub functions, generated with
13774 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13775 collected the type check structures.
13777 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13779 2014-02-14 Doug Evans <dje@google.com>
13781 * target.c (target_write_partial): Fix result type.
13783 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13785 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13786 the proper offsets to access fpregset_t.
13788 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13790 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13791 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13792 * h8300-tdep.c (setmachinelist): Remove global.
13793 * hppa-tdep.c (hppa_sigtramp): Remove global.
13794 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13795 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13796 * ravenscar-thread.c (update_target_observer): Remove global.
13797 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13799 2014-02-12 Tom Tromey <tromey@redhat.com>
13801 * common/rsp-low.c: Update comments.
13802 * common/rsp-low.h: Update comments.
13804 2014-02-12 Tom Tromey <tromey@redhat.com>
13806 * common/rsp-low.c (convert_ascii_to_int): Remove.
13807 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13809 2014-02-12 Tom Tromey <tromey@redhat.com>
13811 * common/rsp-low.h (unhexify): Don't declare.
13812 * common/rsp-low.c (unhexify): Remove.
13814 2014-02-12 Tom Tromey <tromey@redhat.com>
13816 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13817 * common/rsp-low.c (convert_int_to_ascii): Remove.
13819 2014-02-12 Tom Tromey <tromey@redhat.com>
13821 * common/rsp-low.h (hexify): Don't declare.
13822 * common/rsp-low.c (hexify): Remove.
13824 2014-02-12 Tom Tromey <tromey@redhat.com>
13826 * common/rsp-low.c (hexify): Never take strlen of argument.
13828 2014-02-12 Tom Tromey <tromey@redhat.com>
13830 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13831 * remote.c (extended_remote_run, remote_rcmd)
13832 (remote_download_trace_state_variable, remote_save_trace_data)
13833 (remote_set_trace_notes): Update.
13834 * tracepoint.c (encode_source_string, tfile_write_status)
13835 (tfile_write_uploaded_tsv): Update.
13837 2014-02-12 Tom Tromey <tromey@redhat.com>
13839 * tracepoint.c: Include rsp-low.h.
13840 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13841 * remote.c: Include rsp-low.h.
13842 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13843 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13844 (remote_unescape_input): Move to common/rsp-low.c.
13845 * common/rsp-low.h: New file.
13846 * common/rsp-low.c: New file.
13847 * Makefile.in (SFILES): Add common/rsp-low.c.
13848 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13849 (COMMON_OBS): Add rsp-low.o.
13850 (rsp-low.o): New target.
13852 2014-02-12 Tom Tromey <tromey@redhat.com>
13854 * utils.h: Include print-utils.h.
13855 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13856 (int_string, core_addr_to_string, core_addr_to_string_nz)
13857 (hex_string, hex_string_custom): Don't declare.
13858 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13859 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13860 (hex_string_custom, int_string, core_addr_to_string)
13861 (core_addr_to_string_nz, host_address_to_string): Move to
13862 common/print-utils.c.
13863 * common/print-utils.h: New file.
13864 * common/print-utils.c: New file
13865 * Makefile.in (SFILES): Add common/print-utils.c.
13866 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13867 (COMMON_OBS): Add print-utils.o.
13868 (print-utils.o): New target.
13870 2014-02-12 Tom Tromey <tromey@redhat.com>
13872 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13874 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13876 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13878 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13880 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13881 if a PT_IO ptrace request returns sucessfully but indicates that 0
13882 bytes were transferred.
13884 2014-02-12 Pedro Alves <palves@redhat.com>
13885 Kevin Buettner <kevinb@redhat.com>
13887 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13888 TYPE_INSTANCE_FLAG_CODE_SPACE.
13890 2014-02-12 Pedro Alves <palves@redhat.com>
13892 * h8300-tdep.c (pseudo_from_raw_register)
13893 (raw_from_pseudo_register): New functions.
13894 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13897 2014-02-12 Pedro Alves <palves@redhat.com>
13899 * h8300-tdep.c (h8300_register_sim_regno): New function.
13900 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13901 gdbarch_register_sim_regno hook.
13903 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13905 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13907 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13909 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13911 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13913 * obsd-tdep.h (obsd_init_abi): New prototype.
13914 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13915 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13916 (obsd_init_abi): New functions.
13917 * i386obsd-tdep.c: Include "obsd-tdep.h".
13918 (i386obsd_init_abi): Call obsd_init_abi.
13919 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13920 (amd64obsd_init_abi): Call obsd_init_abi.
13921 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13922 obsd-tdep.c to gdb_target_obs.
13924 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13926 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13927 double float arguments to 16-byte in the argument slots.
13929 2014-02-11 Doug Evans <xdje42@gmail.com>
13931 * configure.ac: Don't crash if pkg-config is not found and guile
13932 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13934 * configure: Regenerate.
13936 2014-02-11 Yao Qi <yao@codesourcery.com>
13938 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13939 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13940 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13941 * gnu-nat.c (gnu_xfer_memory): Likewise.
13942 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13943 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13944 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13945 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13947 2014-02-11 Yao Qi <yao@codesourcery.com>
13949 * target.h (enum target_xfer_error): Rename to ...
13950 (enum target_xfer_status): ... it. New. All users updated.
13951 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13953 (TARGET_XFER_STATUS_ERROR_P): New macro.
13954 (target_xfer_error_to_string): Remove declaration.
13955 (target_xfer_status_to_string): Declare.
13956 (target_xfer_partial_ftype): Adjust it.
13957 (struct target_ops) <to_xfer_partial>: Return
13958 target_xfer_status. Add argument xfered_len. Update
13960 * target.c (target_xfer_error_to_string): Rename to ...
13961 (target_xfer_status_to_string): ... it. New. All callers
13963 (target_read_live_memory): Likewise. Call target_xfer_partial
13964 instead of target_read.
13965 (memory_xfer_live_readonly_partial): Return
13966 target_xfer_status. Add argument xfered_len.
13967 (raw_memory_xfer_partial): Likewise.
13968 (memory_xfer_partial_1): Likewise.
13969 (memory_xfer_partial): Likewise.
13970 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13971 properly. Update debug message.
13972 (default_xfer_partial, current_xfer_partial): Likewise.
13973 (target_write_partial): Likewise.
13974 (target_read_partial): Likewise. All callers updated.
13975 (read_whatever_is_readable): Likewise.
13976 (target_write_with_progress): Likewise.
13977 (target_read_alloc_1): Likewise.
13979 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13980 * auxv.c (procfs_xfer_auxv): Likewise.
13981 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13982 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13983 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13984 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13985 * corefile.c (read_memory): Adjust.
13986 * corelow.c (core_xfer_partial): Likewise.
13987 * ctf.c (ctf_xfer_partial): Likewise.
13988 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13990 (darwin_xfer_partial): Likewise.
13991 * exec.c (section_table_xfer_memory_partial): Likewise. All
13993 (exec_xfer_partial): Likewise.
13994 * exec.h (section_table_xfer_memory_partial): Update
13996 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13998 (gnu_xfer_partial): Likewise.
13999 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14000 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14001 (ia64_hpux_xfer_solib_got): Likewise.
14002 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14003 type of 'partial_len' to ULONGEST.
14004 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14005 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14006 (linux_nat_xfer_partial): Likewise.
14007 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14008 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14009 * monitor.c (monitor_xfer_memory): Likewise.
14010 (monitor_xfer_partial): Likewise.
14011 * procfs.c (procfs_xfer_partial): Likewise.
14012 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14013 * record-full.c (record_full_xfer_partial): Likewise.
14014 (record_full_core_xfer_partial): Likewise.
14015 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14016 (gdbsim_xfer_partial): Likewise.
14017 * remote.c (remote_write_bytes_aux): Likewise. All callers
14019 (remote_write_bytes, remote_read_bytes): Likewise. All
14021 (remote_flash_erase): Likewise. All callers updated.
14022 (remote_write_qxfer): Likewise. All callers updated.
14023 (remote_read_qxfer): Likewise. All callers updated.
14024 (remote_xfer_partial): Likewise.
14025 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14026 (rs6000_xfer_shared_libraries): Likewise.
14027 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14028 (sol_thread_xfer_partial): Likewise.
14029 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14030 (sparc_xfer_partial): Likewise.
14031 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14033 (spu_xfer_partial): Likewise.
14034 * spu-multiarch.c (spu_xfer_partial): Likewise.
14035 * tracepoint.c (tfile_xfer_partial): Likewise.
14036 * windows-nat.c (windows_xfer_memory): Likewise.
14037 (windows_xfer_shared_libraries): Likewise.
14038 (windows_xfer_partial): Likewise.
14039 * valprint.c: Replace 'target_xfer_error' with
14040 'target_xfer_status' in comments.
14042 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14044 Checked in by Joel Brobecker <brobecker@adacore.com>.
14045 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14047 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14049 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14050 function parameters.
14052 2014-02-10 Will Newton <will.newton@linaro.org>
14054 * elfread.c (elf_rel_plt_read): Look for a .got section if
14055 looking up .got.plt fails.
14056 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14057 on address passed to elf_gnu_ifunc_record_cache.
14058 (elf_gnu_ifunc_resolve_addr): Likewise.
14059 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14061 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14063 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14064 (X_RETTURN): New macro.
14065 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14067 * sparc64-tdep.c (sparc64_init_abi): Hook
14068 sparc_in_function_epilogue_p.
14070 2014-02-10 Gary Benson <gbenson@redhat.com>
14072 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14073 Rename name_matcher to symbol_matcher.
14075 2014-02-10 Gary Benson <gbenson@redhat.com>
14077 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14078 Use expand_symtabs_file_matcher_ftype and
14079 expand_symtabs_symbol_matcher_ftype.
14081 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14083 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14084 (struct ada_symbol_cache): New.
14085 (ada_free_symbol_cache): Forward declare.
14086 (struct ada_pspace_data): New.
14087 (ada_pspace_data_handle): New static global.
14088 (get_ada_pspace_data, ada_pspace_data_cleanup)
14089 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14090 (cache_space, cache): Delete, now folded inside struct
14092 (ada_get_symbol_cache): New function.
14093 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14095 (_initialize_ada_language): Remove initialization of cache_space.
14096 Move call to observer_attach_inferior_exit up, grouping it
14097 with the other observer registrations inside this function.
14098 Rename command to be more general. Add call to
14099 register_program_space_data_with_cleanup.
14101 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14103 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14104 ada_new_objfile_observer.
14105 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14106 (_initialize_tasks): Update uses of ada_new_objfile_observer
14107 and ada_tasks_normal_stop_observer.
14109 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14111 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14112 returned by the 'Length attribute to integer.
14114 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14116 * ada-lang.c (_initialize_ada_language): Initialize
14117 cache_space obstack.
14119 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14121 * ada-lang.c (HASH_SIZE): New macro.
14122 (struct cache_entry): New type.
14123 (cache_space, cache): New static globals.
14124 (ada_clear_symbol_cache, find_entry): New functions.
14125 (lookup_cached_symbol, cache_symbol): Implement.
14126 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14127 (_initialize_ada_language): Attach ada_new_objfile_observer
14128 and ada_free_objfile_observer.
14130 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14132 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14133 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14134 struct block * parameter.
14135 (ada_lookup_symbol_list_worker): Constify local variable "block".
14136 Remove cast which is no longer necessary.
14138 2014-02-10 Doug Evans <xdje42@gmail.com>
14140 Add Guile as an extension language.
14141 * NEWS: Mention Guile scripting.
14142 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14143 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14144 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14145 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14146 (CLIBS): Add GUILE_LIBS.
14147 (install-guile): New rule.
14148 (guile.o): New rule.
14149 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14150 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14151 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14152 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14153 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14154 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14155 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14156 * configure.ac: New option --with-guile.
14157 * configure: Regenerate.
14158 * config.in: Regenerate.
14159 * auto-load.c: Remove #include "python/python.h". Add #include
14160 "gdb/section-scripts.h".
14161 (source_section_scripts): Handle Guile scripts.
14162 (_initialize_auto_load): Add name of Guile objfile script to
14163 scripts-directory help text.
14164 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14165 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14166 (struct breakpoint): New member scm_bp_object.
14167 * defs.h (enum command_control_type): New value guile_control.
14168 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14170 (show_user): Update comment.
14171 (_initialize_cli_cmds): Update help text for "show user". Update help
14172 text for max-user-call-depth.
14173 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14175 (multi_line_command_p): Add guile_control.
14176 (print_command_lines): Handle guile_control.
14177 (execute_control_command, recurse_read_control_structure): Ditto.
14178 (process_next_line): Recognize "guile" commands.
14179 * disasm.c (gdb_disassemble_info): Make non-static.
14180 * disasm.h: #include "dis-asm.h".
14181 (struct gdbarch): Add forward decl.
14182 (gdb_disassemble_info): Declare.
14183 * extension.c: #include "guile/guile.h".
14184 (extension_languages): Add guile.
14185 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14186 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14187 * gdbtypes.c (get_unsigned_type_max): New function.
14188 (get_signed_type_minmax): New function.
14189 * gdbtypes.h (get_unsigned_type_max): Declare.
14190 (get_signed_type_minmax): Declare.
14191 * guile/README: New file.
14192 * guile/guile-internal.h: New file.
14193 * guile/guile.c: New file.
14194 * guile/guile.h: New file.
14195 * guile/scm-arch.c: New file.
14196 * guile/scm-auto-load.c: New file.
14197 * guile/scm-block.c: New file.
14198 * guile/scm-breakpoint.c: New file.
14199 * guile/scm-disasm.c: New file.
14200 * guile/scm-exception.c: New file.
14201 * guile/scm-frame.c: New file.
14202 * guile/scm-gsmob.c: New file.
14203 * guile/scm-iterator.c: New file.
14204 * guile/scm-lazy-string.c: New file.
14205 * guile/scm-math.c: New file.
14206 * guile/scm-objfile.c: New file.
14207 * guile/scm-ports.c: New file.
14208 * guile/scm-pretty-print.c: New file.
14209 * guile/scm-safe-call.c: New file.
14210 * guile/scm-string.c: New file.
14211 * guile/scm-symbol.c: New file.
14212 * guile/scm-symtab.c: New file.
14213 * guile/scm-type.c: New file.
14214 * guile/scm-utils.c: New file.
14215 * guile/scm-value.c: New file.
14216 * guile/lib/gdb.scm: New file.
14217 * guile/lib/gdb/boot.scm: New file.
14218 * guile/lib/gdb/experimental.scm: New file.
14219 * guile/lib/gdb/init.scm: New file.
14220 * guile/lib/gdb/iterator.scm: New file.
14221 * guile/lib/gdb/printing.scm: New file.
14222 * guile/lib/gdb/types.scm: New file.
14223 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14224 (VPATH): Add $(GUILE_SRCDIR).
14225 (GUILE_DIR): New variable.
14226 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14227 (all): Add stamp-guile dependency.
14228 (stamp-guile): New rule.
14229 (clean-guile, install-guile, uninstall-guile): New rules.
14230 (install-only): Add install-guile dependency.
14231 (uninstall): Add uninstall-guile dependency.
14232 (clean): Add clean-guile dependency.
14234 2014-02-09 Doug Evans <xdje42@gmail.com>
14236 Revert this patch (which I approved, mea culpa).
14238 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14240 * Makefile.in (all-lib): Remove.
14241 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14243 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14245 Fix Python stack corruption.
14246 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14249 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14251 * Makefile.in (all-lib): Remove.
14252 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14254 2014-02-07 Doug Evans <dje@google.com>
14256 * extension-priv.h (extension_language_script_ops): Add comment.
14257 (extension_language_ops): Add comment.
14258 (active_ext_lang_state): Fix typo in comment.
14260 2014-02-07 Pedro Alves <palves@redhat.com>
14262 PR breakpoints/16292
14263 * infrun.c (handle_signal_stop) <signal arrives while stepping
14264 over a breakpoint>: Switch back to the stepping thread.
14266 2014-02-07 Yao Qi <yao@codesourcery.com>
14268 * target.c (target_xfer_partial): Return zero if LEN is zero.
14270 2014-02-07 Yao Qi <yao@codesourcery.com>
14272 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14273 (ld_so_xfer_auxv): Likewise.
14274 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14275 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14276 * corelow.c (core_xfer_partial): Likewise.
14277 * ctf.c (ctf_xfer_partial): Likewise.
14278 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14279 (darwin_xfer_partial): Likewise.
14280 * exec.c (exec_xfer_partial): Likewise.
14281 * gnu-nat.c (gnu_xfer_partial): Likewise.
14282 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14283 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14284 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14285 * linux-nat.c (linux_xfer_siginfo): Likewise.
14286 (linux_proc_xfer_spu): Likewise.
14287 * procfs.c (procfs_xfer_partial): Likewise.
14288 * record-full.c (record_full_xfer_partial): Likewise.
14289 (record_full_core_xfer_partial): Likewise.
14290 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14291 * remote.c (remote_write_qxfer): Likewise.
14292 (remote_write_qxfer, remote_read_qxfer): Likewise.
14293 (remote_xfer_partial): Likewise.
14294 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14295 (rs6000_xfer_shared_libraries): Likewise.
14296 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14297 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14298 (spu_xfer_partial): Likewise.
14299 * target.c (memory_xfer_partial_1): Likewise.
14300 * tracepoint.c (tfile_xfer_partial): Likewise.
14301 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14302 (windows_xfer_partial): Likewise.
14304 2014-02-07 Yao Qi <yao@codesourcery.com>
14306 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14308 (core_xfer_shared_libraries_aix): Likewise.
14309 * gdbarch.c, gdbarch.h: Regenerated.
14310 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14311 ULONGEST. Change 'len_avail' type to ULONGEST.
14312 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14313 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14315 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14317 2014-02-07 Yao Qi <yao@codesourcery.com>
14319 * corefile.c (memory_error): Get 'exception' from ERR and pass
14320 'exception' to throw_error.
14322 2014-02-06 Doug Evans <xdje42@gmail.com>
14324 * configure.ac (libpython checking): Remove all but python.o from
14325 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14326 * configure: Regenerate.
14328 * Makefile.in (SFILES): Add extension.c.
14329 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14330 (COMMON_OBS): Add extension.o.
14331 * extension.h: New file.
14332 * extension-priv.h: New file.
14333 * extension.c: New file.
14335 * python/python-internal.h: #include "extension.h".
14336 (gdbpy_auto_load_enabled): Declare.
14337 (gdbpy_apply_val_pretty_printer): Declare.
14338 (gdbpy_apply_frame_filter): Declare.
14339 (gdbpy_preserve_values): Declare.
14340 (gdbpy_breakpoint_cond_says_stop): Declare.
14341 (gdbpy_breakpoint_has_cond): Declare.
14342 (void source_python_script_for_objfile): Delete.
14343 * python/python.c: #include "extension-priv.h".
14344 Delete inclusion of "observer.h".
14345 (extension_language_python): Moved here and renamed from
14346 script_language_python in py-auto-load.c.
14347 Redefined to be of type extension_language_defn.
14348 (python_extension_script_ops): New global.
14349 (python_extension_ops): New global.
14350 (struct python_env): New member previous_active.
14351 (restore_python_env): Call restore_active_ext_lang.
14352 (ensure_python_env): Call set_active_ext_lang.
14353 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14355 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14357 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14359 (gdbpy_eval_from_control_command): Renamed from
14360 eval_python_from_control_command, made static. New arg extlang.
14361 (gdbpy_source_script) Renamed from source_python_script, made static.
14363 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14364 result to int. New arg extlang.
14365 (gdbpy_source_objfile_script): Renamed from
14366 source_python_script_for_objfile, made static. New arg extlang.
14367 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14368 static. New args extlang, extlang_printers. Change result type to
14370 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14371 static. New arg extlang. Rename arg printers to extlang_printers
14372 and change type to ext_lang_type_printers *.
14373 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14374 static. Replace argument arg with extlang, extlang_printers.
14375 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14376 (!HAVE_PYTHON, source_python_script): Delete.
14377 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14378 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14379 (!HAVE_PYTHON, start_type_printers): Delete.
14380 (!HAVE_PYTHON, apply_type_printers): Delete.
14381 (!HAVE_PYTHON, free_type_printers): Delete.
14382 (_initialize_python): Delete call to observer_attach_before_prompt.
14383 (finalize_python): Set/restore active extension language.
14384 (gdbpy_finish_initialization) Renamed from
14385 finish_python_initialization, made static. New arg extlang.
14386 (gdbpy_initialized): New function.
14387 * python/python.h: #include "extension.h". Delete #include
14388 "value.h", "mi/mi-cmds.h".
14389 (extension_language_python): Declare.
14390 (GDBPY_AUTO_FILE_NAME): Delete.
14391 (enum py_bt_status): Moved to extension.h and renamed to
14392 ext_lang_bt_status.
14393 (enum frame_filter_flags): Moved to extension.h.
14394 (enum py_frame_args): Moved to extension.h and renamed to
14395 ext_lang_frame_args.
14396 (finish_python_initialization): Delete.
14397 (eval_python_from_control_command): Delete.
14398 (source_python_script): Delete.
14399 (apply_val_pretty_printer): Delete.
14400 (apply_frame_filter): Delete.
14401 (preserve_python_values): Delete.
14402 (gdbpy_script_language_defn): Delete.
14403 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14404 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14406 * auto-load.c: #include "extension.h".
14407 (GDB_AUTO_FILE_NAME): Delete.
14408 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14409 (script_language_gdb): Delete, moved to extension.c and renamed to
14410 extension_language_gdb.
14411 (source_gdb_script_for_objfile): Delete.
14412 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14413 (loaded_script): Change type of language member to
14414 struct extension_language_defn *.
14415 (init_loaded_scripts_info): Initialize
14416 unsupported_script_warning_printed.
14417 (maybe_add_script): Make static. Change type of language arg to
14418 struct extension_language_defn *.
14419 (clear_section_scripts): Reset unsupported_script_warning_printed.
14420 (auto_load_objfile_script_1): Rewrite to use extension language API.
14421 (auto_load_objfile_script): Make public. Remove support-compiled-in
14422 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14423 (source_section_scripts): Rewrite to use extension language API.
14424 (load_auto_scripts_for_objfile): Rewrite to use
14425 auto_load_scripts_for_objfile.
14426 (collect_matching_scripts_data): Change type of language member to
14427 struct extension_language_defn *.
14428 (auto_load_info_scripts): Change type of language arg to
14429 struct extension_language_defn *.
14430 (unsupported_script_warning_print): New function.
14431 (script_not_found_warning_print): Make static.
14432 (_initialize_auto_load): Rewrite construction of scripts-directory
14434 * auto-load.h (struct objfile): Add forward decl.
14435 (struct script_language): Delete.
14436 (struct auto_load_pspace_info): Add forward decl.
14437 (struct extension_language_defn): Add forward decl.
14438 (maybe_add_script): Delete.
14439 (auto_load_objfile_script): Declare.
14440 (script_not_found_warning_print): Delete.
14441 (auto_load_info_scripts): Update prototype.
14442 (auto_load_gdb_scripts_enabled): Declare.
14443 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14444 auto_load_python_scripts_enabled and made public.
14445 (script_language_python): Delete, moved to python.c.
14446 (gdbpy_script_language_defn): Delete.
14447 (info_auto_load_python_scripts): Update to use
14448 extension_language_python.
14450 * breakpoint.c (condition_command): Replace call to
14451 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14452 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14453 with call to breakpoint_ext_lang_cond_says_stop.
14454 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14455 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14456 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14457 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14459 (local_setattro): Print name of extension language with existing
14462 * valprint.c (val_print, value_print): Update to call
14463 apply_ext_lang_val_pretty_printer.
14464 * cp-valprint.c (cp_print_value): Update call to
14465 apply_ext_lang_val_pretty_printer.
14466 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14467 (gdbpy_apply_val_pretty_printer): Renamed from
14468 apply_val_pretty_printer. New arg extlang.
14469 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14471 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14472 extension language API.
14473 * cli/cli-script.c (execute_control_command): Update to call
14474 eval_ext_lang_from_control_command.
14476 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14477 enum ext_lang_bt_status values. Update call to
14478 apply_ext_lang_frame_filter.
14479 (mi_cmd_stack_list_locals): Ditto.
14480 (mi_cmd_stack_list_args): Ditto.
14481 (mi_cmd_stack_list_variables): Ditto.
14482 * mi/mi-main.c: Delete #include "python/python-internal.h".
14483 Add #include "extension.h".
14484 (mi_cmd_list_features): Replace reference to python internal variable
14485 gdb_python_initialized with call to ext_lang_initialized_p.
14487 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14488 Update to use enum ext_lang_frame_args. Update to call
14489 apply_ext_lang_frame_filter.
14490 * python/py-framefilter.c (extract_sym): Update to use enum
14491 ext_lang_bt_status.
14492 (extract_value, py_print_type, py_print_value): Ditto.
14493 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14494 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14495 (py_print_frame): Ditto.
14496 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14497 New arg extlang. Update to use enum ext_lang_bt_status.
14499 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14500 finish_python_initialization. Replace with call to
14501 finish_ext_lang_initialization.
14503 * typeprint.c (do_free_global_table): Update to call
14504 free_ext_lang_type_printers.
14505 (create_global_typedef_table): Update to call
14506 start_ext_lang_type_printers.
14507 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14508 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14509 (type_print_options): Change type of global_printers from "void *"
14510 to "struct ext_lang_type_printers *".
14512 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14513 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14514 (gdbpy_preserve_values): Renamed from preserve_python_values.
14516 (!HAVE_PYTHON, preserve_python_values): Delete.
14518 * utils.c (quit_flag): Delete, moved to extension.c.
14519 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14522 * eval.c: Delete #include "python/python.h".
14523 * main.c: Delete #include "python/python.h".
14525 * defs.h: Update comment.
14527 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14531 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14533 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14536 2014-02-05 Yao Qi <yao@codesourcery.com>
14538 * remote.c (remote_pass_signals): Remove local 'buf' and use
14540 (remote_program_signals): Likewise.
14542 2014-02-05 Yao Qi <yao@codesourcery.com>
14544 * ctf.c: Include "inferior.h" and "gdbthread.h".
14545 (CTF_PID): A new macro.
14546 (ctf_open): Call inferior_appeared and add_thread_silent.
14547 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14548 (ctf_thread_alive): New function.
14549 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14551 2014-02-05 Yao Qi <yao@codesourcery.com>
14555 2013-05-24 Yao Qi <yao@codesourcery.com>
14557 * tracepoint.c (TFILE_PID): Remove.
14558 (tfile_open): Don't add thread and inferior.
14559 (tfile_close): Don't set 'inferior_ptid'. Don't call
14560 exit_inferior_silent.
14561 (tfile_thread_alive): Remove.
14562 (init_tfile_ops): Don't set field 'to_thread_alive' of
14565 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14567 * remote.c (remote_start_remote): Call remote_check_symbols even
14568 if only symbol-file (not file) has been given.
14570 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14572 * gdbarch.sh (skip_entrypoint): New callback.
14573 * gdbarch.c, gdbarch.h: Regenerate.
14574 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14575 * infrun.c (fill_in_stop_func): Likewise.
14576 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14577 (ppc_elfv2_elf_make_msymbol_special): New function.
14578 (ppc_elfv2_skip_entrypoint): Likewise.
14579 (ppc_linux_init_abi): Install them for ELFv2.
14581 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14583 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14584 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14585 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14586 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14587 structures returned in GPRs.
14589 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14591 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14592 offset to the stack parameter list for the ELFv2 ABI.
14594 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14596 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14597 set_gdbarch_convert_from_func_ptr_addr and
14598 set_gdbarch_elf_make_msymbol_special for ELFv1.
14599 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14600 function descriptors on ELFv1.
14601 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14602 set up r12 at function entry.
14604 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14606 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14607 (struct gdbarch_tdep): New member elf_abi.
14609 * rs6000-tdep.c: Include "elf/ppc64.h".
14610 (rs6000_gdbarch_init): Detect ELF ABI version.
14612 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14614 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14615 within a register pair holding a DFP 128-bit value on little-endian.
14616 (ppc64_sysv_abi_return_value_base): Likewise.
14617 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14618 (dfp_pseudo_register_write): Likewise.
14620 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14622 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14623 offset on little-endian when passing _Decimal32.
14624 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14626 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14628 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14629 of the overlapped FP register within the VSX register on little-
14631 (efpr_pseudo_register_write): Likewise.
14633 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14635 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14636 offset on little-endian when passing small structures.
14638 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14640 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14641 (struct ppc64_sysv_argpos): New data structure.
14642 (ppc64_sysv_abi_push_float): Remove.
14643 (ppc64_sysv_abi_push_val): New function.
14644 (ppc64_sysv_abi_push_integer): Likewise.
14645 (ppc64_sysv_abi_push_freg): Likewise.
14646 (ppc64_sysv_abi_push_vreg): Likewise.
14647 (ppc64_sysv_abi_push_param): Likewise.
14648 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14649 (ppc64_sysv_abi_return_value_base): New function.
14650 (ppc64_sysv_abi_return_value): Refactor to use it.
14652 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14654 * NEWS: Document new target powerpc64le-*-linux*.
14656 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14658 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14659 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14661 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14662 register set used in ELF core dumps. Add floating-point register set.
14664 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14666 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14667 dwarf2_to_gdb[] table using symbolic constants. Adjust
14668 penultimate entry from number representing the PC register
14669 to symbolic constant representing the MDR register. Add
14670 constant for the PC register to the end of the table.
14672 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14674 * bsd-kvm.c: Include <sys/param.h>
14676 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14678 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14680 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14682 * ada-lang.h (clear_ada_sym_cache): Delete.
14684 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14686 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14688 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14690 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14691 the sigreturn register save area only if the syscall is
14694 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14696 * valops.c (value_slice): Minor reformatting.
14698 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14700 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14702 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14704 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14705 New static globals.
14706 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14707 (ada_ignore_descriptive_types_p): New static global.
14708 (find_parallel_type_by_descriptive_type): Return immediately
14709 if ada_ignore_descriptive_types_p is set.
14710 (_initialize_ada_language): Register new commands "maintenance
14711 set ada", "maintenance show ada", "maintenance set ada
14712 ignore-descriptive-types" and "maintenance show ada
14713 ignore-descriptive-types".
14714 * NEWS: Add entry for new "maint ada set/show
14715 ignore-descriptive-types" commands.
14717 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14719 * record-btrace.c (record_btrace_close): Call btrace_teardown
14722 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14724 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14727 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14729 * ada-typeprint (type_is_full_subrange_of_target_type):
14731 (print_range): Add parameter bounds_prefered_p. If not set,
14732 try printing range types using the name of their base type.
14733 (print_range_type): Add parameter bounds_prefered_p.
14734 Use it in call to print_range.
14735 (print_array_type, ada_print_type): Update calls to print_range
14736 and print_range_type.
14738 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14740 * ada-typeprint.c (print_array_type, print_choices, print_range)
14741 (print_range_bound, print_dynamic_range_bound, print_range_type):
14742 Remove declaration.
14744 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14746 * ada-typeprint.c (print_range): Add missing empty line
14747 after local declaration.
14749 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14751 * ada-valprint.c (print_optional_low_bound): Get index_type's
14752 target type for as long as it is a TYPE_CODE_RANGE.
14754 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14756 * procfs.c (procfs_make_note_section): Remove assertion and
14757 associated comment.
14759 2014-01-24 Yao Qi <yao@codesourcery.com>
14761 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14762 * corelow.c (get_core_siginfo): Likewise.
14764 2014-01-24 Yao Qi <yao@codesourcery.com>
14766 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14767 ULONGEST. Don't check 'len' is negative.
14768 (remote_write_bytes): Change type of 'len' to ULONGEST.
14770 2014-01-23 Tom Tromey <tromey@redhat.com>
14773 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14774 Handle exception from frame.block.
14775 (FrameVars.fetch_frame_locals): Likewise.
14777 2014-01-23 Tom Tromey <tromey@redhat.com>
14780 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14781 on a NULL pointer. Move "goto error" to correct place.
14783 2014-01-23 Tom Tromey <tromey@redhat.com>
14786 * python/py-framefilter.c (apply_frame_filter): Call
14787 ensure_python_env after computing gdbarch.
14789 2014-01-23 Yao Qi <yao@codesourcery.com>
14791 * target.c (raw_memory_xfer_partial): Change argument type
14792 from void * to gdb_byte *.
14793 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14795 2014-01-22 Doug Evans <dje@google.com>
14797 New gdbserver option --debug-format=timestamp.
14798 * NEWS: Mention it.
14800 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14802 * syscalls/s390x-linux.xml: New file.
14803 * syscalls/s390-linux.xml: New file.
14804 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14805 (XML_SYSCALL_FILENAME_S390X): Likewise.
14806 (op_svc): New enum value for SVC opcode.
14807 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14808 (s390_linux_get_syscall_number): New function.
14809 (s390_gdbarch_init): Register '*get_syscall_number' and the
14810 syscall xml file name.
14811 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14812 "s390-linux.xml" and "s390x-linux.xml".
14813 * NEWS: Announce new feature.
14815 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14817 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14819 2014-01-22 Pedro Alves <palves@redhat.com>
14821 * xtensa-config.c: Include defs.h.
14823 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14825 * common/common-utils.h: Add "ARI:" comment beside __func__
14828 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14830 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14831 documentation a bit.
14833 2014-01-21 Roland McGrath <mcgrathr@google.com>
14835 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14836 * configure: Regenerate.
14837 * aclocal.m4: Regenerate.
14838 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14839 New substituted variables.
14840 (install-strip): New target.
14841 (INSTALL_SCRIPT): New substituted variable.
14842 (FLAGS_TO_PASS): Add it.
14843 (install-only): Use $(INSTALL_SCRIPT) rather than
14844 $(INSTALL_PROGRAM) for gcore.
14846 2014-01-20 Tom Tromey <tromey@redhat.com>
14848 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14851 2014-01-20 Tom Tromey <tromey@redhat.com>
14853 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14854 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14855 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14856 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14857 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14858 (struct cmd_list_element) <flags>: Remove.
14859 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14860 doc_allocated>: New fields.
14861 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14863 * maint.c (maintenance_do_deprecate): Update.
14864 * top.c (execute_command): Update.
14866 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14868 * xtensa-linux-nat.c: Include asm/ptrace.h.
14870 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14872 * Makefile.in (SFILES): Add d-support.c.
14873 (COMMON_OBS): Add d-support.o.
14874 * d-lang.h (d_parse_symbol): Add comment, now defined in
14876 * d-lang.c (parse_call_convention)
14877 (parse_attributes, parse_function_types)
14878 (parse_function_args, parse_type, parse_identifier)
14879 (call_convention_p, d_parse_symbol): Move functions to ...
14880 * d-support.c: ... New file.
14882 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14884 * d-lang.h (d_parse_symbol): Add declaration.
14885 * d-lang.c (extract_identifiers)
14886 (extract_type_info): Remove functions.
14887 (parse_call_convention, parse_attributes)
14888 (parse_function_types, parse_function_args)
14889 (parse_type, parse_identifier, call_convention_p)
14890 (d_parse_symbol): New functions.
14891 (d_demangle): Use d_parse_symbol to demangle D symbols.
14893 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14895 * d-lang.h (struct builtin_d_type): New data type.
14896 (builtin_d_type): Add declaration.
14897 * d-lang.c (d_language_arch_info, build_d_types)
14898 (builtin_d_type): New functions.
14899 (enum d_primitive_types): New data type.
14900 (d_language_defn): Change c_language_arch_info to
14901 d_language_arch_info.
14902 (d_type_data): New static variable.
14903 (_initialize_d_language): Initialize d_type_data.
14905 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14907 * d-lang.h (d_main_name): Add declaration.
14908 * d-lang.c (d_main_name): New function.
14909 * symtab.c (find_main_name): Add call to d_main_name.
14911 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14913 * d-lang.c (d_language_defn): Change macro_expansion_c to
14914 macro_expansion_no.
14916 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14918 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14920 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14922 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14923 gdb_exception" declaration.
14924 * remote.c (getpkt_or_notif_sane): Likewise.
14926 2014-01-17 Doug Evans <dje@google.com>
14928 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14929 function, contents of dirnames_to_char_ptr_vec_append moved here.
14930 (delim_string_to_char_ptr_vec): New function.
14931 (dirnames_to_char_ptr_vec_append): Rewrite.
14932 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14934 2014-01-17 Doug Evans <dje@google.com>
14936 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14938 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14939 #include "common-utils.h".
14940 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14941 * common/vec.h (VEC_ASSERT_PASS): Update.
14942 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14943 (MACH_CHECK_ERROR): Update.
14945 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14947 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14949 * gdbarch.h: Regenerate.
14951 2014-01-16 Tom Tromey <tromey@redhat.com>
14953 * value.c (struct value) <regnum>: Move earlier.
14955 2014-01-16 Tom Tromey <tromey@redhat.com>
14957 * remote.c (extended_remote_create_inferior): Rename from
14958 extended_remote_create_inferior_1. Add "ops" argument. Remove
14959 old implementation.
14961 2014-01-16 Pedro Alves <palves@redhat.com>
14963 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14964 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14967 2014-01-16 Doug Evans <dje@google.com>
14969 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14971 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14973 * btrace.h (btrace_thread_flag): New.
14974 (struct btrace_thread_info) <flags>: New.
14975 * record-btrace.c (record_btrace_resume_thread)
14976 (record_btrace_find_thread_to_move, btrace_step_no_history)
14977 (btrace_step_stopped, record_btrace_start_replaying)
14978 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14979 (record_btrace_find_resume_thread): New.
14980 (record_btrace_resume, record_btrace_wait): Extend.
14981 (record_btrace_can_execute_reverse): New.
14982 (record_btrace_open): Fail in non-stop mode.
14983 (record_btrace_set_replay): Split into this, ...
14984 (record_btrace_stop_replaying): ... this, ...
14985 (record_btrace_clear_histories): ... and this.
14986 (init_record_btrace_ops): Init to_can_execute_reverse.
14987 * NEWS: Announce it.
14989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14991 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14992 (forward_target_decr_pc_after_break)
14993 (target_decr_pc_after_break): New.
14994 * target.c (forward_target_decr_pc_after_break)
14995 (target_decr_pc_after_break): New.
14996 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14997 instead of gdbarch_decr_pc_after_break.
14998 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14999 instead of gdbarch_decr_pc_after_break.
15000 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15001 instead of gdbarch_decr_pc_after_break.
15002 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15003 instead of gdbarch_decr_pc_after_break.
15004 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15005 instead of gdbarch_decr_pc_after_break.
15006 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15007 instead of gdbarch_decr_pc_after_break.
15009 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15011 * btrace.c: Include regcache.h.
15012 (btrace_add_pc): New.
15013 (btrace_enable): Call btrace_add_pc.
15014 (btrace_is_empty): New.
15015 * btrace.h (btrace_is_empty): New.
15016 * record-btrace.c (require_btrace, record_btrace_info): Call
15019 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15021 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15022 Support delta reads.
15023 (linux_disable_btrace): Change return type.
15024 * common/linux-btrace.h (linux_read_btrace): Change parameters
15025 and return type to allow error reporting. Update users.
15026 (linux_disable_btrace): Change return type. Update users.
15027 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15029 (btrace_error): New.
15030 (btrace_block) <begin>: Comment on BEGIN == 0.
15031 * btrace.c (btrace_compute_ftrace): Start from the end of
15033 (btrace_stitch_trace, btrace_clear_history): New.
15034 (btrace_fetch): Read delta trace, return if replaying.
15035 (btrace_clear): Move clear history code to btrace_clear_history.
15036 (parse_xml_btrace): Throw an error if parsing failed.
15037 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15038 and return type to allow error reporting.
15039 (target_read_btrace): Change parameters and return type to allow
15041 * target.c (target_read_btrace): Update.
15042 * remote.c (remote_read_btrace): Support delta reads. Pass
15044 * NEWS: Announce it.
15046 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15048 * record.h (record_btrace_frame_unwind)
15049 (record_btrace_tailcall_frame_unwind): New declarations.
15050 * dwarf2-frame: Include record.h
15051 (dwarf2_frame_cfa): Throw an error for btrace frames.
15052 * record-btrace.c: Include hashtab.h.
15053 (btrace_get_bfun_name): New.
15054 (btrace_call_history): Call btrace_get_bfun_name.
15055 (struct btrace_frame_cache): New.
15057 (bfcache_hash, bfcache_eq, bfcache_new): New.
15058 (btrace_get_frame_function): New.
15059 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15060 (record_btrace_frame_this_id): Compute own id.
15061 (record_btrace_frame_prev_register): Provide PC, throw_error
15062 for all other registers.
15063 (record_btrace_frame_sniffer): Detect btrace frames.
15064 (record_btrace_tailcall_frame_sniffer): New.
15065 (record_btrace_frame_dealloc_cache): New.
15066 (record_btrace_frame_unwind): Add new functions.
15067 (record_btrace_tailcall_frame_unwind): New.
15068 (_initialize_record_btrace): Allocate cache.
15069 * btrace.c (btrace_clear): Call reinit_frame_cache.
15070 * NEWS: Announce it.
15072 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15074 * record-btrace.c (record_btrace_set_replay)
15075 (record_btrace_goto_begin, record_btrace_goto_end)
15076 (record_btrace_goto): New.
15077 (init_record_btrace_ops): Initialize them.
15078 * NEWS: Announce it.
15080 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15082 * record-btrace.c (record_btrace_find_new_threads)
15083 (record_btrace_thread_alive): New.
15084 (init_record_btrace_ops): Initialize to_find_new_threads and
15087 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15089 * record-btrace.c (record_btrace_resume): New.
15090 (record_btrace_wait): New.
15091 (init_record_btrace_ops): Initialize to_wait and to_resume.
15093 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15095 * record-btrace.c (record_btrace_xfer_partial)
15096 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15097 (record_btrace_allow_memory_access): New.
15098 (init_record_btrace_ops): Initialize new methods.
15099 * target.c (raw_memory_xfer_partial): Bail out if target reports
15100 that this memory is not available.
15102 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15104 * target.h (target_ops) <to_insert_breakpoint>
15105 <to_remove_breakpoint>: Add target_ops parameter.
15106 (forward_target_insert_breakpoint): New.
15107 (forward_target_remove_breakpoint): New.
15108 (memory_remove_breakpoint, memory_insert_breakpoint):
15109 Add target_ops parameter.
15110 * target.c (target_insert_breakpoint): Split into this and ...
15111 (forward_target_insert_breakpoint): ... this.
15112 (target_remove_breakpoint): Split into this and ...
15113 (forward_target_remove_breakpoint): ... this.
15114 (debug_to_insert_breakpoint): Add target_ops parameter.
15115 Call forward_target_insert_breakpoint.
15116 (debug_to_remove_breakpoint): Add target_ops parameter.
15117 Call forward_target_remove_breakpoint.
15118 (update_current_target): Do not inherit or default to_insert_breakpoint
15119 and to_remove_breakpoint.
15120 * corelow.c (ignore): Add target_ops parameter.
15121 * exec.c (ignore): Add target_ops parameter.
15122 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15123 Add target_ops parameter.
15124 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15125 Add target_ops parameter.
15126 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15127 Add target_ops parameter.
15128 * record-full.c (record_full_beneath_to_insert_breakpoint)
15129 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15130 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15131 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15132 (record_full_core_remove_breakpoint): Add target_ops parameter.
15134 (record_full_beneath_to_insert_breakpoint_ops)
15135 (record_full_beneath_to_remove_breakpoint_ops)
15136 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15137 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15138 tmp_to_remove_breakpoint_ops,
15139 record_full_beneath_to_insert_breakpoint_ops, and
15140 record_full_beneath_to_remove_breakpoint_ops.
15141 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15142 (m32r_remove_breakpoint): Add target_ops parameter.
15143 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15144 Add target_ops parameter.
15145 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15146 Add target_ops parameter.
15148 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15149 Markus Metzger <markus.t.metzger@intel.com>
15151 * record-btrace.c: Include frame-unwind.h.
15152 (record_btrace_frame_unwind_stop_reason)
15153 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15154 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15156 (init_record_btrace_ops): Install it.
15158 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15160 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15163 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15165 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15168 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15170 * frame-unwind.c: Include target.h.
15171 (frame_unwind_try_unwinder): New function with code from ...
15172 (frame_unwind_find_by_frame): ... here. New variable
15173 unwinder_from_target, call also target_get_unwinder)
15174 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15175 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15176 * target.h (struct target_ops): New fields to_get_unwinder and
15177 to_get_tailcall_unwinder.
15178 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15180 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15182 * record-btrace.c (record_btrace_fetch_registers)
15183 (record_btrace_store_registers)
15184 (record_btrace_to_prepare_to_store): New.
15185 (init_record_btrace_ops): Add the above.
15187 2014-01-16 Tom Tromey <tromey@redhat.com>
15189 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15190 * target.h (struct target_ops) <to_prepare_to_store>: Add
15192 (target_prepare_to_store): Add argument.
15193 * target.c (debug_to_prepare_to_store): Add argument.
15194 (update_current_target): Update.
15195 * remote.c (remote_prepare_to_store): Add 'self' argument.
15196 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15197 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15198 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15199 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15201 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15202 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15203 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15204 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15205 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15207 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15209 * btrace.h (replay) <replay>: New.
15210 (btrace_is_replaying): New.
15211 * btrace.c (btrace_clear): Free replay iterator.
15212 (btrace_is_replaying): New.
15213 * record-btrace.c (record_btrace_is_replaying): New.
15214 (record_btrace_info): Print insn number if replaying.
15215 (record_btrace_insn_history): Start at replay position.
15216 (record_btrace_call_history): Start at replay position.
15217 (init_record_btrace_ops): Init to_record_is_replaying.
15219 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15221 * record-btrace.c (record_btrace_insn_history_range): Include
15223 (record_btrace_insn_history_from): Adjust range.
15224 (record_btrace_call_history_range): Include
15226 (record_btrace_call_history_from): Adjust range.
15227 * NEWS: Announce changes.
15229 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15231 * record.h (enum record_print_flag)
15232 <record_print_indent_calls>: New.
15233 * record.c (get_call_history_modifiers): Recognize /c modifier.
15234 (_initialize_record): Document /c modifier.
15235 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15236 Reorder fields. Optionally indent the function name. Update
15238 * NEWS: Announce changes.
15240 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15242 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15244 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15246 * btrace.c (ftrace_new_function): Start counting at one.
15247 * record-btrace.c (record_btrace_info): Adjust number of calls
15249 * NEWS: Announce it.
15251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15253 * record-btrace.c (btrace_call_history_insn_range): Print
15254 insn range as [begin, end].
15256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15258 * btrace.h (struct btrace_func_link): New.
15259 (enum btrace_function_flag): New.
15260 (struct btrace_inst): Rename to ...
15261 (struct btrace_insn): ...this. Update all users.
15262 (struct btrace_func) <ibegin, iend>: Remove.
15263 (struct btrace_func_link): New.
15264 (struct btrace_func): Rename to ...
15265 (struct btrace_function): ...this. Update all users.
15266 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15267 (number, level, flags>: New.
15268 (struct btrace_insn_iterator): Rename to ...
15269 (struct btrace_insn_history): ...this.
15271 (struct btrace_insn_iterator, btrace_call_iterator): New.
15272 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15273 (struct btrace_target_info) <begin, end, level>
15274 <insn_history, call_history>: New.
15275 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15276 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15277 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15278 (btrace_call_number, btrace_call_begin, btrace_call_end)
15279 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15280 (btrace_find_function_by_number, btrace_set_insn_history)
15281 (btrace_set_call_history): New.
15282 * btrace.c (btrace_init_insn_iterator)
15283 (btrace_init_func_iterator, compute_itrace): Remove.
15284 (ftrace_print_function_name, ftrace_print_filename)
15285 (ftrace_skip_file): Change
15286 parameter to const.
15287 (ftrace_init_func): Remove.
15288 (ftrace_debug): Use new btrace_function fields.
15289 (ftrace_function_switched): Also consider gaining and
15290 losing symbol information).
15291 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15292 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15293 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15295 (ftrace_new_function): Move. Remove debug print.
15296 (ftrace_update_lines, ftrace_update_insns): New.
15297 (ftrace_update_function): Check for call, ret, and jump.
15298 (compute_ftrace): Renamed to ...
15299 (btrace_compute_ftrace): ...this. Rewritten to compute call
15301 (btrace_fetch, btrace_clear): Updated.
15302 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15303 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15304 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15305 (btrace_call_number, btrace_call_begin, btrace_call_end)
15306 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15307 (btrace_find_function_by_number, btrace_set_insn_history)
15308 (btrace_set_call_history): New.
15309 * record-btrace.c (require_btrace): Use new btrace thread
15311 (record_btrace_info, btrace_insn_history)
15312 (record_btrace_insn_history, record_btrace_insn_history_range):
15313 Use new btrace thread info fields and new iterator.
15314 (btrace_func_history_src_line): Rename to ...
15315 (btrace_call_history_src_line): ...this. Use new btrace
15316 thread info fields.
15317 (btrace_func_history): Rename to ...
15318 (btrace_call_history): ...this. Use new btrace thread info
15319 fields and new iterator.
15320 (record_btrace_call_history, record_btrace_call_history_range):
15321 Use new btrace thread info fields and new iterator.
15323 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15325 * frame.h (frame_id_build_unavailable_stack_special): New.
15326 * frame.c (frame_id_build_unavailable_stack_special): New.
15328 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15330 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15331 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15332 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15334 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15335 (i386_insn_is_jump, i386_jmp_p): New.
15336 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15337 insn_is_jump to gdbarch.
15338 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15339 * gdbarch.h: Regenerated.
15340 * gdbarch.c: Regenerated.
15341 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15342 (default_insn_is_jump): New.
15343 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15344 (default_insn_is_jump): New.
15346 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15348 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15350 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15351 (btrace_read_type) <btrace_read_new>: Change to ...
15352 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15354 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15356 * common/linux-btrace.c (linux_read_btrace): Free trace from
15357 previous iteration.
15359 2014-01-15 Doug Evans <dje@google.com>
15361 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15364 2014-01-15 Tom Tromey <tromey@redhat.com>
15366 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15367 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15368 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15369 (set_objfile_main_name): New function.
15370 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15371 language_of_main>: New fields.
15372 (set_objfile_main_name): Declare.
15373 * symtab.c (find_main_name): Loop over objfiles to find the main
15375 (set_main_name): Now static.
15376 (get_main_info): Add comment.
15377 * symtab.h (set_main_name): Don't declare.
15379 2014-01-15 Tom Tromey <tromey@redhat.com>
15381 * symtab.c (main_progspace_key): New global.
15382 (struct main_info): New.
15383 (name_of_main, language_of_main): Remove.
15384 (get_main_info, main_info_cleanup): New function.
15385 (set_main_name, main_name, main_language): Use get_main_info.
15386 (_initialize_symtab): Initialize main_progspace_key.
15388 2014-01-15 Tom Tromey <tromey@redhat.com>
15390 * dbxread.c (process_one_symbol): Update.
15391 * dwarf2read.c (read_partial_die): Update.
15392 * symfile.c (set_initial_language): Call main_language.
15393 * symtab.c (language_of_main): Now static.
15394 (set_main_name): Add 'lang' parameter.
15395 (find_main_name): Update.
15396 (main_language): New function.
15397 (symtab_observer_executable_changed): Update.
15398 * symtab.h (set_main_name): Update.
15399 (language_of_main): Remove.
15400 (main_language): Declare.
15402 2014-01-15 Tom Tromey <tromey@redhat.com>
15404 * symfile.c (init_entry_point_info): Use new "initialized" field.
15406 * objfiles.h (struct entry_point) <initialized>: New field.
15407 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15408 (struct objfile) <ei>: ...here. Remove.
15409 * objfiles.c (entry_point_address_query): Update.
15411 2014-01-15 Tom Tromey <tromey@redhat.com>
15413 * objfiles.c (entry_point_address_query): Relocate entry point
15415 (objfile_relocate1): Do not relocate entry point address.
15416 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15417 <the_bfd_section_index>: New field.
15418 * symfile.c (init_entry_point_info): Find the entry point's
15421 2014-01-15 Tom Tromey <tromey@redhat.com>
15423 * solib-frv.c (enable_break): Use entry_point_address_query.
15425 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15427 * NEWS: Add note on improved process record-replay on
15428 arm*-linux* targets.
15430 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15432 * arm-tdep.c (enum arm_record_result): New enum.
15433 (arm_record_unsupported_insn): New function.
15434 (arm_record_coproc_data_proc): Removed.
15435 (thumb2_record_ld_st_multiple): New function.
15436 (thumb2_record_ld_st_dual_ex_tbb): New function.
15437 (thumb2_record_data_proc_sreg_mimm): New function.
15438 (thumb2_record_ps_dest_generic): New function.
15439 (thumb2_record_branch_misc_cntrl): New function.
15440 (thumb2_record_str_single_data): New function.
15441 (thumb2_record_ld_mem_hints): New function.
15442 (thumb2_record_ld_word): New function.
15443 (thumb2_record_lmul_lmla_div): New function.
15444 (thumb2_record_decode_insn_handler): New function.
15445 (decode_insn): Add thumb32 instruction handlers.
15447 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15449 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15450 (struct arm_linux_record_tdep): Declare.
15451 (arm_canonicalize_syscall): New function.
15452 (arm_all_but_pc_registers_record): New function.
15453 (arm_linux_syscall_record): New function.
15454 (arm_linux_init_abi): Add syscall recording constructs.
15455 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15456 decoding. (arm_record_coproc_data_proc): Update arm syscall
15458 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15459 <arm_syscall_record>: New field.
15460 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15463 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15465 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15466 register for push instruction recording.
15468 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15470 * arm-tdep.c (thumb_record_misc): Update to correct logical
15471 error while recording ldm, ldmia and pop instructions.
15473 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15475 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15477 2014-01-15 Pedro Alves <palves@redhat.com>
15479 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15480 (go32_resume, go32_fetch_registers, store_register)
15481 (go32_store_registers, go32_prepare_to_store)
15482 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15483 (go32_create_inferior, go32_can_run, go32_terminal_init)
15484 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15487 2014-01-15 Tom Tromey <tromey@redhat.com>
15489 * target.h (async_callback_ftype): New typedef.
15490 (struct target_ops) <to_async>: Use it.
15492 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15494 * python/py-value.c (get_field_type): Remove unnecessary curly
15495 braces for single-statement if block.
15497 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15499 * python/py-type.c (convert_field): Add missing empty line
15500 after declarations.
15502 2014-01-14 Doug Evans <dje@google.com>
15504 * symfile.h (expand_symtabs_matching): Renamed from
15505 expand_partial_symbol_names. Update prototype.
15506 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15507 * symfile.c (expand_symtabs_matching): Renamed from
15508 expand_partial_symbol_names. New args file_matcher, kind.
15509 Rename arg fun to symbol_matcher.
15510 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15511 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15512 ada_expand_partial_symbol_name.
15513 (ada_make_symbol_completion_list): Update to call
15514 expand_symtabs_matching.
15515 (ada_add_global_exceptions): Call expand_symtabs_matching.
15516 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15517 call map_symbol_filenames.
15518 * symtab.c (sources_info): Update to call map_symbol_filenames.
15519 (search_symbols): Call expand_symtabs_matching.
15520 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15521 (default_make_symbol_completion_list_break_on): Update to call
15522 expand_symtabs_matching.
15523 (make_source_files_completion_list): Update to call
15524 map_symbol_filenames.
15526 2014-01-14 Doug Evans <dje@google.com>
15528 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15529 (expand_symtabs_symbol_matcher_ftype): New typedef.
15530 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15531 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15532 * symfile.c (expand_partial_symbol_names): Update to use
15533 expand_symtabs_symbol_matcher_ftype.
15534 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15535 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15536 Arg name_matcher renamed to symbol_matcher.
15537 * psymtab.c (recursively_search_psymtabs): Update to use
15538 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15540 (expand_symtabs_matching_via_partial): Update to use
15541 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15542 Arg name_matcher renamed to symbol_matcher.
15544 2014-01-14 Doug Evans <dje@google.com>
15546 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15547 (map_partial_symbol_filenames): Ditto.
15548 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15549 (map_partial_symbol_filenames): Ditto.
15550 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15551 (map_partial_symbol_filenames): Ditto.
15552 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15553 (map_partial_symbol_filenames): Ditto.
15554 * symtab.c: Delete #include "psymtab.h".
15556 2014-01-14 Pedro Alves <palves@redhat.com>
15557 Tom Tromey <tromey@redhat.com>
15559 * infrun.c (use_displaced_stepping): Use find_record_target
15560 instead of RECORD_IS_USED.
15561 (adjust_pc_after_break): Use record_full_is_used instead of
15563 * record-btrace.c (record_btrace_open): Call record_preopen
15564 instead of checking RECORD_IS_USED.
15565 * record-full.c (record_full_shortname)
15566 (record_full_core_shortname): New globals.
15567 (record_full_is_used): New function.
15568 (find_full_open): Call record_preopen instead of checking
15570 (init_record_full_ops): Set the target's shortname to
15571 record_full_shortname.
15572 (init_record_full_core_ops): Set the target's shortname to
15573 record_full_core_shortname.
15574 * record-full.h (record_full_is_used): Declare.
15575 * record.c (find_record_target): Make extern.
15576 (record_preopen): New function.
15577 * record.h (RECORD_IS_USED): Delete macro.
15578 (find_record_target, record_preopen): Declare functions.
15580 2014-01-14 Yao Qi <yao@codesourcery.com>
15582 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15583 'len''s type to ULONGEST.
15584 (core_xfer_shared_libraries_aix): Likewise.
15585 * gdbarch.c, gdbarch.h: Regenerated.
15586 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15587 Change type of 'len' to ULONGEST.
15588 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15589 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15591 2014-01-14 Yao Qi <yao@codesourcery.com>
15593 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15594 type of 'len' to ULONGEST.
15595 (linux_xfer_osdata_processgroups): Likewise.
15596 (linux_xfer_osdata_threads): Likewise.
15597 (linux_xfer_osdata_fds): Likewise.
15598 (linux_xfer_osdata_isockets): Likewise.
15599 (linux_xfer_osdata_shm): Likewise.
15600 (linux_xfer_osdata_sem): Likewise.
15601 (linux_xfer_osdata_msg): Likewise.
15602 (linux_common_xfer_osdata): Likewise.
15603 (struct osdata_type) <getter>: Likewise.
15604 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15607 2014-01-14 Yao Qi <yao@codesourcery.com>
15609 * target.h (target_xfer_partial_ftype): Update.
15610 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15612 * aix-thread.c (aix_thread_xfer_partial): Change type of
15613 argument 'len' to ULONGEST.
15614 * auxv.c (procfs_xfer_auxv): Likewise.
15615 (ld_so_xfer_auxv): Likewise.
15616 (memory_xfer_auxv): Likewise.
15617 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15618 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15619 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15620 * corelow.c (core_xfer_partial): Likewise.
15621 * ctf.c (ctf_xfer_partial): Likewise.
15622 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15624 (darwin_read_dyld_info): Likewise.
15625 (darwin_xfer_partial): Likewise.
15626 * exec.c (section_table_xfer_memory_partial): Likewise.
15627 (exec_xfer_partial): Likewise.
15628 * exec.h (section_table_xfer_memory_partial): Update
15630 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15631 instead of plongest.
15632 (gnu_xfer_partial): Likewise.
15633 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15634 (ia64_hpux_xfer_solib_got): Likewise.
15635 (ia64_hpux_xfer_partial): Likewise.
15636 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15637 * inf-ptrace.c (inf_ptrace_xfer_partial):
15638 * inf-ttrace.c (inf_ttrace_xfer_partial):
15639 * linux-nat.c (linux_xfer_siginfo): Likewise.
15640 (linux_nat_xfer_partial): Likewise.
15641 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15642 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15643 * monitor.c (monitor_xfer_memory): Likewise.
15644 (monitor_xfer_partial): Likewise.
15645 * procfs.c (procfs_xfer_partial): Likewise.
15646 * record-full.c (record_full_xfer_partial): Likewise.
15647 (record_full_core_xfer_partial): Likewise.
15648 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15649 instead of plongest.
15650 (gdbsim_xfer_partial): Likewise.
15651 * remote.c (remote_xfer_partial): Likewise.
15652 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15653 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15655 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15656 (rs6000_xfer_shared_libraries): Likewise.
15657 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15658 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15659 (sparc_xfer_partial): Likewise.
15660 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15661 (spu_xfer_partial): Likewise.
15662 * spu-multiarch.c (spu_xfer_partial): Likewise.
15663 * target.c (target_read_live_memory): Likewise.
15664 (memory_xfer_live_readonly_partial): Likewise.
15665 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15666 (target_xfer_partial, default_xfer_partial): Likewise.
15667 (current_xfer_partial): Likewise.
15668 * tracepoint.c (tfile_xfer_partial): Likewise.
15669 * windows-nat.c (windows_xfer_memory): Likewise. Call
15670 pulongest instead of plongest.
15671 (windows_xfer_partial): Likewise.
15672 (windows_xfer_shared_libraries): Likewise.
15674 2014-01-14 Yao Qi <yao@codesourcery.com>
15676 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15677 target_xfer_partial_ftype.
15679 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15683 * valops.c (value_struct_elt_bitpos): New function
15684 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15685 object to 'None' if the field name is an empty string ("").
15686 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15687 attribute to look for a field when 'name' is 'None'.
15688 (get_field_type): New function
15690 2014-01-13 Doug Evans <dje@google.com>
15693 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15694 (try_open_dwop_file): Ditto.
15695 * gdb_bfd.c: #include "vec.h".
15696 (bfdp): New typedef.
15697 (struct gdb_bfd_data): New member included_bfds.
15698 (gdb_bfd_unref): Unref all included bfds.
15699 (gdb_bfd_record_inclusion): New function.
15700 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15702 2014-01-13 Tom Tromey <tromey@redhat.com>
15704 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15706 2014-01-13 Tom Tromey <tromey@redhat.com>
15708 * defs.h (use_windows): Remove.
15709 * gdb.c (main): Update.
15710 * main.c (captured_main, gdb_main): Update.
15711 * main.h (struct captured_main_args) <use_windows>: Remove.
15712 * top.c (use_windows): Remove.
15714 2014-01-13 Tom Tromey <tromey@redhat.com>
15716 * defs.h (deprecated_flush_hook): Remove.
15718 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15721 * linux-thread-db.c (try_thread_db_load): Add parameter
15722 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15723 (try_thread_db_load_from_pdir_1): Move it there from here.
15724 (try_thread_db_load_from_sdir): Update caller.
15725 (try_thread_db_load_from_dir): Move it there from here.
15727 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15729 * regformats/regdat.sh: Always rewrite the register file.
15731 2014-01-13 Pedro Alves <palves@redhat.com>
15733 * Makefile.in (CHECK_HEADERS): New variable.
15734 (check-headers:): New rule.
15736 2014-01-13 Tom Tromey <tromey@redhat.com>
15738 * cli/cli-setshow.c (do_set_command): Update.
15739 * defs.h (deprecated_set_hook): Remove.
15740 * top.c (deprecated_set_hook): Remove.
15742 2014-01-13 Pedro Alves <palves@redhat.com>
15744 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15745 the tracepoint if the PC is a pseudo-register.
15747 2014-01-13 Tom Tromey <tromey@redhat.com>
15749 * defs.h (XCALLOC): Remove.
15750 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15751 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15752 * dwarf2loc.c (allocate_piece_closure): Likewise.
15753 * elfread.c (elf_symfile_segments): Likewise.
15754 (elf_symfile_segments): Likewise.
15755 * gdbtypes.c (copy_type_recursive): Likewise.
15756 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15757 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15758 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15760 * mt-tdep.c (mt_gdbarch_init): Likewise.
15761 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15763 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15764 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15765 * registry.c (registry_alloc_data): Likewise.
15766 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15767 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15768 * serial.c (serial_fdopen_ops): Likewise.
15769 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15771 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15772 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15775 2014-01-13 Tom Tromey <tromey@redhat.com>
15777 * defs.h (XMALLOC): Remove.
15778 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15779 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15780 * cli-out.c (struct ui_out *): Likewise.
15781 * cli/cli-dump.c (add_dump_command): Likewise.
15782 (add_dump_command): Likewise.
15783 * complaints.c (get_complaints): Likewise.
15784 (find_complaint): Likewise.
15785 * dwarf2-frame.c (execute_cfa_program): Likewise.
15786 * dwarf2read.c (abbrev_table_read_table): Likewise.
15787 * gdbarch.sh: Likewise.
15788 * gdbarch.c: Rebuild.
15789 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15790 * interps.c (interp_new): Likewise.
15791 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15792 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15793 * mi/mi-console.c (mi_console_file_new): Likewise.
15794 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15795 * mi/mi-out.c (mi_out_new): Likewise.
15796 * mi/mi-parse.c (mi_parse): Likewise.
15797 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15798 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15799 * observer.c (xalloc_observer_list_node): Likewise.
15800 * regcache.c (regcache_xmalloc_1): Likewise.
15801 * reggroups.c (reggroup_new): Likewise.
15802 (_initialize_reggroup): Likewise.
15803 * registry.c (register_data_with_cleanup): Likewise.
15804 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15805 * ser-base.c (serial_ttystate): Likewise.
15806 * ser-mingw.c (make_pipe_state): Likewise.
15807 * ser-pipe.c (pipe_open): Likewise.
15808 * serial.c (serial_open): Likewise.
15809 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15810 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15811 (tui_alloc_win_info): Likewise.
15812 (tui_add_content_elements): Likewise.
15813 * tui/tui-file.c (tui_file_new): Likewise.
15814 * tui/tui-out.c (tui_out_new): Likewise.
15815 * ui-file.c (mem_file_new): Likewise.
15816 * ui-out.c (push_level): Likewise.
15817 (make_cleanup_ui_out_end): Likewise.
15818 (append_header_to_list): Likewise.
15819 (ui_out_new): Likewise.
15820 * user-regs.c (user_reg_add_builtin): Likewise.
15822 2014-01-13 Tom Tromey <tromey@redhat.com>
15824 * defs.h (XZALLOC): Remove.
15825 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15826 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15827 (get_ada_tasks_inferior_data): Likewise.
15828 * auto-load.c (get_auto_load_pspace_data): Likewise.
15829 * auxv.c (get_auxv_inferior_data): Likewise.
15830 * bfd-target.c (target_bfd_reopen): Likewise.
15831 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15832 (deprecated_insert_raw_breakpoint): Likewise.
15833 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15834 * corelow.c (core_open): Likewise.
15835 * darwin-nat.c (darwin_check_new_threads): Likewise.
15836 (darwin_attach_pid): Likewise.
15837 * dummy-frame.c (dummy_frame_push): Likewise.
15838 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15839 * dwarf2loc.c (allocate_piece_closure): Likewise.
15840 * elfread.c (elf_symfile_segments): Likewise.
15841 * eval.c (ptrmath_type_p): Likewise.
15842 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15843 * gdbtypes.c (alloc_type_arch): Likewise.
15844 (alloc_type_instance): Likewise.
15845 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15846 * inf-child.c (inf_child_can_use_agent): Likewise.
15847 * inflow.c (get_inflow_inferior_data): Likewise.
15848 * infrun.c (save_infcall_suspend_state): Likewise.
15849 * jit.c (jit_reader_load): Likewise.
15850 (get_jit_objfile_data): Likewise.
15851 (get_jit_program_space_data): Likewise.
15852 (jit_object_open_impl): Likewise.
15853 (jit_symtab_open_impl): Likewise.
15854 (jit_block_open_impl): Likewise.
15855 (jit_frame_sniffer): Likewise.
15856 * linux-fork.c (add_fork): Likewise.
15857 * maint.c (make_command_stats_cleanup): Likewise.
15858 * objfiles.c (get_objfile_pspace_data): Likewise.
15859 * opencl-lang.c (struct lval_closure): Likewise.
15860 * osdata.c (osdata_start_osdata): Likewise.
15861 * progspace.c (new_address_space): Likewise.
15862 (add_program_space): Likewise.
15863 * remote-sim.c (get_sim_inferior_data): Likewise.
15864 * sh-tdep.c (sh_gdbarch_init): Likewise.
15865 * skip.c (Ignore): Likewise.
15866 (skip_delete_command): Likewise.
15867 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15868 (library_list_start_library): Likewise.
15869 (solib_aix_current_sos): Likewise.
15870 * solib-darwin.c (get_darwin_info): Likewise.
15871 (darwin_current_sos): Likewise.
15872 * solib-dsbt.c (get_dsbt_info): Likewise.
15873 * solib-ia64-hpux.c (new_so_list): Likewise.
15874 (ia64_hpux_get_solib_linkage_addr): Likewise.
15875 * solib-spu.c (append_ocl_sos): Likewise.
15876 (spu_current_sos): Likewise.
15877 * solib-svr4.c (get_svr4_info): Likewise.
15878 (svr4_keep_data_in_core): Likewise.
15879 (library_list_start_library): Likewise.
15880 (svr4_default_sos): Likewise.
15881 (svr4_read_so_list): Likewise.
15882 * solib-target.c (library_list_start_library): Likewise.
15883 (solib_target_current_sos): Likewise.
15884 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15885 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15886 * symfile.c (default_symfile_segments): Likewise.
15887 * target-descriptions.c (tdesc_data_init): Likewise.
15888 (tdesc_create_reg): Likewise.
15889 (struct tdesc_type *): Likewise.
15890 (tdesc_create_vector): Likewise.
15891 (tdesc_set_struct_size): Likewise.
15892 (struct tdesc_type *): Likewise.
15893 (tdesc_free_feature): Likewise.
15894 (tdesc_create_feature): Likewise.
15895 * windows-nat.c (windows_add_thread): Likewise.
15896 (windows_make_so): Likewise.
15897 * xml-support.c (gdb_xml_body_text): Likewise.
15898 (gdb_xml_create_parser_and_cleanup): Likewise.
15899 (xml_process_xincludes): Likewise.
15900 * xml-syscall.c (allocate_syscalls_info): Likewise.
15901 (syscall_create_syscall_desc): Likewise.
15903 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15905 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15906 function, with code from i386_stap_parse_special_token.
15907 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15908 (i386_stap_parse_special_token): Move code to the two functions
15909 above; simplify it.
15911 2014-01-09 Pedro Alves <palves@redhat.com>
15912 Hui Zhu <hui@codesourcery.com>
15915 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15916 bp_err_string. Don't mark the location shlib_disabled if the
15917 error thrown wasn't a generic or memory error. Catch errors
15918 thrown while inserting breakpoints in overlayed code. Output
15919 error message of software breakpoints.
15920 * remote.c (remote_insert_breakpoint): If this breakpoint has
15921 target-side commands but this stub doesn't support Z0 packets,
15922 throw NOT_SUPPORTED_ERROR error.
15923 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15924 * target.h (target_insert_breakpoint): Extend comment.
15925 (target_insert_hw_breakpoint): Add comment.
15927 2014-01-08 Pedro Alves <palves@redhat.com>
15929 * remote.c (remote_add_thread): Add threads silently if starting
15931 (remote_notice_new_inferior): If in all-stop, and starting up,
15932 don't call notice_new_inferior.
15933 (get_current_thread): New function, factored out from ...
15934 (add_current_inferior_and_thread): ... this. Adjust.
15935 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15936 found any thread, then select the remote's current thread as GDB's
15937 current thread too.
15939 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15941 * NEWS: Create a new section for the next release branch.
15942 Rename the section of the current branch, now that it has
15945 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15947 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15948 * version.in: Bump version to 7.7.50.DATE-cvs.
15950 2014-01-08 Yao Qi <yao@codesourcery.com>
15952 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15953 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15954 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15956 2014-01-08 Yao Qi <yao@codesourcery.com>
15958 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15959 return value of bfd_get_filename to symbol_file_add_from_bfd.
15961 2014-01-08 Pierre Muller <muller@sourceware.org>
15964 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15965 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15966 to prim_record_mininal_symbol_and_info.
15967 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15968 in call to prim_record_minimal_symbol_and_info.
15969 (read_pe_exported_syms): Set index field of section_data.
15971 2014-01-07 Andrew Pinski <apinski@cavium.com>
15973 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15974 * features/aarch64.c: Regenerate.
15976 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15978 * target.c (return_null): Define.
15979 (update_current_target): Use it instead of return_zero for
15980 functions that return a pointer.
15982 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15984 * source.c (add_path): Fix check for duplicated paths in the previously
15987 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15989 * ada-lang.c: Remove duplicated include statements.
15990 * alphabsd-nat.c: Ditto.
15991 * amd64-darwin-tdep.c: Ditto.
15992 * amd64fbsd-nat.c: Ditto.
15993 * auto-load.c: Ditto.
15995 * breakpoint.c: Ditto.
15996 * dbxread.c: Ditto.
15997 * fork-child.c: Ditto.
15998 * gdb_usleep.c: Ditto.
15999 * i386-darwin-tdep.c: Ditto.
16000 * i386fbsd-nat.c: Ditto.
16002 * inferior.c: Ditto.
16003 * jv-lang.c: Ditto.
16004 * linux-nat.c: Ditto.
16005 * linux-tdep.c: Ditto.
16006 * m68kbsd-nat.c: Ditto.
16007 * m68klinux-nat.c: Ditto.
16008 * microblaze-tdep.c: Ditto.
16009 * mips-linux-tdep.c: Ditto.
16010 * mn10300-tdep.c: Ditto.
16011 * nto-tdep.c: Ditto.
16012 * opencl-lang.c: Ditto.
16014 * printcmd.c: Ditto.
16015 * regcache.c: Ditto.
16016 * remote-m32r-sdi.c: Ditto.
16018 * symfile.c: Ditto.
16020 * tilegx-linux-nat.c: Ditto.
16021 * tilegx-tdep.c: Ditto.
16022 * tracepoint.c: Ditto.
16024 * vaxbsd-nat.c: Ditto.
16025 * windows-nat.c: Ditto.
16026 * xtensa-tdep.c: Ditto.
16028 2014-01-07 Yao Qi <yao@codesourcery.com>
16030 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16032 2014-01-07 Yao Qi <yao@codesourcery.com>
16033 Joel Brobecker <brobecker@adacore.com>
16035 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16036 (pdc_write_regs): Likewise.
16037 (fetch_regs_kernel_thread): Likewise.
16038 (store_regs_kernel_thread): Likewise.
16040 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16042 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16043 tagged type objects to their actual type.
16045 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16047 * ada-valprint.c (print_field_values): Add "language" parameter.
16048 Update calls to print_field_values and print_variant_part.
16049 Pass new parameter "language" in call to val_print instead
16050 of "current_language". Replace call to ada_val_print by call
16052 (print_variant_part): Add "language" parameter.
16053 (ada_val_print_struct_union): Update call to print_field_values.
16055 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16057 * ada-valprint.c (ui_memcpy): Delete.
16058 (ada_print_floating): Update documentation. Add empty line
16059 between between function documentation and implementation.
16060 Delete variable "buffer". Use ui_file_xstrdup in place of
16061 ui_file_put. Minor adjustments following this change.
16063 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16065 * ada-valprint.c (ada_val_print_string): New function,
16066 extracted from ada_val_print_array.
16067 (ada_val_print_array): Replace extracted code by call
16068 to ada_val_print_string followed by a return. Move
16069 "else" branch to the function's top block.
16071 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16073 * ada-valprint.c (ada_val_print_array): Move implementation
16074 down. Rename parameter "offset" and "val" into "offset_aligned"
16075 and "original_value" respectively. Add parameter "offset".
16077 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16079 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16080 re-organizing the code. Change the "???" message printed
16081 when target type is a TYPE_CODE_UNDEF into
16082 "<ref to undefined type>".
16084 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16086 * ada-valprint.c (print_record): Delete, implementation inlined...
16087 (ada_val_print_struct_union): ... here. Remove call to
16088 ada_check_typedef in inlined implementation.
16090 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16092 * ada-valprint.c (ada_val_print_gnat_array): New function,
16093 extracted from ada_val_print_1;
16094 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16095 (ada_val_print_flt, ada_val_print_struct_union)
16096 (ada_val_print_ref): Likewise.
16097 (ada_val_print_1): Delete variables i and elttype.
16098 Replace extracted-out code by call to corresponding
16101 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16103 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16105 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16107 * ada-valprint.c (ada_val_print_1): Replace calls to
16108 ada_val_print_1 by calls to val_print.
16110 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16112 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16113 Update calls to self accordingly. Replace calls to c_val_print
16114 by calls to val_print.
16116 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16118 * ada-valprint.c (print_record): Delete declaration.
16119 (adjust_type_signedness, ada_val_print_1): Likewise.
16120 (ada_val_print): Move function implementation down.
16121 (print_variant_part, print_field_values, print_record):
16122 Move function implementation up.
16124 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16126 * python/py-type.c (typy_get_name): New function.
16127 (type_object_getset): Add entry for attribute "name".
16128 * NEWS: Add entry mentioning this new attribute.
16130 2014-01-07 Yao Qi <yao@codesourcery.com>
16132 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16135 2014-01-07 Yao Qi <yao@codesourcery.com>
16137 * gnu-nat.c (info_port_rights): Add qualifier const to
16140 2014-01-07 Yao Qi <yao@codesourcery.com>
16142 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16144 2014-01-07 Yao Qi <yao@codesourcery.com>
16146 * gnu-nat.c (make_inf) Update declaration.
16147 (make_inf): Make it static.
16148 (inf_set_traced): Likewise.
16149 (inf_port_to_thread, inf_task_died_status): Likewise.
16151 2014-01-07 Yao Qi <yao@codesourcery.com>
16153 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16155 2014-01-07 Yao Qi <yao@codesourcery.com>
16157 * gnu-nat.c (_initialize_gnu_nat): Declare.
16159 2014-01-07 Yao Qi <yao@codesourcery.com>
16161 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16163 (struct gdbarch_info) <byte_order>: Change type to
16165 <byte_order_for_code>: Likewise.
16166 * gdbarch.c, gdbarch.h: Regenerated.
16168 2014-01-06 Sasha Smundak <asmundak@google.com>
16170 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16172 2014-01-06 Tom Tromey <tromey@redhat.com>
16174 * doublest.c (convert_doublest_to_floatformat): Use const, not
16176 * somread.c (som_symtab_read): Likewise.
16178 2014-01-07 Hui Zhu <hui@codesourcery.com>
16180 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16181 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16182 (gdb_bfd_fopen): Ditto.
16183 (gdb_bfd_openr): Ditto.
16184 (gdb_bfd_openw): Ditto.
16185 (gdb_bfd_openr_iovec): Ditto.
16186 (gdb_bfd_fdopenr): Ditto.
16187 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16188 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16190 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16192 * symfile-mem.c (symbol_file_add_from_memory): Removed
16193 gdb_bfd_stash_filename.
16195 2014-01-03 Doug Evans <dje@google.com>
16197 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16200 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16202 Update year range in copyright notice of all files.
16204 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16206 * top.c (print_gdb_version): Set copyright year to 2014.
16208 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16210 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16212 For older changes see ChangeLog-2013.
16218 version-control: never