1 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
4 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
5 translate_register. Now public.
6 (dwarf2_compile_expr_to_ax): Update.
8 2014-12-12 Tom Tromey <tromey@redhat.com>
9 Jan Kratochvil <jan.kratochvil@redhat.com>
11 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
12 (dwarf_expr_frame_base): Update caller.
13 (dwarf_expr_frame_base_1): Rename to ...
14 (func_get_frame_base_dwarf_block): ... this and make it public.
15 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
17 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
19 2014-12-12 Tom Tromey <tromey@redhat.com>
21 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
23 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
24 dwarf2_compile_cfa_to_ax.
25 (dwarf2_compile_cfa_to_ax): Remove.
26 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
27 (dwarf2_compile_cfa_to_ax): Remove.
29 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
31 * infcall.h (call_function_by_hand_dummy): Declare.
32 * infcall.c (call_function_by_hand): Use
33 call_function_by_hand_dummy.
34 (call_function_by_hand_dummy): Rename from call_function_by_hand.
35 Add arguments. Register a destructor.
37 2014-12-12 Tom Tromey <tromey@redhat.com>
38 Jan Kratochvil <jan.kratochvil@redhat.com>
40 * osabi.h (osabi_triplet_regexp): Declare.
41 * osabi.c (struct osabi_names): New.
42 (gdb_osabi_names): Change type to struct osabi_names. Update
44 (gdbarch_osabi_name): Update.
45 (osabi_triplet_regexp): New function.
46 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
47 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
48 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
49 set_gdbarch_gnu_triplet_regexp.
50 * gdbarch.sh (gnu_triplet_regexp): New method.
51 * gdbarch.c, gdbarch.h: Rebuild.
52 * arch-utils.h (default_gnu_triplet_regexp): Declare.
53 * arch-utils.c (default_gnu_triplet_regexp): New function.
55 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
57 * arch-utils.c (default_infcall_mmap)
58 (default_gcc_target_options): New functions.
59 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
60 (GDB_MMAP_PROT_EXEC): Define.
61 (default_infcall_mmap, default_gcc_target_options): Declare.
64 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
66 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
68 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
70 (pop_dummy_frame): Call the destructor if it exists.
71 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
73 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
74 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
76 2014-12-12 Tom Tromey <tromey@redhat.com>
78 * gdbtypes.h (make_unqualified_type): Declare.
79 * gdbtypes.c (make_unqualified_type): New function.
81 2014-12-12 Tom Tromey <tromey@redhat.com>
83 * ui-file.h (ui_file_write_for_put): Declare.
84 * ui-file.c (ui_file_write_for_put): New function.
85 * mi/mi-out.c (do_write): Remove.
86 (mi_out_put): Use ui_file_write_for_put.
88 2014-12-12 Doug Evans <dje@google.com>
90 * NEWS: Mention gdb.lookup_objfile.
91 * python/python.c (GdbMethods): Add lookup_objfile.
92 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
93 * python/py-objfile.c: #include "symtab.h".
94 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
95 (objfpy_lookup_objfile_by_name): New function.
96 (objfpy_lookup_objfile_by_build_id): New function.
97 (gdbpy_lookup_objfile): New function.
99 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
101 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
102 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
103 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
105 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
108 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
110 * completer.c: Include "target.h", "reggroups.h", and
112 (reg_or_group_completer): New.
113 * completer.h (reg_or_group_completer): Declare.
114 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
115 the "info registers" and "info all-registers" commands and the
116 dbx-mode "lr" command.
118 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
120 * user-regs.c: Include "arch-utils.h", "command.h", and
122 (maintenance_print_user_registers): New.
123 (_initialize_user_regs): Register new "maint print user-registers"
125 * NEWS: Mention new GDB command "maint print user-registers".
127 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
128 Maciej W. Rozycki <macro@mips.com>
129 Pedro Alves <pedro@codesourcery.com>
131 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
132 remove `predefault' and `invalid_p' initializers.
133 (make_symbol_special): New architecture method.
134 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
135 (objfile, symbol): New declarations.
136 * arch-utils.h (default_elf_make_msymbol_special): Remove
138 (default_make_symbol_special): New prototype.
139 (default_adjust_dwarf2_addr): Likewise.
140 (default_adjust_dwarf2_line): Likewise.
141 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
142 * arch-utils.c (default_elf_make_msymbol_special): Remove
144 (default_make_symbol_special): New function.
145 (default_adjust_dwarf2_addr): Likewise.
146 (default_adjust_dwarf2_line): Likewise.
147 * dwarf2-frame.c (decode_frame_entry_1): Call
148 `gdbarch_adjust_dwarf2_addr'.
149 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
150 * dwarf2read.c (create_addrmap_from_index): Likewise.
151 (process_psymtab_comp_unit_reader): Likewise.
152 (add_partial_symbol): Likewise.
153 (add_partial_subprogram): Likewise.
154 (process_full_comp_unit): Likewise.
155 (read_file_scope): Likewise.
156 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
157 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
158 (read_call_site_scope): Likewise.
159 (dwarf2_ranges_read): Likewise.
160 (dwarf2_record_block_ranges): Likewise.
161 (read_attribute_value): Likewise.
162 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
163 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
164 * elfread.c (elf_symtab_read): Don't call
165 `gdbarch_elf_make_msymbol_special' if unset.
166 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
167 the ISA bit from the PC.
168 * mips-tdep.c (mips_unmake_compact_addr): New function.
169 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
170 address appropriately.
171 (mips_make_symbol_special): New function.
172 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
173 (mips_pc_is_mips16): Likewise.
174 (mips_pc_is_micromips): Likewise.
175 (mips_pc_isa): Likewise.
176 (mips_adjust_dwarf2_addr): New function.
177 (mips_adjust_dwarf2_line): Likewise.
178 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
179 (mips_addr_bits_remove): Likewise.
180 (mips_skip_trampoline_code): Likewise.
181 (mips_write_pc): Don't set the ISA bit.
182 (mips_eabi_push_dummy_call): Likewise.
183 (mips_o64_push_dummy_call): Likewise.
184 (mips_gdbarch_init): Install `mips_make_symbol_special',
185 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
187 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
188 target-specific symbol address adjustments.
189 * gdbarch.h: Regenerate.
190 * gdbarch.c: Regenerate.
192 2014-12-12 Yao Qi <yao@codesourcery.com>
195 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
196 'skip_pc'. Remove code skipping prologue instructions, use
197 arm_analyze_prologue instead.
198 (arm_analyze_prologue): Stop the scanning for unrecognized
199 instruction when skipping prologue.
201 2014-12-12 Yao Qi <yao@codesourcery.com>
203 * arm-tdep.c (arm_instruction_restores_sp): New function.
204 (arm_analyze_prologue): Call arm_instruction_restores_sp.
205 (arm_in_function_epilogue_p): Move code to
206 arm_instruction_restores_sp.
208 2014-12-11 Doug Evans <xdje42@gmail.com>
210 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
212 2014-12-11 Doug Evans <xdje42@gmail.com>
214 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
215 (symbol *lookup_symbol_via_quick_fns): Ditto.
216 (lookup_symbol_in_objfile): Add forward decl.
217 (lookup_global_symbol_from_objfile): Simplify, call
218 lookup_symbol_in_objfile.
220 2014-12-11 Doug Evans <xdje42@gmail.com>
222 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
224 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
227 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
228 it is marked as persistent.
230 2014-12-10 Doug Evans <xdje42@gmail.com>
232 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
233 closer to its subroutines.
235 2014-12-10 Doug Evans <xdje42@gmail.com>
237 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
239 2014-12-10 Doug Evans <xdje42@gmail.com>
241 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
242 * cp-support.c (cp_lookup_symbol_imports): Delete.
244 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
247 * target.c (cleanup_restore_target_terminal): New function.
248 (make_cleanup_restore_target_terminal): New function.
249 * target.h (make_cleanup_restore_target_terminal): New declaration.
250 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
252 2014-12-08 Doug Evans <dje@google.com>
254 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
256 2014-12-08 Doug Evans <dje@google.com>
258 * NEWS: Mention gdb.Objfile.owner.
259 * python/py-objfile.c (objfpy_get_owner): New function.
260 (objfile_getset): Add "owner".
262 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
264 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
265 (lookup_global_symbol_from_objfile): Call it.
267 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
269 Remove const from struct objfile *.
270 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
271 symtab.c, symtab.h: In these files.
273 2014-12-05 Andreas From <andreas.from@ericsson.com>
275 * MAINTAINERS (Write After Approval): Add "Andreas From"
277 2014-12-05 Doug Evans <xdje42@gmail.com>
281 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
283 2014-12-04 Doug Evans <dje@google.com>
285 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
286 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
287 (objfile_getset): Add "add_separate_debug_file".
289 2014-12-04 Doug Evans <dje@google.com>
291 * NEWS: Mention gdb.Objfile.build_id.
292 * build-id.c (build_id_bfd_get): Make non-static.
293 * build-id.h (build_id_bfd_get): Add declaration.
294 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
295 (OBJFPY_REQUIRE_VALID): New macro.
296 (objfpy_get_build_id): New function.
297 (objfile_getset): Add "build_id".
298 * utils.c (make_hex_string): New function.
299 * utils.h (make_hex_string): Add declaration.
301 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
303 * block.c (block_lookup_symbol_primary): New function.
304 * block.h (block_lookup_symbol_primary): New declaration.
305 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
306 Call block_lookup_symbol_primary.
308 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
310 * tramp-frame.h (tramp_frame): Add `validate' member.
311 * tramp-frame.c (tramp_frame_start): Validate trampoline before
313 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
314 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
315 (mips_linux_o32_sigframe): Initialize `validate' member.
316 (mips_linux_o32_rt_sigframe): Likewise.
317 (mips_linux_n32_rt_sigframe): Likewise.
318 (mips_linux_n64_rt_sigframe): Likewise.
319 (micromips_linux_o32_sigframe): New variable.
320 (micromips_linux_o32_rt_sigframe): Likewise.
321 (micromips_linux_n32_rt_sigframe): Likewise.
322 (micromips_linux_n64_rt_sigframe): Likewise.
323 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
324 (mips_linux_n32n64_sigframe_init): Likewise.
325 (mips_linux_sigframe_validate): New function.
326 (micromips_linux_sigframe_validate): Likewise.
327 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
329 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
331 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
332 * sparc-sol2-tdep.c: Include "regset.h".
333 (sparc32_sol2_supply_core_gregset): New function.
334 (sparc32_sol2_collect_core_gregset): Likewise.
335 (sparc32_sol2_supply_core_fpregset): Likewise.
336 (sparc32_sol2_collect_core_fpregset): Likewise.
337 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
338 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
339 tdep->fpregset/sizeof_fpregset.
340 * sparc64-sol2-tdep.c: Include "regset.h".
341 (sparc64_sol2_supply_core_gregset): New function.
342 (sparc64_sol2_collect_core_gregset): Likewise.
343 (sparc64_sol2_supply_core_fpregset): Likewise.
344 (sparc64_sol2_collect_core_fpregset): Likewise.
345 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
346 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
347 tdep->fpregset/sizeof_fpregset.
349 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
351 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
354 2014-12-02 Doug Evans <dje@google.com>
356 * symtab.c (symbol_init_cplus_specific): Delete.
357 (symbol_set_demangled_name): Remove special c++ support.
358 (symbol_get_demangled_name, symbol_set_language): Ditto.
359 * symtab.h (struct cplus_specific): Delete.
360 (struct general_symbol_info) <language_specific>: Remove
363 2014-12-02 Doug Evans <dje@google.com>
366 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
368 2014-12-02 Doug Evans <dje@google.com>
371 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
374 2014-12-02 Doug Evans <dje@google.com>
376 * dwarf2read.c (peek_die_abbrev): Improve error message text.
378 2014-12-02 Doug Evans <dje@google.com>
380 * valops.c (do_search_struct_field): Remove remnant of Chill support.
381 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
383 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
385 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
387 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
389 * NEWS: Mention new Python events.
390 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
391 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
392 (py-infevents.o): New rule.
393 * doc/observer.texi (inferior_call_pre, inferior_call_post)
394 (memory_changed, register_changed): New observers.
395 * infcall.c (call_function_by_hand): Notify observer before and
397 * python/py-event.h (inferior_call_kind): New enum.
398 (emit_inferior_call_event): New prototype.
399 (emit_register_changed_event): New prototype.
400 (emit_memory_changed_event): New prototype.
401 * python/py-events.h (events_object): New registries
402 inferior_call, memory_changed and register_changed.
403 * python/py-evts.c (gdbpy_initialize_py_events): Add the
404 inferior_call, memory_changed and register_changed registries.
405 * python/py-infevents.c: New.
406 * python/py-inferior.c (python_on_inferior_call_pre)
407 (python_on_inferior_call_post, python_on_register_change)
408 (python_on_memory_change): New functions.
409 (gdbpy_initialize_inferior): Attach python handler to new
411 * python/py-infthread.c(gdbpy_create_ptid_object): New.
412 (thpy_get_ptid) Use gdbpy_create_ptid_object.
413 * python/python-internal.h:
414 (gdbpy_create_ptid_object)
415 (gdbpy_initialize_inferior_call_pre_event)
416 (gdbpy_initialize_inferior_call_post_event)
417 (gdbpy_initialize_register_changed_event)
418 (gdbpy_initialize_memory_changed_event): New prototypes.
419 * python/python.c (_initialize_python): Initialize new events.
420 * valops.c (value_assign): Notify register_changed observer.
422 2014-12-02 Doug Evans <dje@google.com>
424 * python/py-infthread.c: Whitespace fixes.
426 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
428 * features/Makefile (s390-te-linux64-expedite): Replace
429 non-existant r14 and r15 by r14l and r15l, respectively.
430 * regformats/s390-te-linux64.dat: Regenerate.
432 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
434 * objfiles.c (allocate_objfile): Remove duplicate comment.
436 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
438 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
439 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
440 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
441 (supply_gregset, supply_fpregset): Remove.
442 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
443 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
446 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
448 Add add-auto-load-scripts-directory.
449 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
450 * auto-load.c (add_auto_load_dir): New function.
451 (_initialize_auto_load): Install it.
453 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
455 Pushed by Joel Brobecker <brobecker@adacore.com>.
456 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
458 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
460 * eval.c (evaluate_subexp): Check that the thread stack temporaries
461 are not already enabled before enabling them.
463 2014-11-29 Yao Qi <yao@codesourcery.com>
465 * arm-tdep.c (arm_analyze_prologue): Move local variables
466 'framereg' and 'framesize' to inner block. Move code to
469 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
471 * eval.c: Include gdbthread.h.
472 (evaluate_subexp): Enable thread stack temporaries before
473 evaluating a complete expression and clean them up after the
474 evaluation is complete.
475 * gdbthread.h: Include common/vec.h.
476 (value_ptr): New typedef.
477 (VEC (value_ptr)): New vector type.
478 (value_vec): New typedef.
479 (struct thread_info): Add new fields stack_temporaries_enabled
480 and stack_temporaries.
481 (enable_thread_stack_temporaries)
482 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
483 (get_last_thread_stack_temporary)
484 (value_in_thread_stack_temporaries): Declare.
485 * gdbtypes.c (class_or_union_p): New function.
486 * gdbtypes.h (class_or_union_p): Declare.
487 * infcall.c (call_function_by_hand): Store return values of class
488 type as temporaries on stack.
489 * thread.c (enable_thread_stack_temporaries): New function.
490 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
491 (get_last_thread_stack_temporary): Likewise.
492 (value_in_thread_stack_temporaries): Likewise.
493 * value.c (value_force_lval): New function.
494 * value.h (value_force_lval): Declare.
496 2014-11-28 Pierre Muller <muller@sourceware.org>
498 Pushed by Joel Brobecker <brobecker@adacore.com>.
499 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
502 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
504 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
505 * config/sparc/linux.mh (NATDEPFILES): Likewise.
506 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
507 * m68klinux-nat.c (fetch_core_registers): Remove.
508 (linux_elf_core_fns): Remove.
509 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
511 2014-11-28 Joel Brobecker <brobecker@adacore.com>
513 * utils.c (gdb_realpath): Rework comment about handling on
516 2014-11-28 Yao Qi <yao@codesourcery.com>
518 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
520 * gnulib/aclocal.m4: Re-generated.
521 * gnulib/config.in: Re-generated.
522 * gnulib/configure: Re-generated.
523 * gnulib/import/Makefile.am: Re-generated.
524 * gnulib/import/Makefile.in: Re-generated.
525 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
526 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
527 * import/basename-lgpl.c: New file.
528 * import/dirname-lgpl.c: New file.
529 * import/dirname.h: New file.
530 * import/m4/dirname.m4: New file.
531 * import/m4/malloc.m4: New file.
532 * import/m4/rename.m4: New file.
533 * import/m4/rmdir.m4: New file.
534 * import/m4/stdio_h.m4: New file.
535 * import/malloc.c: New file.
536 * import/rename.c: New file.
537 * import/rmdir.c: New file.
538 * import/same-inode.h: New file.
539 * import/stdio.c: New file.
540 * import/stdio.in.h: New file.
541 * import/stripslash.c: New file.
543 2014-11-28 Yao Qi <yao@codesourcery.com>
545 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
547 * config.in: Re-generated.
548 * configure: Re-generated.
549 * utils.c (gdb_realpath): Remove code calling realpath,
550 canonicalize_file_name and pathconf.
551 [!_WIN32]: Call canonicalize_file_name.
553 2014-11-28 Yao Qi <yao@codesourcery.com>
555 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
557 * aclocal.m4: Re-generated.
558 * config.in: Re-generated.
559 * configure: Re-generated.
560 * import/Makefile.am: Re-generated.
561 * import/Makefile.in: Re-generated.
562 * import/m4/gnulib-cache.m4: Re-generated.
563 * import/m4/gnulib-comp.m4: Re-generated.
564 * import/canonicalize-lgpl.c: New file.
565 * import/extra/snippet/_Noreturn.h: New file.
566 * import/m4/canonicalize.m4: New file.
567 * import/m4/double-slash-root.m4: New file.
568 * import/m4/eealloc.m4: New file.
569 * import/m4/malloca.m4: New file.
570 * import/m4/nocrash.m4: New file.
571 * import/m4/stdlib_h.m4: New file.
572 * import/malloca.c: New file.
573 * import/malloca.h: New file.
574 * import/malloca.valgrind: New file.
576 2014-11-28 Yao Qi <yao@codesourcery.com>
578 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
579 * config.in, configure: Regenerate.
580 * symfile.c (find_separate_debug_file_by_debuglink): Remove
581 code checking HAVE_LSTAT is defined.
583 2014-11-28 Yao Qi <yao@codesourcery.com>
585 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
587 * gnulib/aclocal.m4: Re-generated.
588 * gnulib/config.in: Re-generated.
589 * gnulib/configure: Re-generated.
590 * gnulib/import/Makefile.am: Re-generated.
591 * gnulib/import/Makefile.in: Re-generated.
592 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
593 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
594 * gnulib/import/lstat.c: New file.
595 * gnulib/import/m4/lstat.m4: New file.
597 2014-11-28 Yao Qi <yao@codesourcery.com>
599 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
600 * config.in, configure: Re-generate.
601 * inf-child.c (inf_child_fileio_readlink): Don't check
602 HAVE_READLINK is defined.
604 2014-11-28 Yao Qi <yao@codesourcery.com>
606 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
607 * gnulib/aclocal.m4: Re-generated.
608 * gnulib/config.in: Likewise.
609 * gnulib/configure: Likewise.
610 * gnulib/import/Makefile.am: Likewise.
611 * gnulib/import/Makefile.in: Likewise.
612 * gnulib/import/m4/gnulib-cache.m4: Likewise.
613 * gnulib/import/m4/gnulib-comp.m4: Likewise.
614 * gnulib/import/dosname.h: New file
615 * gnulib/import/m4/largefile.m4: New file.
616 * gnulib/import/m4/readlink.m4: New file.
617 * gnulib/import/m4/stat.m4: New file.
618 * gnulib/import/readlink.c: New file.
619 * gnulib/import/stat.c: New file.
621 2014-11-26 Mark Wielaard <mjw@redhat.com>
623 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
624 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
626 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
628 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
629 that there can be only one stack adjustment in the prologue
630 with tests to detect specific disallowed stack adjustments.
632 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
634 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
637 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
639 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
640 the instruction as well as reading it from memory.
641 (nios2_match_add): New.
642 (nios2_match_sub): New.
643 (nios2_match_addi): New.
644 (nios2_match_orhi): New.
645 (nios2_match_stw): New.
646 (nios2_match_ldw): New.
647 (nios2_match_rdctl): New.
648 (enum branch_condition): New.
649 (nios2_match_branch): New.
650 (nios2_match_jmpi): New.
651 (nios2_match_calli): New.
652 (nios2_match_jmpr): New.
653 (nios2_match_callr): New.
654 (nios2_match_break): New.
655 (nios2_match_trap): New.
656 (nios2_in_epilogue_p): Rewrite to use new functions.
657 (nios2_analyze_prologue): Likewise.
658 (nios2_skip_prologue): Delete unused local limit_pc.
659 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
660 (nios2_get_next_pc): Rewrite to use new functions.
662 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
664 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
666 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
668 Pushed by Joel Brobecker <brobecker@adacore.com>
669 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
670 elements pi_len by the size of the elements before calling
672 (inf_validate_task_sc): Likewise, and properly deallocate the
675 2014-11-23 Doug Evans <xdje42@gmail.com>
677 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
678 number and name if present. All callers updated.
679 (dump_fn_fieldlists): Fix indentation of args.
681 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
683 * MAINTAINERS (Write After Approval): Add myself.
685 2014-11-23 Joel Brobecker <brobecker@adacore.com>
687 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
688 to a bp_call_dummy breakpoint type.
690 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
692 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
693 registering the signal handler.
695 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
697 * event-top.h (call_stdin_event_handler_again_p): Declare.
698 * event-top.c (call_stdin_event_handler_again_p): Define.
699 (stdin_event_handler): Use it.
700 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
701 handler again if there is pending input following a
704 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
706 Pushed by Joel Brobecker <brobecker@adacore.com>
707 * linux-fork.c (checkpoint_command): Print index of new
708 checkpoint in response message.
710 2014-11-23 Yao Qi <yao@codesourcery.com>
712 * valprint.c (read_string): Move local variables 'found_nul',
713 'chunksize' and 'limit' to inner scope. Update comments.
715 2014-11-22 Doug Evans <xdje42@gmail.com>
717 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
719 (search_symbols): Fix comments and whitespace.
721 2014-11-22 Doug Evans <xdje42@gmail.com>
723 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
725 2014-11-21 Doug Evans <dje@google.com>
727 * psymtab.c (psymtab_search_name): Fix whitespace.
729 2014-11-21 Yao Qi <yao@codesourcery.com>
731 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
733 * gnulib/import/Makefile.am: Re-generated.
734 * gnulib/import/Makefile.in: Likewise.
735 * gnulib/import/m4/gnulib-cache.m4: Likewise.
737 2014-11-21 Yao Qi <yao@codesourcery.com>
739 * gdb_wchar.h: Include wchar.h and wctype.h.
740 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
741 include wchar.h and wctype.h.
742 Don't check HAVE_WCHAR_H.
744 2014-11-21 Yao Qi <yao@codesourcery.com>
746 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
748 * gnulib/import/Makefile.am: Re-generated.
749 * gnulib/import/Makefile.in: Likewise.
750 * gnulib/import/m4/gnulib-cache.m4: Likewise.
752 2014-11-21 Yao Qi <yao@codesourcery.com>
754 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
756 * gnulib/import/Makefile.am: Re-generated.
757 * gnulib/import/Makefile.in: Likewise.
758 * gnulib/import/m4/gnulib-cache.m4: Likewise.
760 2014-11-21 Yao Qi <yao@codesourcery.com>
762 * common/common-defs.h: Include alloca.h
763 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
764 * configure: Re-generated.
765 * defs.h: Remove code handling alloca.
766 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
769 2014-11-21 Yao Qi <yao@codesourcery.com>
771 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
773 * gnulib/import/Makefile.am: Re-generated.
774 * gnulib/import/Makefile.in: Likewise..
775 * gnulib/import/m4/gnulib-cache.m4: Likewise.
777 2014-11-21 Yao Qi <yao@codesourcery.com>
779 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
782 2014-11-21 Joel Brobecker <brobecker@adacore.com>
784 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
785 flag_unsigned if HIGH_BOUND is constant and negative.
787 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
790 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
791 modifier from "struct gdbarch" when compiling without Expat (XML)
793 (get_syscall_by_number): Likewise.
794 (get_syscall_by_name): Likewise.
795 (get_syscall_names): Likewise.
797 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
800 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
801 set_xml_syscall_file_name to provide gdbarch.
802 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
803 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
804 * breakpoint.c (print_it_catch_syscall): Adjust call to
805 get_syscall_by_number to provide gdbarch.
806 (print_one_catch_syscall): Likewise.
807 (print_mention_catch_syscall): Likewise.
808 (print_recreate_catch_syscall): Likewise.
809 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
810 and get_syscall_by_name to provide gdbarch.
811 (catch_syscall_completer): Adjust call to get_syscall_names to
813 * gdbarch.c: Regenerate.
814 * gdbarch.h: Likewise.
815 * gdbarch.sh: Forward declare "struct syscalls_info".
816 (xml_syscall_file): New variable.
817 (syscalls_info): Likewise.
818 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
819 set_xml_syscall_file_name to provide gdbarch.
820 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
821 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
822 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
823 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
824 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
825 * xml-syscall.c: Include gdbarch.h.
826 (set_xml_syscall_file_name): Accept gdbarch parameter.
827 (get_syscall_by_number): Likewise.
828 (get_syscall_by_name): Likewise.
829 (get_syscall_names): Likewise.
830 (my_gdb_datadir): Delete global variable.
831 (struct syscalls_info) <my_gdb_datadir>: New variable.
832 (struct syscalls_info) <sysinfo>: Rename variable to
834 (sysinfo): Delete global variable.
835 (have_initialized_sysinfo): Likewise.
836 (xml_syscall_file): Likewise.
837 (sysinfo_free_syscalls_desc): Rename to...
838 (syscalls_info_free_syscalls_desc): ... this.
839 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
840 code to the new layout of "struct syscalls_info".
841 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
843 (syscall_create_syscall_desc): Likewise.
844 (syscall_start_syscall): Likewise.
845 (syscall_parse_xml): Likewise.
846 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
847 (init_sysinfo): Rename to...
848 (init_syscalls_info): ...this. Add gdbarch as a parameter.
849 Adjust function to deal with gdbarch.
850 (xml_get_syscall_number): Delete parameter sysinfo. Accept
851 gdbarch as a parameter. Adjust code.
852 (xml_get_syscall_name): Likewise.
853 (xml_list_of_syscalls): Likewise.
854 (set_xml_syscall_file_name): Accept gdbarch as parameter.
855 (get_syscall_by_number): Likewise.
856 (get_syscall_by_name): Likewise.
857 (get_syscall_names): Likewise.
858 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
859 (get_syscall_by_number): Likewise.
860 (get_syscall_by_name): Likewise.
861 (get_syscall_names): Likewise.
863 2014-11-20 Doug Evans <xdje42@gmail.com>
865 Split struct symtab into two: struct symtab and compunit_symtab.
866 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
867 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
868 to "struct compunit_symtab *". All callers updated.
869 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
870 "struct symtab *" argument to "struct compunit_symtab *".
872 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
873 result to "struct compunit_symtab *". All callers updated.
874 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
875 Change result to "struct compunit_symtab *". All callers updated.
876 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
877 hange type to "struct compunit_symtab *". All uses updated.
878 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
879 Change type to "struct compunit_symtab *". All uses updated.
880 * buildsym.c (struct buildsym_compunit): New struct.
881 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
882 (buildsym_compunit): New static global.
883 (finish_block_internal): Update to fetch objfile from
885 (make_blockvector): Delete objfile argument.
886 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
887 debugformat, producer.
888 (start_buildsym_compunit): New function.
889 (free_buildsym_compunit): Renamed from free_subfiles_list.
891 (patch_subfile_names): Rewrite to use buildsym_compunit.
892 (get_compunit_symtab): New function.
893 (get_macro_table): Delete argument comp_dir. All callers updated.
894 (start_symtab): Change result to "struct compunit_symtab *".
895 All callers updated. Create the subfile of the main source file.
896 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
897 (reset_symtab_globals): Update.
898 (end_symtab_get_static_block): Update to use buildsym_compunit.
899 (end_symtab_without_blockvector): Rewrite.
900 (end_symtab_with_blockvector): Change result to
901 "struct compunit_symtab *". All callers updated.
902 Update to use buildsym_compunit. Don't set symtab->dirname,
903 instead set it in the compunit.
904 Explicitly make sure main symtab is first in its list.
905 Set debugformat, producer, blockvector, block_line_section, and
906 macrotable in the compunit.
907 (end_symtab_from_static_block): Change result to
908 "struct compunit_symtab *". All callers updated.
909 (end_symtab, end_expandable_symtab): Ditto.
910 (set_missing_symtab): Change symtab argument to
911 "struct compunit_symtab *". All callers updated.
912 (augment_type_symtab): Ditto.
913 (record_debugformat): Update to use buildsym_compunit.
914 (record_producer): Update to use buildsym_compunit.
915 * buildsym.h (struct subfile) <dirname>: Delete.
916 <producer, debugformat>: Delete.
917 <buildsym_compunit>: New member.
918 (get_compunit_symtab): Declare.
919 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
920 from primary_symtab. Change type to "struct compunit_symtab *".
922 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
924 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
925 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
926 symtab. Change type to "struct compunit_symtab *". All uses updated.
927 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
929 (dw2_find_last_source_symtab): Ditto.
930 (dw2_lookup_symbol): Ditto.
931 (recursively_find_pc_sect_compunit_symtab): Renamed from
932 recursively_find_pc_sect_symtab. Change result to
933 "struct compunit_symtab *". All callers updated.
934 (dw2_find_pc_sect_compunit_symtab): Renamed from
935 dw2_find_pc_sect_symtab. Change result to
936 "struct compunit_symtab *". All callers updated.
937 (get_compunit_symtab): Renamed from get_symtab. Change result to
938 "struct compunit_symtab *". All callers updated.
939 (recursively_compute_inclusions): Change type of immediate_parent
940 argument to "struct compunit_symtab *". All callers updated.
941 (compute_compunit_symtab_includes): Renamed from
942 compute_symtab_includes. All callers updated. Rewrite to compute
943 includes of compunit_symtabs and not symtabs.
944 (process_full_comp_unit): Update to work with struct compunit_symtab.
945 (process_full_type_unit): Ditto.
946 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
947 (dwarf_decode_lines): Remove special case handling of main subfile.
948 (macro_start_file): Delete argument comp_dir. All callers updated.
949 (dwarf_decode_macro_bytes): Ditto.
950 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
951 use struct compunit_symtab.
952 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
953 * jit.c (finalize_symtab): Build compunit_symtab.
954 * jv-lang.c (get_java_class_symtab): Change result to
955 "struct compunit_symtab *". All callers updated.
956 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
957 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
958 comp_dir. Change type to "struct compunit_symtab *".
960 (new_macro_table): Change comp_dir argument to cust,
961 "struct compunit_symtab *". All callers updated.
962 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
963 nr_primary_symtabs. All uses updated.
964 (count_symtabs_and_blocks): Update to handle compunits.
965 (report_command_stats): Update output, "primary symtabs" renamed to
967 * mdebugread.c (new_symtab): Change result to
968 "struct compunit_symtab *". All callers updated.
969 (parse_procedure): Change type of search_symtab argument to
970 "struct compunit_symtab *". All callers updated.
971 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
973 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
974 symtabs. Change type to "struct compunit_symtab *". All uses updated.
975 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
977 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
979 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
980 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
981 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
982 symtab. Change type to "struct compunit_symtab *". All uses updated.
983 * psymtab.c (psymtab_to_symtab): Change result type to
984 "struct compunit_symtab *". All callers updated.
985 (find_pc_sect_compunit_symtab_from_partial): Renamed from
986 find_pc_sect_symtab_from_partial. Change result type to
987 "struct compunit_symtab *". All callers updated.
988 (lookup_symbol_aux_psymtabs): Change result type to
989 "struct compunit_symtab *". All callers updated.
990 (find_last_source_symtab_from_partial): Ditto.
991 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
992 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
993 and macro_table from compunit.
994 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
995 type to "struct compunit_symtab *". All callers updated.
996 (debug_qf_lookup_symbol): Ditto.
997 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
998 debug_qf_find_pc_sect_symtab, change result type to
999 "struct compunit_symtab *". All callers updated.
1000 * symfile.c (allocate_symtab): Delete objfile argument.
1002 (allocate_compunit_symtab): New function.
1003 (add_compunit_symtab_to_objfile): New function.
1004 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1005 Change result type to "struct compunit_symtab *". All uses updated.
1006 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1007 Change result type to "struct compunit_symtab *". All uses updated.
1008 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1010 (dump_symtab_1): Update test for primary source symtab.
1011 (maintenance_info_symtabs): Update to handle compunit symtabs.
1012 (maintenance_check_symtabs): Ditto.
1013 * symtab.c (set_primary_symtab): Delete.
1014 (compunit_primary_filetab): New function.
1015 (compunit_language): New function.
1016 (iterate_over_some_symtabs): Change type of arguments "first",
1017 "after_last" to "struct compunit_symtab *". All callers updated.
1018 Update to loop over symtabs in each compunit.
1019 (error_in_psymtab_expansion): Rename symtab argument to cust,
1020 and change type to "struct compunit_symtab *". All callers updated.
1021 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1022 Change result type to "struct compunit_symtab *". All callers updated.
1023 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1024 Change result type to "struct compunit_symtab *". All callers updated.
1025 (find_pc_sect_line): Only loop over symtabs within selected compunit
1026 instead of all symtabs in the objfile.
1027 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1028 <compunit_symtab> New member.
1029 <block_line_section>: Moved to compunit_symtab.
1030 <locations_valid>: Ditto.
1031 <epilogue_unwind_valid>: Ditto.
1032 <macro_table>: Ditto.
1034 <debugformat>: Ditto.
1037 <call_site_htab>: Ditto.
1041 (SYMTAB_COMPUNIT): New macro.
1042 (SYMTAB_BLOCKVECTOR): Update definition.
1043 (SYMTAB_OBJFILE): Update definition.
1044 (SYMTAB_DIRNAME): Update definition.
1045 (struct compunit_symtab): New type. Common members among all source
1046 symtabs within a compilation unit moved here. All uses updated.
1047 (COMPUNIT_OBJFILE): New macro.
1048 (COMPUNIT_FILETABS): New macro.
1049 (COMPUNIT_DEBUGFORMAT): New macro.
1050 (COMPUNIT_PRODUCER): New macro.
1051 (COMPUNIT_DIRNAME): New macro.
1052 (COMPUNIT_BLOCKVECTOR): New macro.
1053 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1054 (COMPUNIT_LOCATIONS_VALID): New macro.
1055 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1056 (COMPUNIT_CALL_SITE_HTAB): New macro.
1057 (COMPUNIT_MACRO_TABLE): New macro.
1058 (ALL_COMPUNIT_FILETABS): New macro.
1059 (compunit_symtab_ptr): New typedef.
1060 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1062 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1064 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1065 if the TYPE_CODE of range_type's base type does not match
1066 the TYPE_CODE of encoding_type's base type.
1068 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1070 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1073 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1075 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1076 (ada_is_redundant_index_type_desc): New function.
1077 (to_fixed_array_type): Ignore parallel XA type if redundant.
1079 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1081 * ada-lang.c (constrained_packed_array_type): Set the length
1082 of the return array as if both bounds where zero if that
1083 returned array's index type is dynamic.
1085 2014-11-19 Yao Qi <yao@codesourcery.com>
1087 * config/i386/go32.mh (CC): Remove.
1089 2014-11-18 Doug Evans <xdje42@gmail.com>
1091 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1094 2014-11-18 Doug Evans <xdje42@gmail.com>
1096 * buildsym.c (buildsym_objfile): New static global.
1097 (buildsym_comp_dir): New static global.
1098 (finish_block_internal): Delete arg objfile. All callers updated.
1099 (finish_block): Delete arg objfile. All callers updated.
1100 (start_subfile): Delete arg dirname. All callers updated.
1101 (patch_subfile_names): Update buildsym_comp_dir.
1102 (get_macro_table): Delete arg objfile. All callers updated.
1103 (start_symtab): New arg objfile. All callers updated.
1104 Rename arg dirname to comp_dir.
1105 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1106 (end_symtab_get_static_block): Delete arg objfile. All callers
1108 (end_symtab_without_blockvector): Ditto.
1109 (end_symtab_with_blockvector): Ditto.
1110 (end_symtab_from_static_block): Ditto.
1111 (end_symtab): Ditto.
1112 (end_expandable_symtab): Ditto.
1113 (augment_type_symtab): Ditto.
1114 * coffread.c (coff_start_symtab): New arg objfile. All callers
1117 2014-11-18 Doug Evans <xdje42@gmail.com>
1119 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1122 2014-11-18 Doug Evans <xdje42@gmail.com>
1124 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1125 symtab.dirname updated to use it.
1127 2014-11-18 Doug Evans <xdje42@gmail.com>
1129 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1130 symtab.objfile updated to use it.
1132 2014-11-18 Doug Evans <xdje42@gmail.com>
1134 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1136 2014-11-18 Doug Evans <xdje42@gmail.com>
1138 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1140 * findvar.c (default_read_var_value): Ditto.
1141 * jv-lang.c (add_class_symtab_symbol): Ditto.
1142 * parse.c (operator_check_standard): Ditto.
1143 * printcmd.c (address_info): Ditto.
1144 * symtab.c (fixup_symbol_section): Ditto.
1145 (skip_prologue_sal): Ditto.
1146 * tracepoint.c (scope_info): Ditto.
1147 * valops.c (find_function_in_inferior): Ditto.
1148 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1149 * python/py-symbol.c (set_symbol): Ditto.
1151 2014-11-18 Doug Evans <xdje42@gmail.com>
1153 * buildsym.c (main_subfile): New static global.
1154 (free_subfiles_list): New function.
1155 (start_symtab): Set main_subfile.
1156 (restart_symtab): Replace init of subfiles, current_subfile with
1157 call to free_subfiles_list.
1158 (watch_main_source_file_lossage): Use main_subfile.
1159 (reset_symtab_globals): Replace init of current_subfile with call
1160 to free_subfiles_list.
1161 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1162 functions, split out from ...
1163 (end_symtab_from_static_block): ... here. Rewrite to call them.
1165 2014-11-18 Doug Evans <xdje42@gmail.com>
1167 The result of symtab expansion is always a primary symtab.
1168 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1169 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1170 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1171 (psymtab_to_symtab): Add comment and assert.
1172 (map_matching_symbols_psymtab): Remove unnecessary test for
1175 2014-11-15 Doug Evans <xdje42@gmail.com>
1178 * symtab.c (find_pc_line_symtab): New function.
1179 * symtab.h (find_pc_line_symtab): Declare.
1180 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1182 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1183 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1184 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1185 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1186 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1187 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1189 2014-11-15 Doug Evans <xdje42@gmail.com>
1191 * symtab.c (expand_symtab_containing_pc): Renamed from
1192 find_pc_sect_symtab_via_partial. All callers updated.
1194 2014-11-15 Yao Qi <yao@codesourcery.com>
1196 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1198 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1200 * common/common-defs.h: Move <stdarg.h> #include ahead of
1203 2014-11-14 Pedro Alves <palves@redhat.com>
1205 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1206 [!PHONY_ICONV] (gdb_iconv): New function.
1207 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1209 2014-11-13 Doug Evans <dje@google.com>
1212 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1213 "(anonymous namespace)".
1215 2014-11-13 Doug Evans <dje@google.com>
1217 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1220 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1222 * NEWS (maint set target-async): Fix typo.
1224 2014-11-12 Pedro Alves <palves@redhat.com>
1226 * infrun.c (enum infwait_states, infwait_state): Delete.
1228 2014-11-12 Pedro Alves <palves@redhat.com>
1230 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1231 Rewrite stepping over a permanent breakpoint.
1232 (thread_still_needs_step_over, proceed): Don't set
1233 stepping_over_breakpoint for permanent breakpoints.
1234 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1235 single-step breakpoints out of the target on hardware step
1237 (process_event_stop_test): If stepping a permanent breakpoint
1238 doesn't hit the step-resume breakpoint, delete the step-resume
1240 (switch_back_to_stepped_thread): Also check if the stepped thread
1241 has advanced already on hardware step targets.
1242 (currently_stepping): Return true if the thread stepped a
1245 2014-11-12 Pedro Alves <palves@redhat.com>
1247 Mark locations as permanent, not the whole breakpoint.
1248 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1249 (mark_breakpoints_out): Don't mark permanent breakpoints as
1251 (breakpoint_init_inferior): Use mark_breakpoints_out.
1252 (breakpoint_here_p): Adjust.
1253 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1254 of permanent breakpoints.
1255 (make_breakpoint_permanent): Mark each location as permanent,
1256 instead of marking the breakpoint.
1257 (add_location_to_breakpoint): If the location is permanent, mark
1258 it as such, and as inserted.
1259 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1260 (bp_location_compare, update_global_location_list): Adjust.
1261 (update_breakpoint_locations): Don't make the breakpoint permanent
1263 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1265 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1266 (struct bp_location) <permanent>: New field.
1267 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1268 reference to bp_permanent.
1270 2014-11-12 Pedro Alves <palves@redhat.com>
1272 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1273 * arch-utils.h (default_skip_permanent_breakpoint): New
1275 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1276 Install default_skip_permanent_breakpoint as default method.
1277 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1278 (i386_gdbarch_init): Don't install it.
1279 * infrun.c (resume): Assume there's always a
1280 gdbarch_skip_permanent_breakpoint implementation.
1281 * gdbarch.h, gdbarch.c: Regenerate.
1283 2014-11-11 Daniel Colascione <dancol@dancol.org>
1285 Warn about cross-PID-namespace debugging.
1286 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1287 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1288 * linux-thread-db.c (check_pid_namespace_match): New function.
1289 (thread_db_inferior_created): Call it.
1291 2014-11-10 Doug Evans <xdje42@gmail.com>
1293 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1294 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1296 2014-11-10 Doug Evans <xdje42@gmail.com>
1298 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1300 2014-11-10 Doug Evans <xdje42@gmail.com>
1303 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1304 (lookup_static_symbol): Move definition to new location and rewrite.
1305 (lookup_symbol_in_objfile): New function.
1306 (lookup_symbol_global_iterator_cb): Call it.
1308 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1310 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1312 2014-11-07 Pedro Alves <palves@redhat.com>
1314 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1315 check if we did a "nexti" inside a prologue.
1316 * symtab.c (in_prologue): Delete function.
1317 * symtab.h (in_prologue): Delete declaration.
1319 2014-11-06 Doug Evans <xdje42@gmail.com>
1321 * symtab.h (lookup_global_symbol): Improve function comment.
1323 2014-11-06 Doug Evans <xdje42@gmail.com>
1325 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1326 All callers updated.
1327 * symtab.h (lookup_global_symbol): Update decl.
1328 (lookup_static_symbol): Move decl to better location.
1330 2014-11-06 Doug Evans <xdje42@gmail.com>
1332 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1334 2014-11-06 Doug Evans <xdje42@gmail.com>
1336 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1337 All callers updated.
1338 (lookup_symbol_in_all_objfiles): Renamed from
1339 lookup_symbol_aux_symtabs. All callers updated.
1340 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1341 All callers updated.
1342 (lookup_symbol_in_objfile_symtabs): Renamed from
1343 lookup_symbol_aux_objfile. All callers updated.
1345 2014-11-06 Doug Evans <xdje42@gmail.com>
1347 * symtab.c (lookup_symbol_in_block): Renamed from
1348 lookup_symbol_aux_block. All callers updated.
1350 2014-11-06 Doug Evans <xdje42@gmail.com>
1352 * symtab.c (lookup_static_symbol): Renamed from
1353 lookup_static_symbol_aux. All callers updated.
1354 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1355 All callers updated.
1357 2014-11-06 Doug Evans <xdje42@gmail.com>
1359 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1360 * block.c (block_lookup_symbol): Use it.
1361 * cp-support.c (make_symbol_overload_list_block): Use it.
1362 * symtab.c (iterate_over_symbols): Use it.
1364 2014-11-06 Doug Evans <xdje42@gmail.com>
1366 * symtab.c (lookup_block_symbol): Moved to ...
1367 * block.c (block_lookup_symbol): ... here and renamed.
1368 All callers updated.
1369 * block.h (block_lookup_symbol): Declare.
1370 * symtab.h (lookup_block_symbol): Delete.
1372 2014-11-06 Doug Evans <xdje42@gmail.com>
1374 * ada-lang.c (ada_make_symbol_completion_list): Use
1375 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1376 * symtab.c (lookup_objfile_from_block): Ditto.
1378 2014-11-06 Doug Evans <xdje42@gmail.com>
1380 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1383 2014-11-06 Doug Evans <xdje42@gmail.com>
1385 * objfiles.c (get_objfile_arch): Constify.
1386 * objfiles.h (get_objfile_arch): Update prototype.
1387 * solib.c (solib_global_lookup): Fetch arch from objfile,
1390 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1392 * nios2-tdep.c (wild_insn): Delete.
1393 (profiler_insn, irqentry_insn): Delete.
1394 (nios2_match_sequence): Delete.
1395 (nios2_analyze_prologue): Update comments. Remove matching
1396 of obsolete profiler_insn and irqentry_insn sequences.
1398 2014-11-05 Alan Modra <amodra@gmail.com>
1400 * charset.c (convert_between_encodings): Shrink obstack using
1402 * minsyms.c (install_minimal_symbols): Likewise.
1403 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1404 to char* before doing pointer arithmetic.
1406 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1408 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1410 2014-11-04 Pedro Alves <palves@redhat.com>
1412 * breakpoint.c (breakpoint_thread_match): Delete function.
1413 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1415 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1418 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1419 the method args also under EVAL_SKIP when evaluating method
1420 calls under EVAL_SKIP.
1422 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1424 * dwarf2loc.c (read_pieced_value): Do big endian
1425 processing only if gdb_regnum is not -1.
1426 (write_pieced_value): Ditto.
1428 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1430 * arm-linux-tdep.c (arm_linux_init_abi): Use
1431 info.byte_order_for_code to choose endianity of breakpoint
1432 instructions snippets.
1434 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1436 * arm-tdep.c (extract_arm_insn): Use
1437 gdbarch_byte_order_for_code to read arm instruction.
1439 2014-11-02 Doug Evans <xdje42@gmail.com>
1441 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1443 2014-11-02 Doug Evans <xdje42@gmail.com>
1445 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1446 main_subfile before returning.
1448 2014-10-31 Doug Evans <xdje42@gmail.com>
1450 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1451 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1453 2014-10-31 Doug Evans <xdje42@gmail.com>
1455 * valops.c (value_cast_pointers): Fix whitespace.
1456 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1459 2014-10-30 Doug Evans <dje@google.com>
1461 * NEWS: Mention ability add attributes to gdb.Objfile and
1462 gdb.Progspace objects.
1463 * python/py-objfile.c (objfile_object): New member dict.
1464 (objfpy_dealloc): Py_XDECREF dict.
1465 (objfpy_initialize): Initialize dict.
1466 (objfile_getset): Add __dict__.
1467 (objfile_object_type): Set tp_dictoffset member.
1468 * python/py-progspace.c (progspace_object): New member dict.
1469 (pspy_dealloc): Py_XDECREF dict.
1470 (pspy_initialize): Initialize dict.
1471 (pspace_getset): Add __dict__.
1472 (pspace_object_type): Set tp_dictoffset member.
1474 2014-10-30 Yao Qi <yao@codesourcery.com>
1476 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1477 replace '\\' with '\\\\'.
1479 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1483 2014-10-29 Pedro Alves <palves@redhat.com>
1486 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1487 instead of assuming a thread with a stepping range is always
1490 2014-10-29 Pedro Alves <palves@redhat.com>
1493 * event-top.c (change_line_handler): Call
1494 gdb_rl_callback_handler_remove instead of
1495 rl_callback_handler_remove.
1496 (callback_handler_installed): New global.
1497 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1498 (gdb_rl_callback_handler_reinstall): New functions.
1499 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1500 gdb_rl_callback_handler_install instead of
1501 rl_callback_handler_remove and rl_callback_handler_install.
1502 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1503 instead of rl_callback_handler_remove.
1504 * event-top.h (gdb_rl_callback_handler_remove)
1505 (gdb_rl_callback_handler_install)
1506 (gdb_rl_callback_handler_reinstall): New declarations.
1507 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1509 (fetch_inferior_event): Install it.
1510 * top.c (gdb_readline_wrapper_line) Call
1511 gdb_rl_callback_handler_remove instead of
1512 rl_callback_handler_remove.
1513 (gdb_readline_wrapper_cleanup): Don't call
1514 rl_callback_handler_install.
1516 2014-10-29 Pedro Alves <palves@redhat.com>
1518 * event-top.c (command_line_handler): Clear the first byte of
1519 linebuffer, when it is first allocated.
1521 2014-10-29 Pedro Alves <palves@redhat.com>
1523 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1526 2014-10-29 Pedro Alves <palves@redhat.com>
1530 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1531 (tui_allowed_p): Delete function.
1532 * tui/tui.c: Include "interps.h".
1533 (tui_enable): Don't use tui_allowed_p. Error out here with
1534 detailed error messages if the TUI is the top level interpreter,
1535 or if output is not a terminal. Use newterm instead of initscr,
1536 and error out if initializing the terminal fails. Also error out if
1537 the terminal doesn't support cursor addressing.
1538 * tui/tui.h (tui_allowed_p): Delete declaration.
1540 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1542 * arm-tdep.c (arm_skip_stack_protector): Return early if
1543 address loaded by first "ldr" instruction does not have
1544 a corresponding minimal symbol. Update comment.
1546 2014-10-29 Yao Qi <yao@codesourcery.com>
1548 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1549 loaded address correctly of ldr instruction.
1551 2014-10-28 Pedro Alves <palves@redhat.com>
1554 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1556 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1557 thread's stepped_breakpoint field. Skip if reverse debugging.
1559 (init_thread_stepping_state, handle_signal_stop): Clear the
1560 thread's stepped_breakpoint field.
1562 2014-10-27 Pedro Alves <palves@redhat.com>
1564 * remote.c (remote_thread_alive): New, factored out from ...
1565 (remote_thread_alive): ... this.
1566 (remote_update_thread_list): Bail out before deleting threads if
1567 the target returned an empty list, and, the current thread has a
1570 2014-10-27 Pedro Alves <palves@redhat.com>
1572 * infrun.c (handle_signal_stop): Also skip handlers when a random
1573 signal arrives while handling a "stepi" or a "nexti". Set the
1574 thread's 'step_after_step_resume_breakpoint' flag.
1576 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1578 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1579 (arm_record_ld_st_imm_offset): Reimplement to cover all
1580 load/store cases for ARM opcode 010.
1581 (arm_record_ld_st_multiple): Reimplement to cover all
1582 load/store cases for ARM opcode 100.
1584 2014-10-26 Doug Evans <xdje42@gmail.com>
1586 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1588 2014-10-26 Doug Evans <xdje42@gmail.com>
1590 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1591 parameter "kind" to "block_index".
1592 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1594 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1596 2014-10-26 Doug Evans <xdje42@gmail.com>
1598 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1600 2014-10-26 Doug Evans <xdje42@gmail.com>
1602 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1605 2014-10-26 Doug Evans <xdje42@gmail.com>
1607 * parser-defs.h (block_found): Move decl from here ...
1608 * symtab.h (block_found): ... to here.
1610 2014-10-26 Doug Evans <xdje42@gmail.com>
1612 * symtab.h (struct field_of_this_result): Fix typo in comment.
1613 (lookup_symbol_in_language): Move function comment here.
1614 (lookup_symbol): Improve function comment.
1615 (basic_lookup_symbol_nonlocal): Ditto.
1616 (lookup_symbol_static, lookup_symbol_global): Ditto.
1617 (lookup_symbol_aux_block): Ditto.
1618 (lookup_language_this): Add function comment.
1619 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1621 (lookup_block_symbol): Improve function comment.
1622 (lookup_struct): Fix capitalization in function comment.
1623 (lookup_transparent_type): Add function comment.
1624 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1625 Improve function comment.
1626 (lookup_objfile_from_block): Add function comment.
1627 * symtab.c (lookup_symbol_in_language): Update function comment.
1628 (lookup_symbol, lookup_language_this): Ditto.
1629 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1630 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1631 (basic_lookup_symbol_nonlocal): Ditto.
1632 (lookup_symbol_static, lookup_symbol_global): Ditto.
1633 (lookup_transparent_type, lookup_block_symbol): Ditto.
1635 2014-10-25 Doug Evans <xdje42@gmail.com>
1637 * symtab.c (types_info): Delete forward decl.
1638 (functions_info, variables_info, sources_info): Ditto.
1639 (_initialize_symtab): Rewrite forward decl to use
1640 initialize_file_ftype.
1642 2014-10-25 Doug Evans <xdje42@gmail.com>
1644 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1646 2014-10-25 Doug Evans <xdje42@gmail.com>
1648 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1649 of local var child_die.
1651 2014-10-24 Don Breazeal <donb@codesourcery.com>
1653 * infrun.c (follow_fork_inferior): Update fork message printing
1654 to use target_terminal_ours_for_output instead of
1655 target_terminal_ours, to use _() for all format strings, to print
1656 "vfork" instead of "fork" for vforks, and to add a detach message.
1657 (handle_vfork_child_exec_or_exit): Update message printing to use
1658 target_terminal_ours_for_output instead of target_terminal_ours, to
1659 use _() for all format strings, and to fix some formatting.
1661 2014-10-24 Pedro Alves <palves@redhat.com>
1663 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1664 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1665 * config/vax/vax.mh: Delete.
1666 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1667 obsolete configurations section.
1668 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1669 * vax-nat.c: Delete file.
1671 2014-10-24 Pedro Alves <palves@redhat.com>
1673 * NEWS (Removed targets): Add OS/arch column.
1675 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1677 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1678 on the arg type of a constructor only if it is of reference type.
1680 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1682 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1683 accessors and constants from nios2 opcodes update.
1684 (nios2_get_next_pc): Likewise.
1686 2014-10-19 Doug Evans <xdje42@gmail.com>
1688 * gdbthread.h (set_running): Fix comment.
1689 (set_executing, finish_thread_state): Fix comment.
1691 2014-10-18 Doug Evans <xdje42@gmail.com>
1693 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1695 2014-10-17 Doug Evans <dje@google.com>
1697 * NEWS: Mention new event gdb.clear_objfiles.
1698 * python/py-event.h (emit_clear_objfiles_event): Clear
1699 * python/py-events.h (events_object): New member clear_objfiles.
1700 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1702 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1703 emit clear_objfiles event.
1704 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1706 (emit_clear_objfiles_event): New function.
1707 (clear_objfiles): New event.
1708 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1710 * python/python.c (_initialize_python): Call
1711 gdbpy_initialize_clear_objfiles_event.
1713 2014-10-17 Doug Evans <dje@google.com>
1715 * NEWS: Mention new gdb.Objfile.progspace attribute.
1716 * python/py-objfile.c (objfpy_get_progspace): New function.
1717 (objfile_getset): New entry for "progspace".
1719 2014-10-17 Pedro Alves <palves@redhat.com>
1722 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1723 returns a copy of the input.
1724 (run_command_1, continue_command, step_1, jump_command)
1725 (signal_command, until_command, advance_command, finish_command)
1726 (attach_command): Adjust and install a cleanup to free the
1729 2014-10-17 Pedro Alves <palves@redhat.com>
1732 * infcmd.c (continue_1): If continuing all threads in the
1733 foreground, make sure the inferior's terminal settings are put in
1736 2014-10-17 Pedro Alves <palves@redhat.com>
1739 * annotate.c (annotate_breakpoints_invalid): Use
1740 target_terminal_our_for_output instead of target_terminal_ours.
1741 Give back the terminal to the target.
1742 (annotate_frames_invalid): Likewise.
1744 2014-10-17 Pedro Alves <palves@redhat.com>
1746 * target.c (enum terminal_state): New enum.
1747 (terminal_state): New global.
1748 (target_terminal_init): New function.
1749 (target_terminal_inferior): Skip if inferior already owns the
1751 (target_terminal_ours, target_terminal_ours_for_output): New
1753 * target.h (target_terminal_init): Convert to function prototype.
1754 (target_terminal_ours_for_output): Convert to function prototype
1756 (target_terminal_ours): Convert to function prototype and tweak
1758 * windows-nat.c (do_initial_windows_stuff): Call
1759 target_terminal_init instead of child_terminal_init_with_pgrp.
1761 2014-10-17 Pedro Alves <palves@redhat.com>
1763 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1764 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1765 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1767 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1768 * ada-lang.h [__alpha__ && __osf__]
1769 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1770 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1771 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1773 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1775 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1776 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1777 * configure: Regenerate.
1778 * configure.ac: Remove references to osf.
1779 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1780 section. Remove all other references to osf.
1781 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1782 Remove all other references to osf.
1783 * dec-thread.c: Delete file.
1784 * defs.h (GDB_OSABI_OSF1): Delete.
1785 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1787 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1788 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1790 (unconditionally_kill_inferior)
1791 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1792 * solib-osf.c: Delete file.
1794 2014-10-17 Pedro Alves <palves@redhat.com>
1796 * remote.c (clear_threads_listing_context): Move higher up, out of
1797 the HAVE_LIBEXPAT guard.
1799 2014-10-16 Tristan Gingold <gingold@adacore.com>
1801 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1802 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1805 2014-10-15 Pedro Alves <palves@redhat.com>
1807 * dec-thread.c (dec_thread_count_gdb_threads)
1808 (dec_thread_add_gdb_thread): Delete.
1809 (dec_thread_update_thread_list): Delete.
1810 (dec_thread_find_new_threads): Rename to ...
1811 (dec_thread_update_thread_list): ... this. Delete GDB-size
1812 threads that are no longer found in dec_thread_list.
1813 (resync_thread_list): Delete.
1814 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1817 2014-10-15 Pedro Alves <palves@redhat.com>
1819 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1820 * remote.c (remote_update_thread_list): Skip calling prune_threads
1821 if any thread listing method is supported, and instead walk over
1822 the set of remote threads listed, deleting those that are not
1823 found in GDB's thread list.
1825 2014-10-15 Pedro Alves <palves@redhat.com>
1827 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1828 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1829 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1830 (bsd_uthread_target): Adjust.
1831 * corelow.c (core_open): Adjust.
1832 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1833 (dec_thread_update_thread_list): New function.
1834 (init_dec_thread_ops): Adjust.
1835 * gdbthread.h (prune_threads): New declaration.
1836 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1837 (thread_db_update_thread_list): ... this. Call prune_threads.
1838 (init_thread_db_ops): Adjust.
1839 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1840 (procfs_update_thread_list): ... this. Call prune_threads.
1841 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1843 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1844 (obsd_update_thread_list): ... this. Call prune_threads.
1845 (obsd_add_target): Adjust.
1846 * procfs.c (procfs_target): Adjust.
1847 (procfs_notice_thread): Update comment.
1848 (procfs_find_new_threads): Rename to ...
1849 (procfs_update_thread_list): ... this. Call prune_threads.
1850 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1852 (ravenscar_wait): Adjust.
1853 (ravenscar_find_new_threads): Rename to ...
1854 (ravenscar_update_thread_list): ... this. Call prune_threads.
1855 (init_ravenscar_thread_ops): Adjust.
1856 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1857 (record_btrace_update_thread_list): ... this. Adjust comment.
1858 (init_record_btrace_ops): Adjust.
1859 * remote.c (remote_threads_info): Rename to ...
1860 (remote_update_thread_list): ... this. Call prune_threads.
1861 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1863 * sol-thread.c (check_for_thread_db): Adjust.
1864 (sol_find_new_threads_callback): Rename to ...
1865 (sol_update_thread_list_callback): ... this.
1866 (sol_find_new_threads): Rename to ...
1867 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1868 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1869 * target-delegates.c: Regenerate.
1870 * target.c (target_find_new_threads): Rename to ...
1871 (target_update_thread_list): ... this.
1872 * target.h (struct target_ops): Rename to_find_new_threads field
1873 to to_update_thread_list.
1874 (target_find_new_threads): Rename to ...
1875 (target_update_thread_list): ... this.
1876 * thread.c (prune_threads): Make extern.
1877 (update_thread_list): Adjust.
1879 2014-10-15 Pedro Alves <palves@redhat.com>
1881 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1882 Add describing comment. Return -1 if the qL packet is not
1884 (struct thread_item, thread_item_t): Move higher up in
1885 the file. Add comments.
1886 (struct threads_parsing_context): Move higher up in
1887 the file, add comments, and remote to ...
1888 (struct threads_listing_context): ... this.
1889 (remote_newthread_step): Don't add the thread to GDB's thread
1890 database here. Instead push it to the thread_listing_context
1892 (remote_find_new_threads): Rename to ...
1893 (remote_get_threads_with_ql): ... this. Add target_ops and
1894 targets_listing_context parameters. Pass down context.
1895 (start_thread): Adjust.
1896 (clear_threads_parsing_context): Rename to ...
1897 (clear_threads_listing_context): ... this.
1898 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1899 remote_threads_info.
1900 (remote_get_threads_with_qthreadinfo): Ditto.
1901 (remote_threads_info): Reimplement.
1903 2014-10-15 Pedro Alves <palves@redhat.com>
1905 * infrun.c (resume): Don't force displaced-stepping for all
1906 single-steps on software single-stepping archs.
1908 2014-10-15 Pedro Alves <palves@redhat.com>
1910 * breakpoint.c (single_step_breakpoints): Delete global.
1911 (insert_single_step_breakpoint): Adjust to store the breakpoint
1912 pointer in the current thread.
1913 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1914 (cancel_single_step_breakpoints): Delete functions.
1915 (breakpoint_has_location_inserted_here): Make extern.
1916 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1918 * breakpoint.h (breakpoint_has_location_inserted_here): New
1920 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1921 (cancel_single_step_breakpoints): Remove declarations.
1922 * gdbthread.h (struct thread_control_state)
1923 <single_step_breakpoints>: New field.
1924 (delete_single_step_breakpoints)
1925 (thread_has_single_step_breakpoints_set)
1926 (thread_has_single_step_breakpoint_here): New declarations.
1927 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1928 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1929 (singlestep_pc): Delete globals.
1930 (infrun_thread_ptid_changed): Remove references to removed
1932 (resume_cleanups): Delete the current thread's single-step
1934 (maybe_software_singlestep): Remove references to removed globals.
1935 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1936 delete_single_step_breakpoints.
1937 (init_wait_for_inferior): Remove references to removed globals.
1938 (delete_thread_infrun_breakpoints): Delete the thread's
1939 single-step breakpoints too.
1940 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1941 single-step breakpoints here.
1942 (delete_stopped_threads_single_step_breakpoints): New function.
1943 (adjust_pc_after_break): Adjust to use
1944 thread_has_single_step_breakpoints_set.
1945 (handle_inferior_event): Remove references to removed globals.
1946 Use delete_stopped_threads_single_step_breakpoints.
1947 (handle_signal_stop): Adjust to per-thread single-step
1948 breakpoints. Swap test order to do cheaper tests first.
1949 (switch_back_to_stepped_thread): Extend debug output. Remove
1950 references to removed globals.
1951 * record-full.c (record_full_wait_1): Adjust to per-thread
1952 single-step breakpoints.
1953 * thread.c (delete_single_step_breakpoints)
1954 (thread_has_single_step_breakpoints_set)
1955 (thread_has_single_step_breakpoint_here): New functions.
1956 (clear_thread_inferior_resources): Also delete the thread's
1957 single-step breakpoints.
1959 2014-10-15 Pedro Alves <palves@redhat.com>
1961 * thread.c (delete_thread_breakpoint): New function.
1962 (delete_step_resume_breakpoint)
1963 (delete_exception_resume_breakpoint): Use it.
1964 (delete_at_next_stop): New function.
1965 (clear_thread_inferior_resources): Use delete_at_next_stop.
1967 2014-10-15 Pedro Alves <palves@redhat.com>
1969 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1970 (breakpoint_inserted_here_p): ... here. Remove special case for
1971 software single-step breakpoints.
1972 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1973 (software_breakpoint_inserted_here_p): ... here. Remove special
1974 case for software single-step breakpoints.
1975 (bp_target_info_copy_insertion_state)
1976 (deprecated_insert_raw_breakpoint)
1977 (deprecated_remove_raw_breakpoint): Delete functions.
1978 * breakpoint.h (deprecated_insert_raw_breakpoint)
1979 (deprecated_remove_raw_breakpoint): Remove declarations.
1981 2014-10-15 Pedro Alves <palves@redhat.com>
1984 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1985 Delete array globals.
1986 (single_step_breakpoints): New global.
1987 (breakpoint_xfer_memory): Remove special handling for single-step
1989 (update_breakpoints_after_exec): Delete bp_single_step
1991 (detach_breakpoints): Remove special handling for single-step
1993 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1994 (bpstat_stop_status): Add comment.
1995 (bpstat_what, bptype_string, print_one_breakpoint_location)
1996 (adjust_breakpoint_address, init_bp_location): Handle
1998 (new_single_step_breakpoint): New function.
1999 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2000 handling for single-step breakpoints.
2001 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2002 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2004 (detach_single_step_breakpoints, find_single_step_breakpoint):
2006 (breakpoint_has_location_inserted_here): New function.
2007 (single_step_breakpoint_inserted_here_p): Rewrite.
2008 * breakpoint.h: Remove FIXME.
2009 (enum bptype) <bp_single_step>: New enum value.
2010 (insert_single_step_breakpoint): Update comment.
2011 * infrun.c (resume_cleanups)
2012 (delete_step_thread_step_resume_breakpoint): Remove single-step
2014 (fetch_inferior_event): Install a cleanup that removes infrun
2016 (switch_back_to_stepped_thread) <expect thread advanced also>:
2017 Clear step-over info.
2019 2014-10-15 Pedro Alves <palves@redhat.com>
2021 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2022 (delete_thread_infrun_breakpoints): New function, with parts
2023 salvaged from delete_step_resume_breakpoint_callback.
2024 (delete_step_thread_step_resume_breakpoint): Delete.
2025 (for_each_just_stopped_thread_callback_func): New typedef.
2026 (for_each_just_stopped_thread): New function.
2027 (delete_just_stopped_threads_infrun_breakpoints): New function.
2028 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2029 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2031 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2033 2014-10-15 Pedro Alves <palves@redhat.com>
2035 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2036 trying to step past a non-steppable watchpoint.
2037 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2039 * infrun.c (struct step_over_info): Add new field
2040 'nonsteppable_watchpoint_p' and adjust comments.
2041 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2043 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2044 (stepping_past_nonsteppable_watchpoint): New function.
2045 (step_over_info_valid_p): Also return true if stepping past a
2046 nonsteppable watchpoint.
2047 (proceed): Adjust call to set_step_over_info. Remove reference to
2049 (init_wait_for_inferior): Remove reference to init_infwait_state.
2050 (waiton_ptid): Delete global.
2051 (struct execution_control_state)
2052 <stepped_after_stopped_by_watchpoint>: Delete field.
2053 (wait_for_inferior, fetch_inferior_event): Always pass
2054 minus_one_ptid to target_wait.
2055 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2057 (init_infwait_state): Delete function.
2058 (handle_inferior_event): Remove infwait_state handling.
2059 (handle_signal_stop) <watchpoints handling>: Adjust after
2060 stepped_after_stopped_by_watchpoint removal. Don't remove
2061 breakpoints here nor set infwait_state. Set the thread's
2062 stepping_over_watchpoint flag, and call keep_going instead.
2063 (keep_going): Handle stepping_over_watchpoint. Adjust
2064 set_step_over_info calls.
2065 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2068 2014-10-15 Pedro Alves <palves@redhat.com>
2070 * infrun.c (step_over_info_valid_p): New function.
2071 (resume): Use step_over_info_valid_p instead of checking the
2072 threads's trap_expected flag.
2074 2014-10-15 Doug Evans <dje@google.com>
2075 Walfred Tedeschi <walfred.tedeschi@intel.com>
2078 * python/lib/gdb/__init__.py (packages): Add "printer".
2079 * python/lib/gdb/command/bound_registers.py: Moved to ...
2080 * python/lib/gdb/printer/bound_registers.py: ... here.
2081 Add printer to global set of builtin printers. Rename printer from
2082 "bound" to "mpx_bound128".
2083 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2084 registered as global "builtin" printer.
2085 (add_builtin_pretty_printer): New function.
2086 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2087 gdb/printer/__init__.py.
2089 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2091 * Makefile.in (SFILES): Remove d-support.c.
2092 (COMMON_OBS): Remove d-support.o.
2093 * d-lang.h (d_parse_symbol): Remove declaration.
2094 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2095 * d-support.c: Remove file.
2097 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2099 * gdb/infrun.c (process_event_stop_test): Apply
2100 gdbarch_addr_bits_remove to longjmp resume address.
2102 2014-10-15 Pedro Alves <palves@redhat.com>
2104 * regformats/microblaze.dat: Delete file.
2106 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2108 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2109 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2111 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2113 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2116 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2120 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2121 with qualified args.
2123 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2125 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2126 of the case where the second operand is a pointer.
2127 <BINOP_SUB>: Likewise.
2129 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2131 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2132 only if it is not NULL.
2133 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2134 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2135 (struct probe_ops) <clear_semaphore>: Likewise.
2136 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2138 (stop_tracing): Likewise, for clear_semaphore.
2140 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2142 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2143 using language_c, instead of current_language.
2145 2014-10-13 Doug Evans <dje@google.com>
2147 * python/py-objfile.c (objfpy_initialize): New function.
2148 (objfpy_new, objfile_to_objfile_object): Call it.
2149 * python/py-progspace.c (pspy_initialize): New function.
2150 (pspy_new, pspace_to_pspace_object): Call it.
2152 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2153 Jan Kratochvil <jan.kratochvil@redhat.com>
2155 Fix "save breakpoints" for "catch" command.
2156 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2159 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2161 Fix "save breakpoints" for "disable $bpnum" command.
2162 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2164 2014-10-10 Pedro Alves <palves@redhat.com>
2166 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2167 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2168 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2169 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2171 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2172 * configure.ac: Remove references to IRIX.
2173 * configure.host: Add *-*-irix* to the obsolete hosts section.
2174 Remove all other references to irix.
2175 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2178 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2180 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2181 isn't valid, release the tdesc arch data and return NULL.
2183 2014-10-10 Pedro Alves <palves@redhat.com>
2185 * linux-tdep.c: Include observer.h.
2186 (linux_inferior_data): New global.
2187 (struct linux_info): New structure.
2188 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2189 (get_linux_inferior_data): New functions.
2190 (linux_vsyscall_range): Rename to ...
2191 (linux_vsyscall_range_raw): ... this.
2192 (linux_vsyscall_range): New function; handles caching.
2193 (_initialize_linux_tdep): Register linux_inferior_data. Install
2194 inferior_exit and inferior_appeared observers.
2196 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2197 Pedro Alves <palves@redhat.com>
2200 * solib-svr4.c (svr4_read_so_list): Rename to ...
2201 (svr4_current_sos_1): ... this and change the function comment.
2202 (svr4_current_sos): New function.
2204 2014-10-10 Pedro Alves <palves@redhat.com>
2206 * arch-utils.c (default_vsyscall_range): New function.
2207 * arch-utils.h (default_vsyscall_range): New declaration.
2208 * gdbarch.sh (vsyscall_range): New hook.
2209 * gdbarch.h, gdbarch.c: Regenerate.
2210 * linux-tdep.c (linux_vsyscall_range): New function.
2211 (linux_init_abi): Install linux_vsyscall_range as
2212 vsyscall_range gdbarch hook.
2213 * memrange.c (address_in_mem_range): New function.
2214 * memrange.h (address_in_mem_range): New declaration.
2215 * symfile-mem.c (find_vdso_size): Delete function.
2216 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2218 2014-10-10 Pedro Alves <palves@redhat.com>
2220 * infrun.c (normal_stop): Fix typo in comment.
2222 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2225 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2226 typo when using logical AND to determine instruction type.
2228 2014-10-09 Yao Qi <yao@codesourcery.com>
2230 * infrun.c (handle_signal_stop): Remove local variable
2233 2014-10-08 Stan Shebs <stan@codesourcery.com>
2235 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2237 2014-10-08 Gary Benson <gbenson@redhat.com>
2239 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2241 2014-10-08 Gary Benson <gbenson@redhat.com>
2243 * common/common-defs.h: Include common-exceptions.h.
2244 * exceptions.h: Do not include common-exceptions.h.
2246 2014-10-08 Gary Benson <gbenson@redhat.com>
2248 * common/common-defs.h: Include cleanups.h.
2249 * common/common-exceptions.c: Do not include cleanups.h.
2250 * utils.h: Likewise.
2252 2014-10-08 Gary Benson <gbenson@redhat.com>
2254 * ada-lang.c: Do not include exceptions.h.
2255 * ada-valprint.c: Likewise.
2256 * amd64-tdep.c: Likewise.
2257 * auto-load.c: Likewise.
2258 * block.c: Likewise.
2259 * break-catch-throw.c: Likewise.
2260 * breakpoint.c: Likewise.
2261 * btrace.c: Likewise.
2262 * c-lang.c: Likewise.
2263 * cli/cli-cmds.c: Likewise.
2264 * cli/cli-interp.c: Likewise.
2265 * cli/cli-script.c: Likewise.
2266 * completer.c: Likewise.
2267 * corefile.c: Likewise.
2268 * corelow.c: Likewise.
2269 * cp-abi.c: Likewise.
2270 * cp-support.c: Likewise.
2271 * cp-valprint.c: Likewise.
2272 * darwin-nat.c: Likewise.
2273 * dwarf2-frame-tailcall.c: Likewise.
2274 * dwarf2-frame.c: Likewise.
2275 * dwarf2loc.c: Likewise.
2276 * dwarf2read.c: Likewise.
2278 * event-loop.c: Likewise.
2279 * event-top.c: Likewise.
2280 * f-valprint.c: Likewise.
2281 * frame-unwind.c: Likewise.
2282 * frame.c: Likewise.
2283 * gdbtypes.c: Likewise.
2284 * gnu-v2-abi.c: Likewise.
2285 * gnu-v3-abi.c: Likewise.
2286 * guile/scm-auto-load.c: Likewise.
2287 * guile/scm-breakpoint.c: Likewise.
2288 * guile/scm-cmd.c: Likewise.
2289 * guile/scm-frame.c: Likewise.
2290 * guile/scm-lazy-string.c: Likewise.
2291 * guile/scm-param.c: Likewise.
2292 * guile/scm-symbol.c: Likewise.
2293 * guile/scm-type.c: Likewise.
2294 * hppa-hpux-tdep.c: Likewise.
2295 * i386-tdep.c: Likewise.
2296 * inf-loop.c: Likewise.
2297 * infcall.c: Likewise.
2298 * infcmd.c: Likewise.
2299 * infrun.c: Likewise.
2300 * interps.c: Likewise.
2301 * interps.h: Likewise.
2303 * linespec.c: Likewise.
2304 * linux-nat.c: Likewise.
2305 * linux-thread-db.c: Likewise.
2306 * m32r-rom.c: Likewise.
2308 * memory-map.c: Likewise.
2309 * mi/mi-cmd-break.c: Likewise.
2310 * mi/mi-cmd-stack.c: Likewise.
2311 * mi/mi-interp.c: Likewise.
2312 * mi/mi-main.c: Likewise.
2313 * monitor.c: Likewise.
2314 * nto-procfs.c: Likewise.
2315 * objc-lang.c: Likewise.
2316 * p-valprint.c: Likewise.
2317 * parse.c: Likewise.
2318 * ppc-linux-tdep.c: Likewise.
2319 * printcmd.c: Likewise.
2320 * probe.c: Likewise.
2321 * python/py-auto-load.c: Likewise.
2322 * python/py-breakpoint.c: Likewise.
2323 * python/py-cmd.c: Likewise.
2324 * python/py-finishbreakpoint.c: Likewise.
2325 * python/py-frame.c: Likewise.
2326 * python/py-framefilter.c: Likewise.
2327 * python/py-function.c: Likewise.
2328 * python/py-gdb-readline.c: Likewise.
2329 * python/py-inferior.c: Likewise.
2330 * python/py-infthread.c: Likewise.
2331 * python/py-lazy-string.c: Likewise.
2332 * python/py-linetable.c: Likewise.
2333 * python/py-param.c: Likewise.
2334 * python/py-prettyprint.c: Likewise.
2335 * python/py-symbol.c: Likewise.
2336 * python/py-type.c: Likewise.
2337 * python/py-value.c: Likewise.
2338 * python/python-internal.h: Likewise.
2339 * python/python.c: Likewise.
2340 * record-btrace.c: Likewise.
2341 * record-full.c: Likewise.
2342 * regcache.c: Likewise.
2343 * remote-fileio.c: Likewise.
2344 * remote-mips.c: Likewise.
2345 * remote.c: Likewise.
2346 * rs6000-aix-tdep.c: Likewise.
2347 * rs6000-nat.c: Likewise.
2349 * solib-darwin.c: Likewise.
2350 * solib-dsbt.c: Likewise.
2351 * solib-frv.c: Likewise.
2352 * solib-ia64-hpux.c: Likewise.
2353 * solib-spu.c: Likewise.
2354 * solib-svr4.c: Likewise.
2355 * solib.c: Likewise.
2356 * spu-tdep.c: Likewise.
2357 * stack.c: Likewise.
2358 * stap-probe.c: Likewise.
2359 * symfile-mem.c: Likewise.
2360 * symmisc.c: Likewise.
2361 * target.c: Likewise.
2362 * thread.c: Likewise.
2364 * tracepoint.c: Likewise.
2365 * tui/tui-interp.c: Likewise.
2366 * typeprint.c: Likewise.
2367 * utils.c: Likewise.
2368 * valarith.c: Likewise.
2369 * valops.c: Likewise.
2370 * valprint.c: Likewise.
2371 * value.c: Likewise.
2372 * varobj.c: Likewise.
2373 * windows-nat.c: Likewise.
2374 * xml-support.c: Likewise.
2376 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2378 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2380 (extended_mips16_next_pc): Update accordingly.
2382 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2384 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2386 (micromips_instruction_is_compact_branch): Likewise.
2387 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2388 or a compact jump, reaching a jump delay slot, or seeing a
2389 second non-prologue instruction.
2390 (micromips_scan_prologue): Also terminate scanning upon seeing a
2391 compact branch or jump, or reaching a branch or jump delay slot.
2392 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2393 or jump delay slot, or seeing a second non-prologue instruction.
2394 (mips32_instruction_has_delay_slot): Retain instruction
2395 examination code only, update arguments accordingly and move
2396 instruction fetch pieces to...
2397 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2398 (micromips_instruction_has_delay_slot): Likewise and to...
2399 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2400 (mips16_instruction_has_delay_slot): Likewise and to...
2401 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2402 (mips_single_step_through_delay): Update accordingly.
2403 (mips_adjust_breakpoint_address): Likewise.
2405 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2407 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2408 !mustbe32 also return 1 for 32-bit instructions.
2409 (mips16_instruction_has_delay_slot): Likewise. Add an
2410 explanatory comment.
2412 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2414 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2417 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2419 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2421 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2422 for the breakpoint's address. Don't preinitialize `placed_size'.
2423 (insert_bp_location): Set `reqstd_address' rather than
2425 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2426 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2428 (bkpt_remove_location): Likewise.
2429 (deprecated_insert_raw_breakpoint): Likewise.
2430 (deprecated_remove_raw_breakpoint): Likewise.
2431 (find_single_step_breakpoint): Likewise.
2432 * mem-break.c (default_memory_insert_breakpoint): Use
2433 `reqstd_address' for the breakpoint's address. Don't set
2434 `placed_address' or `placed_size' if breakpoint contents couldn't
2435 have been determined.
2436 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2437 the breakpoint's address.
2438 (remote_insert_hw_breakpoint): Likewise. Don't set
2439 `placed_address' or `placed_size' if breakpoint couldn't have been
2441 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2442 `reqstd_address' for the breakpoint's address.
2443 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2444 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2445 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2446 * microblaze-linux-tdep.c
2447 (microblaze_linux_memory_remove_breakpoint): Likewise.
2448 * monitor.c (monitor_insert_breakpoint): Likewise.
2449 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2450 (procfs_insert_hw_breakpoint): Likewise.
2451 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2452 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2453 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2454 * remote-mips.c (mips_insert_breakpoint): Likewise.
2455 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2457 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2459 * valops.c (value_assign): Check for bit field assignments
2460 before calling architecture-specific register value
2461 conversion functions.
2463 2014-10-03 Pierre Muller <muller@sourceware.org>
2465 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2467 2014-10-02 Pedro Alves <palves@redhat.com>
2469 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2470 threads_are_executing.
2471 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2473 * gdbthread.h (threads_are_executing): Declare.
2474 (handle_signal_stop) <random signals>: Don't print about the
2475 signal here if stopping.
2476 (end_stepping_range): Don't notify observers here.
2477 (normal_stop): Update the thread list. If stopped by a random
2478 signal or a stepping range ended, notify observers.
2479 * thread.c (threads_executing): New global.
2480 (init_thread_list): Clear 'threads_executing'.
2481 (set_executing): Set or clear 'threads_executing'.
2482 (threads_are_executing): New function.
2483 (update_threads_executing): New function.
2484 (update_thread_list): Use it.
2486 2014-10-02 Pedro Alves <palves@redhat.com>
2488 PR breakpoints/17431
2489 * breakpoint.c (update_breakpoints_after_exec): Don't create
2490 overlay, longjmp, std terminate nor exception breakpoints here.
2492 2014-10-02 Pedro Alves <palves@redhat.com>
2494 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2496 * inferior.c (find_inferior_for_program_space): Give preference to
2497 the current inferior.
2498 * inferior.h (find_inferior_for_program_space): Update comment.
2499 * progspace.c (switch_to_program_space_and_thread): Prefer the
2500 current inferior if it's bound to the program space requested. If
2501 the inferior found doesn't have a PID yet, don't bother looking up
2503 * progspace.h (switch_to_program_space_and_thread): Adjust
2505 * thread.c (any_thread_of_process, any_live_thread_of_process):
2506 Give preference to the current thread.
2508 2014-10-01 Pedro Alves <palves@redhat.com>
2510 * breakpoint.c (insert_bp_location): Error out if inserting a
2511 software breakpoint at a read-only address.
2512 * target.c (memory_xfer_check_region): New function, factored out
2514 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2516 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2517 against the memory region attributes.
2519 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2521 * NEWS: Announce new exit-code field in -list-thread-groups
2523 * inferior.c (exit_inferior_1): Don't clear exit code.
2524 (inferior_appeared): Clear exit code.
2525 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2528 2014-10-01 Pedro Alves <palves@redhat.com>
2530 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2531 GENERATED" along with emacs/vi read-only markers.
2532 * regformats/aarch64.dat: Regenerate.
2533 * regformats/arm-with-iwmmxt.dat: Regenerate.
2534 * regformats/arm-with-neon.dat: Regenerate.
2535 * regformats/arm-with-vfpv2.dat: Regenerate.
2536 * regformats/arm-with-vfpv3.dat: Regenerate.
2537 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2538 * regformats/i386/amd64-avx.dat: Regenerate.
2539 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2540 * regformats/i386/amd64-avx512.dat: Regenerate.
2541 * regformats/i386/amd64-linux.dat: Regenerate.
2542 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2543 * regformats/i386/amd64-mpx.dat: Regenerate.
2544 * regformats/i386/amd64.dat: Regenerate.
2545 * regformats/i386/i386-avx-linux.dat: Regenerate.
2546 * regformats/i386/i386-avx.dat: Regenerate.
2547 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2548 * regformats/i386/i386-avx512.dat: Regenerate.
2549 * regformats/i386/i386-linux.dat: Regenerate.
2550 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2551 * regformats/i386/i386-mmx.dat: Regenerate.
2552 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2553 * regformats/i386/i386-mpx.dat: Regenerate.
2554 * regformats/i386/i386.dat: Regenerate.
2555 * regformats/i386/x32-avx-linux.dat: Regenerate.
2556 * regformats/i386/x32-avx.dat: Regenerate.
2557 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2558 * regformats/i386/x32-avx512.dat: Regenerate.
2559 * regformats/i386/x32-linux.dat: Regenerate.
2560 * regformats/i386/x32.dat: Regenerate.
2561 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2562 * regformats/mips-dsp-linux.dat: Regenerate.
2563 * regformats/mips-linux.dat: Regenerate.
2564 * regformats/mips64-dsp-linux.dat: Regenerate.
2565 * regformats/mips64-linux.dat: Regenerate.
2566 * regformats/nios2-linux.dat: Regenerate.
2567 * regformats/rs6000/powerpc-32.dat: Regenerate.
2568 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2569 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2570 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2571 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2572 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2573 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2574 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2575 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2576 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2577 * regformats/s390-linux32.dat: Regenerate.
2578 * regformats/s390-linux32v1.dat: Regenerate.
2579 * regformats/s390-linux32v2.dat: Regenerate.
2580 * regformats/s390-linux64.dat: Regenerate.
2581 * regformats/s390-linux64v1.dat: Regenerate.
2582 * regformats/s390-linux64v2.dat: Regenerate.
2583 * regformats/s390-te-linux64.dat: Regenerate.
2584 * regformats/s390x-linux64.dat: Regenerate.
2585 * regformats/s390x-linux64v1.dat: Regenerate.
2586 * regformats/s390x-linux64v2.dat: Regenerate.
2587 * regformats/s390x-te-linux64.dat: Regenerate.
2588 * regformats/tic6x-c62x-linux.dat: Regenerate.
2589 * regformats/tic6x-c62x.dat: Regenerate.
2590 * regformats/tic6x-c64x-linux.dat: Regenerate.
2591 * regformats/tic6x-c64x.dat: Regenerate.
2592 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2593 * regformats/tic6x-c64xp.dat: Regenerate.
2595 2014-10-01 Pedro Alves <palves@redhat.com>
2597 * features/Makefile: Update comments.
2598 (XMLTOC): List all xml files we build C files from.
2599 (clean-cfiles): New rule.
2601 2014-10-01 Pedro Alves <palves@redhat.com>
2603 * features/i386/amd64-avx512-linux.c: Regenerate.
2604 * features/i386/amd64-avx512.c: Regenerate.
2605 * features/i386/x32-avx512-linux.c: Regenerate.
2606 * features/i386/x32-avx512.c: Regenerate.
2608 2014-10-01 Pedro Alves <palves@redhat.com>
2610 * features/Makefile (WHICH): Remove arm-with-m,
2611 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2613 2014-10-01 Pedro Alves <palves@redhat.com>
2615 * features/Makefile (clean): New rule.
2617 2014-10-01 Pedro Alves <palves@redhat.com>
2619 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2620 (zmm14h): Add missing end quotes.
2622 2014-10-01 Pedro Alves <palves@redhat.com>
2624 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2625 * features/aarch64.c: Regenerate.
2627 2014-09-30 Don Breazeal <donb@codesourcery.com>
2629 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2630 code so as to work with follow_fork_inferior.
2631 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2632 (inf_ttrace_create_inferior): Remove reference to
2633 inf_ttrace_vfork_ppid.
2634 (inf_ttrace_attach): Ditto.
2635 (inf_ttrace_detach): Ditto.
2636 (inf_ttrace_kill): Use current_inferior instead of
2637 inf_ttrace_vfork_ppid.
2638 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2639 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2640 inferior away from the parent.
2641 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2643 (follow_fork_inferior): New function.
2644 (follow_inferior_reset_breakpoints): Make function static.
2645 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2646 * linux-nat.c (linux_child_follow_fork): Move target-independent
2647 code to infrun.c:follow_fork_inferior.
2649 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2651 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2652 * gdbarch.c: Regenerate.
2653 * gdbarch.h: Likewise.
2654 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2655 gdbarch method 'regset_from_core_section'.
2656 (get_core_register_section): Remove handling for the case that
2657 regset == NULL and regset_from_core_section is defined.
2658 (get_core_registers): Drop check for deleted method.
2659 * procfs.c (procfs_do_thread_registers): Adjust comment.
2661 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2663 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2664 (linux_nat_make_corefile_notes): Remove.
2665 (linux_target_install_ops): Do not set target method
2666 'make_corefile_notes'.
2667 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2669 (linux_corefile_thread_callback): Instead of args->collect, call
2670 linux_collect_thread_registers.
2671 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2672 NULL unless there is a regset iterator.
2673 (linux_make_corefile_notes_1): Remove.
2674 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2675 by linux_make_corefile_notes.
2676 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2678 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2680 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2681 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2683 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2685 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2687 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2688 (xtensa_iterate_over_regset_sections): New.
2689 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2691 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2693 * vax-tdep.c (vax_regset_from_core_section): Remove.
2694 (vax_iterate_over_regset_sections): New.
2695 (vax_gdbarch_init): Adjust gdbarch initialization.
2697 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2699 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2700 (tilegx_regset_from_core_section): Remove.
2701 (tilegx_iterate_over_regset_sections): New.
2702 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2704 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2706 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2707 (sparc_iterate_over_regset_sections): New.
2708 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2709 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2711 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2712 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2713 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2714 target method 'make_corefile_notes'.
2716 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2718 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2719 'sizeof_gregset' and 'sizeof_fpregset'.
2720 * sh-tdep.c (sh_regset_from_core_section): Remove.
2721 (sh_iterate_over_regset_sections): New.
2722 (sh_gdbarch_init): Adjust gdbarch initialization.
2723 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2725 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2728 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2730 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2731 (score7_linux_iterate_over_regset_sections): New.
2732 (score_gdbarch_init): Adjust gdbarch initialization.
2734 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2736 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2738 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2739 method 'make_corefile_notes'.
2740 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2741 (ppcfbsd_regset_from_core_section): Remove.
2742 (ppcfbsd_iterate_over_regset_sections): New.
2743 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2745 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2746 (ppcnbsd_iterate_over_regset_sections): New.
2747 (ppcnbsd_init_abi): Adjust.
2748 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2749 (ppcobsd_iterate_over_regset_sections): New.
2750 (ppcobsd_init_abi): Adjust.
2751 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2752 (rs6000_aix_iterate_over_regset_sections): New.
2753 (rs6000_aix_init_osabi): Adjust.
2755 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2757 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2758 (nios2_regset_from_core_section): Remove.
2759 (nios2_iterate_over_regset_sections): New.
2760 (nios2_linux_init_abi): Adjust gdbarch initialization.
2762 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2764 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2765 (am33_iterate_over_regset_sections): New.
2766 (am33_linux_init_osabi): Adjust gdbarch initialization.
2768 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2770 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2771 (mips_linux_iterate_over_regset_sections): New.
2772 (mips_linux_init_abi): Adjust gdbarch initialization.
2773 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2774 (mips64obsd_iterate_over_regset_sections): New.
2775 (mips64obsd_init_abi): Adjust.
2776 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2777 (mipsnbsd_iterate_over_regset_sections): New.
2778 (mipsnbsd_init_abi): Adjust.
2780 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2782 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2783 (m88k_iterate_over_regset_sections): New.
2784 (m88k_gdbarch_init): Adjust gdbarch initialization.
2786 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2788 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2789 (ia64_linux_iterate_over_regset_sections): New.
2790 (ia64_linux_init_abi): Adjust gdbarch initialization.
2792 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2794 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2795 (m68kbsd_iterate_over_regset_sections): New.
2796 (m68kbsd_init_abi): Adjust gdbarch initialization.
2797 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2798 (m68k_linux_iterate_over_regset_sections): New.
2799 (m68k_linux_init_abi): Adjust gdbarch initialization.
2801 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2803 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2804 (m32r_linux_regset_from_core_section): Remove.
2805 (m32r_linux_iterate_over_regset_sections): New.
2806 (m32r_linux_init_abi): Adjust gdbarch initialization.
2808 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2810 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2811 (amd64obsd_iterate_over_regset_sections): New.
2812 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2813 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2815 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2816 regset_from_core_section initialization.
2817 * i386-tdep.c (i386_regset_from_core_section): Remove.
2818 (i386_iterate_over_regset_sections): New.
2819 (i386_gdbarch_init): Adjust gdbarch initialization.
2820 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2821 (i386_iterate_over_regset_sections): New prototype.
2822 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2824 (i386obsd_aout_iterate_over_regset_sections): New.
2825 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2826 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2828 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2829 (amd64fbsd_init_abi): Call fbsd_init_abi.
2830 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2831 (i386fbsd4_init_abi): Call fbsd_init_abi.
2832 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2833 target method 'make_corefile_notes'.
2834 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2836 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2838 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2839 (hppa_hpux_iterate_over_regset_sections): New.
2840 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2841 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2842 (hppa_linux_iterate_over_regset_sections): New.
2843 (hppa_linux_init_abi): Adjust.
2844 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2845 (hppanbsd_iterate_over_regset_sections): New.
2846 (hppanbsd_init_abi): Adjust.
2847 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2848 (hppaobsd_iterate_over_regset_sections): New.
2849 (hppaobsd_init_abi): Adjust.
2851 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2853 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2854 (frv_linux_iterate_over_regset_sections): New.
2855 (frv_linux_init_abi): Adjust gdbarch initialization.
2857 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2859 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2860 (armbsd_iterate_over_regset_sections): New prototype.
2861 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2862 (armbsd_iterate_over_regset_sections): New.
2863 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2866 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2868 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2869 (alpha_linux_iterate_over_regset_sections): New.
2870 (alpha_linux_init_abi): Adjust gdbarch initialization.
2871 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2873 (alphanbsd_iterate_over_regset_sections): New prototype.
2875 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2877 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2879 (aarch64_linux_iterate_over_regset_sections): New.
2880 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2882 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2884 * fbsd-tdep.c: New file.
2885 * fbsd-tdep.h: New file.
2886 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2887 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2888 (ALLDEPFILES): Add fbsd-tdep.c.
2890 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2892 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2894 * gdbarch.h: Regenerate.
2895 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2897 (get_core_register_section): Add parameter 'regset' and use it, if
2898 set. Add parameter 'min_size' and verify the bfd section size
2900 (get_core_registers_cb): Add parameter 'regset' and pass it to
2901 get_core_register section. For the "standard" register sections
2902 ".reg" and ".reg2", set an appropriate default for human_name.
2903 (get_core_registers): Don't abort when the gdbarch has an iterator
2904 but no regset_from_core_section. Add NULL/0 for parameters
2905 'regset'/'min_size' in calls to get_core_register_section.
2906 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2907 'regset' and use it instead of calling the
2908 regset_from_core_section gdbarch method.
2909 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2910 * i386-tdep.c (i386_supply_xstateregset)
2911 (i386_collect_xstateregset, i386_xstateregset): Moved to
2913 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2915 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2916 core file support only if the regset iterator hasn't been set.
2917 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2918 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2919 Moved from i386-tdep.c and renamed to *_linux*.
2920 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2921 each callback invocation. Allow any .reg-xstate size when reading
2923 * amd64-tdep.c (amd64_supply_xstateregset)
2924 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2926 (amd64_regset_from_core_section): Remove.
2927 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2928 install an amd64-specific regset_from_core_section gdbarch method.
2929 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2930 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2931 Moved from amd64-tdep.c and renamed to *_linux*.
2932 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2933 to each callback invocation. Allow any .reg-xstate size when
2934 reading from a core file.
2935 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2936 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2937 each callback invocation.
2938 (arm_linux_init_abi): No longer set the regset_from_core_section
2940 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2941 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2942 each callback invocation.
2943 (ppc_linux_init_abi): No longer set the regset_from_core_section
2945 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2946 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2947 (s390_regset_from_core_section): Remove.
2948 (s390_iterate_over_regset_sections): Add regset parameter to each
2949 callback invocation.
2950 (s390_gdbarch_init): No longer set the regset_from_core_section
2951 gdbarch method. Drop initialization of deleted tdep fields.
2953 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2955 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2956 (amd64_linux_iterate_over_regset_sections): New.
2957 (amd64_linux_init_abi_common): Don't install the regset section
2958 list, but the new iterator in gdbarch.
2959 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2960 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2961 (arm_linux_iterate_over_regset_sections): ...here. New function.
2962 (arm_linux_init_abi): Set iterator instead of section list.
2963 * corelow.c (get_core_registers_cb): New function, logic moved
2965 (get_core_registers): ...loop body here. Use new iterator method
2966 instead of walking through the regset section list.
2967 * gdbarch.sh: Remove 'core_regset_sections'. New method
2968 'iterate_over_regset_sections'. New typedef
2969 'iterate_over_regset_sections_cb'.
2970 * gdbarch.c: Regenerate.
2971 * gdbarch.h: Likewise.
2972 * i386-linux-tdep.c (i386_linux_regset_sections)
2973 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2975 (i386_linux_iterate_over_regset_sections): New.
2976 (i386_linux_init_abi): Don't choose a regset section list, but
2977 install new iterator in gdbarch.
2978 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2979 (linux_collect_regset_section_cb): New function, logic moved
2981 (linux_collect_thread_registers): ...loop body here. Use iterator
2982 method instead of walking through list.
2983 (linux_make_corefile_notes_1): Check for presence of iterator
2984 method instead of regset section list.
2985 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2986 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2987 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2988 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2989 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2990 (ppc_linux_init_abi): Don't choose from above regset section
2991 lists, but install new iterator in gdbarch.
2992 * regset.h (struct core_regset_section): Remove.
2993 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2994 have_linux_v1, have_linux_v2, and have_tdb.
2995 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2996 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2997 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2998 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2999 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3000 (s390_iterate_over_regset_sections): ...here. New function. Use
3002 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3003 regset section lists, but install new iterator.
3005 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3007 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3009 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3011 * progspace.c (print_program_space): Don't prune program spaces
3012 before printing them.
3014 2014-09-25 Pedro Alves <palves@redhat.com>
3016 * infrun.c (user_visible_resume_ptid): Don't check
3017 singlestep_breakpoints_inserted_p.
3019 2014-09-25 Pedro Alves <palves@redhat.com>
3021 * breakpoint.c (should_be_inserted): Add debug output.
3023 2014-09-25 Pedro Alves <palves@redhat.com>
3025 * infrun.c (stepping_past_instruction_at)
3026 (clear_exit_convenience_vars): Point at infrun.h instead of
3028 (handle_signal_stop): Fix typo.
3030 2014-09-24 Yao Qi <yao@codesourcery.com>
3032 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3035 2014-09-22 Gary Benson <gbenson@redhat.com>
3037 * target.c (target_stop): Updated comment.
3039 2014-09-22 Gary Benson <gbenson@redhat.com>
3041 * target/target.h (target_stop_ptid): Renamed as...
3042 (target_stop_and_wait): New function. Updated comment.
3044 (target_continue_ptid): Renamed as...
3045 (target_continue_no_signal): New function. Updated comment.
3048 2014-09-22 Pedro Alves <palves@redhat.com>
3050 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3052 * breakpoint.c (enum ugll_insert_mode): New enum.
3053 (always_inserted_mode): Now a plain boolean.
3054 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3055 (breakpoints_always_inserted_mode): Delete.
3056 (breakpoints_should_be_inserted_now): New function.
3057 (insert_breakpoints): Pass UGLL_INSERT to
3058 update_global_location_list instead of calling
3059 insert_breakpoint_locations manually.
3060 (create_solib_event_breakpoint_1): New, factored out from ...
3061 (create_solib_event_breakpoint): ... this.
3062 (create_and_insert_solib_event_breakpoint): Use
3063 create_solib_event_breakpoint_1 instead of calling
3064 insert_breakpoint_locations manually.
3065 (update_global_location_list): Change parameter type from boolean
3066 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3067 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3068 (update_global_location_list_nothrow): Change parameter type from
3069 boolean to enum ugll_insert_mode.
3070 (_initialize_breakpoint): "breakpoint always-inserted" option is
3071 now a boolean command. Update help text.
3072 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3073 (breakpoints_should_be_inserted_now): New declaration.
3074 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3075 Remove breakpoints_always_inserted_mode check.
3076 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3077 * remote.c (remote_start_remote): Likewise.
3079 2014-09-22 Pedro Alves <palves@redhat.com>
3081 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3082 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3083 Instead, pass UGLL_INSERT to update_global_location_list.
3084 (update_global_location_list): Change parameter type from boolean
3085 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3086 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3087 (create_solib_event_breakpoint_1): New, factored out from ...
3088 (create_solib_event_breakpoint): ... this.
3089 (create_and_insert_solib_event_breakpoint): Use
3090 create_solib_event_breakpoint_1 instead of calling
3091 insert_breakpoint_locations manually.
3092 (update_global_location_list): Handle UGLL_INSERT.
3094 2014-09-22 Pedro Alves <palves@redhat.com>
3096 * breakpoint.c (enum ugll_insert_mode): New enum.
3097 (update_global_location_list)
3098 (update_global_location_list_nothrow): Change parameter type from
3099 boolean to enum ugll_insert_mode. All callers adjusted.
3101 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3103 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3104 SystemTap support in GDB.
3106 2014-09-19 Don Breazeal <donb@codesourcery.com>
3108 * linux-nat.c (linux_handle_extended_wait): Call
3109 linux_ptrace_get_extended_event.
3110 (wait_lwp): Call linux_is_extended_waitstatus.
3111 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3112 and linux_is_extended_waitstatus.
3113 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3114 linux_ptrace_get_extended_event.
3115 (linux_ptrace_get_extended_event): New function.
3116 (linux_is_extended_waitstatus): New function.
3117 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3118 (linux_is_extended_waitstatus): New declarations.
3120 2014-09-19 Yao Qi <yao@codesourcery.com>
3122 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3123 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3124 comments. Callers update.
3125 (dwarf_decode_lines): Likewise.
3126 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3127 comments. Skip the line table if 'lowpc' is greater than
3128 'address'. Don't check
3129 dwarf2_per_objfile->has_section_at_zero.
3131 2014-09-18 Doug Evans <dje@google.com>
3133 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3134 * python/py-symtab.c (stpy_get_producer): New function.
3135 (symtab_object_getset): Add "producer" attribute.
3137 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3140 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3141 (do_captured_read_memory_integer): Remove.
3142 (safe_read_memory_integer): Use target_read_memory directly instead
3143 of catching errors in do_captured_read_memory_integer.
3145 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3147 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3150 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3152 * objc-lang.c (find_implementation_from_class): Remove dead code.
3154 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3157 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3158 "fprintf_unfiltered (gdb_stdlog...)".
3160 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3162 PR breakpoints/12526
3163 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3165 * breakpoint.c (watch_command_1): Use these fields to retain
3166 bitfield information.
3167 (extract_bitfield_from_watchpoint_value): New function.
3168 (watchpoint_check): Use it.
3169 (update_watchpoint): Use it. Optimize the address and length of a
3170 HW watchpoint pointing to a bitfield.
3171 * value.h (unpack_value_bitfield): New prototype.
3172 * value.c (unpack_value_bitfield): Make extern.
3174 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3176 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3178 * gnu-nat.c (inf_threads): New function.
3179 * gnu-nat.h (inf_threads_ftype): New typedef.
3180 (inf_threads): New declaration.
3181 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3182 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3183 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3184 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3185 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3186 (i386_gnu_dr_get_control): New functions.
3187 (reg_addr): New structure.
3188 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3189 i386 debugging register hooks.
3190 * NEWS: Mention this.
3192 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3194 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3195 vector data transfer instructions.
3196 (arm_record_coproc_data_proc): Updated.
3198 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3200 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3201 arm_record_exreg_ld_st_insn.
3202 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3205 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3207 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3208 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3209 processing instructions.
3211 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3213 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3214 for advance SIMD struct ld/st insn.
3215 (thumb2_record_decode_insn_handler): Replace stub handler with
3216 thumb2_record_asimd_struct_ld_st.
3218 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3220 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3221 for asimd, vfp and coprocessor insns.
3222 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3223 and coprocessor insns.
3224 (thumb2_record_coproc_insn): New function.
3225 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3227 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3230 2014-09-13 Doug Evans <xdje42@gmail.com>
3232 * NEWS: Mention new "queue-signal" command.
3233 * infcmd.c (queue_signal_command): New function.
3234 (_initialize_infcmd): Add new queue-signal command.
3236 2014-09-13 Doug Evans <xdje42@gmail.com>
3238 * linux-nat.c (wait_lwp): Add debugging printf.
3239 (linux_nat_wait_1): Ditto.
3241 2014-09-12 Pedro Alves <palves@redhat.com>
3243 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3244 (create_and_insert_solib_event_breakpoint): New functions.
3245 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3246 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3247 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3248 (remove_dbx_link_breakpoint): Delete function.
3249 (insert_dbx_link_bpt_in_file): Use
3250 create_and_insert_solib_event_breakpoint instead of
3251 deprecated_insert_raw_breakpoint.
3252 (procfs_wait): Don't check whether we hit __dbx_link here.
3253 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3255 * solib-irix.c (base_breakpoint): Delete global.
3256 (disable_break): Delete function.
3257 (enable_break): Use create_solib_event_breakpoint
3258 instead of deprecated_insert_raw_breakpoint.
3259 (irix_solib_handle_event): New function.
3260 (irix_solib_create_inferior_hook): Don't run the target or disable
3261 the mapping-complete breakpoint here.
3262 (_initialize_irix_solib): Install irix_solib_handle_event as
3263 so_ops->handle_event hook.
3265 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3266 Ulrich Weigand <uweigand@de.ibm.com>
3269 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3270 instead of read_memory_unsigned_integer.
3272 2014-09-12 Gary Benson <gbenson@redhat.com>
3274 * nat/linux-waitpid.c: Include common-defs.h.
3275 [GDBSERVER]: Add FIXME comment.
3276 [!GDBSERVER]: Don't include defs.h or signal.h.
3277 (linux_debug) [!GDBSERVER]: Remove empty block.
3279 2014-09-12 Gary Benson <gbenson@redhat.com>
3281 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3282 Don't include defs.h or server.h.
3284 2014-09-12 Gary Benson <gbenson@redhat.com>
3286 * nat/linux-btrace.c: Include common-defs.h.
3287 Don't include defs.h, server.h or gdbthread.h.
3288 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3290 2014-09-12 Gary Benson <gbenson@redhat.com>
3292 * common/agent.c: Include common-defs.h.
3293 Don't include defs.h or server.h.
3294 * common/buffer.c: Likewise.
3295 * common/common-debug.c: Likewise.
3296 * common/common-utils.c: Likewise.
3297 * common/errors.c: Likewise.
3298 * common/filestuff.c: Likewise.
3299 * common/format.c: Likewise.
3300 * common/gdb_vecs.c: Likewise.
3301 * common/print-utils.c: Likewise.
3302 * common/ptid.c: Likewise.
3303 * common/rsp-low.c: Likewise.
3304 * common/signals.c: Likewise.
3305 * common/vec.c: Likewise.
3306 * common/xml-utils.c: Likewise.
3307 * nat/linux-osdata.c: Likewise.
3308 * nat/linux-procfs.c: Likewise.
3309 * nat/linux-ptrace.c: Likewise.
3310 * nat/mips-linux-watch.c: Likewise.
3311 * target/waitstatus.c: Likewise.
3313 2014-09-12 Tom Tromey <tromey@redhat.com>
3314 Gary Benson <gbenson@redhat.com>
3316 * common/common-regcache.h: New file.
3317 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3318 * regcache.h: Include common-regcache.h.
3319 (regcache_read_pc): Don't declare.
3320 * regcache.c (get_thread_regcache_for_ptid): New function.
3321 * nat/linux-btrace.c: Don't include regcache.h.
3322 Include common-regcache.h.
3323 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3325 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3327 * regcache.h (struct regset): Declare.
3329 2014-09-11 Pedro Alves <palves@redhat.com>
3332 * main.c: Include "infrun.h".
3333 (catch_command_errors, catch_command_errors_const): Wait for the
3334 foreground command to complete.
3335 * top.c (maybe_wait_sync_command_done): New function, factored out
3337 (maybe_wait_sync_command_done): ... here.
3338 * top.h (maybe_wait_sync_command_done): New declaration.
3340 2014-09-11 Tom Tromey <tromey@redhat.com>
3341 Gary Benson <gbenson@redhat.com>
3343 * common/symbol.h: New file.
3344 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3345 * minsyms.c (find_minimal_symbol_address): New function.
3346 * common/agent.c: Include common/symbol.h.
3347 [!GDBSERVER]: Don't include objfiles.h.
3348 (agent_look_up_symbols): Use find_minimal_symbol_address.
3350 2014-09-11 Gary Benson <gbenson@redhat.com>
3352 * target/target.h (target_stop_ptid, target_continue_ptid):
3354 * target.c (target_stop_ptid, target_continue_ptid): New
3356 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3357 (agent_run_command): Always use target_stop_ptid and
3358 target_continue_ptid.
3360 2014-09-11 Tom Tromey <tromey@redhat.com>
3361 Gary Benson <gbenson@redhat.com>
3363 * target/target.h: New file.
3364 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3365 * target.h: Include target/target.h.
3366 (target_read_memory, target_write_memory): Don't declare.
3367 * target.c (target_read_uint32): New function.
3368 * common/agent.c: Include target/target.h.
3369 [!GDBSERVER]: Don't include target.h.
3370 (helper_thread_id): Type changed to uint32_t.
3371 (agent_get_helper_thread_id): Use target_read_uint32.
3372 (agent_run_command): Always use target_read_memory and
3373 target_write_memory.
3374 (agent_capability): Type changed to uint32_t.
3375 (agent_capability_check): Use target_read_uint32.
3377 2014-09-11 Gary Benson <gbenson@redhat.com>
3379 * common/common-debug.h (show_debug_regs): Declare.
3380 * common/common-debug.c (show_debug_regs): Define.
3381 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3382 all uses with show_debug_regs. Replace all uses that considered
3383 debug_hw_points as a multi-value integer with straight boolean
3385 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3386 with show_debug_regs.
3387 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3388 all uses with show_debug_regs.
3389 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3390 uses with show_debug_regs.
3392 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3394 * findvar.c (address_from_register): Handle targets requiring
3395 a special conversion routine even for plain pointer types.
3397 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3399 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3400 (store_register): Do not call exec_one_dummy_insn.
3402 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3404 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3405 dereference it first. Use value_enclosing_type instead of
3407 (ada_array_length): Likewise.
3409 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3411 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3412 Adjust function implementation and documentation accordingly.
3413 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3414 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3415 Update call to ada_value_ptr_subscript.
3417 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3419 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3420 instead of VAL's type.
3422 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3424 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3426 2014-09-09 Doug Evans <xdje42@gmail.com>
3429 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3430 last parameter to pkg-config, not first.
3431 * configure.ac: Pass --with-guile provided pkg-config path to
3432 GDB_GUILE_PROGRAM_NAMES.
3433 * configure: Regenerate.
3435 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3437 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3440 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3442 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3443 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3444 the list of sections determining GDB_OSABI_IRIX.
3446 2014-09-09 James Hogan <james.hogan@imgtec.com>
3448 * MAINTAINERS (Write After Approval): Add "James Hogan".
3450 2014-09-09 James Hogan <james.hogan@imgtec.com>
3452 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3454 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3456 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3458 2014-09-08 Doug Evans <xdje42@gmail.com>
3461 * guile.c: #include <signal.h>.
3462 (_initialize_guile): Block SIGCHLD while initializing Guile.
3464 Replaces the following, which is reverted.
3466 2014-07-26 Doug Evans <xdje42@gmail.com>
3469 * configure.ac: Add check for header gc/gc.h.
3470 Add check for function setenv.
3471 * configure: Regenerate.
3472 * config.in: Regenerate.
3473 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3475 2014-09-08 Doug Evans <xdje42@gmail.com>
3477 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3478 with named constant. Fix style of pointer comparison.
3479 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3481 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3484 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3485 decide whether we display the command on "show user".
3486 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3487 printing command name.
3488 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3489 * cli/cli-decode.c (cli_user_command_p): Create helper function
3490 to verify whether cmd_list_element is a user-defined command.
3492 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3495 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3496 Fix goto out of TRY_CATCH.
3498 2014-09-06 Doug Evans <xdje42@gmail.com>
3499 Tom Tromey <tromey@redhat.com>
3502 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3503 $_any_caller_matches.
3504 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3505 * python/lib/gdb/function/caller_is.py: New file.
3507 2014-09-06 Doug Evans <xdje42@gmail.com>
3509 * infcmd.c (program_info): Fix typo.
3511 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3514 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3515 'number'. New variable 'has_digit'. Rewrite code to deal with
3516 subexpressions on SDT probes.
3518 2014-09-04 Pedro Alves <palves@redhat.com>
3520 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3521 the input is only one character long.
3523 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3526 * f-valprint.c (f_val_print): Specify the correct print option to
3527 use when printing integer values.
3529 2014-09-04 Gary Benson <gbenson@redhat.com>
3531 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3532 Remove code to cope with LWPs wrapped as PIDs.
3533 Add assertions to ensure no wrapped LWPs are passed.
3535 2014-09-04 Pedro Alves <palves@redhat.com>
3537 * value.c (value_ranges_copy_adjusted): New function, factored out
3539 (value_contents_copy_raw): ... here.
3540 (unpack_value_bits_as_long_1): Rename back to ...
3541 (unpack_bits_as_long): ... this. Remove 'original_value' and
3542 'result' parameters. Change return type to LONGEST.
3543 (unpack_value_bits_as_long): Delete.
3544 (unpack_value_field_as_long_1): Delete.
3545 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3546 (unpack_value_bitfield): New function.
3547 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3548 (value_fetch_lazy): Use unpack_value_bitfield.
3549 * value.h (unpack_value_bits_as_long): Delete declaration.
3551 2014-09-03 Sasha Smundak <asmundak@google.com>
3553 * python/py-frame.c (frapy_read_register): New function.
3555 2014-09-03 James Hogan <james.hogan@imgtec.com>
3557 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3558 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3560 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3563 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3565 (add_cmd): Set "completer_handle_brkchars" to NULL.
3566 * cli/cli-decode.h (struct cmd_list_element)
3567 <completer_handle_brkchars>: New field.
3568 * command.h (completer_ftype_void): New typedef.
3569 (set_cmd_completer_handle_brkchars): New prototype.
3570 * completer.c (set_gdb_completion_word_break_characters): New
3572 (complete_line_internal): Call "completer_handle_brkchars"
3573 callback from command.
3574 * completer.h: Include "command.h".
3575 (set_gdb_completion_word_break_characters): New prototype.
3576 * python/py-cmd.c (cmdpy_completer_helper): New function.
3577 (cmdpy_completer_handle_brkchars): New function.
3578 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3579 (cmdpy_init): Set completer_handle_brkchars to
3580 cmdpy_completer_handle_brkchars.
3582 2014-09-03 Gary Benson <gbenson@redhat.com>
3584 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3585 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3586 Loop conditions changed to equivalent form.
3587 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3588 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3589 ALL_DEBUG_ADDRESS_REGISTERS.
3591 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3593 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3596 2014-09-02 Doug Evans <dje@google.com>
3598 * typeprint.c (find_global_typedef): Fix comment.
3600 2014-09-02 Gary Benson <gbenson@redhat.com>
3602 * i386-nat.h: Renamed as...
3603 * x86-nat.h: New file. All type, function and variable name
3604 prefixes changed from "i386_" to "x86_". All references updated.
3605 * i386-nat.c: Renamed as...
3606 * x86-nat.c: New file. All type, function and variable name
3607 prefixes changed from "i386_" to "x86_". All references updated.
3608 * common/i386-xstate.h: Renamed as...
3609 * common/x86-xstate.h: New file. All type, function and variable
3610 name prefixes changed from "i386_" to "x86_". All references
3612 * nat/i386-cpuid.h: Renamed as...
3613 * nat/x86-cpuid.h: New file. All type, function and variable name
3614 prefixes changed from "i386_" to "x86_". All references updated.
3615 * nat/i386-gcc-cpuid.h: Renamed as...
3616 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3617 name prefixes changed from "i386_" to "x86_". All references
3619 * nat/i386-dregs.h: Renamed as...
3620 * nat/x86-dregs.h: New file. All type, function and variable name
3621 prefixes changed from "i386_" to "x86_". All references updated.
3622 * nat/i386-dregs.c: Renamed as...
3623 * nat/x86-dregs.c: New file. All type, function and variable name
3624 prefixes changed from "i386_" to "x86_". All references updated.
3626 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3628 * varobj.c (_initialize_varobj): Move to the end of file.
3630 2014-08-29 Gary Benson <gbenson@redhat.com>
3632 * common/common-exceptions.h: New file.
3633 * common/common-exceptions.c: Likewise.
3634 * Makefile.in (SFILES): Add common/common-exceptions.c.
3635 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3636 (COMMON_OBS): Add common-exceptions.o.
3637 (common-exceptions.o): New rule.
3638 * exceptions.h (common-exceptions.h): Include.
3639 (gdb_setjmp.h): Do not include.
3640 (return_reason): Moved to common-exceptions.h.
3641 (enum return_reason): Likewise.
3642 (RETURN_MASK): Likewise.
3643 (typedef return_mask): Likewise.
3644 (enum errors): Likewise.
3645 (struct gdb_exception): Likewise.
3646 (exceptions_state_mc_init): Likewise.
3647 (exceptions_state_mc_action_iter): Likewise.
3648 (exceptions_state_mc_action_iter_1): Likewise.
3649 (TRY_CATCH): Likewise.
3650 (throw_exception): Likewise.
3651 (throw_verror): Likewise.
3652 (throw_vquit): Likewise.
3653 (throw_error): Likewise.
3654 (throw_quit): Likewise.
3655 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3656 (enum catcher_action): Likewise.
3657 (struct catcher): Likewise.
3658 (current_catcher): Likewise.
3659 (catcher_list_size): Likewise.
3660 (exceptions_state_mc_init): Likewise.
3661 (catcher_pop): Likewise.
3662 (exceptions_state_mc): Likewise.
3663 (exceptions_state_mc_action_iter): Likewise.
3664 (exceptions_state_mc_action_iter_1): Likewise.
3665 (throw_exception): Likewise.
3666 (exception_messages): Likewise.
3667 (exception_messages_size): Likewise.
3668 (throw_it): Likewise.
3669 (throw_verror): Likewise.
3670 (throw_vquit): Likewise.
3671 (throw_error): Likewise.
3672 (throw_quit): Likewise.
3673 (prepare_to_throw_exception): New function.
3675 2014-08-29 Gary Benson <gbenson@redhat.com>
3677 * common/gdb_setjmp.h: New file.
3678 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3679 * configure.ac: Move sigsetjmp check...
3680 * common/common.m4: ...here.
3681 * configure: Regenerate.
3682 * cp-support.c (SIGJMP_BUF): Delete.
3683 (SIGSETJMP): Likewise.
3684 (SIGLONGJMP): Likewise.
3685 * exceptions.h (gdb_setjmp.h): Include.
3686 (setjmp.h): Do not include.
3687 (EXCEPTIONS_SIGJMP_BUF): Delete.
3688 (EXCEPTIONS_SIGSETJMP): Likewise.
3689 (EXCEPTIONS_SIGLONGJMP): Likewise.
3690 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3692 * exceptions.c: Likewise.
3694 2014-08-29 Gary Benson <gbenson@redhat.com>
3696 * cleanups.h: Moved to...
3697 * common/cleanups.h: New file.
3698 * cleanups.c: Moved to...
3699 * common/cleanups.c: New file. Include common-defs.h and
3700 cleanups.h. Do not include defs.h.
3701 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3702 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3703 (cleanups.o): New rule.
3705 2014-08-29 Gary Benson <gbenson@redhat.com>
3707 * common/errors.h (internal_warning): New declaration.
3708 (internal_vwarning): Likewise.
3709 * common/errors.c (internal_warning): New function.
3710 * utils.h (internal_warning): Don't declare.
3711 (internal_vwarning): Likewise.
3712 * utils.c (internal_warning): Removed.
3714 2014-08-29 Gary Benson <gbenson@redhat.com>
3716 * main.c (captured_main): Use warning during startup.
3717 Prefix startup warning messages with command name.
3719 2014-08-29 Gary Benson <gbenson@redhat.com>
3721 * main.c (captured_main): Handle usage errors with error.
3723 2014-08-29 Gary Benson <gbenson@redhat.com>
3725 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3726 exit pair with a call to error. Wrap the message with _().
3728 2014-08-29 Gary Benson <gbenson@redhat.com>
3730 * main.c (captured_main): Replace a fprintf/exit
3731 pair with a call to error. Wrap the message with _().
3733 2014-08-29 Gary Benson <gbenson@redhat.com>
3735 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3736 pairs with calls to error. Wrap the message with _().
3738 2014-08-29 Gary Benson <gbenson@redhat.com>
3740 * utils.c (vwarning): Protect calls to target_terminal_ours
3743 2014-08-29 Gary Benson <gbenson@redhat.com>
3745 * exceptions.c (print_flush): Protect calls to
3746 target_terminal_ours and wrap_here.
3748 2014-08-29 Gary Benson <gbenson@redhat.com>
3750 * utils.h (filtered_printing_initialized): New declaration.
3751 * utils.c (abort_with_message): New function.
3752 (internal_vproblem): Use abort_with_message for first level
3753 recursive internal problems, and if gdb_stderr is not set up.
3754 Protect calls to target_terminal_ours, begin_line and query.
3756 2014-08-28 Doug Evans <dje@google.com>
3758 * symtab.c (in_prologue): Move definition to better spot.
3759 (skip_prologue_using_sal): Ditto.
3761 2014-08-28 Doug Evans <dje@google.com>
3763 * symtab.c (find_function_start_sal): Move definition to better spot.
3765 2014-08-28 Yao Qi <yao@codesourcery.com>
3767 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3768 found_stack_adjust in forward scan. Remove condition check
3769 on found_stack_adjust which is always true. Indent the code.
3771 2014-08-28 Yao Qi <yao@codesourcery.com>
3773 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3774 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3775 (dwarf_decode_lines): Remove argument
3776 want_line_info. Remove condition check on want_line_info.
3779 2014-08-27 Doug Evans <dje@google.com>
3781 * dwarf2read.c (dwarf_record_line): Fix typo.
3783 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3785 * target.h (struct target_ops::to_terminal_save_ours): Remove
3787 (target_terminal_save_ours): Remove macro.
3788 * target-delegates.c: Regenerate.
3789 * inf-child.c (inf_child_target): Don't set the nonexistent
3790 field to_terminal_save_ours.
3791 * inferior.h (child_terminal_save_ours): Remove declaration.
3792 * terminal.h (gdb_save_tty_state): New declaration.
3793 * inflow.c (child_terminal_save_ours): Rename to ...
3794 (gdb_save_tty_state): ... this.
3795 * tui/tui.c: Include terminal.h.
3796 (tui_enable): Use gdb_save_tty_state instead of
3797 target_terminal_save_ours.
3798 (tui_disable): Likewise.
3800 2014-08-25 Doug Evans <dje@google.com>
3802 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3803 Pass NULL instead of 0 for context pointer.
3805 2014-08-25 Yao Qi <yao@codesourcery.com>
3807 * dwarf2read.c: Fix grammatical error.
3809 2014-08-24 Yao Qi <yao@codesourcery.com>
3811 * dwarf2read.c (scan_partial_symbols): Update comments.
3812 Rename argument 'need_pc' with 'set_addrmap'.
3813 (add_partial_namespace): Rename argument 'need_pc' with
3815 (add_partial_module): Likewise.
3816 (add_partial_subprogram): Likewise. Update comments.
3817 (dwarf2_name): Fix typo.
3819 2014-08-22 Doug Evans <dje@google.com>
3822 * dwarf2read.c (dwarf_record_line_p): New function.
3823 (dwarf_decode_lines_1): Ignore subsequent line number entries
3824 for the same line if any entry had a non-zero discriminator.
3826 2014-08-22 Doug Evans <dje@google.com>
3828 * buildsym.h (record_line_ftype): New typedef.
3829 (record_line): Use it.
3830 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3831 (dwarf_decode_lines_1): Call them.
3833 2014-08-22 Yao Qi <yao@codesourcery.com>
3835 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3836 (ctf_end): Remove code.
3838 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3840 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3841 (linux_make_corefile_notes): call update_thread_list, protected against
3844 2014-08-21 Pedro Alves <palves@redhat.com>
3846 * infcmd.c (attach_command): Remove comment.
3848 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3850 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3851 unsigned LONGEST to ULONGEST.
3853 2014-08-20 Pedro Alves <palves@redhat.com>
3855 * Makefile.in (check-read1): New rule.
3857 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3859 * value.c (value_from_contents_and_address): Strip resolved_type's
3860 typedef layers before checking its TYPE_DATA_LOCATION.
3862 2014-08-20 Pedro Alves <palves@redhat.com>
3864 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3866 2014-08-20 Yao Qi <yao@codesourcery.com>
3868 * amd64-tdep.c (amd64_classify): Add a blank line after the
3869 example. Move "*/" to a new line.
3870 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3871 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3872 * dwarf2read.c (psymtab_include_file_name): Likewise.
3874 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3875 Pedro Alves <palves@redhat.com>
3879 * ada-lang.c (coerce_unspec_val_to_type): Use
3880 value_contents_copy_raw.
3881 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3882 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3883 * cp-valprint.c (cp_print_value_fields): Let the common printing
3884 code handle optimized out values.
3885 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3886 * d-valprint.c (dynamic_array_type): Use
3887 value_bits_any_optimized_out.
3888 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3889 check_any_valid fields.
3890 (check_pieced_value_bits): Delete and inline ...
3891 (check_pieced_synthetic_pointer): ... here.
3892 (check_pieced_value_validity): Delete.
3893 (check_pieced_value_invalid): Delete.
3894 (pieced_value_funcs): Remove check_validity and check_any_valid
3896 (read_pieced_value): Use mark_value_bits_optimized_out.
3897 (write_pieced_value): Switch to use
3898 mark_value_bytes_optimized_out.
3899 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3900 of assuming the whole value is optimized out.
3901 * findvar.c (read_frame_register_value): Remove special handling
3902 of optimized out registers.
3903 (value_from_register): Use mark_value_bytes_optimized_out.
3904 * frame-unwind.c (frame_unwind_got_optimized): Use
3905 mark_value_bytes_optimized_out.
3906 * jv-valprint.c (java_value_print): Adjust.
3907 (java_print_value_fields): Let the common printing code handle
3908 optimized out values.
3909 * mips-tdep.c (mips_print_register): Remove special handling of
3910 optimized out registers.
3911 * opencl-lang.c (lval_func_check_validity): Delete.
3912 (lval_func_check_any_valid): Delete.
3913 (opencl_value_funcs): Remove check_validity and check_any_valid
3915 * p-valprint.c (pascal_object_print_value_fields): Let the common
3916 printing code handle optimized out values.
3917 * stack.c (read_frame_arg): Remove special handling of optimized
3918 out values. Fetch both VAL and ENTRYVAL before comparing
3919 contents. Adjust to value_available_contents_eq rename.
3920 * valprint.c (valprint_check_validity)
3921 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3922 (val_print_array_elements): Adjust.
3923 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3924 (value_bits_any_optimized_out): New function.
3925 (value_entirely_covered_by_range_vector): New function, factored
3926 out from value_entirely_unavailable.
3927 (value_entirely_unavailable): Reimplement.
3928 (value_entirely_optimized_out): New function.
3929 (insert_into_bit_range_vector): New function, factored out from
3930 mark_value_bits_unavailable.
3931 (mark_value_bits_unavailable): Reimplement.
3932 (struct ranges_and_idx): New struct.
3933 (find_first_range_overlap_and_match): New function, factored out
3934 from value_available_contents_bits_eq.
3935 (value_available_contents_bits_eq): Rename to ...
3936 (value_contents_bits_eq): ... this. Check both unavailable
3937 contents and optimized out contents.
3938 (value_available_contents_eq): Rename to ...
3939 (value_contents_eq): ... this.
3940 (allocate_value_lazy): Remove reference to the old optimized_out
3942 (allocate_optimized_out_value): Use
3943 mark_value_bytes_optimized_out.
3944 (require_not_optimized_out): Adjust to check whether the
3945 optimized_out vec is empty.
3946 (ranges_copy_adjusted): New function, factored out from
3947 value_contents_copy_raw.
3948 (value_contents_copy_raw): Also copy the optimized out ranges.
3949 Assert the destination ranges aren't optimized out.
3950 (value_contents_copy): Update comment, remove call to
3951 require_not_optimized_out.
3952 (value_contents_equal): Adjust to check whether the optimized_out
3954 (set_value_optimized_out, value_optimized_out_const): Delete.
3955 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3957 (value_entirely_optimized_out, value_bits_valid): Delete.
3958 (value_copy): Take a VEC copy of the 'optimized_out' field.
3959 (value_primitive_field): Remove special handling of optimized out.
3960 (value_fetch_lazy): Assert that lazy values have no unavailable
3961 regions. Use value_bits_any_optimized_out. Remove some special
3962 handling for optimized out values.
3963 * value.h: Add intro comment about <optimized out> and
3965 (struct lval_funcs): Remove check_validity and check_any_valid
3967 (set_value_optimized_out, value_optimized_out_const): Remove.
3968 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3970 (value_bits_any_optimized_out): New declaration.
3971 (value_bits_valid): Delete declaration.
3972 (value_available_contents_eq): Rename to ...
3973 (value_contents_eq): ... this, and extend comments.
3975 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3977 Fix -fsanitize=address on unreadable inferior strings.
3978 * valprint.c (val_print_string): Fix access before BUFFER.
3980 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3982 * target.c (target_struct_size): Remove.
3983 (target_struct_allocsize): Remove.
3984 (DEFAULT_ALLOCSIZE): Remove.
3985 (target_ops_p): New typedef.
3986 (DEF_VEC_P (target_ops_p)): New vector type.
3987 (target_structs): Change type to VEC (target_ops_p).
3988 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3989 (find_default_run_target): Rewrite for loop following changes to
3992 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3994 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3995 Adjust code accordingly. Adjust function description comment.
3997 2014-08-19 Yao Qi <yao@codesourcery.com>
3999 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4002 2014-08-19 Alan Modra <amodra@gmail.com>
4004 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4005 * config.in: Regenerate.
4006 * configure: Regenerate.
4008 2014-08-19 Tom Tromey <tromey@redhat.com>
4009 Gary Benson <gbenson@redhat.com>
4011 * common/common-debug.h: New file.
4012 * common/common-debug.c: Likewise.
4013 * debug.c: Likewise.
4014 * Makefile.in (SFILES): Add common/common-debug.c.
4015 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4016 (COMMON_OBS): Add common-debug.o and debug.o.
4017 (common-debug.o): New rule.
4018 * common/common-defs.h: Include common-debug.h.
4019 * common/agent.c (debug_agent_printf): New function.
4020 (DEBUG_AGENT): Redefine.
4021 * nat/i386-dregs.c (debug_printf): Undefine.
4023 2014-08-19 Gary Benson <gbenson@redhat.com>
4025 * common/common-defs.h: Include print-utils.h.
4026 * utils.h: Do not include print-utils.h.
4028 2014-08-19 Tom Tromey <tromey@redhat.com>
4029 Gary Benson <gbenson@redhat.com>
4031 * common/common-types.h: New file.
4032 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4033 * common/common-defs.h: Include common-types.h.
4034 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4037 2014-08-19 Tom Tromey <tromey@redhat.com>
4038 Gary Benson <gbenson@redhat.com>
4040 * common/errors.h: New file.
4041 * common/errors.c: Likewise.
4042 * Makefile.in (SFILES): Add common/errors.c.
4043 (HFILES_NO_SRCDIR): Add common/errors.h.
4044 (COMMON_OBS): Add errors.o.
4045 (errors.o): New rule.
4046 * common/common-defs.h: Include errors.h.
4047 * utils.h (perror_with_name, error, verror, warning, vwarning):
4049 * common/common-utils.h: (malloc_failure, internal_error):
4052 2014-08-19 Gary Benson <gbenson@redhat.com>
4054 * utils.c (internal_vproblem): Always print the message.
4056 2014-08-18 Doug Evans <dje@google.com>
4058 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4060 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4062 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4063 Return 0 if TYPE is dynamic.
4064 (print_range): Add handling of dynamic ranges.
4066 2014-08-18 Keven Boell <keven.boell@intel.com>
4067 Joel Brobecker <brobecker@adacore.com>
4069 * gdbtypes.h (struct main_type): Add field "data_location".
4070 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4071 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4072 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4073 a dynamic data location.
4074 (resolve_dynamic_type): Add DW_AT_data_location handling.
4075 (copy_recursive, copy_type): Copy the data_location information
4077 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4078 * value.c (value_from_contents_and_address): Add
4079 DW_AT_data_location handling.
4081 2014-08-18 Keven Boell <keven.boell@intel.com>
4082 Joel Brobecker <brobecker@adacore.com>
4084 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4085 field "get_object_address".
4086 * dwarf2expr.c (execute_stack_op): Add handling for
4087 DW_OP_push_object_address.
4088 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4089 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4090 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4091 (dwarf_expr_get_obj_addr): New function.
4092 (dwarf_expr_ctx_funcs): Add get_object_address field.
4093 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4094 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4095 (dwarf2_evaluate_property): Add parameter "address". Use it.
4096 (needs_get_obj_addr): New function.
4097 (needs_frame_ctx_funcs): Add get_object_address field.
4098 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4099 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4100 (resolve_dynamic_array): Likewise.
4102 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4104 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4105 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4106 fixed value for records and unions for which some GNAT encodings
4109 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4111 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4112 rewrite to avoid "else if" and "else" constructs. Should be
4113 a no-op in practice.
4115 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4117 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4120 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4123 * eval.c: Update all calls to find_overload_match.
4124 * valarith.c: Likewise.
4125 (value_user_defined_cpp_op, value_user_defined_op): New
4126 argument NOSIDE. Update all callers.
4127 * valops.c (find_overload_match): New argument NOSIDE.
4128 * value.h (find_overload_match): Update signature.
4130 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4132 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4133 'items' methods instead of 'iteritems' method on dictionaries.
4135 2014-08-15 Doug Evans <dje@google.com>
4137 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4140 2014-08-15 Doug Evans <dje@google.com>
4142 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4144 2014-08-15 Doug Evans <dje@google.com>
4146 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4148 2014-08-15 Doug Evans <dje@google.com>
4150 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4153 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4155 * dcache.h: Include target.h, to avoid compile time warnings.
4157 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4159 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4160 frame_info" partial declaration.
4161 * gdbarch.h: Regenerate.
4163 2014-08-15 Yao Qi <yao@codesourcery.com>
4165 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4166 Add parameter 'decode_for_pst_p'. Callers update.
4168 2014-08-13 Yao Qi <yao@codesourcery.com>
4171 * configure.ac: Use local variable 'pos'.
4172 * configure: Regenerated.
4174 2014-08-11 Doug Evans <dje@google.com>
4176 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4177 message, it is redundant with "Reading symbols from ..." message.
4179 2014-08-10 Doug Evans <xdje42@gmail.com>
4181 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4183 2014-08-09 Yao Qi <yao@codesourcery.com>
4186 * remote.c (remote_xfer_partial): Remove dead code.
4188 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4190 * ia64-linux-tdep.c: Include "regset.h".
4191 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4192 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4193 (ia64_linux_supply_fpregset): New function.
4194 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4195 (ia64_linux_regset_from_core_section): New function.
4196 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4199 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4201 * m68klinux-tdep.c: Include "regset.h".
4202 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4203 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4204 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4205 (m68k_linux_regset_from_core_section): New function.
4206 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4209 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4211 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4212 function. Move logic to...
4213 (tilegx_linux_regmap): ... this new register map.
4214 (tilegx_linux_regset): Refer to register map, replace supply
4215 method by regcache_supply_regset, and add collect method.
4216 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4217 TILEGX_FIRST_EASY_REGNUM.
4219 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4221 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4222 that calls regcache_supply_regset and handles the EPC register
4223 separately. Move main logic to...
4224 (score7_linux_gregmap): ... this new register map.
4225 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4226 (score7_linux_gregset): Refer to register map. Add collect method.
4227 (score7_linux_regset_from_core_section): Replace
4228 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4229 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4230 (struct regset): Delete unused forward declaraction.
4231 (struct pt_regs): Delete structure definition.
4232 (elf_gregset_t): Delete typedef.
4234 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4236 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4237 (nios2_core_regset): Add collect method.
4239 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4241 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4242 platform-independent and don't write to read-only input buffer.
4243 (m32r_linux_collect_gregset): New function.
4244 (m32r_linux_gregset): Add collect method.
4246 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4248 * hppa-linux-tdep.c (greg_map): Rename to...
4249 (hppa_linux_gregmap): ... this. Also convert to
4250 regcache_map_entry format.
4251 (hppa_linux_supply_regset): Delete function.
4252 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4253 (hppa_linux_fpregmap): ... this new register map.
4254 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4255 register map, replace supply method by regcache_supply_regset, and
4256 add collect method regcache_collect_regset.
4258 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4260 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4261 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4262 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4263 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4264 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4265 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4266 (frv_linux_supply_gregset): Replace main logic by call to
4267 regcache_supply_regset, but keep clearing gr32-gr63.
4268 (frv_linux_supply_fpregset): Delete function.
4269 (frv_linux_gregset): Refer to appropriate register map and add
4270 regcache_collect_regset as the collect method.
4271 (frv_linux_fpregset): Likewise. Also exchange the supply method
4272 by regcache_supply_regset.
4274 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4276 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4277 by call to alpha_supply_int_regs.
4278 (alpha_linux_collect_gregset): New function.
4279 (alpha_linux_supply_fpregset): Replace logic by call to
4280 alpha_supply_fp_regs.
4281 (alpha_linux_collect_fpregset): New function.
4282 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4284 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4286 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4287 by call to regcache_collect_regset.
4288 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4289 instead of aarch64_linux_supply_gregset/_fpregset.
4290 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4291 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4292 header file instead.
4293 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4294 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4295 functions. Move logic to ...
4296 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4298 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4299 refer to new register maps, replace *_regset_from_core by
4300 regcache_supply_regset, and also use regcache_collect_regset.
4301 * aarch64-linux-tdep.h: Include "regset.h".
4302 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4304 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4305 macros, moved from C source file.
4306 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4307 variable declarations.
4309 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4311 * s390-linux-nat.c: Include "regset.h".
4312 (regmap_gregset): Delete macro.
4313 (s390_64_regmap_gregset): New register map for
4314 regcache_supply/_collect_regset.
4315 (s390_64_gregset): New regset.
4316 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4317 (regmap_fpregset): Delete macro.
4318 (s390_native_supply, s390_native_collect): Delete functions.
4319 (supply_gregset, fill_gregset): Replace s390-specific regmap
4320 handling by a call to regcache_supply/_collect_regset.
4321 (supply_fpregset, fill_fpregset): Call regcache_supply/
4322 _collect_regset instead of s390_native_supply/_collect.
4323 (fetch_regset, store_regset): Likewise. Also change the last
4324 parameter to a regset instead of a regmap.
4325 (s390_linux_fetch_inferior_registers)
4326 (390_linux_store_inferior_registers): Adjust last parameter in
4327 calls to fetch_regset and store_regset.
4328 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4329 (s390_gregmap): ... this. Also make static const and convert to
4330 regcache_map_entry format.
4331 (s390x_regmap_gregset): Delete.
4332 (s390_regmap_fpregset): Rename to...
4333 (s390_fpregmap): ... this. Make static const and convert to
4334 regcache_map_entry format.
4335 (s390_regmap_upper, s390_regmap_last_break)
4336 (s390x_regmap_last_break, s390_regmap_system_call)
4337 (s390_regmap_tdb): Likewise.
4338 (s390_supply_regset, s390_collect_regset): Remove functions.
4339 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4341 (s390_gregset, s390_fpregset, s390_upper_regset)
4342 (s390_last_break_regset, s390x_last_break_regset)
4343 (s390_system_call_regset, s390_tdb_regset): Make global and
4344 replace s390_supply/_collect_regset by regcache_supply/
4346 (s390x_gregset): Delete.
4347 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4348 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4349 (s390_regmap_fpregset, s390_regmap_last_break)
4350 (s390x_regmap_last_break, s390_regmap_system_call)
4351 (s390_regmap_tdb): Delete global variable declarations.
4352 (s390_gregset, s390_fpregset, s390_last_break_regset)
4353 (s390x_last_break_regset, s390_system_call_regset)
4354 (s390_tdb_regset): New global variable declarations.
4356 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4358 * regcache.c: Include "regset.h".
4359 (regcache_transfer_regset): New local function.
4360 (regcache_supply_regset, regcache_collect_regset): New functions.
4361 * regcache.h (struct regcache_map_entry): New structure.
4362 (REGCACHE_MAP_SKIP): New enum value.
4363 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4365 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4367 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4368 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4369 (ppc_linux_collect_gregset ): Likewise.
4370 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4371 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4372 (ppc_collect_vrregset): Likewise.
4373 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4376 2014-08-07 Yao Qi <yao@codesourcery.com>
4378 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4379 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4380 * remote.c (remote_read_bytes): Likewise.
4382 2014-08-07 Yao Qi <yao@codesourcery.com>
4384 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4386 2014-08-07 Yao Qi <yao@codesourcery.com>
4389 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4390 TARGET_XFER_OK instead of 0.
4392 2014-08-07 Gary Benson <gbenson@redhat.com>
4394 * common/common-defs.h: Include errno.h.
4395 * defs.h: Do not include errno.h.
4396 * ada-typeprint.c: Likewise.
4397 * c-typeprint.c: Likewise.
4398 * core-regset.c: Likewise.
4399 * corefile.c: Likewise.
4400 * corelow.c: Likewise.
4401 * event-loop.c: Likewise.
4402 * f-typeprint.c: Likewise.
4403 * gnu-nat.c: Likewise.
4404 * go32-nat.c: Likewise.
4405 * i386gnu-nat.c: Likewise.
4406 * m2-typeprint.c: Likewise.
4407 * nat/linux-btrace.c: Likewise.
4408 * p-typeprint.c: Likewise.
4409 * procfs.c: Likewise.
4410 * remote-sim.c: Likewise.
4411 * rs6000-nat.c: Likewise.
4412 * target.c: Likewise.
4413 * typeprint.c: Likewise.
4414 * ui-file.c: Likewise.
4415 * valops.c: Likewise.
4416 * valprint.c: Likewise.
4418 2014-08-07 Gary Benson <gbenson@redhat.com>
4420 * common/common-defs.h: Include string.h.
4421 * aarch64-tdep.c: Do not include string.h.
4422 * ada-exp.y: Likewise.
4423 * ada-lang.c: Likewise.
4424 * ada-lex.l: Likewise.
4425 * ada-typeprint.c: Likewise.
4426 * ada-valprint.c: Likewise.
4427 * aix-thread.c: Likewise.
4428 * alpha-linux-tdep.c: Likewise.
4429 * alpha-mdebug-tdep.c: Likewise.
4430 * alpha-nat.c: Likewise.
4431 * alpha-osf1-tdep.c: Likewise.
4432 * alpha-tdep.c: Likewise.
4433 * alphanbsd-tdep.c: Likewise.
4434 * amd64-dicos-tdep.c: Likewise.
4435 * amd64-linux-tdep.c: Likewise.
4436 * amd64-nat.c: Likewise.
4437 * amd64-sol2-tdep.c: Likewise.
4438 * amd64fbsd-tdep.c: Likewise.
4439 * amd64obsd-tdep.c: Likewise.
4440 * arch-utils.c: Likewise.
4441 * arm-linux-nat.c: Likewise.
4442 * arm-linux-tdep.c: Likewise.
4443 * arm-tdep.c: Likewise.
4444 * arm-wince-tdep.c: Likewise.
4445 * armbsd-tdep.c: Likewise.
4446 * armnbsd-nat.c: Likewise.
4447 * armnbsd-tdep.c: Likewise.
4448 * armobsd-tdep.c: Likewise.
4449 * avr-tdep.c: Likewise.
4450 * ax-gdb.c: Likewise.
4451 * ax-general.c: Likewise.
4452 * bcache.c: Likewise.
4453 * bfin-tdep.c: Likewise.
4454 * breakpoint.c: Likewise.
4455 * build-id.c: Likewise.
4456 * buildsym.c: Likewise.
4457 * c-exp.y: Likewise.
4458 * c-lang.c: Likewise.
4459 * c-typeprint.c: Likewise.
4460 * c-valprint.c: Likewise.
4461 * charset.c: Likewise.
4462 * cli-out.c: Likewise.
4463 * cli/cli-cmds.c: Likewise.
4464 * cli/cli-decode.c: Likewise.
4465 * cli/cli-dump.c: Likewise.
4466 * cli/cli-interp.c: Likewise.
4467 * cli/cli-logging.c: Likewise.
4468 * cli/cli-script.c: Likewise.
4469 * cli/cli-setshow.c: Likewise.
4470 * cli/cli-utils.c: Likewise.
4471 * coffread.c: Likewise.
4472 * common/agent.c: Likewise.
4473 * common/buffer.c: Likewise.
4474 * common/buffer.h: Likewise.
4475 * common/common-utils.c: Likewise.
4476 * common/filestuff.c: Likewise.
4477 * common/filestuff.c: Likewise.
4478 * common/format.c: Likewise.
4479 * common/print-utils.c: Likewise.
4480 * common/rsp-low.c: Likewise.
4481 * common/signals.c: Likewise.
4482 * common/vec.h: Likewise.
4483 * common/xml-utils.c: Likewise.
4484 * core-regset.c: Likewise.
4485 * corefile.c: Likewise.
4486 * corelow.c: Likewise.
4487 * cp-abi.c: Likewise.
4488 * cp-name-parser.y: Likewise.
4489 * cp-support.c: Likewise.
4490 * cp-valprint.c: Likewise.
4491 * cris-tdep.c: Likewise.
4492 * d-exp.y: Likewise.
4493 * darwin-nat.c: Likewise.
4494 * dbxread.c: Likewise.
4495 * dcache.c: Likewise.
4496 * demangle.c: Likewise.
4497 * dicos-tdep.c: Likewise.
4498 * disasm.c: Likewise.
4499 * doublest.c: Likewise.
4500 * dsrec.c: Likewise.
4501 * dummy-frame.c: Likewise.
4502 * dwarf2-frame.c: Likewise.
4503 * dwarf2loc.c: Likewise.
4504 * dwarf2read.c: Likewise.
4505 * elfread.c: Likewise.
4506 * environ.c: Likewise.
4508 * event-loop.c: Likewise.
4509 * exceptions.c: Likewise.
4511 * expprint.c: Likewise.
4512 * f-exp.y: Likewise.
4513 * f-lang.c: Likewise.
4514 * f-typeprint.c: Likewise.
4515 * f-valprint.c: Likewise.
4516 * fbsd-nat.c: Likewise.
4517 * findcmd.c: Likewise.
4518 * findvar.c: Likewise.
4519 * fork-child.c: Likewise.
4520 * frame.c: Likewise.
4521 * frv-linux-tdep.c: Likewise.
4522 * frv-tdep.c: Likewise.
4524 * gdb_bfd.c: Likewise.
4525 * gdbarch.c: Likewise.
4526 * gdbarch.sh: Likewise.
4527 * gdbtypes.c: Likewise.
4528 * gnu-nat.c: Likewise.
4529 * gnu-v2-abi.c: Likewise.
4530 * gnu-v3-abi.c: Likewise.
4531 * go-exp.y: Likewise.
4532 * go-lang.c: Likewise.
4533 * go32-nat.c: Likewise.
4534 * guile/guile.c: Likewise.
4535 * guile/scm-auto-load.c: Likewise.
4536 * hppa-hpux-tdep.c: Likewise.
4537 * hppa-linux-nat.c: Likewise.
4538 * hppanbsd-tdep.c: Likewise.
4539 * hppaobsd-tdep.c: Likewise.
4540 * i386-cygwin-tdep.c: Likewise.
4541 * i386-dicos-tdep.c: Likewise.
4542 * i386-linux-tdep.c: Likewise.
4543 * i386-nto-tdep.c: Likewise.
4544 * i386-sol2-tdep.c: Likewise.
4545 * i386-tdep.c: Likewise.
4546 * i386bsd-tdep.c: Likewise.
4547 * i386gnu-nat.c: Likewise.
4548 * i386nbsd-tdep.c: Likewise.
4549 * i386obsd-tdep.c: Likewise.
4550 * i387-tdep.c: Likewise.
4551 * ia64-libunwind-tdep.c: Likewise.
4552 * ia64-linux-nat.c: Likewise.
4553 * inf-child.c: Likewise.
4554 * inf-ptrace.c: Likewise.
4555 * inf-ttrace.c: Likewise.
4556 * infcall.c: Likewise.
4557 * infcmd.c: Likewise.
4558 * inflow.c: Likewise.
4559 * infrun.c: Likewise.
4560 * interps.c: Likewise.
4561 * iq2000-tdep.c: Likewise.
4562 * irix5-nat.c: Likewise.
4563 * jv-exp.y: Likewise.
4564 * jv-lang.c: Likewise.
4565 * jv-typeprint.c: Likewise.
4566 * jv-valprint.c: Likewise.
4567 * language.c: Likewise.
4568 * linux-fork.c: Likewise.
4569 * linux-nat.c: Likewise.
4570 * lm32-tdep.c: Likewise.
4571 * m2-exp.y: Likewise.
4572 * m2-typeprint.c: Likewise.
4573 * m32c-tdep.c: Likewise.
4574 * m32r-linux-nat.c: Likewise.
4575 * m32r-linux-tdep.c: Likewise.
4576 * m32r-rom.c: Likewise.
4577 * m32r-tdep.c: Likewise.
4578 * m68hc11-tdep.c: Likewise.
4579 * m68k-tdep.c: Likewise.
4580 * m68kbsd-tdep.c: Likewise.
4581 * m68klinux-nat.c: Likewise.
4582 * m68klinux-tdep.c: Likewise.
4583 * m88k-tdep.c: Likewise.
4584 * machoread.c: Likewise.
4585 * macrocmd.c: Likewise.
4587 * mdebugread.c: Likewise.
4588 * mem-break.c: Likewise.
4589 * memattr.c: Likewise.
4590 * memory-map.c: Likewise.
4591 * mep-tdep.c: Likewise.
4592 * mi/mi-cmd-break.c: Likewise.
4593 * mi/mi-cmd-disas.c: Likewise.
4594 * mi/mi-cmd-env.c: Likewise.
4595 * mi/mi-cmd-stack.c: Likewise.
4596 * mi/mi-cmd-var.c: Likewise.
4597 * mi/mi-cmds.c: Likewise.
4598 * mi/mi-console.c: Likewise.
4599 * mi/mi-getopt.c: Likewise.
4600 * mi/mi-interp.c: Likewise.
4601 * mi/mi-main.c: Likewise.
4602 * mi/mi-parse.c: Likewise.
4603 * microblaze-rom.c: Likewise.
4604 * microblaze-tdep.c: Likewise.
4605 * mingw-hdep.c: Likewise.
4606 * minidebug.c: Likewise.
4607 * minsyms.c: Likewise.
4608 * mips-irix-tdep.c: Likewise.
4609 * mips-linux-tdep.c: Likewise.
4610 * mips-tdep.c: Likewise.
4611 * mips64obsd-tdep.c: Likewise.
4612 * mipsnbsd-tdep.c: Likewise.
4613 * mipsread.c: Likewise.
4614 * mn10300-linux-tdep.c: Likewise.
4615 * mn10300-tdep.c: Likewise.
4616 * monitor.c: Likewise.
4617 * moxie-tdep.c: Likewise.
4618 * mt-tdep.c: Likewise.
4619 * nat/linux-btrace.c: Likewise.
4620 * nat/linux-osdata.c: Likewise.
4621 * nat/linux-procfs.c: Likewise.
4622 * nat/linux-ptrace.c: Likewise.
4623 * nat/linux-waitpid.c: Likewise.
4624 * nbsd-tdep.c: Likewise.
4625 * nios2-linux-tdep.c: Likewise.
4626 * nto-procfs.c: Likewise.
4627 * nto-tdep.c: Likewise.
4628 * objc-lang.c: Likewise.
4629 * objfiles.c: Likewise.
4630 * opencl-lang.c: Likewise.
4631 * osabi.c: Likewise.
4632 * osdata.c: Likewise.
4633 * p-exp.y: Likewise.
4634 * p-lang.c: Likewise.
4635 * p-typeprint.c: Likewise.
4636 * parse.c: Likewise.
4637 * posix-hdep.c: Likewise.
4638 * ppc-linux-nat.c: Likewise.
4639 * ppc-sysv-tdep.c: Likewise.
4640 * ppcfbsd-tdep.c: Likewise.
4641 * ppcnbsd-tdep.c: Likewise.
4642 * ppcobsd-tdep.c: Likewise.
4643 * printcmd.c: Likewise.
4644 * procfs.c: Likewise.
4645 * prologue-value.c: Likewise.
4646 * python/py-auto-load.c: Likewise.
4647 * python/py-gdb-readline.c: Likewise.
4648 * ravenscar-thread.c: Likewise.
4649 * regcache.c: Likewise.
4650 * registry.c: Likewise.
4651 * remote-fileio.c: Likewise.
4652 * remote-m32r-sdi.c: Likewise.
4653 * remote-mips.c: Likewise.
4654 * remote-notif.c: Likewise.
4655 * remote-sim.c: Likewise.
4656 * remote.c: Likewise.
4657 * reverse.c: Likewise.
4658 * rs6000-aix-tdep.c: Likewise.
4659 * ser-base.c: Likewise.
4660 * ser-go32.c: Likewise.
4661 * ser-mingw.c: Likewise.
4662 * ser-pipe.c: Likewise.
4663 * ser-tcp.c: Likewise.
4664 * ser-unix.c: Likewise.
4665 * serial.c: Likewise.
4666 * sh-tdep.c: Likewise.
4667 * sh64-tdep.c: Likewise.
4668 * shnbsd-tdep.c: Likewise.
4670 * sol-thread.c: Likewise.
4671 * solib-dsbt.c: Likewise.
4672 * solib-frv.c: Likewise.
4673 * solib-osf.c: Likewise.
4674 * solib-som.c: Likewise.
4675 * solib-spu.c: Likewise.
4676 * solib-target.c: Likewise.
4677 * solib.c: Likewise.
4678 * somread.c: Likewise.
4679 * source.c: Likewise.
4680 * sparc-nat.c: Likewise.
4681 * sparc-sol2-tdep.c: Likewise.
4682 * sparc-tdep.c: Likewise.
4683 * sparc64-tdep.c: Likewise.
4684 * sparc64fbsd-tdep.c: Likewise.
4685 * sparc64nbsd-tdep.c: Likewise.
4686 * sparcnbsd-tdep.c: Likewise.
4687 * spu-linux-nat.c: Likewise.
4688 * spu-multiarch.c: Likewise.
4689 * spu-tdep.c: Likewise.
4690 * stabsread.c: Likewise.
4691 * stack.c: Likewise.
4692 * std-regs.c: Likewise.
4693 * symfile.c: Likewise.
4694 * symmisc.c: Likewise.
4695 * symtab.c: Likewise.
4696 * target.c: Likewise.
4697 * thread.c: Likewise.
4698 * tilegx-linux-nat.c: Likewise.
4699 * tilegx-tdep.c: Likewise.
4701 * tracepoint.c: Likewise.
4702 * tui/tui-command.c: Likewise.
4703 * tui/tui-data.c: Likewise.
4704 * tui/tui-disasm.c: Likewise.
4705 * tui/tui-file.c: Likewise.
4706 * tui/tui-layout.c: Likewise.
4707 * tui/tui-out.c: Likewise.
4708 * tui/tui-regs.c: Likewise.
4709 * tui/tui-source.c: Likewise.
4710 * tui/tui-stack.c: Likewise.
4711 * tui/tui-win.c: Likewise.
4712 * tui/tui-windata.c: Likewise.
4713 * tui/tui-winsource.c: Likewise.
4714 * typeprint.c: Likewise.
4715 * ui-file.c: Likewise.
4716 * ui-out.c: Likewise.
4717 * user-regs.c: Likewise.
4718 * utils.c: Likewise.
4719 * v850-tdep.c: Likewise.
4720 * valarith.c: Likewise.
4721 * valops.c: Likewise.
4722 * valprint.c: Likewise.
4723 * value.c: Likewise.
4724 * varobj.c: Likewise.
4725 * vax-tdep.c: Likewise.
4726 * vaxnbsd-tdep.c: Likewise.
4727 * vaxobsd-tdep.c: Likewise.
4728 * windows-nat.c: Likewise.
4729 * xcoffread.c: Likewise.
4730 * xml-support.c: Likewise.
4731 * xstormy16-tdep.c: Likewise.
4732 * xtensa-linux-nat.c: Likewise.
4734 2014-08-07 Gary Benson <gbenson@redhat.com>
4736 * common/common-defs.h: Include gdb_assert.h.
4737 * aarch64-tdep.c: Do not include gdb_assert.h.
4738 * addrmap.c: Likewise.
4739 * aix-thread.c: Likewise.
4740 * alpha-linux-tdep.c: Likewise.
4741 * alpha-mdebug-tdep.c: Likewise.
4742 * alphanbsd-tdep.c: Likewise.
4743 * amd64-nat.c: Likewise.
4744 * amd64-tdep.c: Likewise.
4745 * amd64bsd-nat.c: Likewise.
4746 * amd64fbsd-nat.c: Likewise.
4747 * amd64fbsd-tdep.c: Likewise.
4748 * amd64nbsd-nat.c: Likewise.
4749 * amd64nbsd-tdep.c: Likewise.
4750 * amd64obsd-nat.c: Likewise.
4751 * amd64obsd-tdep.c: Likewise.
4752 * arch-utils.c: Likewise.
4753 * arm-tdep.c: Likewise.
4754 * armbsd-tdep.c: Likewise.
4756 * bcache.c: Likewise.
4757 * bfin-tdep.c: Likewise.
4758 * blockframe.c: Likewise.
4759 * breakpoint.c: Likewise.
4760 * bsd-kvm.c: Likewise.
4761 * bsd-uthread.c: Likewise.
4762 * buildsym.c: Likewise.
4763 * c-exp.y: Likewise.
4764 * c-lang.c: Likewise.
4765 * charset.c: Likewise.
4766 * cleanups.c: Likewise.
4767 * cli-out.c: Likewise.
4768 * cli/cli-decode.c: Likewise.
4769 * cli/cli-dump.c: Likewise.
4770 * cli/cli-logging.c: Likewise.
4771 * cli/cli-script.c: Likewise.
4772 * cli/cli-utils.c: Likewise.
4773 * coffread.c: Likewise.
4774 * common/common-utils.c: Likewise.
4775 * common/queue.h: Likewise.
4776 * common/signals.c: Likewise.
4777 * common/vec.h: Likewise.
4778 * complaints.c: Likewise.
4779 * completer.c: Likewise.
4780 * corelow.c: Likewise.
4781 * cp-abi.c: Likewise.
4782 * cp-name-parser.y: Likewise.
4783 * cp-namespace.c: Likewise.
4784 * cp-support.c: Likewise.
4785 * cris-tdep.c: Likewise.
4786 * dbxread.c: Likewise.
4787 * dictionary.c: Likewise.
4788 * doublest.c: Likewise.
4789 * dsrec.c: Likewise.
4790 * dummy-frame.c: Likewise.
4791 * dwarf2-frame-tailcall.c: Likewise.
4792 * dwarf2-frame.c: Likewise.
4793 * dwarf2expr.c: Likewise.
4794 * dwarf2loc.c: Likewise.
4795 * dwarf2read.c: Likewise.
4797 * event-loop.c: Likewise.
4798 * exceptions.c: Likewise.
4799 * expprint.c: Likewise.
4800 * f-valprint.c: Likewise.
4801 * fbsd-nat.c: Likewise.
4802 * findvar.c: Likewise.
4803 * frame-unwind.c: Likewise.
4804 * frame.c: Likewise.
4805 * frv-tdep.c: Likewise.
4806 * gcore.c: Likewise.
4807 * gdb-dlfcn.c: Likewise.
4808 * gdb_bfd.c: Likewise.
4809 * gdbarch.c: Likewise.
4810 * gdbarch.sh: Likewise.
4811 * gdbtypes.c: Likewise.
4812 * gnu-nat.c: Likewise.
4813 * gnu-v3-abi.c: Likewise.
4814 * go-lang.c: Likewise.
4815 * guile/scm-exception.c: Likewise.
4816 * guile/scm-gsmob.c: Likewise.
4817 * guile/scm-lazy-string.c: Likewise.
4818 * guile/scm-math.c: Likewise.
4819 * guile/scm-pretty-print.c: Likewise.
4820 * guile/scm-safe-call.c: Likewise.
4821 * guile/scm-utils.c: Likewise.
4822 * guile/scm-value.c: Likewise.
4823 * h8300-tdep.c: Likewise.
4824 * hppa-hpux-nat.c: Likewise.
4825 * hppa-tdep.c: Likewise.
4826 * hppanbsd-tdep.c: Likewise.
4827 * hppaobsd-tdep.c: Likewise.
4828 * i386-darwin-nat.c: Likewise.
4829 * i386-darwin-tdep.c: Likewise.
4830 * i386-nto-tdep.c: Likewise.
4831 * i386-tdep.c: Likewise.
4832 * i386bsd-nat.c: Likewise.
4833 * i386fbsd-tdep.c: Likewise.
4834 * i386gnu-nat.c: Likewise.
4835 * i386nbsd-tdep.c: Likewise.
4836 * i386obsd-tdep.c: Likewise.
4837 * i387-tdep.c: Likewise.
4838 * ia64-libunwind-tdep.c: Likewise.
4839 * ia64-tdep.c: Likewise.
4840 * inf-ptrace.c: Likewise.
4841 * inf-ttrace.c: Likewise.
4842 * infcall.c: Likewise.
4843 * infcmd.c: Likewise.
4844 * infrun.c: Likewise.
4845 * inline-frame.c: Likewise.
4846 * interps.c: Likewise.
4847 * jv-lang.c: Likewise.
4848 * jv-typeprint.c: Likewise.
4849 * linux-fork.c: Likewise.
4850 * linux-nat.c: Likewise.
4851 * linux-thread-db.c: Likewise.
4852 * m32c-tdep.c: Likewise.
4853 * m32r-linux-nat.c: Likewise.
4854 * m32r-tdep.c: Likewise.
4855 * m68k-tdep.c: Likewise.
4856 * m68kbsd-nat.c: Likewise.
4857 * m68kbsd-tdep.c: Likewise.
4858 * m88k-tdep.c: Likewise.
4859 * machoread.c: Likewise.
4860 * macroexp.c: Likewise.
4861 * macrotab.c: Likewise.
4862 * maint.c: Likewise.
4863 * mdebugread.c: Likewise.
4864 * memory-map.c: Likewise.
4865 * mep-tdep.c: Likewise.
4866 * mi/mi-common.c: Likewise.
4867 * microblaze-tdep.c: Likewise.
4868 * mingw-hdep.c: Likewise.
4869 * mips-linux-nat.c: Likewise.
4870 * mips-linux-tdep.c: Likewise.
4871 * mips-tdep.c: Likewise.
4872 * mips64obsd-tdep.c: Likewise.
4873 * mipsnbsd-tdep.c: Likewise.
4874 * mn10300-linux-tdep.c: Likewise.
4875 * mn10300-tdep.c: Likewise.
4876 * moxie-tdep.c: Likewise.
4877 * mt-tdep.c: Likewise.
4878 * nat/linux-btrace.c: Likewise.
4879 * nat/linux-osdata.c: Likewise.
4880 * nat/linux-ptrace.c: Likewise.
4881 * nat/mips-linux-watch.c: Likewise.
4882 * nios2-linux-tdep.c: Likewise.
4883 * nios2-tdep.c: Likewise.
4884 * objc-lang.c: Likewise.
4885 * objfiles.c: Likewise.
4886 * obsd-nat.c: Likewise.
4887 * opencl-lang.c: Likewise.
4888 * osabi.c: Likewise.
4889 * parse.c: Likewise.
4890 * ppc-linux-nat.c: Likewise.
4891 * ppc-sysv-tdep.c: Likewise.
4892 * ppcfbsd-nat.c: Likewise.
4893 * ppcfbsd-tdep.c: Likewise.
4894 * ppcnbsd-nat.c: Likewise.
4895 * ppcnbsd-tdep.c: Likewise.
4896 * ppcobsd-nat.c: Likewise.
4897 * ppcobsd-tdep.c: Likewise.
4898 * printcmd.c: Likewise.
4899 * procfs.c: Likewise.
4900 * prologue-value.c: Likewise.
4901 * psymtab.c: Likewise.
4902 * python/py-lazy-string.c: Likewise.
4903 * python/py-value.c: Likewise.
4904 * regcache.c: Likewise.
4905 * reggroups.c: Likewise.
4906 * registry.c: Likewise.
4907 * remote-sim.c: Likewise.
4908 * remote.c: Likewise.
4909 * rs6000-aix-tdep.c: Likewise.
4910 * rs6000-tdep.c: Likewise.
4911 * s390-linux-tdep.c: Likewise.
4912 * score-tdep.c: Likewise.
4913 * ser-base.c: Likewise.
4914 * ser-mingw.c: Likewise.
4915 * sh-tdep.c: Likewise.
4916 * sh64-tdep.c: Likewise.
4917 * solib-darwin.c: Likewise.
4918 * solib-spu.c: Likewise.
4919 * solib-svr4.c: Likewise.
4920 * source.c: Likewise.
4921 * sparc-nat.c: Likewise.
4922 * sparc-sol2-tdep.c: Likewise.
4923 * sparc-tdep.c: Likewise.
4924 * sparc64-sol2-tdep.c: Likewise.
4925 * sparc64-tdep.c: Likewise.
4926 * sparc64fbsd-tdep.c: Likewise.
4927 * sparc64nbsd-tdep.c: Likewise.
4928 * sparc64obsd-tdep.c: Likewise.
4929 * sparcnbsd-tdep.c: Likewise.
4930 * sparcobsd-tdep.c: Likewise.
4931 * spu-multiarch.c: Likewise.
4932 * spu-tdep.c: Likewise.
4933 * stabsread.c: Likewise.
4934 * stack.c: Likewise.
4935 * symfile.c: Likewise.
4936 * symtab.c: Likewise.
4937 * target-descriptions.c: Likewise.
4938 * target-memory.c: Likewise.
4939 * target.c: Likewise.
4940 * tic6x-linux-tdep.c: Likewise.
4941 * tic6x-tdep.c: Likewise.
4942 * tilegx-linux-nat.c: Likewise.
4943 * tilegx-tdep.c: Likewise.
4945 * tramp-frame.c: Likewise.
4946 * tui/tui-out.c: Likewise.
4947 * tui/tui-winsource.c: Likewise.
4948 * ui-out.c: Likewise.
4949 * user-regs.c: Likewise.
4950 * utils.c: Likewise.
4951 * v850-tdep.c: Likewise.
4952 * valops.c: Likewise.
4953 * value.c: Likewise.
4954 * varobj.c: Likewise.
4955 * vax-nat.c: Likewise.
4956 * xml-syscall.c: Likewise.
4957 * xml-tdesc.c: Likewise.
4958 * xstormy16-tdep.c: Likewise.
4959 * xtensa-linux-nat.c: Likewise.
4960 * xtensa-tdep.c: Likewise.
4962 2014-08-07 Gary Benson <gbenson@redhat.com>
4964 * common/common-defs.h: Include common-utils.h.
4965 * defs.h: Do not include common-utils.h.
4966 * common/gdb_assert.h: Likewise.
4967 * darwin-nat.h: Likewise.
4968 * nat/linux-btrace.c: Likewise.
4969 * target/waitstatus.h: Likewise.
4971 2014-08-07 Gary Benson <gbenson@redhat.com>
4973 * common/common-defs.h: Include ptid.h.
4974 * defs.h: Do not include ptid.h.
4975 * inferior.h: Likewise.
4976 * infrun.h: Likewise.
4977 * nat/linux-btrace.h: Likewise.
4978 * nat/linux-osdata.h: Likewise.
4979 * target/waitstatus.h: Likewise.
4981 2014-08-07 Gary Benson <gbenson@redhat.com>
4983 * common/common-defs.h: Include gdb_locale.h.
4984 * defs.h: Do not include gdb_locale.h.
4986 2014-08-07 Gary Benson <gbenson@redhat.com>
4988 * common/common-defs.h: Include gdb/signals.h.
4989 * defs.h: Do not include gdb/signals.h.
4991 2014-08-07 Gary Benson <gbenson@redhat.com>
4993 * common/common-defs.h: Include pathmax.h.
4994 * defs.h: Do not include pathmax.h.
4996 2014-08-07 Gary Benson <gbenson@redhat.com>
4998 * common/common-defs.h: Include libiberty.h.
4999 * defs.h: Do not include libiberty.h.
5000 * common/queue.h: Likewise.
5001 * cp-name-parser.y: Likewise.
5002 * mi/mi-cmd-catch.c: Likewise.
5003 * python/python.c: Likewise.
5005 2014-08-07 Gary Benson <gbenson@redhat.com>
5007 * common/common-defs.h: Include ansidecl.h.
5008 * defs.h: Do not include ansidecl.h.
5009 * common/buffer.h: Likewise.
5010 * common/common-utils.h: Likewise.
5012 2014-08-07 Gary Benson <gbenson@redhat.com>
5014 * common/common-defs.h: Include stddef.h.
5015 * defs.h: Do not include stddef.h.
5016 * common/common-utils.h: Likewise.
5017 * amd64fbsd-nat.c: Likewise.
5018 * bcache.c: Likewise.
5019 * charset.c: Likewise.
5020 * common/buffer.h: Likewise.
5021 * common/vec.h: Likewise.
5022 * i386bsd-nat.c: Likewise.
5023 * nat/linux-btrace.h: Likewise.
5024 * ppcfbsd-nat.c: Likewise.
5025 * ppcnbsd-tdep.h: Likewise.
5026 * ppcobsd-nat.c: Likewise.
5027 * ppcobsd-tdep.h: Likewise.
5028 * python/py-gdb-readline.c: Likewise.
5030 2014-08-07 Gary Benson <gbenson@redhat.com>
5032 * common/common-defs.h: Include stdarg.h.
5033 * defs.h: Do not include stdarg.h.
5034 * ada-lang.c: Likewise.
5035 * common/common-utils.h: Likewise.
5036 * guile/scm-string.c: Likewise.
5037 * guile/scm-utils.c: Likewise.
5038 * m32c-tdep.c: Likewise.
5040 2014-08-07 Gary Benson <gbenson@redhat.com>
5042 * common/common-defs.h: Include stdlib.h.
5043 * defs.h: Do not include stdlib.h.
5044 * addrmap.c: Likewise.
5045 * bcache.c: Likewise.
5046 * common/buffer.c: Likewise.
5047 * common/common-utils.c: Likewise.
5048 * cp-name-parser.y: Likewise.
5049 * go32-nat.c: Likewise.
5050 * mn10300-linux-tdep.c: Likewise.
5051 * nat/linux-osdata.c: Likewise.
5052 * tui/tui.c: Likewise.
5053 * windows-nat.c: Likewise.
5055 2014-08-07 Gary Benson <gbenson@redhat.com>
5057 * common/common-defs.h: Include stdio.h.
5058 * defs.h: Do not include stdio.h.
5059 * ada-lang.c: Likewise.
5060 * common/buffer.c: Likewise.
5061 * common/common-utils.c: Likewise.
5062 * cp-name-parser.y: Likewise.
5063 * gnu-nat.c: Likewise.
5064 * go32-nat.c: Likewise.
5065 * i386gnu-nat.c: Likewise.
5066 * proc-api.c: Likewise.
5067 * proc-events.c: Likewise.
5068 * proc-flags.c: Likewise.
5069 * proc-why.c: Likewise.
5070 * python/python-internal.h: Likewise.
5071 * target-memory.c: Likewise.
5072 * tui/tui-io.c: Likewise.
5073 * tui/tui.c: Likewise.
5075 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5077 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5078 (scan_dyntag_auxv): Same.
5080 2014-08-06 Yao Qi <yao@codesourcery.com>
5082 * amd64-linux-nat.c: Remove duplicated include
5084 * i386-linux-nat.c: Likewise.
5086 2014-08-06 Yao Qi <yao@codesourcery.com>
5088 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5089 operand" with "Special opcode" in comments.
5091 2014-08-05 Gary Benson <gbenson@redhat.com>
5093 * interps.c (initialize_interps): Remove prototype.
5094 (interpreter_initialized): Remove static global.
5095 (interp_add): Do not call initialize_interps.
5096 (initialize_interps): Remove function.
5098 2014-08-05 Gary Benson <gbenson@redhat.com>
5100 * utils.c (vwarning): Remove spurious va_end.
5102 2014-08-05 Alan Modra <amodra@gmail.com>
5104 * charset.c (convert_between_encodings): Cast result of obstack_base.
5105 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5106 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5107 (read_unwind_info): Use size_t for some locals.
5108 * jit.c (finalize_symtab): Likewise.
5109 * utils.c (hashtab_obstack_allocate): Likewise.
5110 * symmisc.c (print_objfile_statistics): Update format strings.
5112 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5114 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5115 (Changes in GDB 7.8): ... here.
5117 2014-08-04 Tom Tromey <tromey@redhat.com>
5119 * target.c (set_targetdebug): New function.
5120 (initialize_targets): Pass set_targetdebug when creating "set
5123 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5125 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5126 if detecting a variable-sized field that is not the last field.
5127 Fix struct type length computation.
5129 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5131 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5134 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5136 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5137 Remove "+ 8" offset in computation of CHAIN_VMA.
5139 2014-07-31 Doug Evans <dje@google.com>
5141 * inflow.c (child_terminal_inferior): Add comment.
5142 (child_terminal_ours_for_output): Add comment.
5143 (child_terminal_ours): Add comment.
5144 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5145 (linux_nat_terminal_ours): Add comment.
5147 2014-07-31 Gary Benson <gbenson@redhat.com>
5149 * common/btrace-common.h: Do not include defs.h or server.h.
5150 * nat/mips-linux-watch.h: Likewise.
5151 * gdb-dlfcn.h: Do not include defs.h.
5152 * tracefile.h: Likewise.
5154 2014-07-30 Roland McGrath <mcgrathr@google.com>
5156 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5158 2014-07-30 Tom Tromey <tromey@redhat.com>
5160 * bsd-kvm.c (bsd_kvm_open): Constify.
5161 * corelow.c (core_open): Constify.
5162 * ctf.c (ctf_open): Constify.
5163 * dbug-rom.c (dbug_open): Constify.
5164 * exec.c (exec_open): Constify.
5165 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5166 * microblaze-rom.c (picobug_open): Constify.
5167 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5169 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5170 * record-btrace.c (record_btrace_open): Constify.
5171 * record-full.c (record_full_core_open_1, record_full_open_1)
5172 (record_full_open): Constify.
5173 * remote-m32r-sdi.c (m32r_open): Constify.
5174 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5175 (rockhopper_open, lsi_open): Constify.
5176 * remote-sim.c (gdbsim_open): Constify.
5177 * remote.c (remote_open, extended_remote_open, remote_open_1):
5179 * target.h (struct target_ops) <to_open>: Make "arg" const.
5180 * tracefile-tfile.c (tfile_open): Constify.
5182 2014-07-30 Tom Tromey <tromey@redhat.com>
5184 * breakpoint.c (map_breakpoint_numbers): Update.
5185 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5186 (get_number_const): New function.
5187 (get_number): Rewrite using get_number_const.
5188 (init_number_or_range): Make "string" const.
5189 (number_is_in_list): Make "list" const.
5190 * cli/cli-utils.h (get_number_const): Declare.
5191 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5192 (init_number_or_range, number_is_in_list): Update.
5193 * printcmd.c (map_display_numbers): Update.
5194 * value.c (value_from_history_ref): Constify.
5195 * value.h (value_from_history_ref): Update.
5197 2014-07-30 Tom Tromey <tromey@redhat.com>
5199 * corefile.c (hook_type, call_extra_exec_file_hooks)
5200 (specify_exec_file_hook): Constify.
5201 * exec.c (exec_file_attach): Make "filename" const.
5202 * gdbcore.h (deprecated_exec_file_display_hook)
5203 (specify_exec_file_hook, exec_file_attach): Constify.
5204 * main.c (captured_main): Use catch_command_errors_const.
5206 2014-07-30 Tom Tromey <tromey@redhat.com>
5208 * target.c (open_target): New function.
5209 (add_target_with_completer, add_deprecated_target_alias): Use
5210 set_cmd_sfunc, set_cmd_context.
5211 (debug_to_open): Remove.
5212 (setup_target_debug): Update.
5214 2014-07-30 Yao Qi <yao@codesourcery.com>
5216 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5218 * parse.c (exp_iterate): Update comments.
5220 2014-07-30 Gary Benson <gbenson@redhat.com>
5222 * common/common-defs.h: New file.
5223 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5224 * defs.h: Include common-defs.h.
5225 Do not include config.h or build-gnulib/config.h.
5227 2014-07-30 Gary Benson <gbenson@redhat.com>
5229 * common/common-utils.h: Do not include config.h.
5230 * nat/linux-btrace.h: Likewise.
5232 2014-07-30 Gary Benson <gbenson@redhat.com>
5234 * btrace.c: Include defs.h.
5235 * common/ptid.c: Include defs.h or server.h as appropriate.
5236 * nat/mips-linux-watch.c: Likewise.
5238 2014-07-29 Tom Tromey <tromey@redhat.com>
5240 * target.c (target_is_pushed): Simplify.
5242 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5246 2014-07-29 Yao Qi <yao@codesourcery.com>
5249 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5251 2014-07-28 Doug Evans <xdje42@gmail.com>
5254 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5255 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5258 2014-07-28 Will Newton <will.newton@linaro.org>
5260 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5261 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5262 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5263 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5264 (THUMB2_EABI_SYSCALL): Likewise.
5265 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5267 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5268 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5270 2014-07-27 Doug Evans <xdje42@gmail.com>
5272 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5274 2014-07-27 Doug Evans <xdje42@gmail.com>
5276 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5278 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5279 Doug Evans <xdje42@gmail.com>
5282 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5283 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5284 * configure.ac: Try to use guild to compile an scm file, if it fails
5285 then disable guile support.
5286 * configure: Regenerate.
5287 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5289 (GUILE_COMPILED_FILES): New variable.
5290 (GUILE_FILES) Update.
5291 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5292 (stamp-guile): Compile scm files.
5293 * guile/guile.c (boot_guile_support): New function.
5294 (standard_throw_args_p): New function.
5295 (print_standard_throw_error, print_throw_error): New functions.
5296 (handle_boot_error): New function.
5297 (initialize_scheme_side): Rewrite to call boot_guile_support.
5298 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5299 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5301 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5302 Doug Evans <xdje42@gmail.com>
5305 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5306 * guile/lib/gdb/support.scm: New file.
5307 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5308 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5310 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5312 (%assert-type): Ditto, and renamed to assert-type.
5313 (%exception-print-style): Delete.
5315 2014-07-26 Doug Evans <xdje42@gmail.com>
5318 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5319 * configure: Regenerate.
5320 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5322 (PYTHON_FILES): New variable.
5323 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5324 (GUILE_FILES): New variable.
5325 (stamp-python, install-python, uninstall-python): Handle empty
5327 (stamp-guile, install-guile, uninstall-guile): Ditto.
5329 2014-07-26 Doug Evans <xdje42@gmail.com>
5332 * guile/lib/gdb.scm (pretty-printers): Export.
5333 (set-pretty-printers!): Export.
5334 * guile/lib/gdb/printing.scm (gdb module): Update.
5335 (prepend-pretty-printer!, append-pretty-printer!): Update.
5336 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5337 (pretty_printer_list_var): Delete.
5338 (pretty_printer_list): New static global.
5339 (gdbscm_pretty_printers): New function.
5340 (gdbscm_set_pretty_printers_x): New function.
5341 (ppscm_find_pretty_printer_from_gdb): Update.
5342 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5343 (gdbscm_initialize_pretty_printers): Update.
5345 2014-07-26 Doug Evans <xdje42@gmail.com>
5348 * configure.ac: Add check for header gc/gc.h.
5349 Add check for function setenv.
5350 * configure: Regenerate.
5351 * config.in: Regenerate.
5352 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5354 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5356 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5357 variation in gdbarch matching.
5359 2014-07-25 Tom Tromey <tromey@redhat.com>
5361 * exec.c (using_exec_ops): Remove.
5362 (exec_close_1): Update. Remove extraneous block, reindent.
5363 (add_target_sections): Use target_is_pushed.
5365 2014-07-25 Pedro Alves <palves@redhat.com>
5367 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5368 * monitor.c (monitor_create_inferior): Likewise.
5369 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5370 * remote-sim.c (gdbsim_create_inferior): Likewise.
5371 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5372 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5373 * windows-nat.c (do_initial_windows_stuff): Likewise.
5375 2014-07-25 Pedro Alves <palves@redhat.com>
5377 * NEWS: Mention signal passing and "signal" command changes.
5378 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5380 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5382 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5383 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5384 (jump_command): Adjust clear_proceed_status call.
5385 (signal_command): Warn if other thread that are resumed have
5386 signals that will be delivered. Adjust clear_proceed_status call.
5387 (until_next_command, finish_command)
5388 (proceed_after_attach_callback, attach_command_post_wait)
5389 (attach_command): Adjust clear_proceed_status call.
5390 * infrun.c (proceed_after_vfork_done): Likewise.
5391 (proceed_after_attach_callback): Adjust comment.
5392 (clear_proceed_status_thread): Clear stop_signal if not in pass
5394 (clear_proceed_status_callback): Delete.
5395 (clear_proceed_status): New 'step' parameter. Only clear the
5396 proceed status of threads the command being prepared is about to
5398 (proceed): If passed in an explicit signal, override stop_signal
5399 with it. Don't pass the last stop signal to the thread we're
5401 (init_wait_for_inferior): Adjust clear_proceed_status call.
5402 (switch_back_to_stepped_thread): Clear the signal if it should not
5404 * infrun.h (clear_proceed_status): New 'step' parameter.
5405 (user_visible_resume_ptid): Add comment.
5406 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5407 signal is in pass state.
5408 * remote.c (append_pending_thread_resumptions): Likewise.
5409 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5411 2014-07-25 Tom Tromey <tromey@redhat.com>
5413 * target.h (target_stopped_data_address)
5414 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5417 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5419 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5421 (avr_pointer_to_address): Likewise.
5423 2014-07-24 Tom Tromey <tromey@redhat.com>
5425 * monitor.c (compile_pattern): Update.
5426 * target.h (struct target_ops) <to_shortname, to_longname,
5429 2014-07-24 Tom Tromey <tromey@redhat.com>
5431 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5432 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5433 (add_info_alias, add_com): Make "doc" const.
5434 (print_doc_line): Make "str" const.
5435 (delete_cmd): Update.
5436 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5437 (print_doc_line): Update.
5438 * cli/cli-script.c (document_command): Update.
5439 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5440 (add_com, add_info, add_info_alias): Update.
5441 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5442 * python/py-cmd.c (cmdpy_destroyer): Update.
5444 2014-07-24 Tom Tromey <tromey@redhat.com>
5446 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5447 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5448 (help_cmd_list): Constify.
5449 (lookup_cmd): Update.
5450 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5452 (help_cmd_list, apropos_cmd): Update.
5453 * cli/cli-script.c (show_user): Update.
5454 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5455 * cli/cli-setshow.h (cmd_show_list): Update.
5456 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5457 (cmd_show_list): Update.
5458 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5459 * python/py-cmd.c (cmdpy_destroyer): Update.
5461 2014-07-24 Tom Tromey <tromey@redhat.com>
5463 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5464 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5466 * command.h (deprecate_cmd): Update.
5467 * maint.c (maintenance_do_deprecate): Add casts.
5469 2014-07-24 Tom Tromey <tromey@redhat.com>
5471 * cli/cli-decode.c (help_cmd): Make parameter "const".
5472 * cli/cli-decode.h (help_cmd): Update.
5474 2014-07-24 Tom Tromey <tromey@redhat.com>
5476 * stack.c (up_silently_base, down_silently_base): Make argument
5479 2014-07-24 Tom Tromey <tromey@redhat.com>
5481 * solib.c (solib_add): Make "pattern" const.
5482 * solib.h (solib_add): Update.
5484 2014-07-24 Tom Tromey <tromey@redhat.com>
5486 * remote.c (remote_serial_open, print_packet, putpkt)
5487 (putpkt_binary): Constify.
5488 * remote.h (putpkt): Update.
5490 2014-07-24 Tom Tromey <tromey@redhat.com>
5492 * monitor.c (monitor_open): Make "args" const.
5493 * monitor.h (monitor_open): Update.
5495 2014-07-24 Tom Tromey <tromey@redhat.com>
5497 * maint.c (match_bfd_flags): Make "string" const.
5498 (print_bfd_section_info): Remove casts.
5499 (print_objfile_section_info): Make "string" const.
5501 2014-07-24 Tom Tromey <tromey@redhat.com>
5503 * inf-child.c (inf_child_open_target): Make "arg" const.
5504 * inf-child.h (inf_child_open_target): Update.
5506 2014-07-24 Tom Tromey <tromey@redhat.com>
5508 * environ.c (unset_in_environ): Make "var" const.
5509 * environ.h (unset_in_environ): Update.
5511 2014-07-24 Tom Tromey <tromey@redhat.com>
5513 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5515 (scan_filename_with_cleanup): Likewise.
5516 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5517 Make arguments const.
5518 (restore_command): Update.
5520 2014-07-24 Pedro Alves <palves@redhat.com>
5522 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5524 2014-07-24 Tom Tromey <tromey@redhat.com>
5525 Gary Benson <gbenson@redhat.com>
5527 * nat/linux-ptrace.c (additional_flags): New global.
5528 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5529 additional_flags; don't check GDBSERVER.
5530 (linux_ptrace_set_additional_flags): New function.
5531 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5533 * linux-nat.c (_initialize_linux_nat): Call
5534 linux_ptrace_set_additional_flags.
5536 2014-07-24 Tom Tromey <tromey@redhat.com>
5538 * make-target-delegates (munge_type, write_debugmethod): New
5540 (debug_names): New global.
5541 ($TARGET_DEBUG_PRINTER): New global.
5542 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5544 Write debug methods. Generate init_debug_target.
5545 * target-debug.h: New file.
5546 * target-delegates.c: Rebuild.
5547 * target.c: Include target-debug.h.
5548 (debug_target): Hoist definition.
5549 (target_kill, target_get_section_table, target_memory_map)
5550 (target_flash_erase, target_flash_done, target_detach)
5551 (target_disconnect, target_wait, target_resume)
5552 (target_pass_signals, target_program_signals, target_follow_fork)
5553 (target_mourn_inferior, target_search_memory)
5554 (target_thread_address_space, target_close)
5555 (target_find_new_threads, target_core_of_thread)
5556 (target_verify_memory, target_insert_mask_watchpoint)
5557 (target_remove_mask_watchpoint): Remove targetdebug code.
5558 (debug_to_post_attach, debug_to_prepare_to_store)
5559 (debug_to_files_info, debug_to_insert_breakpoint)
5560 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5561 (debug_to_region_ok_for_hw_watchpoint)
5562 (debug_to_can_accel_watchpoint_condition)
5563 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5564 (debug_to_watchpoint_addr_within_range)
5565 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5566 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5567 (debug_to_terminal_init, debug_to_terminal_inferior)
5568 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5569 (debug_to_terminal_save_ours, debug_to_terminal_info)
5570 (debug_to_load, debug_to_post_startup_inferior)
5571 (debug_to_insert_fork_catchpoint)
5572 (debug_to_remove_fork_catchpoint)
5573 (debug_to_insert_vfork_catchpoint)
5574 (debug_to_remove_vfork_catchpoint)
5575 (debug_to_insert_exec_catchpoint)
5576 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5577 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5578 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5579 (setup_target_debug): Call init_debug_target.
5580 * target.h (TARGET_DEBUG_PRINTER): New macro.
5581 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5582 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5584 2014-07-24 Gary Benson <gbenson@redhat.com>
5586 * exceptions.h (throw_vfatal): Renamed to...
5587 (throw_vquit): New declaration.
5588 (throw_quit): Likewise.
5589 * exceptions.c (throw_vfatal): Renamed to...
5590 (throw_vquit): New function.
5591 (throw_quit): Likewise.
5592 (throw_error): Call throw_verror rather than throw_it.
5593 * utils.h (vfatal): Removed.
5595 * utils.c (vfatal): Removed.
5597 (internal_verror): Replaced call to fatal with call to throw_quit.
5598 (quit): Replaced calls to fatal with calls to throw_quit.
5600 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5602 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5605 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5607 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5608 less than zero in conditional expression.
5610 2014-07-23 Tom Tromey <tromey@redhat.com>
5612 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5613 ($INTRO_PART): Don't match whitespace.
5614 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5616 ($METHOD): Add $METHOD_TRAILER.
5618 (scan_target_h): New sub.
5619 Change main loop not to collect state.
5620 * target-delegates.c: Rebuild.
5622 2014-07-23 Gary Benson <gbenson@redhat.com>
5624 * cp-support.c (gdb_demangle): Fix build on systems without
5627 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5629 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5630 for reference entry value target data value.
5632 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5634 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5635 value_available_contents_eq.
5637 2014-07-22 Pedro Alves <palves@redhat.com>
5639 * value.c (allocate_optimized_out_value): Don't mark value as
5642 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5644 * MAINTAINERS (Write After Approval): Update my email address.
5646 2014-07-20 Doug Evans <dje@google.com>
5649 * remote.c (putpkt_binary): Add text to error message.
5651 2014-07-20 Yao Qi <yao@codesourcery.com>
5653 * eval.c: Remove "Chill" from comments.
5654 * gdbtypes.h: Likewise.
5655 * symtab.h: Likewise.
5657 2014-07-20 Yao Qi <yao@codesourcery.com>
5659 * std-operator.def: Update comments to TERNOP_SLICE.
5661 2014-07-20 Yao Qi <yao@codesourcery.com>
5663 * std-operator.def: Remove BINOP_RANGE.
5664 * breakpoint.c (watchpoint_exp_is_const): Update.
5665 * expprint.c (dump_subexp_body_standard): Likewise.
5666 * eval.c (init_array_element): Remove dead code.
5667 (evaluate_subexp_standard): Likewise.
5669 2014-07-20 Yao Qi <yao@codesourcery.com>
5671 * std-operator.def: Remove BINOP_IN.
5672 * breakpoint.c (watchpoint_exp_is_const): Update.
5673 * eval.c (evaluate_subexp_standard): Likewise.
5674 * expprint.c (dump_subexp_body_standard): Likewise.
5676 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5678 * microblaze-tdep.c (microblaze_register_names): Add
5679 the rshr and rslr register names.
5680 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5681 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5682 Use of tdesc_numbered_register. Use of
5683 microblaze_register_g_packet_guesses. Use of
5684 tdesc_use_registers. Use of set_gdbarch_register_type.
5685 (microblaze_register_g_packet_guesses): New.
5686 * microblaze-tdep.h (microblaze_reg_num): Add
5687 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5688 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5689 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5690 * features/microblaze-core.xml: New file.
5691 * features/microblaze-stack-protect.xml: New file.
5692 * features/microblaze-with-stack-protect.c: New file.
5693 * features/microblaze-with-stack-protect.xml: New file.
5694 * features/microblaze.xml: New file.
5695 * features/microblaze.c: New file.
5696 * features/Makefile (microblaze-with-stack-protect): Add
5697 microblaze-with-stack-protect microblaze and microblaze-expedite.
5698 * regformats/microblaze-with-stack-protect.dat: New file.
5699 * regformats/microblaze.dat: New file.
5700 * doc/gdb.texinfo (MicroBlaze Features): Added.
5702 2014-07-18 Tom Tromey <tromey@redhat.com>
5704 * exec.c (exec_ops): Now static.
5705 * exec.h (exec_ops): Don't declare.
5707 2014-07-18 Tom Tromey <tromey@redhat.com>
5709 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5710 to find_target_beneath.
5711 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5712 find_target_beneath.
5713 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5715 2014-07-18 Tom Tromey <tromey@redhat.com>
5718 * utils.c (quit): Use target_supports_terminal_ours.
5719 * target.h (target_supports_terminal_ours): Declare.
5720 * target.c (target_supports_delete_record): Don't check
5721 to_delete_record against NULL.
5722 (target_supports_terminal_ours): New function.
5724 2014-07-18 Tom Tromey <tromey@redhat.com>
5727 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5728 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5729 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5730 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5731 * windows-nat.c (windows_xfer_partial): Always delegate.
5732 * record-btrace.c (record_btrace_xfer_partial): Simplify
5734 (record_btrace_fetch_registers, record_btrace_store_registers)
5735 (record_btrace_prepare_to_store, record_btrace_resume)
5736 (record_btrace_wait, record_btrace_find_new_threads)
5737 (record_btrace_thread_alive): Likewise.
5738 * procfs.c (procfs_xfer_partial): Always delegate.
5739 * corelow.c (core_xfer_partial): Always delegate.
5740 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5742 2014-07-18 Tom Tromey <tromey@redhat.com>
5744 * exec.c (exec_make_note_section): Move earlier.
5746 2014-07-17 Doug Evans <dje@google.com>
5749 * maint.c (count_symtabs_and_blocks): Handle NULL
5750 current_program_space.
5751 (report_command_stats): Check global enabled flag in addition to
5752 recorded enabled flag.
5753 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5755 2014-07-16 Pedro Alves <palves@redhat.com>
5757 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5759 2014-07-16 Tom Tromey <tromey@redhat.com>
5761 * target.h (struct target_ops) <to_delete_record>: Reformat
5764 2014-07-16 Tom Tromey <tromey@redhat.com>
5766 * target-delegates.c: Rebuild.
5768 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5770 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5771 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5772 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5773 (avr_pointer_to_address): Likewise.
5774 (avr_address_class_type_flags): New function.
5775 (avr_address_class_type_flags_to_name): Likewise.
5776 (avr_address_class_name_to_type_flags): Likewise.
5777 (avr_gdbarch_init): Set address_class_type_flags,
5778 address_class_type_flags_to_name and
5779 address_class_name_to_type_flags.
5781 2014-07-15 Pedro Alves <palves@redhat.com>
5783 * linux-nat.c (kill_callback): Save errno and work with saved
5786 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5788 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5790 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5792 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5793 breakpoint support correctly.
5795 2014-07-14 Pedro Alves <palves@redhat.com>
5797 * utils.c (prompt_for_continue): Call target_terminal_ours.
5799 2014-07-14 Pedro Alves <palves@redhat.com>
5801 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5802 catch_errors. Don't re-enable stdin or notify observers where,
5804 (fetch_inferior_event_wrapper): Delete.
5806 2014-07-14 Pedro Alves <palves@redhat.com>
5809 * top.c: Include "inf-loop.h".
5810 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5812 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5814 (gdb_readline_wrapper): Store whether the target is async, and
5817 2014-07-14 Pedro Alves <palves@redhat.com>
5820 * top.c (gdb_readline_wrapper_line): Tweak comment.
5821 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5822 the input handler callback.
5824 2014-07-14 Pedro Alves <palves@redhat.com>
5827 * main.c: Include event-top.h.
5828 (handle_command_errors): New function.
5829 (catch_command_errors, catch_command_errors_const): Use it.
5831 2014-07-14 Pedro Alves <palves@redhat.com>
5833 * exceptions.c (catch_command_errors, catch_command_errors_const):
5835 * exceptions.h (catch_command_errors_ftype)
5836 (catch_command_errors_const_ftype): Moved to main.c.
5837 (catch_command_errors, catch_command_errors_const): Delete
5839 * main.c (catch_command_errors_ftype)
5840 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5841 (catch_command_errors, catch_command_errors_const)): Moved here
5842 from exceptions.c and make static.
5844 2014-07-14 Pedro Alves <palves@redhat.com>
5846 * exceptions.c (print_any_exception): Delete.
5847 (catch_exceptions_with_msg): Use exception_print instead of
5848 print_any_exception.
5849 (catch_errors): Use exception_fprintf instead of
5850 print_any_exception.
5851 (catch_command_errors, catch_command_errors_const): Use
5852 exception_print instead of print_any_exception.
5854 2014-07-14 Pedro Alves <palves@redhat.com>
5856 * infcall.c (run_inferior_call): Set 'sync_execution' while
5857 running the inferior call.
5859 2014-07-14 Pedro Alves <palves@redhat.com>
5861 * value.c (value_contents_equal): Delete function.
5862 * value.h (value_contents_equal): Delete declaration.
5864 2014-07-14 Tom Tromey <tromey@redhat.com>
5867 * gdbtypes.c (is_dynamic_type_internal): New function, from
5869 (is_dynamic_type): Rewrite.
5870 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5871 (resolve_dynamic_struct): Likewise.
5872 (resolve_dynamic_type_internal): New function, from
5873 resolve_dynamic_type.
5874 (resolve_dynamic_type): Rewrite.
5876 2014-07-14 Tom Tromey <tromey@redhat.com>
5878 * target.c (target_require_runnable): Also check record_stratum.
5881 2014-07-11 Yao Qi <yao@codesourcery.com>
5883 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5884 thumb_instruction_restores_sp return true.
5886 2014-07-11 Yao Qi <yao@codesourcery.com>
5888 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5889 (thumb_in_function_epilogue_p): Call
5890 thumb_instruction_restores_sp.
5892 2014-07-11 Yao Qi <yao@codesourcery.com>
5894 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5896 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5898 2014-07-11 Gary Benson <gbenson@redhat.com>
5900 * amd64-linux-nat.c (gdbcore.h): Remove include.
5901 (regset.h): Likewise.
5902 (nat/linux-btrace.h): Likewise.
5903 (btrace.h): Likewise.
5904 (gdb_assert.h): Likewise.
5905 (string.h): Likewise.
5906 (sys/uio.h): Likewise.
5907 (sys/debugreg.h): Likewise.
5908 (sys/syscall.h): Likewise.
5909 (sys/procfs.h): Likewise.
5910 (sys/user.h): Likewise.
5911 (asm/ptrace.h): Likewise.
5912 (i386-nat.h): Likewise.
5913 * i386-linux-nat.c (i386-nat.h): Likewise.
5914 (regset.h): Likewise.
5915 (target.h): Likewise.
5916 (linux-nat.h): Likewise.
5917 (nat/linux-btrace.h): Likewise.
5918 (btrace.h): Likewise.
5919 (gdb_assert.h): Likewise.
5920 (string.h): Likewise.
5921 (sys/uio.h): Likewise.
5922 (sys/user.h): Likewise.
5923 (sys/procfs.h): Likewise.
5924 (sys/reg.h): Likewise.
5925 (sys/debugreg.h): Likewise.
5926 (ORIG_EAX): Remove definition.
5928 2014-07-11 Gary Benson <gbenson@redhat.com>
5930 * i386-linux-nat.h: New file.
5931 * x86-linux-nat.h: Likewise.
5932 * x86-linux-nat.c: Likewise.
5933 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5934 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5935 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5936 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5937 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5938 (PTRACE_SETREGSET): Likewise.
5939 (arch_lwp_info): Now in x86-linux-nat.c.
5940 (have_ptrace_getregset): Now in x86-linux-nat.h.
5941 (x86_linux_dr_get): Now in x86-linux-nat.c.
5942 (x86_linux_dr_set): Likewise.
5943 (x86_linux_dr_get_addr): Likewise.
5944 (x86_linux_dr_get_control): Likewise.
5945 (x86_linux_dr_get_status): Likewise.
5946 (update_debug_registers_callback): Likewise.
5947 (x86_linux_dr_set_control): Likewise.
5948 (x86_linux_dr_set_addr): Likewise.
5949 (x86_linux_prepare_to_resume): Likewise.
5950 (x86_linux_new_thread): Likewise.
5951 (x86_linux_new_fork): Likewise.
5952 (x86_linux_get_thread_area): Likewise.
5953 (super_post_startup_inferior): Likewise.
5954 (x86_linux_child_post_startup_inferior): Likewise.
5955 (AMD64_LINUX_USER64_CS): Likewise.
5956 (AMD64_LINUX_X32_DS): Likewise.
5957 (x86_linux_read_description): Likewise.
5958 (x86_linux_enable_btrace): Likewise.
5959 (x86_linux_disable_btrace): Likewise.
5960 (x86_linux_teardown_btrace): Likewise.
5961 (x86_linux_read_btrace): Likewise.
5962 (x86_linux_create_target): Likewise.
5963 (x86_linux_add_target): Likewise.
5964 * i386-linux-nat.c (x86-linux-nat.h): New include.
5965 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5966 (PTRACE_SETREGSET): Likewise.
5967 (arch_lwp_info): Now in x86-linux-nat.c.
5968 (have_ptrace_getregset): Now in x86-linux-nat.h.
5969 (x86_linux_dr_get): Now in x86-linux-nat.c.
5970 (x86_linux_dr_set): Likewise.
5971 (x86_linux_dr_get_addr): Likewise.
5972 (x86_linux_dr_get_control): Likewise.
5973 (x86_linux_dr_get_status): Likewise.
5974 (update_debug_registers_callback): Likewise.
5975 (x86_linux_dr_set_control): Likewise.
5976 (x86_linux_dr_set_addr): Likewise.
5977 (x86_linux_prepare_to_resume): Likewise.
5978 (x86_linux_new_thread): Likewise.
5979 (x86_linux_new_fork): Likewise.
5980 (x86_linux_get_thread_area): Likewise.
5981 (super_post_startup_inferior): Likewise.
5982 (x86_linux_child_post_startup_inferior): Likewise.
5983 (AMD64_LINUX_USER64_CS): Likewise.
5984 (AMD64_LINUX_X32_DS): Likewise.
5985 (x86_linux_read_description): Likewise.
5986 (x86_linux_enable_btrace): Likewise.
5987 (x86_linux_disable_btrace): Likewise.
5988 (x86_linux_teardown_btrace): Likewise.
5989 (x86_linux_read_btrace): Likewise.
5990 (x86_linux_create_target): Likewise.
5991 (x86_linux_add_target): Likewise.
5993 2014-07-11 Gary Benson <gbenson@redhat.com>
5995 * amd64-linux-nat.c: Comment and whitespace changes.
5996 * i386-linux-nat.c: Comment and whitespace changes.
5998 2014-07-11 Gary Benson <gbenson@redhat.com>
6000 * amd64-linux-nat.c (x86_linux_create_target): New function.
6001 (x86_linux_add_target): Likewise.
6002 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6003 * i386-linux-nat.c (x86_linux_create_target): New function.
6004 (x86_linux_add_target): Likewise.
6005 (_initialize_i386_linux_nat): Delegate to the above new functions.
6007 2014-07-11 Gary Benson <gbenson@redhat.com>
6009 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6010 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6011 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6012 (ps_get_thread_area): Delegate to the above.
6014 2014-07-11 Gary Benson <gbenson@redhat.com>
6016 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6017 x86_linux_read_description. All uses updated. amd64-specific
6018 code conditionalized. Conditionalized i386-specific code added.
6019 Redundant cast removed.
6020 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6021 x86_linux_read_description. All uses updated. i386-specific
6022 code conditionalized. Conditionalized amd64-specific code added.
6023 One sizeof replaced with the actual type it is describing.
6025 2014-07-11 Gary Benson <gbenson@redhat.com>
6027 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6028 x86_linux_dr_get. All uses updated.
6029 (amd64_linux_dr_set): Renamed to
6030 x86_linux_dr_set. All uses updated.
6031 (amd64_linux_dr_get_addr): Renamed to
6032 x86_linux_dr_get_addr. All uses updated.
6033 (amd64_linux_dr_get_control): Renamed to
6034 x86_linux_dr_get_control. All uses updated.
6035 (amd64_linux_dr_get_status): Renamed to
6036 x86_linux_dr_get_status. All uses updated.
6037 (amd64_linux_dr_set_control): Renamed to
6038 x86_linux_dr_set_control. All uses updated.
6039 (amd64_linux_dr_set_addr): Renamed to
6040 x86_linux_dr_set_addr. All uses updated.
6041 (amd64_linux_prepare_to_resume): Renamed to
6042 x86_linux_prepare_to_resume. All uses updated.
6043 (amd64_linux_new_thread): Renamed to
6044 x86_linux_new_thread. All uses updated.
6045 (amd64_linux_new_fork): Renamed to
6046 x86_linux_new_fork. All uses updated.
6047 (amd64_linux_child_post_startup_inferior): Renamed to
6048 x86_linux_child_post_startup_inferior. All uses updated.
6049 (amd64_linux_enable_btrace): Renamed to
6050 x86_linux_enable_btrace. All uses updated.
6051 (amd64_linux_disable_btrace): Renamed to
6052 x86_linux_disable_btrace. All uses updated.
6053 (amd64_linux_teardown_btrace): Renamed to
6054 x86_linux_teardown_btrace. All uses updated.
6055 (amd64_linux_read_btrace): Renamed to
6056 x86_linux_read_btrace. All uses updated.
6057 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6058 x86_linux_dr_get. All uses updated.
6059 (i386_linux_dr_set): Renamed to
6060 x86_linux_dr_set. All uses updated.
6061 (i386_linux_dr_get_addr): Renamed to
6062 x86_linux_dr_get_addr. All uses updated.
6063 (i386_linux_dr_get_control): Renamed to
6064 x86_linux_dr_get_control. All uses updated.
6065 (i386_linux_dr_get_status): Renamed to
6066 x86_linux_dr_get_status. All uses updated.
6067 (i386_linux_dr_set_control): Renamed to
6068 x86_linux_dr_set_control. All uses updated.
6069 (i386_linux_dr_set_addr): Renamed to
6070 x86_linux_dr_set_addr. All uses updated.
6071 (i386_linux_prepare_to_resume): Renamed to
6072 x86_linux_prepare_to_resume. All uses updated.
6073 (i386_linux_new_thread): Renamed to
6074 x86_linux_new_thread. All uses updated.
6075 (i386_linux_new_fork): Renamed to
6076 x86_linux_new_fork. All uses updated.
6077 (i386_linux_child_post_startup_inferior): Renamed to
6078 x86_linux_child_post_startup_inferior. All uses updated.
6079 (i386_linux_enable_btrace): Renamed to
6080 x86_linux_enable_btrace. All uses updated.
6081 (i386_linux_disable_btrace): Renamed to
6082 x86_linux_disable_btrace. All uses updated.
6083 (i386_linux_teardown_btrace): Renamed to
6084 x86_linux_teardown_btrace. All uses updated.
6085 (i386_linux_read_btrace): Renamed to
6086 x86_linux_read_btrace. All uses updated.
6088 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6090 * remote.c (extended_remote_post_attach): New function.
6091 (init_extended_remote_ops): Install it as to_post_attach method.
6093 2014-07-09 Pedro Alves <palves@redhat.com>
6095 * infcmd.c (attach_command_post_wait): Don't call
6096 target_terminal_inferior here.
6097 (attach_command): Call it here instead.
6099 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6101 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6103 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6104 from varobj.c, with additional checks.
6105 (c_varobj_ops): Fill in is_path_expr_parent field.
6106 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6107 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6109 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6111 (varobj_default_is_path_expr_parent): New function.
6112 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6113 (varobj_default_is_path_expr_parent): Declare new function.
6115 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6117 * infcmd.c (finish_backward): Turn internal error into normal error.
6119 2014-07-07 Pedro Alves <palves@redhat.com>
6122 * remote.c (async_handle_remote_sigint)
6123 (async_handle_remote_sigint_twice): Call
6124 gdb_call_async_signal_handler instead of
6125 mark_async_signal_handler.
6127 2014-07-07 Tom Tromey <tromey@redhat.com>
6129 * target-delegates.c: Rebuild.
6130 * target.c (target_info_record): Remove.
6131 * record.c (info_record_command): Unconditionally call
6133 * target.h (struct target_ops) <to_info_record>: Use
6134 TARGET_DEFAULT_IGNORE.
6135 (target_info_record): Remove.
6137 2014-07-07 Tom Tromey <tromey@redhat.com>
6139 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6140 TARGET_DEFAULT_NORETURN.
6141 * target.c (generic_tls_error): New function.
6142 (target_translate_tls_address): Don't search target stack.
6143 * target-delegates.c: Rebuild.
6144 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6146 * linux-thread-db.c (thread_db_get_thread_local_address):
6147 Unconditionally call beneath target.
6149 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6151 * cli/cli-logging.c (pop_output_files): Assign targerr to
6154 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6156 * MAINTAINERS (Write After Approval): Update my email address.
6158 2014-07-02 Gary Benson <gbenson@redhat.com>
6160 * proc-service.c (ps_xfer_memory): Update comment.
6161 (ps_pstop): Remove unused function.
6162 (ps_pcontinue): Likewise.
6163 (ps_lstop): Likewise.
6164 (ps_lcontinue): Likewise.
6165 (ps_lgetxregsize): Likewise.
6166 (ps_lgetxregs): Likewise.
6167 (ps_lsetxregs): Likewise.
6168 (ps_plog): Likewise.
6169 (ps_ptread): Likewise.
6170 (ps_ptwrite): Likewise.
6172 2014-07-01 Mark Wielaard <mjw@redhat.com>
6174 * dwarf2read.c (add_array_cv_type): New function.
6175 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6176 (read_tag_volatile_type): Likewise.
6178 2014-07-01 Tom Tromey <tromey@redhat.com>
6180 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6181 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6182 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6183 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6184 * command.h (cmd_cfunc_ftype): Move earlier.
6185 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6186 (add_com, add_info): Use cmd_cfunc_ftype.
6188 2014-06-30 Tom Tromey <tromey@redhat.com>
6190 * symtab.c (operator_chars): Make parameters and return type
6192 (file_matches): Make "files" const.
6193 (struct search_symbols_data) <files>: Now const.
6194 (search_symbols): Make "regexp" and "files" parameters const.
6196 (symtab_symbol_info): Remove cast.
6197 (rbreak_command): Update.
6198 * symtab.h (search_symbols): Update.
6200 2014-06-27 Yao Qi <yao@codesourcery.com>
6202 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6203 Change parameter type to 'struct thread_info *'. Caller
6205 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6207 * dummy-frame.c (struct dummy_frame_id): New.
6208 (dummy_frame_id_eq): New function.
6209 (struct dummy_frame) <id>: Change its type to 'struct
6211 (dummy_frame_push): Add parameter ptid and save it in
6213 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6215 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6217 (lookup_dummy_frame): Change parameter type to 'struct
6218 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6219 instead of frame_id_eq.
6220 (dummy_frame_pop): Add parameter ptid. Callers updated.
6221 Update comments. Compose dummy_frame_id and pass it to
6223 (dummy_frame_discard): Add parameter ptid.
6224 (dummy_frame_sniffer): Compose dummy_frame_id and call
6225 dummy_frame_id_eq instead of frame_id_eq.
6226 (fprint_dummy_frames): Print ptid.
6227 * dummy-frame.h: Remove comments.
6228 (dummy_frame_push): Add ptid in declaration.
6229 (dummy_frame_pop, dummy_frame_discard): Likewise.
6231 2014-06-26 Tom Tromey <tromey@redhat.com>
6233 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6234 * command.h (error_no_arg): Update.
6236 2014-06-26 Tom Tromey <tromey@redhat.com>
6238 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6239 (do_show_command): Make "arg" const.
6240 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6242 2014-06-26 Tom Tromey <tromey@redhat.com>
6244 * record-full.c (record_full_get_bookmark): Make "args" const.
6245 (record_full_goto_bookmark): Make "raw_bookmark" const.
6246 * record.c (record_goto): New function.
6247 (cmd_record_goto): Use it. Now static.
6248 * record.h (record_goto): Declare.
6249 (cmd_record_goto): Remove declaration.
6250 * target-delegates.c: Rebuild.
6251 * target.h (struct target_ops) <to_get_bookmark,
6252 to_goto_bookmark>: Make parameter const.
6254 2014-06-26 Tom Tromey <tromey@redhat.com>
6256 * defs.h (generic_load): Update.
6257 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6258 * monitor.c (monitor_load): Make "args" const.
6259 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6260 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6262 (mips_load): Make "file" const.
6263 * remote-sim.c (gdbsim_load): Make "args" const.
6264 * remote.c (remote_load): Make "name" const.
6265 * symfile.c (generic_load): Make "args" const.
6266 * target-delegates.c: Rebuild.
6267 * target.c (target_load): Make "arg" const.
6268 (debug_to_load): Make "args" const.
6269 * target.h (struct target_ops) <to_load>: Make parameter const.
6270 (target_load): Update.
6272 2014-06-26 Tom Tromey <tromey@redhat.com>
6275 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6276 (dwarf2_physname, read_partial_die)
6277 (guess_partial_die_structure_name, fixup_partial_die)
6278 (guess_full_die_structure_name, anonymous_struct_prefix)
6279 (dwarf2_name): Use per-BFD obstack.
6281 2014-06-26 Yao Qi <yao@codesourcery.com>
6283 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6284 dummyframe and this_id into inner block below.
6286 2014-06-26 Yao Qi <yao@codesourcery.com>
6288 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6289 with "signal_pass[0]" in the initialization of signal_pass.
6291 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6293 * record-btrace.c (record_btrace_generating_corefile)
6294 (record_btrace_prepare_to_generate_core)
6295 (record_btrace_done_generating_core): New.
6296 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6297 (record_btrace_store_registers, record_btrace_prepare_to_store):
6298 Forward request when generating a core file.
6299 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6300 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6301 to_done_generating_core.
6303 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6305 * target.h (target_ops) <to_prepare_to_generate_core>
6306 <to_done_generating_core>: New.
6307 (target_prepare_to_generate_core, target_done_generating_core): New.
6308 * target.c (target_prepare_to_generate_core)
6309 (target_done_generating_core): New.
6310 * target-delegates.c: Regenerate.
6311 * gcore.c: (write_gcore_file): Rename to ...
6312 (write_gcore_file_1): ...this.
6313 (write_gcore_file): Call target_prepare_to_generate_core
6314 and target_done_generating_core.
6316 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6318 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6319 * gcore.c (write_gcore_file): Free memory returned from
6320 make_corefile_notes.
6321 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6322 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6324 2014-06-24 Yao Qi <yao@codesourcery.com>
6326 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6327 (arm_linux_init_abi): Set skip_trampoline_code with
6328 gdbarch_skip_trampoline_code instead of
6329 find_solib_trampoline_target.
6331 2014-06-24 Yao Qi <yao@codesourcery.com>
6333 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6334 arm_skip_bx_reg returns non-zero.
6336 2014-06-24 Yao Qi <yao@codesourcery.com>
6338 * arm-tdep.c (arm_skip_bx_reg): New function.
6339 (arm_skip_stub): Call arm_skip_bx_reg.
6341 2014-06-23 Don Breazeal <donb@codesourcery.com>
6343 * MAINTAINERS: Add myself as write-after-approval maintainer.
6345 2014-06-23 Pedro Alves <palves@redhat.com>
6347 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6348 DR_CONTROL before setting DR0..DR3.
6349 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6350 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6351 bits of DR_CONTROL related to the debug register slot being
6352 disabled. If all slots are vacant, clear local slowdown as well,
6353 and assert DR_CONTROL is 0.
6355 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6357 * python/lib/gdb/command/xmethods.py
6358 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6359 current progspace only if the string "progspace" matches LOCUS_RE.
6361 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6363 Fix --with-system-readline with readline-6.3 patch 5.
6364 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6365 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6368 2014-06-20 Tom Tromey <tromey@redhat.com>
6370 * dwarf2read.c (dw2_get_real_path): Use correct type in
6372 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6374 2014-06-20 Gary Benson <gbenson@redhat.com>
6376 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6377 * common/glibc_thread_db.h: Likewise.
6378 * common/i386-cpuid.h: Likewise.
6379 * common/i386-gcc-cpuid.h: Likewise.
6380 * common/linux-btrace.h: Likewise.
6381 * common/linux-osdata.h: Likewise.
6382 * common/linux-procfs.h: Likewise.
6383 * common/linux-ptrace.h: Likewise.
6384 * common/mips-linux-watch.h: Likewise.
6385 * common/linux-btrace.c: Moved to nat.
6386 * common/linux-osdata.c: Likewise.
6387 * common/linux-procfs.c: Likewise.
6388 * common/linux-ptrace.c: Likewise.
6389 * common/mips-linux-watch.c: Likewise.
6390 * nat/gdb_thread_db.h: Moved from common.
6391 * nat/glibc_thread_db.h: Likewise.
6392 * nat/i386-cpuid.h: Likewise.
6393 * nat/i386-gcc-cpuid.h: Likewise.
6394 * nat/linux-btrace.c: Likewise.
6395 * nat/linux-btrace.h: Likewise.
6396 * nat/linux-osdata.c: Likewise.
6397 * nat/linux-osdata.h: Likewise.
6398 * nat/linux-procfs.c: Likewise.
6399 * nat/linux-procfs.h: Likewise.
6400 * nat/linux-ptrace.c: Likewise.
6401 * nat/linux-ptrace.h: Likewise.
6402 * nat/mips-linux-watch.c: Likewise.
6403 * nat/mips-linux-watch.h: Likewise.
6404 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6405 (object file files): Reordered.
6406 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6407 of glibc_thread_db.h.
6409 2014-06-20 Gary Benson <gbenson@redhat.com>
6411 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6412 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6413 (i386_dr_low): Likewise.
6414 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6415 (i386_dr_low_set_addr): Likewise.
6416 (i386_dr_low_get_addr): Likewise.
6417 (i386_dr_low_can_set_control): Likewise.
6418 (i386_dr_low_set_control): Likewise.
6419 (i386_dr_low_get_control): Likewise.
6420 (i386_dr_low_get_status): Likewise.
6421 (i386_get_debug_register_length): Likewise.
6422 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6423 (i386_dr_low): Likewise.
6424 * nat/i386-dregs.c (i386-low.h): Remove include.
6425 (i386-nat.h): Likewise.
6426 (nat/i386-dregs.h): New include.
6427 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6428 (i386_dr_low_set_addr): Likewise.
6429 (i386_dr_low_get_addr): Likewise.
6430 (i386_dr_low_can_set_control): Likewise.
6431 (i386_dr_low_set_control): Likewise.
6432 (i386_dr_low_get_control): Likewise.
6433 (i386_dr_low_get_status): Likewise.
6434 (i386_get_debug_register_length): Likewise.
6435 (debug_hw_points): Likewise.
6437 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6439 * Makefile.in (SFILES): Add d-exp.y.
6440 (YYFILES): Add d-exp.c.
6441 (YYOBJ): Add d-exp.o.
6442 (local-maintainer-clean): Delete d-exp.c.
6443 * d-exp.y: New file.
6444 * d-lang.h (d_parse): New declaration.
6445 (d_error): New declaration.
6446 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6447 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6448 PREC_ORDER operators.
6449 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6451 2014-06-19 Yao Qi <yao@codesourcery.com>
6453 * gdbthread.h (any_running): Remove the declaration.
6454 * thread.c (any_running): Remove.
6456 2014-06-19 Yao Qi <yao@codesourcery.com>
6458 * gdbthread.h (struct thread_info) <state>: Change its type to
6459 'enum thread_state'. Update comments.
6461 2014-06-19 Pedro Alves <palves@redhat.com>
6463 * gdbthread.h (ALL_THREADS): Delete.
6464 (ALL_NON_EXITED_THREADS): New macro.
6465 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6466 instead of ALL_THREADS.
6467 * infrun.c (find_thread_needs_step_over)
6468 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6469 instead of ALL_THREADS.
6470 * record-btrace.c (record_btrace_open)
6471 (record_btrace_stop_recording, record_btrace_close)
6472 (record_btrace_is_replaying, record_btrace_resume)
6473 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6474 * remote.c (append_pending_thread_resumptions): Likewise.
6475 * thread.c (thread_apply_all_command): Likewise.
6477 2014-06-19 Gary Benson <gbenson@redhat.com>
6479 * i386-nat.c (i386_stopped_by_watchpoint):
6480 Use i386_dr_stopped_by_watchpoint.
6481 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6482 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6484 2014-06-19 Gary Benson <gbenson@redhat.com>
6486 * nat/i386-dregs.c: New file.
6487 * Makefile.in (i386-dregs.o): New rule.
6488 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6489 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6490 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6491 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6492 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6493 * config/i386/go32.mh (NATDEPFILES): Likewise.
6494 * config/i386/linux.mh (NATDEPFILES): Likewise.
6495 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6496 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6497 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6498 * i386-nat.h (debug_hw_points): New declaration.
6499 * i386-nat.c (breakpoint.h): Remove include.
6500 (command.h): Likewise.
6501 (target.h): Likewise.
6502 (gdb_assert.h): Likewise.
6503 (debug_hw_points): Made nonstatic.
6504 (debug_printf): Now in i386-dregs.c.
6505 (TARGET_HAS_DR_LEN_8): Likewise.
6506 (DR_CONTROL_SHIFT): Likewise.
6507 (DR_CONTROL_SIZE): Likewise.
6508 (DR_RW_EXECUTE): Likewise.
6509 (DR_RW_WRITE): Likewise.
6510 (DR_RW_READ): Likewise.
6511 (DR_RW_IORW): Likewise.
6512 (DR_LEN_1): Likewise.
6513 (DR_LEN_2): Likewise.
6514 (DR_LEN_4): Likewise.
6515 (DR_LEN_8): Likewise.
6516 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6517 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6518 (DR_ENABLE_SIZE): Likewise.
6519 (DR_LOCAL_SLOWDOWN): Likewise.
6520 (DR_GLOBAL_SLOWDOWN): Likewise.
6521 (DR_CONTROL_RESERVED): Likewise.
6522 (I386_DR_CONTROL_MASK): Likewise.
6523 (I386_DR_VACANT): Likewise.
6524 (I386_DR_LOCAL_ENABLE): Likewise.
6525 (I386_DR_GLOBAL_ENABLE): Likewise.
6526 (I386_DR_DISABLE): Likewise.
6527 (I386_DR_SET_RW_LEN): Likewise.
6528 (I386_DR_GET_RW_LEN): Likewise.
6529 (I386_DR_WATCH_HIT): Likewise.
6530 (i386_wp_op_t): Likewise.
6531 (i386_show_dr): Likewise.
6532 (i386_length_and_rw_bits): Likewise.
6533 (i386_insert_aligned_watchpoint): Likewise.
6534 (i386_remove_aligned_watchpoint): Likewise.
6535 (i386_handle_nonaligned_watchpoint): Likewise.
6536 (i386_update_inferior_debug_regs): Likewise.
6537 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6538 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6539 (i386_region_ok_for_watchpoint):
6540 Use i386_dr_region_ok_for_watchpoint.
6541 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6543 2014-06-19 Gary Benson <gbenson@redhat.com>
6545 * i386-nat.c (i386_insert_hw_breakpoint): Use
6546 i386_insert_watchpoint.
6547 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6549 2014-06-19 Gary Benson <gbenson@redhat.com>
6551 * i386-nat.c (i386_dr_show): Renamed to
6552 i386_show_dr and made static. All uses updated.
6553 (i386_dr_length_and_rw_bits): Renamed to
6554 i386_length_and_rw_bits and made static.
6556 (i386_dr_insert_aligned_watchpoint): Renamed to
6557 i386_insert_aligned_watchpoint and made static.
6559 (i386_dr_remove_aligned_watchpoint): Renamed to
6560 i386_remove_aligned_watchpoint and made static.
6562 (i386_dr_update_inferior_debug_regs): Renamed to
6563 i386_update_inferior_debug_regs and made static.
6565 * nat/i386-dregs.h (i386_dr_show): Removed.
6566 (i386_dr_length_and_rw_bits): Likewise.
6567 (i386_dr_insert_aligned_watchpoint): Likewise.
6568 (i386_dr_remove_aligned_watchpoint): Likewise.
6569 (i386_dr_update_inferior_debug_regs): Likewise.
6571 2014-06-19 Gary Benson <gbenson@redhat.com>
6573 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6574 * configure: Regenerate.
6575 * config.in: Likewise.
6576 * main.c (signal.h): New include.
6577 (setup_alternate_signal_stack): New function.
6578 (captured_main): Call the above.
6579 * cp-support.c (signal.h): New include.
6580 (catch_demangler_crashes): New flag.
6581 (SIGJMP_BUF): New define.
6582 (SIGSETJMP): Likewise.
6583 (SIGLONGJMP): Likewise.
6584 (gdb_demangle_jmp_buf): New static global.
6585 (gdb_demangle_attempt_core_dump): Likewise.
6586 (gdb_demangle_signal_handler): New function.
6587 (gdb_demangle): If catch_demangler_crashes is set, install the
6588 above signal handler before calling bfd_demangle, and restore
6589 the original signal handler afterwards. Display the offending
6590 symbol and call demangler_warning the first time a segmentation
6592 (_initialize_cp_support): New maint set/show command.
6594 2014-06-19 Gary Benson <gbenson@redhat.com>
6596 * utils.h (resource_limit_kind): New enum.
6597 (can_dump_core): New declaration.
6598 (warn_cant_dump_core): Likewise.
6599 (dump_core): Likewise.
6600 * utils.c (dump_core): Made nonstatic. Added new
6601 parameter "limit_kind".
6602 (can_dump_core): Made nonstatic. Moved printing code to...
6603 (warn_cant_dump_core): New function.
6604 (can_dump_core_warn): Likewise.
6605 (internal_vproblem): Replace calls to can_dump_core with
6606 calls to can_dump_core_warn. Supply new argument to each.
6608 2014-06-19 Gary Benson <gbenson@redhat.com>
6610 * utils.h (demangler_vwarning): New declaration.
6611 (demangler_warning): Likewise.
6612 * utils.c (struct internal_problem)
6613 <user_settable_should_quit>: New field.
6614 <user_settable_should_dump_core>: Likewise
6615 (internal_error_problem): Add values for above new fields.
6616 (internal_warning_problem): Likewise.
6617 (demangler_warning_problem): New static global.
6618 (demangler_vwarning): New function.
6619 (demangler_warning): Likewise.
6620 (add_internal_problem_command): Selectively add commands.
6621 (_initialize_utils): New internal problem command.
6622 * maint.c (maintenance_demangler_warning): New function.
6623 (_initialize_maint_cmds): New command.
6625 2014-06-18 Tom Tromey <tromey@redhat.com>
6627 * f-valprint.c (info_common_command_for_block): Update.
6628 * symtab.h (struct general_symbol_info) <common_block>: Now
6631 2014-06-18 Tom Tromey <tromey@redhat.com>
6633 * symtab.h (struct symtab) <blockvector>: Now const.
6634 * ada-lang.c (ada_add_global_exceptions): Update.
6635 * buildsym.c (augment_type_symtab): Update.
6636 * dwarf2read.c (dw2_lookup_symbol): Update.
6637 * jit.c (finalize_symtab): Update.
6638 * jv-lang.c (add_class_symtab_symbol): Update.
6639 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6641 * objfiles.c (objfile_relocate1): Update.
6642 * psymtab.c (lookup_symbol_aux_psymtabs)
6643 (maintenance_check_psymtabs): Update.
6644 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6646 * spu-tdep.c (spu_catch_start): Update.
6647 * symmisc.c (dump_symtab_1): Update.
6648 * symtab.c (lookup_global_symbol_from_objfile)
6649 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6650 (basic_lookup_transparent_type_quick)
6651 (basic_lookup_transparent_type, find_pc_sect_symtab)
6652 (find_pc_sect_line, search_symbols): Update.
6653 * block.c (find_block_in_blockvector): Make "bl" const.
6654 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6656 (blockvector_contains_pc): Make "bv" const.
6657 (block_for_pc_sect): Update.
6658 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6659 (blockvector_contains_pc): Update.
6660 * breakpoint.c (resolve_sal_pc): Update.
6661 * inline-frame.c (block_starting_point_at): Update.
6663 2014-06-18 Tom Tromey <tromey@redhat.com>
6665 * completer.c (complete_line): Make "line_buffer" const.
6666 * completer.h (complete_line): Update.
6668 2014-06-18 Tom Tromey <tromey@redhat.com>
6670 * symtab.c (add_macro_name): Remove unneeded cast.
6672 2014-06-18 Tom Tromey <tromey@redhat.com>
6674 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6675 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6677 2014-06-18 Tom Tromey <tromey@redhat.com>
6679 * probe.c (info_probes_for_ops): Make "arg" const.
6680 * probe.h (info_probes_for_ops): Update.
6682 2014-06-18 Tom Tromey <tromey@redhat.com>
6684 * varobj.c (varobj_create): Update.
6685 * valops.c (value_of_this): Update.
6686 * tracepoint.c (add_local_symbols, scope_info): Update.
6687 * symtab.h (struct general_symbol_info) <block>: Now const.
6688 * symtab.c (skip_prologue_sal)
6689 (default_make_symbol_completion_list_break_on)
6690 (skip_prologue_using_sal): Update.
6691 * stack.h (iterate_over_block_locals)
6692 (iterate_over_block_local_vars): Update.
6693 * stack.c (print_frame_args): Update.
6694 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6696 (get_selected_block): Make return type const.
6697 * python/py-frame.c (frapy_block): Update.
6698 * python/py-block.c (gdbpy_block_for_pc): Update.
6699 * p-exp.y (%union) <bval>: Now const.
6700 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6701 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6702 * m2-exp.y (%union) <bval>: Now const.
6703 * linespec.c (get_current_search_block): Make return type const.
6704 (create_sals_line_offset, find_label_symbols): Update.
6705 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6707 (block_starting_point_at): Make "block" const.
6708 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6709 (check_exception_resume): Update.
6710 * guile/scm-frame.c (gdbscm_frame_block): Update.
6711 * guile/scm-block.c (gdbscm_lookup_block): Update.
6712 * frame.h (get_frame_block): Update.
6713 (get_selected_block): Make return type const.
6714 * frame.c (frame_id_inner): Update.
6715 * f-valprint.c (info_common_command_for_block)
6716 (info_common_command): Update.
6717 * dwarf2loc.c (dwarf2_find_location_expression)
6718 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6719 (locexpr_describe_location_piece): Update.
6720 * c-exp.y (%union) <bval>: Now const.
6721 * breakpoint.c (resolve_sal_pc): Update.
6722 * blockframe.c (get_frame_block):Make return type const.
6723 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6724 (block_innermost_frame): Update.
6725 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6726 (block_for_pc, block_for_pc_sect): Update.
6727 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6729 (block_for_pc_sect, block_for_pc): Make return type const.
6730 * ax-gdb.c (gen_expr): Update.
6731 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6732 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6733 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6734 (ada_read_var_value): Update.
6735 * ada-exp.y (struct name_info) <block>: Now const.
6737 (block_lookup): Constify.
6739 2014-06-18 Gary Benson <gbenson@redhat.com>
6741 * nat/i386-dregs.h: New file.
6742 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6743 * i386-nat.h (i386-dregs.h): New include.
6744 (DR_FIRSTADDR): Now in i386-dregs.h.
6745 (DR_LASTADDR): Likewise.
6746 (DR_NADDR): Likewise.
6747 (DR_STATUS): Likewise.
6748 (DR_CONTROL): Likewise.
6749 (i386_debug_reg_state): Likewise.
6750 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6752 2014-06-18 Don Breazeal <donb@codesourcery.com>
6754 * breakpoint.c (set_longjmp_breakpoint): Call
6755 momentary_breakpoint_from_master with additional argument.
6756 (set_longjmp_breakpoint_for_call_dummy): Call
6757 momentary_breakpoint_from_master with additional argument.
6758 (set_std_terminate_breakpoint): Call
6759 momentary_breakpoint_from_master with additional argument.
6760 (momentary_breakpoint_from_master): Add argument to function
6761 definition and use it to initialize structure member flag.
6762 (clone_momentary_breakpoint): Call
6763 momentary_breakpoint_from_master with additional argument.
6764 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6765 member flags set in momentary_breakpoint_from_master.
6767 2014-06-18 Gary Benson <gbenson@redhat.com>
6769 * i386-nat.c (i386_show_dr): Renamed to
6770 i386_dr_show and made nonstatic. All uses updated.
6771 (i386_length_and_rw_bits): Renamed to
6772 i386_dr_length_and_rw_bits and made nonstatic.
6774 (i386_insert_aligned_watchpoint): Renamed to
6775 i386_dr_insert_aligned_watchpoint and made nonstatic.
6777 (i386_remove_aligned_watchpoint): Renamed to
6778 i386_dr_remove_aligned_watchpoint and made nonstatic.
6780 (i386_update_inferior_debug_regs): Renamed to
6781 i386_dr_update_inferior_debug_regs and made nonstatic.
6784 2014-06-18 Gary Benson <gbenson@redhat.com>
6786 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6787 (i386_dr_low_can_set_control): Likewise.
6788 (i386_dr_low_set_addr): Likewise.
6789 (i386_dr_low_set_control): Likewise.
6790 (i386_dr_low_get_addr): Likewise.
6791 (i386_dr_low_get_status): Likewise.
6792 (i386_dr_low_get_control): Likewise.
6793 (i386_insert_aligned_watchpoint): Use new macros.
6794 (i386_update_inferior_debug_regs): Likewise.
6795 (i386_stopped_data_address): Likewise.
6797 2014-06-18 Gary Benson <gbenson@redhat.com>
6799 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6800 New parameter. All uses updated.
6802 2014-06-18 Gary Benson <gbenson@redhat.com>
6804 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6807 2014-06-18 Gary Benson <gbenson@redhat.com>
6809 * i386-nat.c (debug_printf): New macro.
6810 (i386_get_debug_register_length): Likewise.
6811 (TARGET_HAS_DR_LEN_8): Use above macro.
6812 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6813 and printf_unfiltered. Use phex to format values.
6815 2014-06-18 Gary Benson <gbenson@redhat.com>
6817 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6820 2014-06-18 Gary Benson <gbenson@redhat.com>
6822 * i386-nat.c: Comment changes.
6824 2014-06-18 Gary Benson <gbenson@redhat.com>
6826 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6828 2014-06-18 Gary Benson <gbenson@redhat.com>
6830 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6831 (i386_insert_aligned_watchpoint): Likewise.
6832 (i386_remove_aligned_watchpoint): Likewise.
6833 (i386_handle_nonaligned_watchpoint): Likewise.
6835 2014-06-18 Gary Benson <gbenson@redhat.com>
6837 * i386-nat.c: Whitespace changes.
6839 2014-06-17 Samuel Bronson <naesten@gmail.com>
6841 * MAINTAINERS: Update Roland McGrath's email address.
6842 Thanks to Sergio Durigan Junior for pointing out that he left
6843 Red Hat a while ago, and giving me a current address.
6845 2014-06-17 Tom Tromey <tromey@redhat.com>
6847 * utils.h (savestring): Remove declaration.
6849 2014-06-17 Tom Tromey <tromey@redhat.com>
6851 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6853 2014-06-16 Keith Seitz <keiths@redhat.com>
6856 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6857 to update the varobj if inferior_ptid is null_ptid.
6859 2014-06-16 Tom Tromey <tromey@redhat.com>
6861 * target.h (struct target_ops) <to_info_proc>: Make parameter
6863 (target_info_proc): Update.
6864 * target.c (target_info_proc): Make "args" const.
6865 * procfs.c (procfs_info_proc): Update.
6866 * linux-tdep.c (linux_info_proc): Update.
6867 (linux_core_info_proc_mappings): Make "args" const.
6868 (linux_core_info_proc): Update.
6869 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6870 * gdbarch.c: Rebuild.
6871 * gdbarch.h: Rebuild.
6872 * corelow.c (core_info_proc): Update.
6874 2014-06-16 Tom Tromey <tromey@redhat.com>
6876 * target.h (struct target_ops) <to_disconnect>: Make parameter
6878 (target_disconnect): Update.
6879 * target.c (target_disconnect): Make "args" const.
6880 * target-delegates.c: Rebuild.
6881 * remote.c (remote_disconnect): Update.
6882 * record.h (record_disconnect): Update.
6883 * record.c (record_disconnect): Update.
6884 * inf-child.c (inf_child_disconnect): Update.
6886 2014-06-16 Tom Tromey <tromey@redhat.com>
6888 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6889 * target.c (debug_to_rcmd, default_rcmd): Update.
6890 * target-delegates.c: Rebuild.
6891 * remote.c (remote_rcmd): Update.
6892 * monitor.c (monitor_rcmd): Update.
6894 2014-06-16 Pedro Alves <palves@redhat.com>
6896 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6897 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6898 have OBJF_SHARED set.
6899 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6900 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6901 instead of OBJF_USERLOADED.
6902 * objfiles.h (OBJF_SHARED): Update comment.
6903 (userloaded_objfile_contains_address_p): Rename to ...
6904 (shared_objfile_contains_address_p): ... this, and update
6906 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6908 (remove_symbol_file_command): Skip objfiles that don't have
6911 2014-06-16 Tom Tromey <tromey@redhat.com>
6913 * minsyms.h (prim_record_minimal_symbol)
6914 (prim_record_minimal_symbol_and_info): Update comments.
6916 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6918 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6919 or --without-guile, according to how GDB was built.
6921 2014-06-13 Tom Tromey <tromey@redhat.com>
6923 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6925 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6927 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6929 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6930 help_list.Pass all_commands, not -1, to help_list.
6931 * cli/cli-dump.c (dump_command, append_command)
6932 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6933 (binary_dump_command, binary_append_command): Pass all_commands,
6934 not -1, to help_list.
6935 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6937 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6939 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6941 * top.c (set_history): Pass all_commands, not -1, to help_list.
6942 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6943 all_commands, not -1, to help_list.
6944 * symfile.c (overlay_command): Pass all_commands, not -1, to
6946 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6948 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6950 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6952 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6953 not -1, to help_list.
6954 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6955 not -1, to help_list.
6956 * maint.c (maintenance_command, maintenance_info_command)
6957 (maintenance_print_command, maintenance_set_cmd): Pass
6958 all_commands, not -1, to help_list.
6959 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6961 * language.c (set_check): Pass all_commands, not -1, to help_list.
6962 * infcmd.c (unset_command): Pass all_commands, not -1, to
6964 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6966 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6968 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6970 * breakpoint.c (save_command): Pass all_commands, not -1, to
6972 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6973 all_commands, not -1, to help_list.
6975 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6977 * regcache.c (struct register_to_invalidate): New structure.
6978 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6980 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6982 2014-06-12 Yao Qi <yao@codesourcery.com>
6984 * varobj.c (varobj_get_num_children): Call
6985 varobj_is_dynamic_p.
6986 (varobj_list_children): Likewise.
6987 (varobj_update): Likewise. Update comments.
6989 2014-06-12 Yao Qi <yao@codesourcery.com>
6991 * varobj.c (varobj_pretty_printed_p): Rename to ...
6992 (varobj_is_dynamic_p): ... this. New function.
6993 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6994 (varobj_is_dynamic_p): Declare.
6995 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6996 (mi_print_value_p, varobj_update_one): Likewise.
6998 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6999 Yao Qi <yao@codesourcery.com>
7001 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7002 (varobj_get_iterator): Wrap up code for pretty-printer by
7003 "#if HAVE_PYTHON" and "#endif".
7004 (update_dynamic_varobj_children): Likewise.
7006 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7007 Yao Qi <yao@codesourcery.com>
7009 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7010 gdb_python_initialized is false. Move some code from varobj.c.
7011 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7012 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7013 (struct varobj_item): Moved to varobj-iter.h".
7014 (varobj_clear_saved_item): New function.
7015 (update_dynamic_varobj_children): Move python-related code to
7017 (free_variable): Call varobj_clear_saved_item and
7020 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7021 Yao Qi <yao@codesourcery.com>
7023 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7024 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7025 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7026 (py-varobj.o): New rule.
7027 * python/py-varobj.c: New file.
7028 * python/python-internal.h (py_varobj_get_iterator): Declare.
7029 * varobj-iter.h: New file.
7030 * varobj.c: Include "varobj-iter.h"
7031 (struct varobj) <child_iter>: Change its type from "PyObject *"
7032 to "struct varobj_iter *".
7033 <saved_item>: Likewise.
7034 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7035 [HAVE_PYTHON] (varobj_get_iterator): New function.
7036 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7037 python-specific code to python/py-varobj.c.
7038 (install_visualizer): Call varobj_iter_delete instead of
7040 * varobj.h (varobj_ensure_python_env): Declare.
7042 2014-06-12 Yao Qi <yao@codesourcery.com>
7044 * varobj.c (struct varobj_item): New structure.
7045 (create_child_with_value): Update declaration.
7046 (varobj_add_child): Replace arguments 'name' and 'value' with
7047 'item'. All callers updated.
7048 (install_dynamic_child): Likewise.
7049 (update_dynamic_varobj_children): Likewise.
7050 (varobj_add_child): Likewise.
7051 (create_child_with_value): Likewise.
7053 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7055 * NEWS: Create a new section for the next release branch.
7056 Rename the section of the current branch, now that it has
7059 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7061 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7062 * version.in: Bump version to 7.8.50.DATE-cvs.
7064 2014-06-11 Pedro Alves <palves@redhat.com>
7067 * ser-mingw.c (net_windows_socket_check_pending): New function.
7068 (net_windows_select_thread): Ignore spurious wakeups. Use
7069 net_windows_socket_check_pending.
7070 (net_windows_wait_handle): Check for pending events with
7071 ioctlsocket, through net_windows_socket_check_pending, instead of
7072 checking the socket's event.
7074 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7076 * python/python-internal.h (gdb_PyObject_GetAttrString)
7077 (gdb_PyObject_HasAttrString): New inline function definitions.
7078 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7079 char * of the second argument to PyObject_GetAttrString.
7081 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7083 * serial.c (serial_write): Fix index of character to be printed
7084 in call to serial_logchar when serial debug traces are enabled.
7086 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7088 * gdbtypes (resolve_dynamic_range): Add function description.
7090 2014-06-09 Pedro Alves <palves@redhat.com>
7092 * linux-nat.c (linux_child_follow_fork): Initialize status with
7093 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7094 inner block. Only pass the signal to PTRACE_DETACH if in pass
7097 2014-06-09 Gary Benson <gbenson@redhat.com>
7099 * common/signals.c (gdb_signal_from_host): Reorder to separate
7100 the always-available ANSI-standard signals from the signals that
7102 (do_gdb_signal_to_host): Likewise.
7103 * proc-events.c (signal_table): Likewise.
7105 2014-06-08 Hui Zhu <hui@codesourcery.com>
7107 * common/linux-ptrace.c (linux_disable_event_reporting): New
7109 * common/linux-ptrace.h (linux_disable_event_reporting): New
7111 * linux-nat.c (linux_child_follow_fork): Do a single step before
7114 2014-06-07 Keith Seitz <keiths@redhat.com>
7118 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7119 from symbol_matches_domain in symtab.c. All local callers
7120 of symbol_matches_domain updated.
7121 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7122 search STRUCT_DOMAIN.
7123 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7124 independently. standard_lookup will do that automatically.
7125 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7126 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7127 (cp_lookup_symbol_in_namespace): Likewise.
7128 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7129 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7130 may return a STRUCT_DOMAIN match.
7131 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7132 * cp-support.c: Include language.h.
7133 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7135 * psymtab.c (match_partial_symbol): Compare the requested
7136 domain with the symbol's domain directly.
7137 (lookup_partial_symbol): Likewise.
7138 * symtab.c (lookup_symbol_in_language): Explain when/why
7139 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7140 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7141 appropriate languages.
7142 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7143 and moved to ada-lang.c
7144 (lookup_block_symbol): Explain that this function only returns
7145 symbol matching the requested DOMAIN.
7146 Compare the requested domain with the symbol's domain directly.
7147 (iterate_over_symbols): Compare the requested domain with the
7148 symbol's domain directly.
7149 * symtab.h (symbol_matches_domain): Remove.
7151 2014-06-06 Doug Evans <xdje42@gmail.com>
7153 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7154 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7155 (gdbscm_guile_version_is_at_least): Declare.
7156 (gdbscm_scm_string_to_int): Declare.
7157 * guile/guile.c (gdbscm_guile_major_version): New global.
7158 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7159 (guile_datadir): New static global.
7160 (gdbscm_guile_data_directory): New function.
7161 (initialize_scheme_side): Update.
7162 (misc_guile_functions): Add guile-data-directory.
7163 (initialize_gdb_module): Fetch guile version number.
7164 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7165 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7166 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7167 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7169 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7170 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7171 * guile/scm-value.c (gdbscm_value_to_string): Only call
7172 scm_port_conversion_strategy if Guile version >= 2.0.6.
7174 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7176 * main.c (print_gdb_help): Add -q and --silent.
7178 2014-06-06 Gary Benson <gbenson@redhat.com>
7180 * common/signals.c: Remove preprocessor conditionals for
7181 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7182 SIGSEGV and SIGTERM.
7183 * proc-events.c: Likewise.
7185 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7187 * symfile.c (symfile_free_objfile): Remove restriction to
7189 * symfile-mem.c (symbol_file_add_from_memory): Call
7190 add_target_sections_of_objfile.
7192 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7194 * guile/scm-value.c (gdbscm_history_append_x): Use
7195 'vlscm_get_value_smob_arg_unsafe' instead of
7196 'vlscm_scm_to_value'.
7198 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7201 * utils.c (printchar): Don't escape at all if quoter is NUL.
7202 Update function documentation to clarify effect of parameter
7204 * remote.c (escape_buffer): Pass '\\' as the quoter to
7205 fputstrn_unfiltered.
7206 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7207 generate the output.
7208 (mi_solib_unloaded): Same.
7210 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7212 * development.sh: Delete.
7213 * Makefile.in (config.status): Adjust dependency on development.sh.
7214 * configure.ac: Adjust development.sh source call.
7215 * configure: Regenerate.
7217 2014-06-04 Doug Evans <xdje42@gmail.com>
7219 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7220 is_scheme_bkpt, spec.
7221 (bpscm_make_breakpoint_smob): Initialize new members.
7222 (gdbscm_create_breakpoint_x): Split into two ...
7223 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7224 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7225 (scheme_function breakpoint_functions): Update.
7226 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7227 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7228 register-breakpoint!.
7230 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7233 * mem-break.c (z_type_supported): Return zero if
7234 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7236 2014-06-04 Tom Tromey <tromey@redhat.com>
7238 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7239 value_from_contents_and_address_unresolved.
7240 (ada_template_to_fixed_record_type_1): Likewise.
7241 (ada_which_variant_applies): Likewise.
7242 * value.h (value_from_contents_and_address_unresolved): Declare.
7243 * value.c (value_from_contents_and_address_unresolved): New
7245 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7246 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7247 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7249 2014-06-04 Tom Tromey <tromey@redhat.com>
7251 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7253 2014-06-04 Tom Tromey <tromey@redhat.com>
7255 * procfs.c (procfs_attach): Make "args" const.
7256 * windows-nat.c (windows_attach): Make "args" const.
7257 * nto-procfs.c (procfs_attach): Make "args" const.
7258 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7259 * go32-nat.c (go32_attach): Make "args" const.
7260 * gnu-nat.c (gnu_attach): Make "args" const.
7261 * darwin-nat.c (darwin_attach): Make "args" const.
7262 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7263 * linux-nat.c (linux_nat_attach): Make "args" const.
7264 * remote.c (extended_remote_attach_1, extended_remote_attach):
7266 * target.h (struct target_ops) <to_attach>: Make "args" const.
7267 (find_default_attach): Likewise.
7268 * utils.c (parse_pid_to_attach): Make "args" const.
7269 * utils.h (parse_pid_to_attach): Update.
7271 2014-06-04 Tom Tromey <tromey@redhat.com>
7273 * target-delegates.c: Rebuild.
7274 * target.c (default_thread_address_space): New function.
7275 (target_thread_address_space): Simplify.
7276 * target.h (struct target_ops) <to_thread_address_space>: Add
7277 TARGET_DEFAULT_FUNC.
7279 2014-06-04 Doug Evans <xdje42@gmail.com>
7281 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7283 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7285 * record-btrace.c: Include event-loop.h and inf-loop.h.
7286 (record_btrace_resume_exec_dir)
7287 (record_btrace_async_inferior_event_handler)
7288 (record_btrace_handle_async_inferior_event): New.
7289 (record_btrace_open): Create async event handler.
7290 (record_btrace_close): Delete async event handler.
7291 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7292 Mark async event handler.
7293 (record_btrace_execution_direction): New.
7294 (init_record_btrace_ops): Initialize to_execution_direction.
7296 2014-06-03 Doug Evans <xdje42@gmail.com>
7298 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7299 (gdbscm_make_parameter): Ditto.
7301 2014-06-03 Doug Evans <dje@google.com>
7303 * exec.c (exec_close_1): Call clear_section_table instead of
7304 resize_section_table.
7305 (clear_section_table): New function.
7306 (resize_section_table): Make static. Rename arg num_added to
7308 * exec.h (clear_section_table): Declare.
7309 (resize_section_table): Delete.
7310 * progspace.c (release_program_space): Call clear_section_table
7311 instead of resize_section_table.
7313 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7315 * NEWS (Python Scripting): Add entry about the new xmethods
7318 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7320 * python/py-xmethods.c: New file.
7321 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7322 (objfpy_dealloc): XDECREF on the new xmethods field.
7323 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7325 (objfpy_get_xmethods): New function.
7326 (objfile_getset): New entry 'xmethods'.
7327 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7328 (pspy_dealloc): XDECREF on the new xmethods field.
7329 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7331 (pspy_get_xmethods): New function.
7332 (pspace_getset): New entry 'xmethods'.
7333 * python/python-internal.h: Add declarations for new functions.
7334 * python/python.c (_initialize_python): Invoke
7335 gdbpy_initialize_xmethods.
7336 * python/lib/gdb/__init__.py (xmethods): New
7338 * python/lib/gdb/xmethod.py: New file.
7339 * python/lib/gdb/command/xmethods.py: New file.
7341 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7343 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7344 best match method returned by find_overload_match is an xmethod.
7345 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7346 the best matching operator returned by find_overload_match is an
7348 * valops.c: #include "extension.h".
7349 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7350 Return void. The list of matching source methods is returned in
7351 "fn_list" and a vector of matching debug method workers is
7352 returned in "xm_worker_vec". Update all callers.
7353 (value_find_oload_method_list): Likewise.
7354 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7355 non-NULL, then the index of the best matching method in this
7356 vector is returned. Update all callers.
7357 (find_overload_match): Include xmethods while performing overload
7360 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7362 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7363 * extension-priv.h (struct extension_language_ops): Add the
7365 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7366 get_matching_xmethod_workers, get_xmethod_argtypes,
7367 invoke_xmethod, free_xmethod_worker,
7368 free_xmethod_worker_vec): New functions.
7369 * extension.h: #include "common/vec.h".
7370 New function declarations.
7371 (struct xmethod_worker): New struct.
7372 (VEC (xmethod_worker_ptr)): New vector type.
7373 (xmethod_worker_ptr): New typedef.
7374 (xmethod_worker_vec): Likewise.
7375 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7377 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7378 (struct builtin_type): New field "xmethod".
7379 * valarith.c (value_ptradd): Assert that the value argument is not
7381 * valops.c (value_must_coerce_to_target): Return 0 for
7382 lval_xcallable values.
7383 * value.c (struct value): New field XM_WORKER in the field
7385 (value_address, value_raw_address): Return 0 for lval_xcallable
7387 (set_value_address): Assert that the value is not an
7389 (value_free): Free the associated xmethod worker when freeing
7390 lval_xcallable values.
7391 (set_value_component_location): Assert that the WHOLE value is not
7393 (value_of_xmethod, call_xmethod): New functions.
7394 * value.h: Declare "struct xmethod_worker".
7395 Declare new functions value_of_xmethod, call_xmethod.
7397 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7398 Pedro Alves <palves@redhat.com>
7400 PR breakpoints/17000
7401 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7402 New function, extracted from software_breakpoint_inserted_here_p.
7403 (software_breakpoint_inserted_here_p): Replace factored out code
7404 by call to find_non_raw_software_breakpoint_inserted_here.
7405 (bp_target_info_copy_insertion_state): New function.
7406 (bkpt_insert_location): Handle the case of a single-step
7407 breakpoint already inserted at the same address.
7408 (bkpt_remove_location): Handle the case of a single-step
7409 breakpoint still inserted at the same address.
7410 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7411 breakpoint already inserted at the same address.
7412 (deprecated_remove_raw_breakpoint): Handle the case of a
7413 non-raw breakpoint still inserted at the same address.
7414 (find_single_step_breakpoint): New function, extracted from
7415 single_step_breakpoint_inserted_here_p.
7416 (find_single_step_breakpoint): New function,
7417 factored out from single_step_breakpoint_inserted_here_p.
7418 (single_step_breakpoint_inserted_here_p): Reimplement.
7420 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7422 Pushed by Joel Brobecker <brobecker@adacore.com>
7423 * source.c (show_substitute_path_command): Fix display of matching
7426 2014-06-03 Gary Benson <gbenson@redhat.com>
7428 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7430 2014-06-02 Doug Evans <xdje42@gmail.com>
7432 Add parameter support for Guile.
7433 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7434 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7435 (scm-param.o): New rule.
7436 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7437 (gdbscm_misc_error): Declare.
7438 (gdbscm_canonicalize_command_name): Declare.
7439 (gdbscm_scm_to_host_string): Declare.
7440 (gdbscm_scm_from_host_string): Declare.
7441 (gdbscm_initialize_parameters): Declare.
7442 * guile/guile.c (initialize_gdb_module): Call
7443 gdbscm_initialize_parameters.
7444 * guile/lib/gdb.scm: Export parameter symbols.
7445 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7446 cmdscm_canonicalize_name and made public. All callers updated.
7447 * guile/scm-exception.c (gdbscm_misc_error): New function.
7448 * guile/scm-param.c: New file.
7449 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7450 (gdbscm_scm_to_host_string): New function.
7451 (gdbscm_scm_from_host_string): New function.
7452 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7454 2014-06-02 Doug Evans <xdje42@gmail.com>
7456 Add command support for Guile.
7457 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7458 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7459 (scm-cmd.o): New rule.
7460 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7461 (gdbscm_user_error_p): Declare.
7462 (gdbscm_parse_command_name): Declare.
7463 (gdbscm_valid_command_class_p): Declare.
7464 (gdbscm_initialize_commands): Declare.
7465 * guile/guile.c (initialize_gdb_module): Call
7466 gdbscm_initialize_commands.
7467 * guile/lib/gdb.scm: Export command symbols.
7468 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7469 (throw-user-error): New function.
7470 * guile/scm-cmd.c: New file.
7471 * guile/scm-exception.c (user_error_symbol): New static global.
7472 (gdbscm_user_error_p): New function.
7473 (gdbscm_initialize_exceptions): Set user_error_symbol.
7474 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7476 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7478 * top.c (command_loop): Handle comments here...
7479 (command_line_input): ... not here.
7481 2014-06-02 Doug Evans <xdje42@gmail.com>
7483 Add progspace support for Guile.
7484 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7485 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7486 (scm-progspace.o): New rule.
7487 * guile/guile-internal.h (pspace_smob): New typedef.
7488 (psscm_pspace_smob_pretty_printers): Declare.
7489 (psscm_pspace_smob_from_pspace): Declare.
7490 (psscm_scm_from_pspace): Declare.
7491 * guile/guile.c (initialize_gdb_module): Call
7492 gdbscm_initialize_pspaces.
7493 * guile/lib/gdb.scm: Export progspace symbols.
7494 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7496 (append-pretty-printer!): Ditto.
7497 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7499 * guile/scm-progspace.c: New file.
7501 2014-06-03 Alan Modra <amodra@gmail.com>
7503 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7504 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7506 2014-06-02 Doug Evans <dje@google.com>
7508 Add support for skeletonless type units.
7509 * dwarf2read.c (struct dwarf2_per_objfile): New member
7510 n_allocated_type_units.
7511 (struct dwarf2_per_objfile) <tu_stats>: New member
7512 nr_all_type_units_reallocs.
7513 (create_signatured_type_table_from_index): Initialize
7514 n_allocated_type_units
7515 (create_all_type_units): Ditto.
7516 (add_type_unit): Move up in file. New arg slot.
7517 All callers updated. Increase space for all_type_units more
7519 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7520 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7521 (lookup_dwp_signatured_type): Ditto.
7522 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7523 All callers updated.
7524 (build_type_psymtabs_1): Leave type_unit_groups as
7525 NULL if no TUs present.
7526 (print_tu_stats): New function.
7527 (process_skeletonless_type_unit): New function.
7528 (process_dwo_file_for_skeletonless_type_units): New
7530 (process_skeletonless_type_units): New function.
7531 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7532 Call print tu_stats if debugging enabled.
7534 2014-06-02 Pedro Alves <palves@redhat.com>
7536 * breakpoint.c (build_target_command_list): Don't build a command
7537 list if we have any duplicate location that isn't a dprintf.
7539 2014-06-02 Pedro Alves <palves@redhat.com>
7541 * breakpoint.c (dprintf_breakpoint_hit): New function.
7542 (initialize_breakpoint_ops): Install it as dprintf's
7543 breakpoint_hit method.
7545 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7547 * source.c (substitute_path_rule_matches): Simplify using
7548 filename_ncmp instead of FILENAME_CMP.
7550 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7552 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7554 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7556 * configure.ac: When Guile is available, check for the
7557 availability of 'scm_new_smob'.
7558 * configure, config.h.in: Regenerate.
7559 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7562 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7564 * frame.c (struct frame_info): Add stop_string field.
7565 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7566 (get_prev_frame_always): Old content moved into
7567 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7568 TRY_CATCH, handle MEMORY_ERROR exceptions.
7569 (frame_stop_reason_string): New function definition.
7570 * frame.h (unwind_stop_reason_to_string): Extend comment to
7571 mention frame_stop_reason_string.
7572 (frame_stop_reason_string): New function declaration.
7573 * stack.c (frame_info): Switch to frame_stop_reason_string.
7574 (backtrace_command_1): Switch to frame_stop_reason_string.
7575 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7576 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7577 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7579 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7581 * frame.c (frame_stop_reason_string): Rename to ...
7582 (unwind_stop_reason_to_string): this.
7583 * frame.h (frame_stop_reason_string): Rename to ...
7584 (unwind_stop_reason_to_string): this.
7585 * stack.c (frame_info): Update call to frame_stop_reason_string.
7586 (backtrace_command_1): Likewise.
7587 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7588 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7590 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7592 * frame.c (remove_prev_frame): New function.
7593 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7596 2014-05-29 Pedro Alves <palves@redhat.com>
7598 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7599 and make it const. When a single-step decays to a continue,
7600 clear 'step', not 'hw_step'. Pass whether the caller wanted
7601 to step to user_visible_resume_ptid, not what we ask the
7604 2014-05-29 Pedro Alves <palves@redhat.com>
7606 * infrun.c (process_event_stop_test, handle_step_into_function)
7607 (handle_step_into_function_backward): Adjust.
7608 Don't set the even thread's stop_step and call stop_waiting before
7609 calling end_stepping_range. Instead do that ...
7610 (end_stepping_range): ... here. Take an ecs pointer parameter.
7612 2014-05-29 Pedro Alves <palves@redhat.com>
7614 * infrun.c (stop_stepping): Rename to ...
7615 (stop_waiting): ... this.
7616 (proceed): Update comment.
7617 (process_event_stop_test, handle_inferior_event)
7618 (handle_signal_stop, handle_step_into_function)
7619 (handle_step_into_function_backward): Update.
7621 2014-05-29 Pedro Alves <palves@redhat.com>
7623 * infcall.c (run_inferior_call): Don't check whether the current
7624 thread is running after the proceed call.
7626 2014-05-29 Pedro Alves <palves@redhat.com>
7627 Tom Tromey <tromey@redhat.com>
7629 * NEWS: Mention "maint set target-async", "set mi-async", and that
7630 background execution commands are now always available.
7631 * target.h (target_async_permitted): Update comment.
7632 * target.c (target_async_permitted, target_async_permitted_1):
7634 (set_target_async_command): Rename to ...
7635 (maint_set_target_async_command): ... this.
7636 (show_target_async_command): Rename to ...
7637 (maint_show_target_async_command): ... this.
7638 (_initialize_target): Adjust.
7639 * infcmd.c (prepare_execution_command): Make extern.
7640 * inferior.h (prepare_execution_command): Declare.
7641 * infrun.c (set_observer_mode): Leave target async alone.
7642 * mi/mi-interp.c (mi_interpreter_init): Install
7643 mi_on_sync_execution_done as sync_execution_done observer.
7644 (mi_on_sync_execution_done): New function.
7645 (mi_execute_command_input_handler): Don't print the prompt if we
7646 just started a synchronous command with an async target.
7647 (mi_on_resume): Check sync_execution before printing prompt.
7648 * mi/mi-main.h (mi_async_p): Declare.
7649 * mi/mi-main.c: Include gdbcmd.h.
7650 (mi_async_p): New function.
7651 (mi_async, mi_async_1): New globals.
7652 (set_mi_async_command, show_mi_async_command, mi_async): New
7654 (exec_continue): Call prepare_execution_command.
7655 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7656 (mi_execute_async_cli_command): Use mi_async_p.
7657 (_initialize_mi_main): Install "set mi-async". Make
7658 "target-async" a deprecated alias.
7660 2014-05-29 Pedro Alves <palves@redhat.com>
7662 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7663 (_initialize_cli_interp): Adjust.
7664 * event-loop.c: Include "observer.h".
7665 (start_event_loop): Notify 'command_error' observers instead of
7666 calling display_gdb_prompt. Remove FIXME comment.
7667 * event-top.c (display_gdb_prompt): Remove call into the
7669 * inf-loop.c: Include "observer.h".
7670 (inferior_event_handler): Notify 'command_error' observers instead
7671 of calling display_gdb_prompt.
7672 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7673 observers instead of calling display_gdb_prompt.
7674 * interps.c (interp_set): Don't call display_gdb_prompt.
7675 (current_interp_display_prompt_p): Delete.
7676 * interps.h (interp_prompt_p): Delete declaration.
7677 (interp_prompt_p_ftype): Delete.
7678 (struct interp_procs) <prompt_proc_p>: Delete field.
7679 (current_interp_display_prompt_p): Delete declaration.
7680 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7681 (_initialize_mi_interp): Adjust.
7682 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7683 'command_error' observers.
7684 (tui_on_sync_execution_done, tui_on_command_error): New
7686 (tui_display_prompt_p): Delete.
7687 (_initialize_tui_interp): Adjust.
7689 2014-05-29 Pedro Alves <palves@redhat.com>
7692 * cli/cli-interp.c: Include infrun.h and observer.h.
7693 (cli_uiout, cli_interp): New globals.
7694 (cli_on_signal_received, cli_on_end_stepping_range)
7695 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7697 (cli_interpreter_init): Install them as 'end_stepping_range',
7698 'signal_received' 'signal_exited', 'exited' and 'no_history'
7700 (_initialize_cli_interp): Remove cli_interp local.
7701 * infrun.c (handle_inferior_event): Call the several stop reason
7702 observers instead of printing the stop reason directly.
7703 (end_stepping_range): New function.
7704 (print_end_stepping_range_reason, print_signal_exited_reason)
7705 (print_exited_reason, print_signal_received_reason)
7706 (print_no_history_reason): Make static, and add an uiout
7707 parameter. Print to that instead of to CURRENT_UIOUT.
7708 * infrun.h (print_end_stepping_range_reason)
7709 (print_signal_exited_reason, print_exited_reason)
7710 (print_signal_received_reason print_no_history_reason): New
7712 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7714 <cli_uiout>: New field.
7715 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7716 uiout for CLI output. Install 'signal_received',
7717 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7719 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7720 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7721 (mi_on_no_history): New functions.
7722 (ui_out_free_cleanup): Delete function.
7723 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7724 instead use the one already stored in the MI interpreter data.
7725 (mi_ui_out): Adjust.
7726 * tui/tui-interp.c: Include infrun.h and observer.h.
7727 (tui_interp): New global.
7728 (tui_on_signal_received, tui_on_end_stepping_range)
7729 (tui_on_signal_exited, tui_on_exited)
7730 (tui_on_no_history): New functions.
7731 (tui_init): Install them as 'end_stepping_range',
7732 'signal_received' 'signal_exited', 'exited' and 'no_history'
7734 (_initialize_tui_interp): Delete tui_interp local.
7736 2014-05-29 Pedro Alves <palves@redhat.com>
7739 * linux-nat.c (linux_nat_resume_callback): Rename the second
7740 parameter to 'except'. Skip LP if it points to EXCEPT.
7741 (linux_nat_resume): Don't mark the event lwp as not stopped
7742 before resuming sibling lwps. Instead ask
7743 linux_nat_resume_callback to skip the event lwp. Mark it as not
7744 stopped after actually resuming it.
7745 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7747 (wait_lwp): Mark the lwp as stopped here.
7748 (stop_wait_callback): Mark the lwp as not stopped right after
7749 resuming it. Don't mark lwps as stopped here.
7750 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7751 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7753 2014-05-29 Pedro Alves <palves@redhat.com>
7756 * infrun.c (resume): Determine how much to resume depending on
7757 whether the caller wanted a step, not whether we can hardware step
7758 the target. Mark all threads that we intend to run as running,
7759 unless we're calling an inferior function.
7760 (normal_stop): If the thread is running an infcall, don't finish
7762 * target.c (target_resume): Don't mark threads as running here.
7764 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7766 * serial.c (_initialize_serial): Remove support for
7767 the "set remotebaud" and "show remotebaud" commands.
7768 * NEWS: Add entry documenting the removal of that command.
7770 2014-05-28 Yao Qi <yao@codesourcery.com>
7772 * charset.c: Fix typo in comments.
7774 2014-05-27 Gary Benson <gbenson@redhat.com>
7776 * utils.c (internal_vproblem): Prompt for a bug report.
7778 2014-05-26 Andy Wingo <wingo@igalia.com>
7780 * guile/scm-arch.c (arscm_mark_arch_smob):
7781 * guile/scm-block.c (bkscm_mark_block_smob)
7782 (bkscm_mark_block_syms_progress_smob):
7783 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7784 * guile/scm-exception.c (exscm_mark_exception_smob):
7785 * guile/scm-frame.c (frscm_mark_frame_smob):
7786 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7787 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7788 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7789 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7790 (ppscm_mark_pretty_printer_worker_smob):
7791 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7792 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7793 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7794 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7796 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7799 2014-05-26 Andy Wingo <wingo@igalia.com>
7800 Doug Evans <xdje42@gmail.com>
7802 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7803 empty_base_class. All uses updated.
7804 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7805 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7807 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7808 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7809 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7810 (gdbscm_gsmob_has_property_p, add_property_name)
7811 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7812 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7813 (gdb-object-has-property?, gdb-object-properties): Remove.
7814 (gdb-object-kind): Renamed from gsmob-kind.
7816 2014-05-26 Andy Wingo <wingo@igalia.com>
7818 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7819 * configure: Regenerate.
7821 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7823 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7825 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7827 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7828 (replay_memory_access_read_only, replay_memory_access_read_write)
7829 (replay_memory_access_types, replay_memory_access)
7830 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7831 (cmd_set_record_btrace, cmd_show_record_btrace)
7832 (cmd_show_replay_memory_access): New.
7833 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7834 (record_btrace_remove_breakpoint): Replace
7835 record_btrace_allow_memory_access with replay_memory_access.
7836 (_initialize_record_btrace): Add commands.
7837 * NEWS: Announce it.
7839 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7841 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7843 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7845 * MAINTAINERS (Write After Approval): Move self back from
7848 2014-05-22 Pedro Alves <palves@redhat.com>
7850 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7851 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7852 (disable_randomization, enum exec_direction_kind)
7853 (execution_direction, stop_registers, start_remote)
7854 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7855 (wait_for_inferior, normal_stop, get_last_target_status)
7856 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7857 (insert_step_resume_breakpoint_at_sal)
7858 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7859 (set_step_info, print_stop_event, signal_stop_state)
7860 (signal_print_state, signal_pass_state, signal_stop_update)
7861 (signal_print_update, signal_pass_update)
7862 (update_signals_program_target, clear_exit_convenience_vars)
7863 (displaced_step_dump_bytes, update_observer_mode)
7864 (signal_catch_update, gdb_signal_from_command): Move
7866 * infrun.h: ... to this new file.
7867 * amd64-tdep.c: Include infrun.h.
7868 * annotate.c: Include infrun.h.
7869 * arch-utils.c: Include infrun.h.
7870 * arm-linux-tdep.c: Include infrun.h.
7871 * arm-tdep.c: Include infrun.h.
7872 * break-catch-sig.c: Include infrun.h.
7873 * breakpoint.c: Include infrun.h.
7874 * common/agent.c: Include infrun.h instead of inferior.h.
7875 * corelow.c: Include infrun.h.
7876 * event-top.c: Include infrun.h.
7877 * go32-nat.c: Include infrun.h.
7878 * i386-tdep.c: Include infrun.h.
7879 * inf-loop.c: Include infrun.h.
7880 * infcall.c: Include infrun.h.
7881 * infcmd.c: Include infrun.h.
7882 * infrun.c: Include infrun.h.
7883 * linux-fork.c: Include infrun.h.
7884 * linux-nat.c: Include infrun.h.
7885 * linux-thread-db.c: Include infrun.h.
7886 * monitor.c: Include infrun.h.
7887 * nto-tdep.c: Include infrun.h.
7888 * procfs.c: Include infrun.h.
7889 * record-btrace.c: Include infrun.h.
7890 * record-full.c: Include infrun.h.
7891 * remote-m32r-sdi.c: Include infrun.h.
7892 * remote-mips.c: Include infrun.h.
7893 * remote-notif.c: Include infrun.h.
7894 * remote-sim.c: Include infrun.h.
7895 * remote.c: Include infrun.h.
7896 * reverse.c: Include infrun.h.
7897 * rs6000-tdep.c: Include infrun.h.
7898 * s390-linux-tdep.c: Include infrun.h.
7899 * solib-irix.c: Include infrun.h.
7900 * solib-osf.c: Include infrun.h.
7901 * solib-svr4.c: Include infrun.h.
7902 * target.c: Include infrun.h.
7903 * top.c: Include infrun.h.
7904 * windows-nat.c: Include infrun.h.
7905 * mi/mi-interp.c: Include infrun.h.
7906 * mi/mi-main.c: Include infrun.h.
7907 * python/py-threadevent.c: Include infrun.h.
7909 2014-05-22 Pedro Alves <palves@redhat.com>
7911 * infrun.c (handle_inferior_event): Store the exit code for
7912 --return-child-result here, instead of ...
7913 (print_exited_reason): ... here.
7915 2014-05-21 Pedro Alves <palves@redhat.com>
7918 * gdbthread.h (struct thread_control_state): New field
7920 * infrun.c (follow_fork): Copy the new thread control field to the
7922 (clear_proceed_status_thread): Clear the new thread control field.
7923 (proceed): Set the new thread control field.
7924 * interps.h (command_interp): Declare.
7925 * interps.c (command_interpreter): New global.
7926 (command_interp): New function.
7927 (interp_exec): Set `command_interpreter' while here.
7928 * cli-out.c (cli_uiout_dtor): New function.
7929 (cli_ui_out_impl): Install it.
7930 * mi/mi-interp.c: Include cli-out.h.
7931 (mi_cmd_interpreter_exec): Add comment.
7932 (restore_current_uiout_cleanup): New function.
7933 (ui_out_free_cleanup): New function.
7934 (mi_on_normal_stop): If finishing an execution command started by
7935 a CLI command, or any kind of breakpoint-like event triggered,
7936 print the stop event to the output (CLI) stream.
7937 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7939 2014-05-21 Pedro Alves <palves@redhat.com>
7941 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7942 current source line having changed.
7943 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7944 * infrun.c (normal_stop): Adjust call to
7945 set_current_sal_from_frame.
7946 * source.c (clear_lines_listed_range): New function.
7947 (set_current_source_symtab_and_line, identify_source_line): Clear
7948 the lines listed range.
7949 (line_info): Handle the first "info line" after the current source
7950 line having changed.
7951 * stack.c (print_stack_frame): Remove center handling.
7952 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7955 2014-05-21 Pedro Alves <palves@redhat.com>
7957 * inf-child.c (inf_child_mourn_inferior): New function.
7958 * inf-child.h (inf_child_mourn_inferior): New declaration.
7959 * darwin-nat.c (darwin_mourn_inferior): Use
7960 inf_child_mourn_inferior.
7961 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7962 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7963 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7964 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7965 * windows-nat.c (windows_mourn_inferior): Likewise.
7967 2014-05-21 Doug Evans <xdje42@gmail.com>
7969 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7971 2014-05-21 Doug Evans <xdje42@gmail.com>
7973 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7974 (gdbscm_out_of_range_error): Ditto.
7975 (gdbscm_memory_error): Ditto.
7976 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7977 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7978 (gdbscm_out_of_range_error): Update.
7979 (gdbscm_memory_error): Update.
7980 (gdbscm_scm_to_target_string_unsafe): Delete.
7982 2014-05-21 Pedro Alves <palves@redhat.com>
7984 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7986 (inf_child_open_target): New function.
7987 (inf_child_open): Use inf_child_open_target to push the target
7988 instead of erroring out.
7989 (inf_child_disconnect, inf_child_close)
7990 (inf_child_maybe_unpush_target): New functions.
7991 (inf_child_target): Install inf_child_disconnect and
7992 inf_child_close. Store a pointer to the returned object.
7993 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7995 * target.c (auto_connect_native_target): New global.
7996 (show_default_run_target): New function.
7997 (find_default_run_target): Return NULL if automatically connecting
7998 to the native target is disabled.
7999 (_initialize_target): Install set/show auto-connect-native-target.
8000 * NEWS: Mention "set auto-connect-native-target", and "target
8002 * linux-nat.c (super_close): New global.
8003 (linux_nat_close): Call super_close.
8004 (linux_nat_add_target): Store a pointer to the base class's
8006 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8007 inf_child_maybe_unpush.
8008 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8010 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8011 the inferior. Use inf_child_maybe_unpush_target.
8012 (inf_ttrace_attach): Don't push the target if it is already
8014 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8015 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8016 after mourning the inferior. Use inf_child_maybe_unpush_target.
8017 (darwin_attach_pid): Don't push the target if it is already
8019 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8020 mourning the inferior. Use inf_child_maybe_unpush_target.
8021 (gnu_detach): Use inf_child_maybe_unpush_target.
8022 * go32-nat.c (go32_create_inferior): Don't push the target if it
8024 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8025 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8026 (procfs_open): Rename to ...
8027 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8028 comments. Can target_preopen before changing node. Call
8029 inf_child_open_target to push the target explicitly.
8030 (procfs_attach): Don't push the target if it is already pushed.
8031 (procfs_detach): Use inf_child_maybe_unpush_target.
8032 (procfs_create_inferior): Don't push the target if it is already
8034 (nto_native_ops): New global.
8035 (procfs_open): Reimplement.
8036 (procfs_native_open): New function.
8037 (init_procfs_targets): Install procfs_native_open as to_open of
8038 "target native". Store a pointer to the "native" target in
8040 * procfs.c (procfs_attach): Don't push the target if it is already
8042 (procfs_detach): Use inf_child_maybe_unpush_target.
8043 (procfs_mourn_inferior): Only unpush the target after mourning the
8044 inferior. Use inf_child_maybe_unpush_target.
8045 (procfs_init_inferior): Don't push the target if it is already
8047 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8048 if it is already pushed.
8050 2014-05-21 Pedro Alves <palves@redhat.com>
8052 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8053 and "procfs" targets are now called "native" instead.
8055 2014-05-21 Pedro Alves <palves@redhat.com>
8057 * go32-nat.c (go32_open): Delete.
8058 (go32_target): Don't override the to_open method.
8060 2014-05-21 Pedro Alves <palves@redhat.com>
8062 * nto-procfs.c (procfs_can_run): New function.
8063 (nto_procfs_ops): New global.
8064 (init_procfs_targets): New, based on procfs_target. Install
8065 "target native" in addition to "target procfs".
8066 (_initialize_procfs): Call init_procfs_targets instead of adding
8069 2014-05-21 Pedro Alves <palves@redhat.com>
8071 * windows-nat.c (windows_target): Don't override to_shortname,
8072 to_longname or to_doc.
8074 2014-05-21 Pedro Alves <palves@redhat.com>
8076 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8079 2014-05-21 Pedro Alves <palves@redhat.com>
8081 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8082 to_shortname, to_longname or to_doc.
8084 2014-05-21 Pedro Alves <palves@redhat.com>
8086 * go32-nat.c (go32_target): Don't override to_shortname,
8087 to_longname or to_doc.
8089 2014-05-21 Pedro Alves <palves@redhat.com>
8091 * inf-child.c (inf_child_open): Remove mention of "child".
8092 (inf_child_target): Rename target to "native" instead of "child".
8094 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8096 * Makefile.in (SFILES): Delete "regset.c".
8097 (COMMON_OBS): Delete "regset.o".
8099 * regset.h (regset_alloc): Delete prototype.
8101 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8103 * sparc-linux-tdep.c (sparc32_linux_gregset)
8104 (sparc32_linux_fpregset): New static regset structures.
8105 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8106 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8108 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8109 (sparc64_linux_fpregset): New static regset structures.
8110 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8111 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8112 New static regset structures.
8113 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8114 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8115 New static regset structures.
8116 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8117 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8118 New static regset structures.
8119 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8120 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8121 New static regset structures.
8122 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8124 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8126 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8127 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8128 register maps ("regmaps") from "*regset" to "*regmap". Do this
8129 for all regmap types and variables.
8130 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8131 (sparc32_linux_supply_core_gregset)
8132 (sparc32_linux_collect_core_gregset)
8133 (sparc32_linux_supply_core_fpregset)
8134 (sparc32_linux_collect_core_fpregset): Likewise.
8135 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8136 (sparc_gregmap, sparc_fpregmap): ... these.
8137 (sparc_supply_gregset, sparc_collect_gregset)
8138 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8139 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8140 (_initialize_sparc_nat): Rename regmaps.
8141 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8142 (sparc_gregmap, sparc_fpregmap): ... these.
8143 (sparc_supply_gregset, sparc_collect_gregset)
8144 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8145 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8147 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8148 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8150 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8152 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8153 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8154 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8156 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8157 (sparc32_bsd_fpregset): Rename to...
8158 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8159 (sparc32_bsd_fpregmap): ... these.
8160 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8161 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8162 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8163 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8164 (struct sparc_gregmap, struct sparc_fpregmap)
8165 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8166 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8167 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8168 (sparc32_supply_regset, sparc32_collect_gregset)
8169 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8171 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8172 (sparc64_linux_ptrace_gregmap): ... this.
8173 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8174 (_initialize_sparc64_linux_nat): Rename regmaps.
8175 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8176 (sparc64_linux_core_gregmap): ... this.
8177 (sparc64_linux_supply_core_gregset)
8178 (sparc64_linux_collect_core_gregset)
8179 (sparc64_linux_supply_core_fpregset)
8180 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8181 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8182 (sparc64_sol2_fpregset): Rename to...
8183 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8184 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8185 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8187 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8188 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8189 (sparc64_bsd_fpregset): Rename to...
8190 (struct sparc_gregmap, sparc64_sol2_gregmap)
8191 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8192 (sparc64_bsd_fpregmap): ... these.
8193 (sparc64_supply_gregset, sparc64_collect_gregset)
8194 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8196 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8197 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8198 (sparc64fbsd_gregmap): ... this.
8199 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8200 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8202 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8203 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8204 (sparc64nbsd_collect_fpregset): Likewise.
8205 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8206 (sparc64nbsd_gregmap): ... this.
8207 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8209 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8210 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8211 (sparc64obsd_gregmap): ... this.
8212 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8214 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8215 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8216 (sparc32nbsd_gregmap): ... this.
8217 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8220 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8222 * score-tdep.c (score7_linux_gregset): New static regset
8224 (score7_linux_regset_from_core_section): Remove dynamic regset
8226 (score_gdbarch_init): Drop allocation of tdep structure.
8227 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8229 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8231 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8233 (am33_regset_from_core_section): Remove dynamic regset
8236 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8238 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8239 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8241 (mips_linux_regset_from_core_section): Remove dynamic regset
8243 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8244 'gregset64', 'fpregset', and 'fpregset64'.
8245 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8246 deleted tdep fields.
8248 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8250 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8252 (amd64_regset_from_core_section): Remove dynamic regset
8254 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8256 (amd64obsd_regset_from_core_section): Remove dynamic regset
8258 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8260 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8261 x86-common regset supply function.
8262 * i386-tdep.c (i386_collect_gregset): Make static.
8263 (i386_gregset): New global regset structure.
8264 (i386_fpregset, i386_xstateregset): New static regset structures.
8265 (i386_regset_from_core_section): Remove dynamic regset
8267 (i386_gdbarch_init): Remove initialization of tdep fields
8268 'gregset', 'fpregset', and 'xstateregset'.
8269 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8270 'fpregset', and 'xstateregset'.
8271 (i386_collect_gregset): Remove prototype.
8272 (i386_gregset): New declaration.
8273 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8275 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8278 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8280 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8281 (arm_linux_vfpregset): New static regset structures.
8282 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8284 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8285 and 'vfpregset' fields.
8287 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8289 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8290 (aarch64_linux_fpregset): New static regset structures.
8291 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8292 of regset structures.
8293 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8296 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8298 * regset.h (struct regset): Remove gdbarch field.
8299 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8300 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8301 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8303 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8304 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8305 (ppc32_linux_vsxregset): Likewise.
8306 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8307 via the regcache instead of the regset.
8308 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8309 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8310 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8311 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8314 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8316 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8317 Constify structures.
8318 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8319 (alphanbsd_aout_gregset): Likewise.
8320 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8321 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8323 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8324 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8326 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8327 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8328 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8329 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8330 * m88k-tdep.c (m88k_gregset): Likewise.
8331 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8332 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8333 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8334 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8335 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8336 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8337 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8338 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8339 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8341 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8342 * sh-tdep.h (sh_corefile_gregset): Likewise.
8343 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8344 * vax-tdep.c (vax_gregset): Likewise.
8346 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8348 Fix TLS access for -static -pthread.
8349 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8350 (try_thread_db_load_1): Initialize it.
8351 (thread_db_get_thread_local_address): Call it if LM is zero.
8352 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8353 * target.h (struct target_ops) (to_get_thread_local_address): Add
8354 load_module_addr comment.
8356 2014-05-21 Pedro Alves <palves@redhat.com>
8358 * dcache.c (dcache_read_memory_partial): If reading the cache line
8359 fails, fallback to reading just the memory the caller wanted.
8361 2014-05-20 Doug Evans <dje@google.com>
8363 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8364 instead of get_current_arch.
8366 2014-05-20 Pedro Alves <palves@redhat.com>
8368 * NEWS: Mention that compare-sections now works with all targets.
8370 * remote.c (PACKET_qCRC): New enum value.
8371 (remote_verify_memory): Don't send qCRC if the target has no
8372 execution. Use packet_support/packet_ok. If the target doesn't
8373 support the qCRC packet, fallback to a deep memory copy.
8374 (compare_sections_command): Say "target image" instead of "remote
8376 (_initialize_remote): Add PACKET_qCRC to the list of config
8377 packets that have no associated command. Extend comment.
8378 * target.c (simple_verify_memory, default_verify_memory): New
8380 * target.h (struct target_ops) <to_verify_memory>: Default to
8381 default_verify_memory.
8382 (simple_verify_memory): New declaration.
8383 * target-delegates.c: Regenerate.
8385 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8387 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8389 2014-05-20 Hui Zhu <hui@codesourcery.com>
8390 Yao Qi <yao@codesourcery.com>
8393 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8394 and change address of sp and pc.
8396 2014-05-19 Tom Tromey <tromey@redhat.com>
8398 * gdbtypes.c (rank_function): Use XNEWVEC.
8399 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8401 2014-05-19 Doug Evans <dje@google.com>
8403 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8404 build_type_unit_groups and moved closer to only caller. Remove
8405 arguments. All references updated. Remove outdated .gdb_index
8407 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8408 build_type_psymtabs_1.
8410 2014-05-19 Doug Evans <dje@google.com>
8412 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8413 n_type_unit_groups, all_type_unit_groups. All uses removed.
8414 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8415 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8416 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8417 (add_type_unit_group_to_table): Delete.
8419 2014-05-19 Doug Evans <dje@google.com>
8421 * eval.c (evaluate_subexp_standard): Add some comments.
8423 2014-05-17 Doug Evans <xdje42@gmail.com>
8425 * progspace.c (remove_program_space): Delete, unused.
8426 * progspace.h (remove_program_space): Ditto.
8428 2014-05-17 Doug Evans <xdje42@gmail.com>
8430 * inferior.c (prune_inferiors): Fix comment.
8431 (remove_inferior_command): Call prune_program_spaces.
8433 2014-05-16 Doug Evans <dje@google.com>
8435 New command line option -D.
8437 * main.c (set_gdb_data_directory): New function.
8438 (captured_main): Recognize -D. Flag error for --data-directory "".
8439 Call set_gdb_data_directory.
8440 (print_gdb_help): Print --data-directory, -D.
8441 * main.h (set_gdb_data_directory): Declare.
8442 * top.c (staged_gdb_datadir): New static global.
8443 (set_gdb_datadir): Call set_gdb_data_directory
8444 (show_gdb_datadir): New function.
8445 (init_main): Update init of data-directory parameter.
8447 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8449 Import the "dirfd" gnulib module.
8450 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8451 * gnulib/aclocal.m4: Update.
8452 * gnulib/config.in: Update.
8453 * gnulib/configure: Update.
8454 * gnulib/import/Makefile.am: Update.
8455 * gnulib/import/Makefile.in: Update.
8456 * gnulib/import/dirfd.c: New.
8457 * gnulib/import/m4/dirfd.m4: New.
8458 * gnulib/import/m4/gnulib-cache.m4: Update.
8459 * gnulib/import/m4/gnulib-comp.m4: Update.
8461 2014-05-16 Pierre Muller <muller@sourceware.org>
8462 Yao Qi <yao@codesourcery.com>
8464 * valprint.c (print_wchar): Move the code on checking whether
8465 W is a printable wide char to the default branch of switch
8466 statement below. Call wchar_printable instead of gdb_iswprint.
8468 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8470 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8471 ldr.w and ldrd instructions.
8473 2014-05-15 Doug Evans <dje@google.com>
8475 * dwarf2read.c (read_structure_type): Delete outdated comments.
8477 2014-05-14 Tom Tromey <tromey@redhat.com>
8479 * macrocmd.c (print_macro_definition): Reindent.
8481 2014-05-13 Doug Evans <xdje42@gmail.com>
8483 * python/py-cmd.c (cmdpy_completer): Add comment.
8484 (completers): Make const.
8486 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8488 * infrun.c (resume): Remove should_resume (unused). Move up
8489 declaration of resume_ptid.
8491 2014-05-13 Tom Tromey <tromey@redhat.com>
8493 * language.h (unop_type_check): Remove.
8494 (binop_type_check): Don't declare.
8496 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8498 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8499 call to regcache_raw_collect.
8501 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8503 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8504 mi_console->quote as the quoting character.
8506 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8508 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8510 2014-04-29 Tom Tromey <tromey@redhat.com>
8512 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8513 "show debug varobj".
8515 2014-05-07 Kyle McMartin <kyle@redhat.com>
8517 Pushed by Joel Brobecker <brobecker@adacore.com>.
8518 * aarch64-tdep.c (aarch64_software_single_step): New function.
8519 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8520 with aarch64_software_single_step.
8522 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8526 2014-05-05 Keith Seitz <keiths@redhat.com>
8528 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8529 variable or history value is successfully parsed.
8531 2014-05-05 Yao Qi <yao@codesourcery.com>
8532 Pedro Alves <palves@redhat.com>
8534 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8535 address of blocks that intersects the requested range. Trim
8536 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8538 * ctf.c (ctf_xfer_partial): Likewise.
8540 2014-05-05 Yao Qi <yao@codesourcery.com>
8542 * printcmd.c (display_command): Remove the check to
8543 target_has_execution.
8545 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8547 * ppcobsd-nat.c: Include "obsd-nat.h".
8548 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8550 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8552 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8554 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8555 and 16-bit signed and unsigned arguments. Update comment.
8556 (stap_parse_probe_arguments): Extend code to handle such
8557 arguments. Use warning instead of complaint to notify about
8558 unrecognized bitness.
8560 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8562 PR breakpoints/16889
8563 * stap-probe.c (stap_parse_probe_arguments): Simplify
8564 check for non-prefixed probes (i.e., probes whose
8565 arguments do not start with "N@"). Always set the
8566 argument type to a sane value.
8568 2014-05-01 David Taylor <dtaylor@emc.com>
8570 * remote.c (compare_sections_command): Add -r option to compare
8571 all loadable read-only sections.
8573 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8575 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8576 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8578 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8579 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8580 Remove unused CORE_ADDR argument. Update all callers.
8582 2014-04-29 Pedro Alves <palves@redhat.com>
8584 * remote.c (struct packet_config) <detect>: Extend comment.
8585 (add_packet_config_cmd): Don't set the config's detect or support
8587 (init_all_packet_configs): Also initialize the config's 'detect'
8589 (reset_all_packet_configs_support): New function.
8590 (remote_open_1): Call reset_all_packet_configs_support instead of
8591 init_all_packet_configs.
8592 (_initialize_remote): Initialize all packet configs. Assert that
8593 all packets have an associated command, except a few known
8596 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8598 * dwarf2read.c (read_subrange_type): Handle dynamic
8599 DW_AT_lower_bound attributes.
8601 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8603 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8604 dynamic bounds before computing its upper bound.
8605 (ada_discrete_type_low_bound): Same as above with the lower bound.
8607 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8609 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8610 range types. Adjust the array handling implementation to
8611 take advantage of this change.
8612 (resolve_dynamic_range): New function, mostly extracted from
8613 resolve_dynamic_bounds.
8614 (resolve_dynamic_array): New function, mostly extracted from
8615 resolve_dynamic_bounds.
8616 (resolve_dynamic_bounds): Delete.
8617 (resolve_dynamic_type): Reimplement. Add handling of
8618 TYPE_CODE_RANGE types.
8620 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8622 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8623 handling of parallel ___XA types.
8625 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8627 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8628 unnecessary second call to static_unwrap_type.
8630 2014-04-27 Hui Zhu <hui@codesourcery.com>
8632 * stack.c (print_frame_info): Call do_gdb_disassembly with
8633 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8635 2014-04-26 Doug Evans <xdje42@gmail.com>
8637 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8639 2014-04-25 Pedro Alves <palves@redhat.com>
8642 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8643 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8644 and newline from built string.
8645 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8646 (linux_ptrace_attach_fail_reason): ... this.
8647 * linux-nat.c (linux_nat_attach): Adjust to use
8648 linux_ptrace_attach_fail_reason.
8650 2014-04-25 Pedro Alves <palves@redhat.com>
8652 * remote.c (struct remote_state): Remove multi_process_aware,
8653 non_stop_aware, cond_tracepoints, cond_breakpoints,
8654 breakpoint_commands, fast_tracepoints, static_tracepoints,
8655 install_in_trace, disconnected_tracing,
8656 enable_disable_tracepoints, string_tracing, and
8657 augmented_libraries_svr4_read fields.
8658 (remote_multi_process_p): Move further below in the file.
8659 (struct packet_config): Add comments.
8660 (update_packet_config): Delete function.
8661 (show_packet_config_cmd): Use packet_config_support.
8662 (add_packet_config_cmd): Use NULL as set callback.
8663 (packet_ok): "set remote foo-packet"-style commands no longer
8664 change config->supported -- adjust.
8665 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8666 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8667 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8668 (PACKET_QNonStop, PACKET_multiprocess_feature)
8669 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8670 (PACKET_DisconnectedTracing_feature)
8671 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8672 (set_remote_protocol_packet_cmd): Delete function.
8673 (packet_config_support, packet_support): New functions.
8674 (set_remote_protocol_Z_packet_cmd): Don't call
8675 update_packet_config.
8676 (remote_query_attached, remote_pass_signals)
8677 (remote_program_signals, remote_threads_info)
8678 (remote_threads_extra_info, remote_start_remote): Use
8680 (remote_start_remote): Use packet_config_support and
8682 (init_all_packet_configs): Set all packets to unknown support,
8683 instead of calling update_packet_config.
8684 (remote_check_symbols): Use packet_support.
8685 (remote_supported_packet): Unconditionally set the packet config's
8687 (remote_multi_process_feature, remote_non_stop_feature)
8688 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8689 (remote_breakpoint_commands_feature)
8690 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8691 (remote_install_in_trace_feature)
8692 (remote_disconnected_tracing_feature)
8693 (remote_enable_disable_tracepoint_feature)
8694 (remote_string_tracing_feature)
8695 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8696 (remote_protocol_features): Adjust to use remote_supported_packet
8697 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8698 "ConditionalTracepoints", "ConditionalBreakpoints",
8699 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8700 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8701 "EnableDisableTracepoints", and "tracenz".
8702 (remote_query_supported): Use packet_support.
8703 (remote_open_1): Adjust.
8704 (extended_remote_attach_1): Use packet_support. Switch on the
8705 result of packet_ok instead of checking whether the packet ended
8707 (remote_vcont_resume): Use packet_support.
8708 (remote_resume, remote_stop_ns, fetch_register_using_p)
8709 (remote_prepare_to_store, store_register_using_P)
8710 (check_binary_download, remote_write_bytes): Use packet_support.
8711 (remote_vkill): Use packet_support. Switch on the result of
8712 packet_ok instead of checking whether the packet ended up
8714 (extended_remote_supports_disable_randomization): Use
8716 (extended_remote_run): Switch on the result of packet_ok instead
8717 of checking whether the packet ended up disabled.
8718 (remote_insert_breakpoint, remote_remove_breakpoint)
8719 (remote_insert_watchpoint, remote_remove_watchpoint)
8720 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8722 (remote_search_memory): Use packet_config_support.
8723 (remote_get_thread_local_address, remote_get_tib_address)
8724 (remote_hostio_send_command, remote_can_execute_reverse): Use
8726 (remote_supports_cond_tracepoints)
8727 (remote_supports_cond_breakpoints)
8728 (remote_supports_fast_tracepoints)
8729 (remote_supports_static_tracepoints)
8730 (remote_supports_install_in_trace)
8731 (remote_supports_enable_disable_tracepoint)
8732 (remote_supports_string_tracing)
8733 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8734 the packet config says the feature is enabled or disabled.
8735 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8736 (remote_get_trace_status): Use packet_support.
8737 (remote_set_disconnected_tracing): Adjust to check whether the
8738 feature is enabled with packet_support.
8739 (remote_set_trace_buffer_size, remote_use_agent)
8740 (remote_can_use_agent, remote_supports_btrace): Use
8742 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8743 Use packet_config_support.
8744 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8745 the packet config says the feature is enabled or disabled.
8746 (set_range_stepping): Use packet_support.
8748 2014-04-25 Tom Tromey <tromey@redhat.com>
8750 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8753 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8755 * NEWS: Mention support for C99 variable length arrays.
8757 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8759 * ada-lang.c (standard_exc): Expand introductory comment.
8761 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8762 Walfred Tedeschi <walfred.tedeschi@intel.com>
8764 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8766 (amd64_linux_read_description): Add code to handle AVX512 xstate
8767 mask and return respective tdesc.
8768 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8769 and features/i386/x32-avx512-linux.c.
8770 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8771 (amd64_linux_core_read_description): Add code to handle AVX512
8772 xstate mask and return respective tdesc.
8773 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8774 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8776 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8777 (tdesc_amd64_avx512_linux): New prototype.
8778 (tdesc_x32_avx512_linux): Likewise.
8779 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8780 features/i386/x32-avx512.c.
8781 (amd64_ymm_avx512_names): New register names for pseudo
8783 (amd64_ymmh_avx512_names): New register names for raw registers
8785 (amd64_k_names): New register names for K registers.
8786 (amd64_zmmh_names): New register names for ZMM raw registers.
8787 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8788 (amd64_xmm_avx512_names): New register names for XMM16-31
8790 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8792 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8793 if feature is present.
8794 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8795 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8796 (AMD64_NUM_REGS): Adjust to new number of registers.
8797 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8798 registers supplied via XSTATE by AVX512 registers.
8799 (i386_linux_read_description): Add case for AVX512.
8800 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8801 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8802 (i386_linux_core_read_description): Add case for AVX512.
8803 (i386_linux_init_abi): Install supported register note section
8805 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8807 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8808 registers to be number of zmm7h + 1.
8809 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8810 * i386-tdep.c: Include features/i386/i386-avx512.c.
8811 (i386_zmm_names): Add ZMM pseudo register names array.
8812 (i386_zmmh_names): Add ZMM raw register names array.
8813 (i386_k_names): Add K raw register names array.
8814 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8815 registers. AVX512 has 16 more ZMM registers than there are YMM
8817 (i386_zmmh_regnum_p): Add function to look up register number of
8819 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8820 (i386_k_regnum_p): Likewise for K raw registers.
8821 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8822 registers added by AVX512.
8823 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8824 registers added by AVX512.
8825 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8827 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8828 (i386_pseudo_register_name): Add ZMM pseudo registers.
8829 (i386_zmm_type): Construct and return vector registers type for ZMM
8831 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8832 ZMM0-31 pseudo registers and K registers.
8833 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8834 and YMM16-31 registers from register cache.
8835 (i386_pseudo_register_write): Add code to write K, ZMM and
8837 (i386_register_reggroup_p): Add code to include/exclude AVX512
8838 registers in/from respective register groups.
8839 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8840 registers if feature is present in xcr0.
8841 (i386_gdbarch_init): Add code to initialize AVX512 feature
8842 variables in tdep structure, wire in pseudo registers and call
8843 initialize_tdesc_i386_avx512.
8844 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8846 (i386_regnum): Add AVX512 registers.
8847 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8848 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8849 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8850 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8852 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8853 (i386_ymm_avx512_regnum_p): Likewise.
8854 (i386_k_regnum_p): Likewise.
8855 (i386_zmm_regnum_p): Likewise.
8856 (i386_zmmh_regnum_p): Likewise.
8857 * i387-tdep.c : Update year in copyright notice.
8858 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8860 (XSAVE_YMM_AVX512_ADDR): New macro.
8861 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8863 (XSAVE_XMM_AVX512_ADDR): New macro.
8864 (xsave_avx512_k_offset): New table for K register offsets in
8866 (XSAVE_AVX512_K_ADDR): New macro.
8867 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8869 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8870 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8872 (i387_collect_xsave): Add code to collect AVX512 registers from
8874 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8875 of XMM16-31 registers.
8876 (I387_NUM_K_REGS): New define for number of K registers.
8877 (I387_K0_REGNUM): New define for K0 register number.
8878 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8879 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8880 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8882 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8883 (I387_XMM16_REGNUM): New define for XMM16 register number.
8884 (I387_YMM0_REGNUM): New define for YMM0 register number.
8885 (I387_KEND_REGNUM): New define for last K register number.
8886 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8887 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8889 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8891 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8893 * features/Makefile: Add AVX512 related files.
8894 * features/i386/32bit-avx512.xml: New file.
8895 * features/i386/64bit-avx512.xml: Likewise.
8896 * features/i386/amd64-avx512-linux.c: Likewise.
8897 * features/i386/amd64-avx512-linux.xml: Likewise.
8898 * features/i386/amd64-avx512.c: Likewise.
8899 * features/i386/amd64-avx512.xml: Likewise.
8900 * features/i386/i386-avx512-linux.c: Likewise.
8901 * features/i386/i386-avx512-linux.xml: Likewise.
8902 * features/i386/i386-avx512.c: Likewise.
8903 * features/i386/i386-avx512.xml: Likewise.
8904 * features/i386/x32-avx512-linux.c: Likewise.
8905 * features/i386/x32-avx512-linux.xml: Likewise.
8906 * features/i386/x32-avx512.c: Likewise.
8907 * features/i386/x32-avx512.xml: Likewise.
8908 * regformats/i386/amd64-avx512-linux.dat: New file.
8909 * regformats/i386/amd64-avx512.dat: Likewise.
8910 * regformats/i386/i386-avx512-linux.dat: Likewise.
8911 * regformats/i386/i386-avx512.dat: Likewise.
8912 * regformats/i386/x32-avx512-linux.dat: Likewise.
8913 * regformats/i386/x32-avx512.dat: Likewise.
8914 * NEWS: Add note about new support for AVX512.
8917 2014-04-23 Pedro Alves <palves@redhat.com>
8919 * breakpoint.c (insert_bp_location): Tolerate errors if the
8920 breakpoint is set in a user-loaded objfile.
8921 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8922 location is marked shlib_disabled. If the breakpoint is set in a
8923 user-loaded objfile is a GDB-side memory breakpoint, validate it
8924 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8925 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8927 * mem-break.c (memory_validate_breakpoint): New function.
8928 * objfiles.c (userloaded_objfile_contains_address_p): New
8930 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8931 * target.h (memory_validate_breakpoint): New declaration.
8933 2014-04-23 Pedro Alves <palves@redhat.com>
8935 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8936 the breakpoint is set in a shared library, only suppress
8937 errors for software breakpoints, not hardware breakpoints.
8939 2014-04-22 Pedro Alves <palves@redhat.com>
8941 * infrun.c (schedlock_applies): New function, factored out from
8942 find_thread_needs_step_over.
8943 (find_thread_needs_step_over): Use it.
8944 (switch_back_to_stepped_thread): Always clear trap_expected if the
8945 step over is finished. Return early if scheduler locking applies.
8946 Look for the stepping thread and a potential step-over thread with
8948 (currently_stepping_or_nexting_callback): Delete.
8950 2014-04-22 Nick Clifton <nickc@redhat.com>
8952 * NEWS: Mention that ARM sim now supports tracing.
8954 2014-04-22 Yao Qi <yao@codesourcery.com>
8956 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8958 * tracefile.c (tracefile_fetch_registers): ... it. New
8960 * tracefile.h (tracefile_fetch_registers): Declare.
8961 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8962 tracefile_fetch_registers.
8964 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8967 * windows-nat.c (thread_rec): Don't display a warning when
8968 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8969 fails for any reason, set th->suspended to -1, so that we don't
8970 try to resume such a thread. Also, don't return NULL in these
8971 cases, to avoid completely ruin the session due to "PC register is
8972 not available" error.
8973 (do_windows_fetch_inferior_registers): Check errors in
8974 GetThreadContext call.
8975 (windows_continue): Accept an additional argument KILLED; if not
8976 zero, ignore errors in the SetThreadContext call, since the
8977 inferior was killed and is shutting down.
8978 (windows_resume, get_windows_debug_event)
8979 (windows_create_inferior, windows_mourn_inferior)
8980 (windows_kill_inferior): All callers of windows_continue changed
8981 to adjust to its new calling sequence.
8983 2014-04-19 Yao Qi <yao@codesourcery.com>
8985 * ctf.c (ctf_open): Call post_create_inferior.
8987 2014-04-19 Yao Qi <yao@codesourcery.com>
8989 * ctf.c (handle_id): New static variable.
8990 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8991 value. Get the declaration of event "register" and get length
8992 of field "contents".
8994 2014-04-19 Yao Qi <yao@codesourcery.com>
8996 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8998 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9000 * valops.c (oload_method_static): Remove unnecessary argument
9001 METHOD. Update all callers.
9003 2014-04-18 Pedro alves <palves@redhat.com>
9004 Tom Tromey <tromey@redhat.com>
9007 * frame.c (get_prev_frame_1): Rename to ...
9008 (get_prev_frame_always): ... this, and make extern. Adjust.
9009 (skip_artificial_frames): Use get_prev_frame_always.
9010 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9011 (get_frame_unwind_stop_reason): Adjust to rename.
9012 * frame.h (get_prev_frame_always): Declare.
9013 * inline-frame.c: Include frame.h.
9014 (inline_frame_this_id): Use get_prev_frame_always.
9016 2014-04-18 Tristan Gingold <gingold@adacore.com>
9018 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9019 code by using bfd_mach_o_get_base_address.
9021 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9023 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9024 (spu_ax_pseudo_register_collect): New function.
9025 (spu_ax_pseudo_register_push_stack): Likewise.
9026 (spu_dwarf_reg_to_regnum): Likewise.
9027 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9029 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9031 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9032 Replace FRAME argument with FRAME_ID.
9033 * gdbarch.c, gdbarch.h: Regenerate.
9034 * findvar.c (default_value_from_register): Add GDBARCH argument;
9035 replace FRAME by FRAME_ID. No longer call get_frame_id.
9036 (value_from_register): Update call to gdbarch_value_from_register.
9037 * value.h (default_value_from_register): Update prototype.
9038 * s390-linux-tdep.c (s390_value_from_register): Update interface
9039 and call to default_value_from_register.
9040 * spu-tdep.c (spu_value_from_register): Likewise.
9042 * findvar.c (address_from_register): Remove TYPE argument.
9043 Do not call value_from_register; use gdbarch_value_from_register
9044 with null_frame_id instead.
9045 * value.h (address_from_register): Update prototype.
9046 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9047 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9048 address_from_register interface change.
9050 2014-04-17 Yao Qi <yao@codesourcery.com>
9052 * gdbtypes.h: Update comments to link to types and macros'
9055 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9057 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9059 2014-04-16 Keith Seitz <keiths@redhat.com>
9062 * dwarf2read.c (skip_one_die): Check that all relative-offset
9063 sibling DIEs fall within range of the current reader's buffer.
9064 (read_partial_die): Likewise.
9066 2014-04-16 Keith Seitz <keiths@redhat.com>
9069 * cp-namespace.c (lookup_symbol_file): If the type name of
9070 `this' is NULL, return immediately.
9072 2014-04-14 Keith Seitz <keiths@redhat.com>
9075 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9076 from symbol_matches_domain in symtab.c. All local callers
9077 of symbol_matches_domain updated.
9078 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9079 search STRUCT_DOMAIN.
9080 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9081 independently. standard_lookup will do that automatically.
9082 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9083 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9084 (cp_lookup_symbol_in_namespace): Likewise.
9085 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9086 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9087 may return a STRUCT_DOMAIN match.
9088 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9089 * cp-support.c: Include language.h.
9090 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9092 * psymtab.c (match_partial_symbol): Compare the requested
9093 domain with the symbol's domain directly.
9094 (lookup_partial_symbol): Likewise.
9095 * symtab.c (lookup_symbol_in_language): Explain when/why
9096 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9097 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9098 appropriate languages.
9099 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9100 and moved to ada-lang.c
9101 (lookup_block_symbol): Explain that this function only returns
9102 symbol matching the requested DOMAIN.
9103 Compare the requested domain with the symbol's domain directly.
9104 (iterate_over_symbols): Compare the requested domain with the
9105 symbol's domain directly.
9106 * symtab.h (symbol_matches_domain): Remove.
9108 2014-04-14 Tom Tromey <tromey@redhat.com>
9111 * c-exp.y (type_aggregate_p): New function.
9112 (qualified_name, classify_inner_name): Use it.
9113 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9114 and TYPE_TARGET_TYPE of an enum type.
9115 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9117 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9118 handle TYPE_DECLARED_CLASS.
9119 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9121 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9122 * valops.c (enum_constant_from_type): New function.
9123 (value_aggregate_elt): Use it.
9124 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9127 2014-04-14 Tom Tromey <tromey@redhat.com>
9129 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9130 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9132 * value.h (value_aggregate_elt): Update.
9134 2014-04-14 Tom Tromey <tromey@redhat.com>
9136 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9138 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9140 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9141 (evaluate_subexp_standard): Pass noside argument.
9142 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9143 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9144 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9145 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9146 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9148 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9150 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9151 points to a constant blob.
9153 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9155 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9156 property and store it as the high bound and flag the range accordingly.
9157 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9158 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9159 * gdbtypes.h (enum range_flags): New enum.
9160 (struct range_bounds): Add flags member.
9162 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9164 * c-typeprint.c (c_type_print_varspec_suffix): Added
9165 check for not yet resolved high bound. If unresolved, print
9166 "variable length" string to the console instead of random
9169 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9171 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9173 (ada_template_to_fixed_record_type_1): Likewise.
9174 (ada_to_fixed_type_1): Likewise.
9175 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9176 (cp_print_value): Likewise.
9177 * d-valprint.c (dynamic_array_type): Likewise.
9178 * findvar.c (address_of_variable): Likewise.
9179 * jv-valprint.c (java_value_print): Likewise.
9180 * valops.c (value_ind): Likewise.
9181 * value.c (coerce_ref): Likewise.
9183 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9185 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9186 value and retrieve the dynamic type size.
9188 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9190 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9191 passed to sizeof is dynamic evaluate the argument to compute the length.
9193 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9194 Joel Brobecker <brobecker@adacore.com>
9196 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9197 (dwarf2_evaluate_property): New function.
9198 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9199 * dwarf2read.c (attr_to_dynamic_prop): New function.
9200 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9202 * gdbtypes.c: Include dwarf2loc.h.
9203 (is_dynamic_type): New function.
9204 (resolve_dynamic_type): New function.
9205 (resolve_dynamic_bounds): New function.
9206 (get_type_length): New function.
9207 (check_typedef): Use get_type_length to compute type length.
9208 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9209 (TYPE_LOW_BOUND_KIND): New macro.
9210 (is_dynamic_type): New function prototype.
9211 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9212 to resolve dynamic properties of the type. Update comment.
9213 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9215 2014-04-14 Richard Henderson <rth@redhat.com>
9217 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9219 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9220 Doug Evans <xdje42@gmail.com>
9222 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9223 dereference TYPE_CODE_REF values.
9225 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9227 Revert the following changes due to regressions:
9229 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9230 (dwarf2_evaluate_property): New function.
9231 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9232 * dwarf2read.c (attr_to_dynamic_prop): New function.
9233 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9235 * gdbtypes.c: Include dwarf2loc.h.
9236 (is_dynamic_type): New function.
9237 (resolve_dynamic_type): New function.
9238 (resolve_dynamic_bounds): New function.
9239 (get_type_length): New function.
9240 (check_typedef): Use get_type_length to compute type length.
9241 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9242 (TYPE_LOW_BOUND_KIND): New macro.
9243 (is_dynamic_type): New function prototype.
9244 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9245 to resolve dynamic properties of the type. Update comment.
9246 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9248 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9249 passed to sizeof is dynamic evaluate the argument to compute the length.
9251 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9252 value and retrieve the dynamic type size.
9254 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9255 (ada_template_to_fixed_record_type_1): Likewise.
9256 (ada_to_fixed_type_1): Likewise.
9257 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9258 (cp_print_value): Likewise.
9259 * d-valprint.c (dynamic_array_type): Likewise.
9260 * eval.c (evaluate_subexp_with_coercion): Likewise.
9261 * findvar.c (address_of_variable): Likewise.
9262 * jv-valprint.c (java_value_print): Likewise.
9263 * valops.c (value_ind): Likewise.
9264 * value.c (coerce_ref): Likewise.
9266 * c-typeprint.c (c_type_print_varspec_suffix): Added
9267 check for not yet resolved high bound. If unresolved, print
9268 "variable length" string to the console instead of random
9271 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9272 property and store it as the high bound and flag the range accordingly.
9273 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9274 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9275 * gdbtypes.h (enum range_flags): New enum.
9276 (struct range_bounds): Add flags member.
9278 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9279 points to a constant blob.
9281 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9282 (evaluate_subexp_standard): Pass noside argument.
9283 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9284 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9285 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9286 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9287 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9289 2014-04-11 Keith Seitz <keiths@redhat.com>
9292 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9293 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9296 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9298 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9299 (evaluate_subexp_standard): Pass noside argument.
9300 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9301 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9302 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9303 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9304 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9306 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9308 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9309 points to a constant blob.
9311 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9313 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9314 property and store it as the high bound and flag the range accordingly.
9315 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9316 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9317 * gdbtypes.h (enum range_flags): New enum.
9318 (struct range_bounds): Add flags member.
9320 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9322 * c-typeprint.c (c_type_print_varspec_suffix): Added
9323 check for not yet resolved high bound. If unresolved, print
9324 "variable length" string to the console instead of random
9327 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9329 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9330 (ada_template_to_fixed_record_type_1): Likewise.
9331 (ada_to_fixed_type_1): Likewise.
9332 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9333 (cp_print_value): Likewise.
9334 * d-valprint.c (dynamic_array_type): Likewise.
9335 * eval.c (evaluate_subexp_with_coercion): Likewise.
9336 * findvar.c (address_of_variable): Likewise.
9337 * jv-valprint.c (java_value_print): Likewise.
9338 * valops.c (value_ind): Likewise.
9339 * value.c (coerce_ref): Likewise.
9341 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9343 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9344 value and retrieve the dynamic type size.
9346 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9348 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9349 passed to sizeof is dynamic evaluate the argument to compute the length.
9351 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9353 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9354 (dwarf2_evaluate_property): New function.
9355 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9356 * dwarf2read.c (attr_to_dynamic_prop): New function.
9357 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9359 * gdbtypes.c: Include dwarf2loc.h.
9360 (is_dynamic_type): New function.
9361 (resolve_dynamic_type): New function.
9362 (resolve_dynamic_bounds): New function.
9363 (get_type_length): New function.
9364 (check_typedef): Use get_type_length to compute type length.
9365 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9366 (TYPE_LOW_BOUND_KIND): New macro.
9367 (is_dynamic_type): New function prototype.
9368 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9369 to resolve dynamic properties of the type. Update comment.
9370 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9372 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9374 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9375 declaring high/low bounds and change uses accordingly. Call
9376 create_range_type instead of create_static_range_type.
9377 * gdbtypes.c (create_range_type): New function.
9378 (create_range_type): Convert bounds into struct bound_prop and pass
9379 them to create_range_type.
9380 * gdbtypes.h (struct bound_prop): New struct.
9381 (create_range_type): New function prototype.
9382 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9383 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9384 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9386 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9388 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9390 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9391 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9392 * ada-lang.c: All uses of create_range_type updated.
9393 * coffread.c: All uses of create_range_type updated.
9394 * dwarf2read.c: All uses of create_range_type updated.
9395 * f-exp.y: All uses of create_range_type updated.
9396 * m2-valprint.c: All uses of create_range_type updated.
9397 * mdebugread.c: All uses of create_range_type updated.
9398 * stabsread.c: All uses of create_range_type updated.
9399 * valops.c: All uses of create_range_type updated.
9400 * valprint.c: All uses of create_range_type updated.
9402 2014-04-10 Pedro Alves <palves@redhat.com>
9404 * breakpoint.c (single_step_breakpoints)
9405 (single_step_gdbarch): Move up in the file.
9406 (one_breakpoint_xfer_memory): New function, factored out from ...
9407 (breakpoint_xfer_memory): ... here. Also process single-step
9410 2014-04-09 Tristan Gingold <gingold@adacore.com>
9412 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9414 (darwin_decode_exception_message): Free port only after use.
9416 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9418 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9419 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9420 when setting the size of call_length.
9422 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9424 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9425 dereference TYPE_CODE_REF values.
9427 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9429 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9430 end of warning message.
9432 2014-04-03 Doug Evans <dje@google.com>
9434 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9435 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9437 2014-04-02 Alan Modra <amodra@gmail.com>
9439 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9440 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9441 (struct symbol_file_add_from_memory_args): Add size field.
9442 (find_vdso_size): New function.
9443 (add_vsyscall_page): Attempt to find vdso size.
9445 2014-04-01 Doug Evans <dje@google.com>
9447 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9449 2014-04-01 Tristan Gingold <gingold@adacore.com>
9451 * darwin-nat.c (darwin_encode_reply): Add prototype.
9452 (darwin_decode_exception_message): Reply to unknown inferiors.
9453 (darwin_decode_message): Handle message by id. Ignore message
9454 to unknown inferior.
9455 (darwin_wait): Discard unknown messages, add debug trace.
9457 2014-03-31 Doug Evans <dje@google.com>
9459 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9462 2014-03-31 Doug Evans <dje@google.com>
9464 New option "set print symbol-loading".
9466 * solib.c (solib_read_symbols): Only print symbol loading messages
9468 (solib_add): If symbol loading is in "brief" mode, notify user
9469 symbols are being loaded.
9470 (reload_shared_libraries_1): Ditto.
9471 * symfile.c (print_symbol_loading_off): New static global.
9472 (print_symbol_loading_brief): New static global.
9473 (print_symbol_loading_full): New static global.
9474 (print_symbol_loading_enums): New static global.
9475 (print_symbol_loading): New static global.
9476 (print_symbol_loading_p): New function.
9477 (symbol_file_add_with_addrs): Only print symbol loading messages
9479 (_initialize_symfile): Register "print symbol-loading" set/show
9481 * symfile.h (print_symbol_loading_p): Declare.
9483 2014-03-30 Doug Evans <xdje42@gmail.com>
9485 * infrun.c (set_last_target_status): New function.
9486 (handle_inferior_event): Call it.
9488 2014-03-30 Doug Evans <xdje42@gmail.com>
9490 * inferior.h (enum stop_kind): Improve comment.
9492 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9494 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9495 a reference, strip the reference layer before calling
9496 the lang_ops value_has_mutated callback.
9498 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9500 Remove some globals from our parser.
9501 * language.c (unk_lang_parser): Add "struct parser_state"
9503 * language.h (struct language_defn) <la_parser>: Likewise.
9504 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9505 (initialize_expout): Add "struct parser_state" argument.
9506 Rewrite function to use the parser state.
9507 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9508 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9509 write_exp_elt_longcst, write_exp_elt_dblcst,
9510 write_exp_elt_decfloatcst, write_exp_elt_type,
9511 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9512 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9513 write_dollar_variable): Likewise.
9514 (parse_exp_in_context_1): Use parser state.
9515 (insert_type_address_space): Add "struct parser_state" argument.
9517 (increase_expout_size): New function.
9518 * parser-defs.h: Forward declare "struct language_defn" and
9519 "struct parser_state".
9520 (expout, expout_size, expout_ptr): Remove extern declarations.
9521 (parse_gdbarch, parse_language): Rewrite macro declarations to
9522 accept the parser state.
9523 (struct parser_state): New struct.
9524 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9525 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9526 write_exp_elt_decfloatcst, write_exp_elt_type,
9527 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9528 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9529 write_exp_msymbol, write_dollar_variable,
9530 mark_struct_expression, insert_type_address_space): Add "struct
9531 parser_state" argument.
9532 (increase_expout_size): New function.
9533 * utils.c (do_clear_parser_state): New function.
9534 (make_cleanup_clear_parser_state): Likewise.
9535 * utils.h (make_cleanup_clear_parser_state): New function
9537 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9538 Update calls to write_exp* in order to pass the parser state.
9539 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9540 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9541 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9542 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9543 * stap-probe.c (stap_parse_register_operand): Likewise.
9544 (stap_parse_single_operand): Likewise.
9545 (stap_parse_argument_1): Likewise.
9546 (stap_parse_argument): Use parser state.
9547 * stap-probe.h: Include "parser-defs.h".
9548 (struct stap_parse_info) <pstate>: New field.
9549 * c-exp.y (parse_type): Rewrite to use parser state.
9550 (yyparse): Redefine to c_parse_internal.
9551 (pstate): New global variable.
9552 (parse_number): Add "struct parser_state" argument.
9553 (write_destructor_name): Likewise.
9554 (type_exp): Update calls to write_exp* and similars in order to
9556 (exp1, exp, variable, qualified_name, space_identifier,
9557 typename, typebase): Likewise.
9558 (write_destructor_name, parse_number, lex_one_token,
9559 classify_name, classify_inner_name, c_parse): Add "struct
9560 parser_state" argument. Update function to use parser state.
9561 * c-lang.h: Forward declare "struct parser_state".
9562 (c_parse): Add "struct parser_state" argument.
9563 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9564 (yyparse): Redefine macro to ada_parse_internal.
9565 (pstate): New variable.
9566 (write_int, write_object_renaming, write_var_or_type,
9567 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9568 type_int, type_long, type_long_long, type_float, type_double,
9569 type_long_double, type_char, type_boolean, type_system_address):
9570 Add "struct parser_state" argument.
9571 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9572 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9573 var_or_type, aggregate, aggregate_component_list,
9574 positional_list, others, component_group,
9575 component_associations): Update calls to write_exp* and similar
9576 functions in order to use parser state.
9577 (ada_parse, write_var_from_sym, write_int,
9578 write_exp_op_with_string, write_object_renaming,
9579 find_primitive_type, write_selectors, write_ambiguous_var,
9580 write_var_or_type, write_name_assoc, type_int, type_long,
9581 type_long_long, type_float, type_double, type_long_double,
9582 type_char, type_boolean, type_system_address): Add "struct
9583 parser_state" argument. Adjust function to use parser state.
9584 * ada-lang.c (parse): Likewise.
9585 * ada-lang.h: Forward declare "struct parser_state".
9586 (ada_parse): Add "struct parser_state" argument.
9587 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9588 calls to both functions.
9589 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9591 (yyparse): Redefine macro to f_parse_internal.
9592 (pstate): New variable.
9593 (parse_number): Add "struct parser_state" argument.
9594 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9595 and similars in order to use parser state.
9596 (parse_number): Adjust code to use parser state.
9598 (f_parse): New function.
9599 * f-lang.h: Forward declare "struct parser_state".
9600 (f_parse): Add "struct parser_state" argument.
9601 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9603 (yyparse): Redefine macro for java_parse_internal.
9604 (pstate): New variable.
9605 (push_expression_name, push_expression_name, insert_exp): Add
9606 "struct parser_state" argument.
9607 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9608 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9609 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9610 PostIncrementExpression, PostDecrementExpression,
9611 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9612 UnaryExpressionNotPlusMinus, CastExpression,
9613 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9614 RelationalExpression, EqualityExpression, AndExpression,
9615 ExclusiveOrExpression, InclusiveOrExpression,
9616 ConditionalAndExpression, ConditionalOrExpression,
9617 ConditionalExpression, Assignment, LeftHandSide): Update
9618 calls to write_exp* and similars in order to use parser state.
9619 (parse_number): Ajust code to use parser state.
9621 (java_parse): New function.
9622 (push_variable): Add "struct parser_state" argument. Adjust
9623 code to user parser state.
9624 (push_fieldnames, push_qualified_expression_name,
9625 push_expression_name, insert_exp): Likewise.
9626 * jv-lang.h: Forward declare "struct parser_state".
9627 (java_parse): Add "struct parser_state" argument.
9628 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9630 (yyparse): Redefine macro to m2_parse_internal.
9631 (pstate): New variable.
9632 (type_exp, exp, fblock, variable, type): Update calls to
9633 write_exp* and similars to use parser state.
9635 (m2_parse): New function.
9636 * m2-lang.h: Forward declare "struct parser_state".
9637 (m2_parse): Add "struct parser_state" argument.
9638 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9639 * objc-lang.h: Forward declare "struct parser_state".
9640 (end_msglist): Add "struct parser_state" argument.
9641 * p-exp.y (parse_type): Rewrite macro to use parser state.
9642 (yyparse): Redefine macro to pascal_parse_internal.
9643 (pstate): New variable.
9644 (parse_number): Add "struct parser_state" argument.
9645 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9646 write_exp* and similars in order to use parser state.
9647 (parse_number, yylex): Adjust code to use parser state.
9648 (pascal_parse): New function.
9649 * p-lang.h: Forward declare "struct parser_state".
9650 (pascal_parse): Add "struct parser_state" argument.
9651 * go-exp.y (parse_type): Rewrite macro to use parser state.
9652 (yyparse): Redefine macro to go_parse_internal.
9653 (pstate): New variable.
9654 (parse_number): Add "struct parser_state" argument.
9655 (type_exp, exp1, exp, variable, type): Update calls to
9656 write_exp* and similars in order to use parser state.
9657 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9658 to use parser state.
9659 (go_parse): Likewise.
9660 * go-lang.h: Forward declare "struct parser_state".
9661 (go_parse): Add "struct parser_state" argument.
9663 2014-03-27 Doug Evans <dje@google.com>
9665 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9667 2014-03-27 Doug Evans <dje@google.com>
9669 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9670 Remove argument abbrev_section. All callers updated.
9672 2014-03-27 Doug Evans <dje@google.com>
9674 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9675 addr_base, ranges_base.
9677 2014-03-26 Keith Seitz <keiths@redhat.com>
9679 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9680 types, not VAR_DOMAIN.
9682 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9684 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9686 * features/nios2-linux.c: Regenerated.
9687 * features/nios2.c: Regenerated.
9689 2014-03-25 Pedro Alves <palves@redhat.com>
9691 * cli/cli-script.c (script_from_file): Force the interpreter to
9694 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9696 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9697 small stack allocation.
9699 2014-03-24 Tristan Gingold <gingold@adacore.com>
9701 * darwin-nat.c (exc_server): Remove unused prototype.
9702 (darwin_dump_message): Correctly display data on x86_64.
9703 (darwin_encode_reply): Fix style.
9704 Add comments and fix indentation.
9706 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9708 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9710 2014-03-22 Doug Evans <xdje42@gmail.com>
9712 * infcmd.c: Whitespace fixes.
9713 (interrupt_command): Merge two function comments into one.
9715 2014-03-22 Doug Evans <xdje42@gmail.com>
9717 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9720 2014-03-22 Yao Qi <yao@codesourcery.com>
9722 * remote.c (target_read_live_memory): Remove.
9723 (memory_xfer_live_readonly_partial): Rename it to
9724 remote_xfer_live_readonly_partial. Remove argument 'object'.
9725 All callers updated. Call remote_read_bytes_1
9726 instead of target_read_live_memory.
9727 * tracepoint.c (set_traceframe_number): Remove.
9728 (make_cleanup_restore_traceframe_number): Likewise .
9729 * tracepoint.h (set_traceframe_number): Remove declaration.
9730 (make_cleanup_restore_traceframe_number): Likewise.
9732 2014-03-22 Yao Qi <yao@codesourcery.com>
9734 * remote.c (remote_read_bytes): Move code on reading from the
9736 (remote_read_bytes_1): ... here. New function.
9738 2014-03-22 Yao Qi <yao@codesourcery.com>
9740 * ctf.c (ctf_xfer_partial): Check the return value of
9741 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9742 return TARGET_XFER_UNAVAILABLE.
9743 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9744 * target.c (target_read_live_memory): Move it to remote.c.
9745 (memory_xfer_live_readonly_partial): Likewise.
9746 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9747 * remote.c (target_read_live_memory): Moved from target.c.
9748 (memory_xfer_live_readonly_partial): Likewise.
9749 (remote_read_bytes): Factored out from
9750 memory_xfer_partial_1.
9752 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9754 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9757 2014-03-21 Pedro Alves <palves@redhat.com>
9759 * infrun.c (normal_stop): Extend comment.
9761 2014-03-21 Hui Zhu <hui@codesourcery.com>
9762 Pedro Alves <palves@redhat.com>
9764 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9766 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9767 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9768 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9770 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9772 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9773 `z' formatted output modifier.
9775 2014-03-20 Tom Tromey <tromey@redhat.com>
9776 Sergio Durigan Junior <sergiodj@redhat.com>
9778 * probe.c (parse_probes): Turn assert into an ordinary error.
9779 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9780 exceptions when parsing probes. Rearrange the code for clarity.
9782 2014-03-20 Tom Tromey <tromey@redhat.com>
9785 * top.c (execute_command): Only dispatch events if the command
9788 2014-03-20 Tom Tromey <tromey@redhat.com>
9791 * infcall.c: Include event-top.h.
9792 (run_inferior_call): Call async_disable_stdin if needed.
9794 2014-03-20 Pedro Alves <palves@redhat.com>
9796 * infrun.c (prepare_to_proceed): Delete.
9797 (thread_still_needs_step_over): New function.
9798 (find_thread_needs_step_over): New function.
9799 (proceed): If the current thread needs a step-over, set its
9800 steping_over_breakpoint flag. Adjust to use
9801 find_thread_needs_step_over instead of prepare_to_proceed.
9802 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9803 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9805 (switch_back_to_stepped_thread): Step over breakpoints of all
9806 threads not the stepping thread, before switching back to the
9809 2014-03-20 Pedro Alves <palves@redhat.com>
9811 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9813 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9814 * infrun.c (saved_singlestep_ptid)
9815 (stepping_past_singlestep_breakpoint): Delete.
9816 (resume): Remove stepping_past_singlestep_breakpoint handling.
9817 (proceed): Store the prev_pc of the stepping thread too.
9818 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9820 (enum infwait_states): Delete infwait_thread_hop_state.
9821 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9823 (handle_inferior_event): Adjust.
9824 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9825 handling and the thread-hop code. Before removing single-step
9826 breakpoints, check whether the thread hit a single-step breakpoint
9827 of another thread. If it did, the trap is not a random signal.
9828 (switch_back_to_stepped_thread): If the event thread hit a
9829 single-step breakpoint, unblock it before switching to the
9830 stepping thread. Handle the case of the stepped thread having
9832 (keep_going): Handle the case of the current thread moving past a
9833 single-step breakpoint.
9835 2014-03-20 Pedro Alves <palves@redhat.com>
9838 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9839 are being stepped over.
9840 (breakpoint_address_match): Make extern.
9841 * breakpoint.h (breakpoint_address_match): New declaration.
9842 * inferior.h (stepping_past_instruction_at): New declaration.
9843 * infrun.c (struct step_over_info): New type.
9844 (step_over_info): New global.
9845 (set_step_over_info, clear_step_over_info)
9846 (stepping_past_instruction_at): New functions.
9847 (handle_inferior_event): Clear the step-over info when
9848 trap_expected is cleared.
9849 (resume): Remove now stale comment.
9850 (clear_proceed_status): Clear step-over info.
9851 (proceed): Adjust step-over handling to set or clear the step-over
9852 info instead of removing all breakpoints.
9853 (handle_signal_stop): When setting up a thread-hop, don't remove
9855 (stop_stepping): Clear step-over info.
9856 (keep_going): Adjust step-over handling to set or clear step-over
9857 info and then always inserting breakpoints, instead of removing
9858 all breakpoints when stepping over one.
9860 2014-03-20 Pedro Alves <palves@redhat.com>
9862 * infrun.c (previous_inferior_ptid): Adjust comment.
9863 (deferred_step_ptid): Delete.
9864 (infrun_thread_ptid_changed, prepare_to_proceed)
9865 (init_wait_for_inferior): Adjust.
9866 (handle_signal_stop): Delete deferred_step_ptid handling.
9868 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9871 * defs.h (sync_quit_force_run): New declaration.
9872 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9873 * event-top.c (async_sigterm_handler): New declaration.
9874 (async_sigterm_token): New variable.
9875 (async_init_signals): Create also async_sigterm_token.
9876 (async_sigterm_handler): New function.
9877 (sync_quit_force_run): New variable.
9878 (handle_sigterm): Replace quit_force call by other calls.
9879 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9881 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9883 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9884 offset into SPE pseudo registers.
9886 2014-03-18 Pedro Alves <palves@redhat.com>
9889 * inferior.h (print_stop_event): Declare.
9890 * infrun.c (print_stop_event): New, factored out from ...
9891 (normal_stop): ... this.
9892 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9893 of bpstat_print/print_stack_frame.
9895 2014-03-17 Tom Tromey <tromey@redhat.com>
9897 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9899 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9901 * ada-lang.c (decode_constrained_packed_array): Perform a
9902 minimal coercion for reference with coerce_ref instead of
9905 2014-03-17 Tristan Gingold <gingold@adacore.com>
9907 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9908 (darwin_solib_create_inferior_hook): Emit a warning if version
9911 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9913 * python/py-value.c (get_field_flag): Cast flag_name argument to
9914 PyObject_GetAttrString to support Python 2.4.
9916 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9918 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9919 (Global Maintainers): Remove Jan Kratochvil.
9921 2014-03-14 Pedro Alves <palves@redhat.com>
9923 * inferior.h (terminal_ours_for_output): Rename to ...
9924 (child_terminal_ours_for_output): ... this.
9925 (terminal_save_ours): Rename to ...
9926 (child_terminal_save_ours): ... this.
9927 (terminal_ours): Rename to ...
9928 (child_terminal_ours): ... this.
9929 (terminal_inferior): Rename to ...
9930 (child_terminal_inferior): ... this.
9931 (terminal_init_inferior): Rename to ...
9932 (child_terminal_init_inferior): ... this.
9933 (terminal_init_inferior_with_pgrp): Rename to ...
9934 (child_terminal_init_inferior_with_pgrp): ... this.
9935 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9936 (child_terminal_init_with_pgrp): ... this.
9937 (terminal_save_ours): Rename to ...
9938 (child_terminal_save_ours): ... this.
9939 (terminal_init_inferior): Rename to ...
9940 (child_terminal_init): ... this. Adjust.
9941 (terminal_inferior): Rename to ...
9942 (child_terminal_inferior): ... this.
9943 (terminal_ours_for_output): Rename to ...
9944 (child_terminal_ours_for_output): ... this. Adjust.
9945 (terminal_ours): Rename to ...
9946 (child_terminal_ours): ... this.
9947 (terminal_ours_1): Rename to ...
9948 (child_terminal_ours_1): ... this. Adjust.
9949 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9950 * windows-nat.c (do_initial_windows_stuff): Adjust.
9951 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9952 (gnu_terminal_init): ... this. Adjust.
9953 (gnu_target): Adjust.
9954 * inf-child.c (inf_child_target): Adjust.
9956 2014-03-13 Doug Evans <xdje42@gmail.com>
9959 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9962 2014-03-13 Doug Evans <xdje42@gmail.com>
9964 * value.c (record_latest_value): Call release_value_or_incref
9965 instead of release_value.
9967 2014-03-13 Pedro Alves <palves@redhat.com>
9969 * procfs.c (procfs_target): Don't override to_shortname,
9970 to_longname or to_doc.
9972 2014-03-13 Pedro Alves <palves@redhat.com>
9974 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9975 Unix in user visible strings.
9977 2014-03-12 Stan Shebs <stan@codesourcery.com>
9979 * gdbtypes.h: Annotate comments for Doxygen, add a page
9980 block comment with some general info.
9982 2014-03-12 Pedro Alves <palves@redhat.com>
9984 * infcmd.c (prepare_execution_command): New function, factored out
9985 from several execution commands.
9986 (run_command_1, continue_command, step_1, jump_command)
9987 (signal_command, until_command, advance_command, finish_command)
9988 (attach_command): Use prepare_execution_command.
9990 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9992 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9995 (struct arm_linux_thread_points): Removed.
9996 (struct arm_linux_process_info): New.
9997 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9998 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9999 (arm_linux_find_breakpoints_by_tid): Removed.
10000 (struct arch_lwp_info): New.
10001 (arm_linux_find_process_pid): New functions.
10002 (arm_linux_add_process): New functions.
10003 (arm_linux_process_info_get): New functions.
10004 (arm_linux_forget_process): New function.
10005 (arm_linux_get_debug_reg_state): New function.
10006 (struct update_registers_data): New.
10007 (update_registers_callback): New function.
10008 (arm_linux_insert_hw_breakpoint1): Updated.
10009 (arm_linux_remove_hw_breakpoint1): Updated.
10010 (arm_linux_insert_hw_breakpoint): Updated.
10011 (arm_linux_remove_hw_breakpoint): Updated.
10012 (arm_linux_insert_watchpoint): Updated.
10013 (arm_linux_remove_watchpoint): Updated.
10014 (arm_linux_new_thread): Updated.
10015 (arm_linux_prepare_to_resume): New function.
10016 (arm_linux_new_fork): New function.
10017 (_initialize_arm_linux_nat): Updated.
10019 2014-03-12 Pedro Alves <palves@redhat.com>
10021 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10023 2014-03-12 Tom Tromey <tromey@redhat.com>
10025 * inf-child.c (return_zero): New function.
10026 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10027 * aix-thread.c (aix_thread_inferior_created): New function.
10028 (aix_thread_attach): Remove.
10029 (init_aix_thread_ops): Don't set to_attach.
10030 (_initialize_aix_thread): Register inferior_created observer.
10031 * corelow.c (init_core_ops): Don't set to_attach or
10032 to_create_inferior.
10033 * exec.c (init_exec_ops): Don't set to_attach or
10034 to_create_inferior.
10035 * infcmd.c (run_command_1): Use find_run_target. Make direct
10037 (attach_command): Use find_attach_target. Make direct target
10039 * record-btrace.c (init_record_btrace_ops): Don't set
10040 to_create_inferior.
10041 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10043 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10044 set to_create_inferior.
10045 * target.c (complete_target_initialization): Add assertion.
10046 (target_create_inferior): Remove.
10047 (find_default_attach, find_default_create_inferior): Remove.
10048 (find_attach_target, find_run_target): New functions.
10049 (find_default_is_async_p, find_default_can_async_p)
10050 (target_supports_non_stop, target_attach): Remove.
10051 (init_dummy_target): Don't set to_create_inferior or
10052 to_supports_non_stop.
10053 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10054 TARGET_DEFAULT_FUNC.
10055 <to_create_inferior>: Add comment.
10056 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10057 TARGET_DEFAULT_RETURN.
10058 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10059 (find_attach_target, find_run_target): Declare.
10060 (target_create_inferior): Remove.
10061 (target_has_execution_1): Update comment.
10062 (target_supports_non_stop): Remove.
10063 * target-delegates.c: Rebuild.
10065 2014-03-12 Pedro Alves <palves@redhat.com>
10067 * inf-child.h: Update comment to not mention Unix.
10069 2014-03-12 Pedro Alves <palves@redhat.com>
10071 * inf-child.c: Update top comment to not mention Unix. Add
10072 generic comment describing how this target is meant to be used.
10073 (inf_child_post_attach, inf_child_post_startup_inferior)
10074 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10077 2014-03-12 Pedro Alves <palves@redhat.com>
10079 * nto-procfs.c: Include inf-child.h.
10080 (procfs_ops): Delete global.
10081 (procfs_can_run): Delete method.
10082 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10083 target pointer instead of referencing procfs_ops.
10084 (procfs_prepare_to_store): Delete.
10085 (init_procfs_ops): Delete function.
10086 (procfs_target): New function, based on init_procfs_ops, but
10087 inherit inf_child_target.
10088 (_initialize_procfs): Use procfs_target.
10090 2014-03-12 Pedro Alves <palves@redhat.com>
10092 * windows-nat.c: Include inf-child.h.
10093 (windows_ops): Delete global.
10094 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10096 (init_windows_ops): Delete function.
10097 (windows_target): New function, based on init_windows_ops, but
10098 inherit inf_child_target.
10099 (_initialize_windows_nat): Use windows_target. Install x86
10100 specific target methods here.
10102 2014-03-10 Doug Evans <xdje42@gmail.com>
10104 * guile/guile.c (call_initialize_gdb_module): New function.
10105 (initialize_guile): Replace call to scm_init_guile with call to
10108 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10110 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10111 in call to TYPE_CODE macro.
10113 2014-03-10 Jerome Guitton <guitton@adacore.com>
10115 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10116 Resolve tagged types to full view.
10118 2014-03-10 Hui Zhu <hui@codesourcery.com>
10120 * target.h (target_insert_breakpoint): Remove "hardware" from its
10123 2014-03-07 Doug Evans <dje@google.com>
10125 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10127 2014-03-07 Doug Evans <dje@google.com>
10129 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10130 Remove unused local comp_dir_attr. Assert exactly one of
10131 stub_comp_unit_die, stub_comp_dir is non-NULL.
10133 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10135 * target.h (complete_target_initialization, add_target):
10138 2014-03-07 Pedro Alves <palves@redhat.com>
10140 * go32-nat.c: Include inf-child.h.
10141 (go32_ops): Delete global.
10142 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10144 (go32_create_inferior): Push the passed in target pointer instead
10145 of referencing go32_ops.
10146 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10147 (go32_target): New function, based on init_go32_ops, but inherit
10149 (_initialize_go32_nat): Use go32_target. Move parts of
10150 init_go32_ops here.
10152 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10154 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10155 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10156 SYMBOL_VALUE_ADDRESS.
10157 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10159 2014-03-06 Yao Qi <yao@codesourcery.com>
10161 * breakpoint.c (get_tracepoint_by_number): Remove argument
10162 optional_p. All callers updated. Adjust comments. Update
10164 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10166 2014-03-06 Yao Qi <yao@codesourcery.com>
10168 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10169 early if get_number returns zero. Use 'p' instead of 'args'.
10171 2014-03-06 Yao Qi <yao@codesourcery.com>
10173 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10176 2014-03-06 Yao Qi <yao@codesourcery.com>
10178 PR breakpoints/16508
10179 * tracepoint.c (check_trace_running): New function.
10180 (trace_find_command): Move code to check_trace_running and
10181 call check_trace_running.
10182 (trace_find_pc_command): Likewise.
10183 (trace_find_tracepoint_command): Likewise.
10184 (trace_find_line_command): Likewise.
10185 (trace_find_range_command): Likewise.
10186 * tracepoint.h (check_trace_running): Likewise.
10187 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10189 2014-03-06 Yao Qi <yao@codesourcery.com>
10191 * target.h (struct target_ops) <to_traceframe_info>: Use
10192 TARGET_DEFAULT_NORETURN (tcomplain ()).
10193 * target-delegates.c: Regenerated.
10195 2014-03-05 Pedro Alves <palves@redhat.com>
10198 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10199 void. Update comment.
10200 (dcache_xfer_memory): Delete.
10201 (dcache_read_memory_partial): New, based on the read bits of
10202 dcache_xfer_memory.
10203 (dcache_update): Add status parameter. Use ULONGEST for len, and
10204 adjust. Discard cache lines if the reason for the update was
10206 * dcache.h (dcache_xfer_memory): Delete declaration.
10207 (dcache_read_memory_partial): New declaration.
10208 (dcache_update): Update prototype.
10209 * target.c (raw_memory_xfer_partial): Update the dcache here.
10210 (memory_xfer_partial_1): Don't handle dcache writes here.
10212 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10214 * remote-sim.c (gdbsim_load): Add const to prog.
10216 2014-03-03 Tom Tromey <tromey@redhat.com>
10218 * elfread.c (probe_key): Change to bfd_data.
10219 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10220 now per-BFD, not per-objfile.
10221 * stap-probe.c (stap_probe_destroy): Update comment.
10222 (handle_stap_probe): Allocate on the per-BFD obstack.
10224 2014-03-03 Tom Tromey <tromey@redhat.com>
10226 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10227 * breakpoint.c (create_longjmp_master_breakpoint): Use
10229 (add_location_to_breakpoint, bkpt_probe_insert_location)
10230 (bkpt_probe_remove_location): Update.
10231 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10232 * elfread.c (elf_symfile_relocate_probe): Remove.
10233 (elf_probe_fns): Update.
10234 (insert_exception_resume_breakpoint): Change type of "probe"
10235 parameter to bound_probe.
10236 (check_exception_resume): Update.
10237 * objfiles.c (objfile_relocate1): Don't relocate probes.
10238 * probe.c (bound_probe_s): New typedef.
10239 (parse_probes): Use get_probe_address. Set sal's objfile.
10240 (find_probe_by_pc): Return a bound_probe.
10241 (collect_probes): Return a VEC(bound_probe_s).
10242 (compare_probes): Update.
10243 (gen_ui_out_table_header_info): Change type of "probes"
10245 (info_probes_for_ops): Update.
10246 (get_probe_address): New function.
10247 (probe_safe_evaluate_at_pc): Update.
10248 * probe.h (struct probe_ops) <get_probe_address>: New field.
10249 <set_semaphore, clear_semaphore>: Add objfile parameter.
10250 (struct probe) <objfile>: Remove field.
10252 <address>: Update comment.
10253 (struct bound_probe): New.
10254 (find_probe_by_pc): Return a bound_probe.
10255 (get_probe_address): Declare.
10256 * solib-svr4.c (struct probe_and_action) <address>: New field.
10257 (hash_probe_and_action, equal_probe_and_action): Update.
10258 (register_solib_event_probe): Add address parameter.
10259 (solib_event_probe_at): Update.
10260 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10262 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10263 (stap_get_probe_address): New function.
10264 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10265 (compile_probe_arg): Update.
10266 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10268 (handle_stap_probe): Don't relocate the probe.
10269 (stap_relocate): Remove.
10270 (stap_gen_info_probes_table_values): Update.
10271 (stap_probe_ops): Remove stap_relocate.
10272 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10273 (debug_sym_probe_fns): Update.
10274 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10275 * symtab.c (init_sal): Use memset.
10276 * symtab.h (struct symtab_and_line) <objfile>: New field.
10277 * tracepoint.c (start_tracing, stop_tracing): Update.
10279 2014-03-03 Tom Tromey <tromey@redhat.com>
10281 * probe.h (parse_probes, find_probe_by_pc)
10282 (find_probes_in_objfile): Fix comments.
10284 2014-03-02 Doug Evans <xdje42@gmail.com>
10286 * infrun.c (handle_signal_stop): Replace test for
10287 TARGET_WAITKIND_STOPPED with an assert.
10289 2014-03-02 Doug Evans <xdje42@gmail.com>
10291 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10293 2014-03-02 Doug Evans <xdje42@gmail.com>
10295 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10297 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10299 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10301 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10303 * i386obsd-nat.c: Include "obsd-nat.h".
10304 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10306 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10308 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10310 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10312 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10314 * mips64obsd-nat.c: Include "obsd-nath".
10315 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10317 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10319 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10321 * amd64obsd-nat.c: Include "obsd-nat,h.
10322 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10324 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10326 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10328 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10329 (find_overload_match): Update call to find_oload_champ.
10330 (find_oload_champ_namespace_loop): Likewise
10332 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10334 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10336 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10337 * config/sparc/obsd64.mh: New file.
10338 * sparc64obsd-nat.c: New file.
10340 * obsd-nat.h: New file.
10341 * obsd-nat.c: New file.
10342 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10343 (ALLDEPFILES): Add obsd-nat.c.
10345 2014-02-28 Tom Tromey <tromey@redhat.com>
10347 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10348 * cli-out.h (cli_ui_out_impl): Now const.
10349 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10350 * ui-out.c (struct ui_out) <impl>: Now const.
10351 (default_ui_out_impl): Now const.
10352 (ui_out_new): Make 'impl' parameter const.
10353 * ui-out.h (ui_out_new): Update.
10355 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10357 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10359 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10361 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10363 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10365 Additional PR 8882 fix.
10366 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10368 2014-02-27 Pedro Alves <palves@redhat.com>
10370 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10373 2014-02-27 Pedro Alves <palves@redhat.com>
10376 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10377 * nat/linux-waitpid.c: Include string.h.
10378 (status_to_str): Moved here and made extern.
10379 * nat/linux-waitpid.h (status_to_str): New declaration.
10381 2014-02-27 Hui Zhu <hui@codesourcery.com>
10384 * infrun.c (ptid_match): Move ...
10385 * common/ptid.c (ptid_match): ... here.
10386 * inferior.h (ptid_match): Move ...
10387 * common/ptid.h (ptid_match): ... here.
10389 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10391 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10392 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10395 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10397 * obsd-tdep.c (obsd_auxv_parse): New function.
10398 (obsd_init_abi): Set auxv_parse.
10400 * gdbarch.sh (auxv_parse): New.
10401 * gdbarch.h: Regenerated.
10402 * gdbarch.c: Regenerated.
10403 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10405 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10407 * guile/scm-value.c (gdbscm_history_append_x): New function.
10408 (value_functions): Add it.
10410 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10412 * dwarf2read.c (attr_value_as_address): New function.
10413 (dwarf2_find_base_address, read_call_site_scope): Use
10414 attr_value_as_address in place of DW_ADDR.
10415 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10416 the low and high addresses. Slight rework of the handling
10417 of the high pc being a constant form, and limit it to
10418 DWARF verson 4 or higher.
10419 (dwarf2_record_block_ranges): Likewise.
10420 (read_partial_die): Likewise.
10421 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10423 2014-02-26 Tom Tromey <tromey@redhat.com>
10425 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10427 2014-02-26 Tom Tromey <tromey@redhat.com>
10429 * elfread.c (elf_read_minimal_symbols): Return early if
10430 minimal symbols have already been read. Add "ei" parameter.
10431 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10432 * minsyms.c (prim_record_minimal_symbol_full): Update.
10433 * objfiles.h (struct objstats) <n_minsyms>: Move...
10434 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10435 * symmisc.c (print_objfile_statistics): Update.
10437 2014-02-26 Tom Tromey <tromey@redhat.com>
10439 * elfread.c (elf_read_minimal_symbols): New function, from
10441 (elf_symfile_read): Call it.
10443 2014-02-26 Tom Tromey <tromey@redhat.com>
10445 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10446 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10447 (lookup_minimal_symbol_solib_trampoline)
10448 (lookup_minimal_symbol_by_pc_section_1)
10449 (lookup_minimal_symbol_and_objfile): Update.
10450 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10451 Don't allocate a minimal symbol if minsyms have already been read.
10452 (build_minimal_symbol_hash_tables): Update.
10453 (install_minimal_symbols): Do nothing if minsyms already read.
10454 Use the per-BFD obstack.
10455 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10456 * objfiles.c (allocate_objfile): Call
10457 terminate_minimal_symbol_table later.
10458 (have_minimal_symbols): Update.
10459 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10460 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10461 Move from struct objfile.
10462 <minsyms_read>: New field.
10463 (struct objfile) <msymbols, minimal_symbol_count,
10464 msymbol_hash, msymbol_demangled_hash>: Move.
10465 (ALL_OBJFILE_MSYMBOLS): Update.
10466 * symfile.c (read_symbols): Set minsyms_read.
10467 (reread_symbols): Update.
10468 * symmisc.c (dump_objfile, dump_msymbols): Update.
10470 2014-02-26 Tom Tromey <tromey@redhat.com>
10472 * minsyms.c (msymbols_sort): Remove.
10473 * minsyms.h (msymbols_sort): Remove.
10474 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10475 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10476 * elfread.c (elf_symtab_read): Don't add section offsets.
10477 * xcoffread.c (record_minimal_symbol): Don't add section offset
10478 to minimal symbol address.
10479 * somread.c (text_offset, data_offset): Remove.
10480 (som_symtab_read): Don't add section offsets to minimal symbol
10482 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10483 Don't add section offsets to minimal symbols.
10484 * coffread.c (coff_symtab_read): Don't add section offsets
10485 to minimal symbol addresses.
10486 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10487 to minimal symbol addresses.
10488 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10489 section offset to minimal symbol addresses.
10490 * mdebugread.c (parse_partial_symbols): Don't add section
10491 offset to minimal symbol addresses.
10492 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10493 offset to minimal symbol addresses.
10495 2014-02-26 Tom Tromey <tromey@redhat.com>
10497 * ada-lang.c (ada_main_name): Update.
10498 (ada_add_standard_exceptions): Update.
10499 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10500 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10501 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10502 * auxv.c (ld_so_xfer_auxv): Update.
10503 * avr-tdep.c (avr_scan_prologue): Update.
10504 * ax-gdb.c (gen_var_ref): Update.
10505 * blockframe.c (get_pc_function_start)
10506 (find_pc_partial_function_gnu_ifunc): Update.
10507 * breakpoint.c (create_overlay_event_breakpoint)
10508 (create_longjmp_master_breakpoint)
10509 (create_std_terminate_master_breakpoint)
10510 (create_exception_master_breakpoint): Update.
10511 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10512 * c-valprint.c (c_val_print): Update.
10513 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10514 * common/agent.c (agent_look_up_symbols): Update.
10515 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10516 * dwarf2loc.c (call_site_to_target_addr): Update.
10517 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10518 * elfread.c (elf_gnu_ifunc_record_cache)
10519 (elf_gnu_ifunc_resolve_by_got): Update.
10520 * findvar.c (default_read_var_value): Update.
10521 * frame.c (inside_main_func): Update.
10522 * frv-tdep.c (frv_frame_this_id): Update.
10523 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10524 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10526 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10527 (hppa_hpux_find_dummy_bpaddr): Update.
10528 * hppa-tdep.c (hppa_symbol_address): Update.
10529 * infcmd.c (until_next_command): Update.
10530 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10532 * linespec.c (minsym_found, add_minsym): Update.
10533 * linux-nat.c (get_signo): Update.
10534 * linux-thread-db.c (inferior_has_bug): Update.
10535 * m32c-tdep.c (m32c_return_value)
10536 (m32c_m16c_address_to_pointer): Update.
10537 * m32r-tdep.c (m32r_frame_this_id): Update.
10538 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10539 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10540 * maint.c (maintenance_translate_address): Update.
10541 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10542 (frob_address): New function.
10543 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10544 frob_address. Rename parameter to "pc_in".
10545 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10547 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10549 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10550 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10551 * objc-lang.c (find_objc_msgsend): Update.
10552 * objfiles.c (objfile_relocate1): Update.
10553 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10554 * p-valprint.c (pascal_val_print): Update.
10555 * parse.c (write_exp_msymbol): Update.
10556 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10557 (ppc_elfv2_skip_entrypoint): Update.
10558 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10559 * printcmd.c (build_address_symbolic, msym_info)
10560 (address_info): Update.
10561 * proc-service.c (ps_pglobal_lookup): Update.
10562 * psymtab.c (find_pc_sect_psymtab_closer)
10563 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10564 Change msymbol parameter to bound_minimal_symbol.
10565 * ravenscar-thread.c (get_running_thread_id): Update.
10566 * remote.c (remote_check_symbols): Update.
10567 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10569 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10570 * solib-dsbt.c (lm_base): Update.
10571 * solib-frv.c (lm_base, main_got): Update.
10572 * solib-irix.c (locate_base): Update.
10573 * solib-som.c (som_solib_create_inferior_hook)
10574 (link_map_start): Update.
10575 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10576 * solib-svr4.c (elf_locate_base, enable_break): Update.
10577 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10578 (flush_ea_cache): Update.
10579 * stabsread.c (define_symbol, scan_file_globals): Update.
10580 * stack.c (find_frame_funname): Update.
10581 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10582 (debug_qf_find_pc_sect_symtab): Update.
10583 * symfile.c (simple_read_overlay_table)
10584 (simple_overlay_update): Update.
10585 * symfile.h (struct quick_symbol_functions)
10586 <find_pc_sect_symtab>: Change type of msymbol to
10587 bound_minimal_symbol.
10588 * symmisc.c (dump_msymbols): Update.
10589 * symtab.c (find_pc_sect_symtab_via_partial)
10590 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10591 (search_symbols, print_msymbol_info): Update.
10592 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10593 (MSYMBOL_VALUE_ADDRESS): Redefine.
10594 (BMSYMBOL_VALUE_ADDRESS): New macro.
10595 * tracepoint.c (scope_info): Update.
10596 * tui/tui-disasm.c (tui_find_disassembly_address)
10597 (tui_get_begin_asm_address): Update.
10598 * valops.c (find_function_in_inferior): Update.
10599 * value.c (value_static_field, value_fn_field): Update.
10601 2014-02-26 Tom Tromey <tromey@redhat.com>
10603 * ada-lang.c (ada_update_initial_language): Update.
10604 (ada_main_name, ada_has_this_exception_support): Update.
10605 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10606 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10607 * arm-tdep.c (arm_skip_stub): Update.
10608 * auxv.c (ld_so_xfer_auxv): Update.
10609 * avr-tdep.c (avr_scan_prologue): Update.
10610 * ax-gdb.c (gen_var_ref): Update.
10611 * breakpoint.c (struct breakpoint_objfile_data)
10612 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10613 type to bound_minimal_symbol.
10614 (create_overlay_event_breakpoint)
10615 (create_longjmp_master_breakpoint)
10616 (create_std_terminate_master_breakpoint)
10617 (create_exception_master_breakpoint): Update.
10618 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10619 * c-exp.y (classify_name): Update.
10620 * coffread.c (coff_symfile_read): Update.
10621 * common/agent.c (agent_look_up_symbols): Update.
10622 * d-lang.c (d_main_name): Update.
10623 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10624 * dec-thread.c (enable_dec_thread): Update.
10625 * dwarf2loc.c (call_site_to_target_addr): Update.
10626 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10627 * eval.c (evaluate_subexp_standard): Update.
10628 * findvar.c (struct minsym_lookup_data) <result>: Change type
10629 to bound_minimal_symbol.
10631 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10632 * frame.c (inside_main_func): Update.
10633 * frv-tdep.c (frv_frame_this_id): Update.
10634 * gcore.c (call_target_sbrk): Update.
10635 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10636 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10638 * go-lang.c (go_main_name): Update.
10639 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10640 (hppa_hpux_find_import_stub_for_addr): Update.
10641 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10642 Update. Change return type.
10643 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10645 * jit.c (jit_breakpoint_re_set_internal): Update.
10646 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10648 * linux-nat.c (get_signo): Update.
10649 * linux-thread-db.c (inferior_has_bug): Update
10650 * m32c-tdep.c (m32c_return_value)
10651 (m32c_m16c_address_to_pointer): Update.
10652 * m32r-tdep.c (m32r_frame_this_id): Update.
10653 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10654 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10655 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10656 lookup_minimal_symbol. Change return type.
10657 (lookup_minimal_symbol): Remove.
10658 (lookup_bound_minimal_symbol): Update.
10659 (lookup_minimal_symbol_text): Change return type.
10660 (lookup_minimal_symbol_solib_trampoline): Change return type.
10661 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10662 (lookup_minimal_symbol_solib_trampoline): Change return type.
10663 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10664 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10665 (value_nsstring, find_imps): Update.
10666 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10667 * p-lang.c (pascal_main_name): Update.
10668 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10669 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10670 * proc-service.c (ps_pglobal_lookup): Update.
10671 * ravenscar-thread.c (get_running_thread_msymbol): Change
10673 (has_ravenscar_runtime, get_running_thread_id): Update.
10674 * remote.c (remote_check_symbols): Update.
10675 * sol-thread.c (ps_pglobal_lookup): Update.
10676 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10677 * solib-dsbt.c (lm_base): Update.
10678 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10680 * solib-irix.c (locate_base): Update.
10681 * solib-som.c (som_solib_create_inferior_hook)
10682 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10684 * solib-spu.c (spu_enable_break): Update.
10685 * solib-svr4.c (elf_locate_base, enable_break): Update.
10686 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10687 (flush_ea_cache): Update.
10688 * stabsread.c (define_symbol): Update.
10689 * symfile.c (simple_read_overlay_table): Update.
10690 * symtab.c (find_pc_sect_line): Update.
10691 * tracepoint.c (scope_info): Update.
10692 * tui-disasm.c (tui_get_begin_asm_address): Update.
10693 * value.c (value_static_field): Update.
10695 2014-02-26 Tom Tromey <tromey@redhat.com>
10697 * minsyms.c (prim_record_minimal_symbol_full): Use
10698 SET_MSYMBOL_VALUE_ADDRESS.
10699 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10700 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10701 SET_MSYMBOL_VALUE_ADDRESS.
10702 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10703 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10705 2014-02-26 Tom Tromey <tromey@redhat.com>
10707 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10708 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10709 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10710 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10711 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10712 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10713 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10714 * ada-lang.c (ada_main_name): Update.
10715 (ada_lookup_simple_minsym): Update.
10716 (ada_make_symbol_completion_list): Update.
10717 (ada_add_standard_exceptions): Update.
10718 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10719 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10720 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10721 * arm-tdep.c (skip_prologue_function): Update.
10722 (arm_skip_stack_protector, arm_skip_stub): Update.
10723 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10724 (arm_wince_skip_main_prologue): Update.
10725 * auxv.c (ld_so_xfer_auxv): Update.
10726 * avr-tdep.c (avr_scan_prologue): Update.
10727 * ax-gdb.c (gen_var_ref): Update.
10728 * block.c (call_site_for_pc): Update.
10729 * blockframe.c (get_pc_function_start): Update.
10730 (find_pc_partial_function_gnu_ifunc): Update.
10731 * breakpoint.c (create_overlay_event_breakpoint): Update.
10732 (create_longjmp_master_breakpoint): Update.
10733 (create_std_terminate_master_breakpoint): Update.
10734 (create_exception_master_breakpoint): Update.
10735 (resolve_sal_pc): Update.
10736 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10737 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10739 * c-valprint.c (c_val_print): Update.
10740 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10741 * coffread.c (coff_symfile_read): Update.
10742 * common/agent.c (agent_look_up_symbols): Update.
10743 * dbxread.c (find_stab_function_addr): Update.
10744 (end_psymtab): Update.
10745 * dwarf2loc.c (call_site_to_target_addr): Update.
10746 (func_verify_no_selftailcall): Update.
10747 (tailcall_dump): Update.
10748 (call_site_find_chain_1): Update.
10749 (dwarf_expr_reg_to_entry_parameter): Update.
10750 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10751 (elf_gnu_ifunc_resolve_by_got): Update.
10752 * f-valprint.c (info_common_command): Update.
10753 * findvar.c (read_var_value): Update.
10754 * frame.c (get_prev_frame_1): Update.
10755 (inside_main_func): Update.
10756 * frv-tdep.c (frv_skip_main_prologue): Update.
10757 (frv_frame_this_id): Update.
10758 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10759 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10760 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10761 (gnuv3_skip_trampoline): Update.
10762 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10763 (hppa64_hpux_in_solib_call_trampoline): Update.
10764 (hppa_hpux_skip_trampoline_code): Update.
10765 (hppa64_hpux_search_dummy_call_sequence): Update.
10766 (hppa_hpux_find_import_stub_for_addr): Update.
10767 (hppa_hpux_find_dummy_bpaddr): Update.
10768 * hppa-tdep.c (hppa_symbol_address)
10769 (hppa_lookup_stub_minimal_symbol): Update.
10770 * i386-tdep.c (i386_skip_main_prologue): Update.
10771 (i386_pe_skip_trampoline_code): Update.
10772 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10773 * infcall.c (get_function_name): Update.
10774 * infcmd.c (until_next_command): Update.
10775 * jit.c (jit_breakpoint_re_set_internal): Update.
10776 (jit_inferior_init): Update.
10777 * linespec.c (minsym_found): Update.
10778 (add_minsym): Update.
10779 * linux-fork.c (info_checkpoints_command): Update.
10780 * linux-nat.c (get_signo): Update.
10781 * linux-thread-db.c (inferior_has_bug): Update.
10782 * m32c-tdep.c (m32c_return_value): Update.
10783 (m32c_m16c_address_to_pointer): Update.
10784 (m32c_m16c_pointer_to_address): Update.
10785 * m32r-tdep.c (m32r_frame_this_id): Update.
10786 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10787 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10788 * maint.c (maintenance_translate_address): Update.
10789 * minsyms.c (add_minsym_to_hash_table): Update.
10790 (add_minsym_to_demangled_hash_table): Update.
10791 (msymbol_objfile): Update.
10792 (lookup_minimal_symbol): Update.
10793 (iterate_over_minimal_symbols): Update.
10794 (lookup_minimal_symbol_text): Update.
10795 (lookup_minimal_symbol_by_pc_name): Update.
10796 (lookup_minimal_symbol_solib_trampoline): Update.
10797 (lookup_minimal_symbol_by_pc_section_1): Update.
10798 (lookup_minimal_symbol_and_objfile): Update.
10799 (prim_record_minimal_symbol_full): Update.
10800 (compare_minimal_symbols): Update.
10801 (compact_minimal_symbols): Update.
10802 (build_minimal_symbol_hash_tables): Update.
10803 (install_minimal_symbols): Update.
10804 (terminate_minimal_symbol_table): Update.
10805 (find_solib_trampoline_target): Update.
10806 (minimal_symbol_upper_bound): Update.
10807 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10808 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10809 (mips_skip_pic_trampoline_code): Update.
10810 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10811 * objc-lang.c (selectors_info): Update.
10812 (classes_info): Update.
10813 (find_methods): Update.
10814 (find_imps): Update.
10815 (find_objc_msgsend): Update.
10816 * objfiles.c (objfile_relocate1): Update.
10817 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10818 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10819 * p-valprint.c (pascal_val_print): Update.
10820 * parse.c (write_exp_msymbol): Update.
10821 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10822 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10823 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10824 * printcmd.c (build_address_symbolic): Update.
10825 (sym_info): Update.
10826 (address_info): Update.
10827 * proc-service.c (ps_pglobal_lookup): Update.
10828 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10829 (find_pc_sect_psymtab): Update.
10830 * python/py-framefilter.c (py_print_frame): Update.
10831 * ravenscar-thread.c (get_running_thread_id): Update.
10832 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10834 * remote.c (remote_check_symbols): Update.
10835 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10836 (rs6000_skip_trampoline_code): Update.
10837 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10838 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10839 * solib-dsbt.c (lm_base): Update.
10840 * solib-frv.c (lm_base): Update.
10841 (main_got): Update.
10842 * solib-irix.c (locate_base): Update.
10843 * solib-som.c (som_solib_create_inferior_hook): Update.
10844 (som_solib_desire_dynamic_linker_symbols): Update.
10845 (link_map_start): Update.
10846 * solib-spu.c (spu_enable_break): Update.
10847 (ocl_enable_break): Update.
10848 * solib-svr4.c (elf_locate_base): Update.
10849 (enable_break): Update.
10850 * spu-tdep.c (spu_get_overlay_table): Update.
10851 (spu_catch_start): Update.
10852 (flush_ea_cache): Update.
10853 * stabsread.c (define_symbol): Update.
10854 (scan_file_globals): Update.
10855 * stack.c (find_frame_funname): Update.
10856 (frame_info): Update.
10857 * symfile.c (simple_read_overlay_table): Update.
10858 (simple_overlay_update): Update.
10859 * symmisc.c (dump_msymbols): Update.
10860 * symtab.c (fixup_section): Update.
10861 (find_pc_sect_line): Update.
10862 (skip_prologue_sal): Update.
10863 (search_symbols): Update.
10864 (print_msymbol_info): Update.
10865 (rbreak_command): Update.
10866 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10867 (completion_list_objc_symbol): Update.
10868 (default_make_symbol_completion_list_break_on): Update.
10869 * tracepoint.c (scope_info): Update.
10870 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10871 (tui_get_begin_asm_address): Update.
10872 * valops.c (find_function_in_inferior): Update.
10873 * value.c (value_static_field): Update.
10874 (value_fn_field): Update.
10876 2014-02-26 Tom Tromey <tromey@redhat.com>
10878 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10879 bound minimal symbols. Move code that knows about minsym
10881 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10883 * minsyms.h (minimal_symbol_upper_bound): Declare.
10884 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10885 minimal_symbol_upper_bound.
10887 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10889 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10890 Use the type's name if its basic type does not have a tag.
10892 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10894 * dwarf2read.c (read_subrange_type): Add comment.
10896 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10898 * dwarf2read.c (update_enumeration_type_from_children): New
10899 function, mostly extracted from process_structure_scope.
10900 (read_enumeration_type): Call update_enumeration_type_from_children.
10901 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10902 and flag_flag_enum fields.
10904 2014-02-26 Pedro Alves <palves@redhat.com>
10906 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10907 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10908 to_xfer_partial method.
10910 2014-02-26 Pedro Alves <palves@redhat.com>
10912 * target.c (complete_target_initialization): Don't install
10913 default_xfer_partial as to_xfer_partial hook.
10914 (nomemory): Delete.
10915 (update_current_target): Don't INHERIT nor de_fault
10916 deprecated_xfer_memory. Delete de_fault macro.
10917 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10918 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10919 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10922 2014-02-26 Pedro Alves <palves@redhat.com>
10924 * go32-nat.c (my_write_child): New function.
10925 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10926 (go32_xfer_partial): New function.
10927 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10928 Instead install a to_xfer_partial hook.
10930 2014-02-26 Pedro Alves <palves@redhat.com>
10932 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10933 to_xfer_partial helper. Rewrite.
10934 (procfs_xfer_partial): New function.
10935 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10936 Install a to_xfer_partial hook.
10938 2014-02-26 Pedro Alves <palves@redhat.com>
10940 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10941 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10942 (m32r_xfer_partial): New function.
10943 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10944 Install a to_xfer_partial hook.
10946 2014-02-26 Pedro Alves <palves@redhat.com>
10948 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10950 (mips_xfer_partial): New function.
10951 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10952 hook. Install a to_xfer_partial hook.
10954 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10956 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10957 * gdbtypes.c (create_array_type_with_stride): New function,
10958 renaming create_array_type, but with an added parameter
10959 called "bit_stride".
10960 (create_array_type): Re-implement using
10961 create_array_type_with_stride.
10962 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10963 and DW_AT_bit_stride attributes.
10965 2014-02-26 Pedro Alves <palves@redhat.com>
10967 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10968 task-specific breakpoints.
10970 2014-02-25 Pedro Alves <palves@redhat.com>
10972 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10973 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10975 2014-02-25 Stan Shebs <stan@codesourcery.com>
10977 * defs.h: Annotate comments for Doxygen.
10979 2014-02-25 Tom Tromey <tromey@redhat.com>
10981 * target.h (target_ignore): Don't declare.
10982 * target.c (target_ignore): Remove.
10984 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10987 * auto-load.c (auto_load_objfile_script_1): Change filename to
10990 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10992 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10993 documentation. Adjust prototype to match the target_ops
10994 to_xfer_partial method. Adjust implementation accordingly.
10996 2014-02-25 Hui Zhu <hui@codesourcery.com>
10998 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10999 to_traceframe_info.
11001 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11003 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11004 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11005 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11006 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11007 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11008 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11009 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11010 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11012 (rl78_register_type): Use a data pointer type for SP and
11013 new pseudo registers mentioned above. Use a 16 bit integer
11014 type for all other register pairs.
11015 (rl78_register_name, rl78_g10_register_name): Update for
11016 new pseudo registers.
11017 (rl78_pseudo_register_read): Likewise.
11018 (rl78_pseudo_register_write): Likewise.
11019 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11020 to the newly added pseudo registers.
11022 2014-02-24 Doug Evans <dje@google.com>
11024 * value.c (record_latest_value): Fix comment.
11025 * printcmd.c (print_command_1): Remove code to handle -1 return from
11026 record_latest_value.
11028 2014-02-24 Pedro Alves <palves@redhat.com>
11030 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11031 deprecated_xfer_memory hook.
11032 (procfs_xfer_partial): Call procfs_xfer_memory instead
11033 of the deprecated_xfer_memory target hook.
11034 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11037 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11039 * windows-nat.c (windows_xfer_shared_libraries): Return
11040 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11041 requested object is TARGET_OBJECT_LIBRARIES.
11043 2014-02-24 Yao Qi <yao@codesourcery.com>
11045 * target.h (enum target_xfer_status)
11046 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11047 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11049 * corefile.c (memory_error_message): User updated.
11050 * exec.c (section_table_read_available_memory): Likewise.
11051 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11052 * target.c (target_xfer_status_to_string): Likewise.
11053 (raw_memory_xfer_partial): Likewise.
11054 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11055 * valops.c (read_value_memory): Likewise.
11056 * exec.h: Update comments.
11058 2014-02-24 Yao Qi <yao@codesourcery.com>
11060 * target.c (target_xfer_status_to_string): Rename argument err
11062 * target.h (target_xfer_status_to_string): Update declaration.
11063 Replace target_xfer_error_to_string with
11064 target_xfer_status_to_string in comment.
11066 2014-02-24 Yao Qi <yao@codesourcery.com>
11068 * mips-linux-nat.c (super_close): Update its type.
11069 (mips_linux_close): Pass 'self' to super_close.
11071 2014-02-24 Yao Qi <yao@codesourcery.com>
11073 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11074 * corefile.c (read_memory): Adjusted.
11075 * target.c (target_write_with_progress): Adjusted.
11077 2014-02-23 Yao Qi <yao@codesourcery.com>
11079 Revert two patches:
11081 2013-10-25 Yao Qi <yao@codesourcery.com>
11083 * remote.c (remote_traceframe_info): Return early if
11084 traceframe is not selected.
11086 2013-07-19 Yao Qi <yao@codesourcery.com>
11088 * target.c (update_current_target): Change the default action
11089 of 'to_traceframe_info' from tcomplain to return_zero.
11090 * target.h (struct target_ops) <to_traceframe_info>: Add more
11093 2014-02-23 Yao Qi <yao@codesourcery.com>
11095 * valops.c (read_value_memory): Rewrite it. Call
11096 target_xfer_partial in a loop.
11097 * exec.h (section_table_available_memory): Remove declaration.
11098 Move comments to ...
11099 * exec.c (section_table_available_memory): ... here. Make it
11102 2014-02-23 Yao Qi <yao@codesourcery.com>
11104 * exec.c (section_table_read_available_memory): New function.
11105 * exec.h (section_table_read_available_memory): Declare.
11106 * ctf.c (ctf_xfer_partial): Call
11107 section_table_read_available_memory.
11108 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11110 2014-02-23 Yao Qi <yao@codesourcery.com>
11112 * ctf.c (ctf_xfer_partial): Move code to ...
11113 * exec.c (exec_read_partial_read_only): ... it. New function.
11114 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11115 * tracefile.c: Include "exec.h".
11116 * exec.h (exec_read_partial_read_only): Declare.
11118 2014-02-23 Yao Qi <yao@codesourcery.com>
11120 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11121 (tfile_has_memory): Remove.
11122 (init_tfile_ops): Don't set fields to_has_all_memory and
11123 to_has_memory of tfile_ops.
11124 * tracefile.c (tracefile_has_all_memory): New function.
11125 (tracefile_has_memory): New function.
11126 (init_tracefile_ops): Initialize fields to_has_all_memory and
11127 to_has_memory of 'ops'.
11129 2014-02-23 Yao Qi <yao@codesourcery.com>
11131 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11132 (ctf_thread_alive, ctf_get_trace_status): Remove.
11133 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11134 init_tracefile_ops.
11135 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11136 (tfile_has_stack, tfile_has_registers): Remove.
11137 (tfile_thread_alive): Remove.
11138 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11139 init_tracefile_ops.
11140 * tracefile.c (tracefile_has_stack): New function.
11141 (tracefile_has_registers): New function.
11142 (tracefile_thread_alive): New function.
11143 (tracefile_get_trace_status): New function.
11144 (init_tracefile_ops): New function.
11145 * tracefile.h (init_tracefile_ops): Declare.
11147 2014-02-23 Yao Qi <yao@codesourcery.com>
11149 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11150 (O_LARGEFILE): Likewise.
11151 (tfile_ops): Likewise.
11152 (TRACE_HEADER_SIZE): Likewise.
11153 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11154 (cur_data_size): Likewise.
11155 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11156 (tfile_close, tfile_files_info): Likewise.
11157 (tfile_get_trace_status): Likewise.
11158 (tfile_get_tracepoint_status): Likewise.
11159 (tfile_get_traceframe_address): Likewise.
11160 (tfile_trace_find, match_blocktype): Likewise.
11161 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11162 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11163 (tfile_get_trace_state_variable_value): Likewise.
11164 (tfile_has_all_memory, tfile_has_memory): Likewise.
11165 (tfile_has_stack, tfile_has_registers): Likewise.
11166 (tfile_thread_alive, build_traceframe_info): Likewise.
11167 (tfile_traceframe_info, init_tfile_ops): Likewise.
11168 (_initialize_tracepoint): Don't call init_tfile_ops
11169 and add_target_with_completer.
11170 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11171 exec.h, completer.h and filenames.h.
11172 (_initialize_tracefile_tfile): New function.
11174 2014-02-23 Yao Qi <yao@codesourcery.com>
11176 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11178 (HFILES_NO_SRCDIR): Add tracefile.h.
11179 * ctf.c: Include "tracefile.h".
11180 * tracefile.h: New file.
11181 * tracefile.c: New file
11182 * tracefile-tfile.c: New file.
11183 * tracepoint.c: Include "tracefile.h".
11184 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11185 (stop_reason_names): Add const.
11186 (trace_file_writer_xfree): Move it to tracefile.c.
11187 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11188 (trace_save_ctf): Likewise.
11189 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11190 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11191 (tfile_write_header, tfile_write_regblock_type): Likewise.
11192 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11193 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11194 (tfile_write_raw_data, tfile_end): Likewise.
11195 (tfile_trace_file_writer_new): Likewise.
11196 (free_uploaded_tp): Make it extern.
11197 (free_uploaded_tsv): Make it extern.
11198 (_initialize_tracepoint): Move code to register command 'tsave'
11200 * tracepoint.h (stop_reason_names): Declare.
11201 (struct trace_frame_write_ops): Move it to tracefile.h.
11202 (struct trace_file_write_ops): Likewise.
11203 (struct trace_file_writer): Likewise.
11204 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11206 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11209 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11211 (get_cores_used_by_process): New parameter num_cores, use it.
11212 (linux_xfer_osdata_processes): Pass num_cores to it.
11213 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11216 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11218 * target.c (memory_xfer_partial): Fix length arg in call to
11219 breakpoint_xfer_memory.
11221 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11224 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11225 number comes after the + or - signs. Adjust length of register
11226 name to be extracted.
11228 2014-02-20 Tom Tromey <tromey@redhat.com>
11230 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11231 (ada_varobj_ops): Mark "extern".
11233 2014-02-20 Tom Tromey <tromey@redhat.com>
11235 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11237 2014-02-20 Doug Evans <xdje42@gmail.com>
11239 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11240 All callers updated.
11241 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11242 All callers updated.
11243 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11244 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11246 2014-02-20 lin zuojian <manjian2006@gmail.com>
11247 Joel Brobecker <brobecker@adacore.com>
11248 Doug Evans <xdje42@gmail.com>
11251 * dwarf2read.c (struct die_info): New member in_process.
11252 (reset_die_in_process): New function.
11253 (process_die): Set it at the start, reset when returning.
11254 (inherit_abstract_dies): Only call process_die if origin_child_die
11255 not already being processed.
11257 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11259 * windows-nat.c (handle_unload_dll): Add function documentation.
11260 (do_initial_windows_stuff): Add comment explaining why we wait
11261 until after inferior initialization has finished before
11262 processing all DLLs.
11264 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11266 * windows-nat.c (get_module_name): Delete.
11267 (windows_get_exec_module_filename): New function, mostly
11268 inspired from get_module_name.
11269 (windows_pid_to_exec_file): Replace call to get_module_name
11270 by call to windows_get_exec_module_filename.
11272 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11274 * windows-nat.c (handle_load_dll): Rewrite this function's
11275 introductory comment. Remove code using get_module_name
11276 to get the DLL's name.
11278 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11280 * windows-nat.c (get_windows_debug_event): Ignore
11281 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11282 if windows_initialization_done == 0.
11283 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11284 Adjust implementation to always load all DLLs.
11285 (do_initial_windows_stuff): Replace call to
11286 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11288 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11290 * windows-nat.c (_initialize_windows_nat): Deprecate the
11291 "dll-symbols" command. Turn the "add-shared-symbol-files"
11292 and "assf" aliases into commands, and deprecate them as well.
11293 * NEWS: Add entry explaining that "dll-symbols" and its two
11294 aliases are now deprecated.
11296 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11298 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11299 new-line in debug string. Remove trailing spaces.
11301 2014-02-19 Stan Shebs <stan@codesourcery.com>
11303 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11305 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11307 * NEWS: Add entry for the new feature
11308 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11311 2014-02-19 Stan Shebs <stan@codesourcery.com>
11313 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11315 2014-02-19 Pedro Alves <palves@redhat.com>
11317 * common/ptid.h (struct ptid): Mention that process_stratum
11318 targets should prefer ptid.lwp.
11320 2014-02-19 Pedro Alves <palves@redhat.com>
11322 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11323 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11324 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11325 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11326 store remote thread ids rather than ptid.tid.
11327 (_initialize_remote): Adjust.
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11331 * target.c (target_get_unwinder): Rewrite.
11332 (target_get_tailcall_unwinder): Rewrite.
11333 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11334 (record_btrace_to_get_tailcall_unwinder): New function.
11335 (init_record_btrace_ops): Update.
11336 * target.h (struct target_ops) <to_get_unwinder,
11337 to_get_tailcall_unwinder>: Now function pointers. Use
11338 TARGET_DEFAULT_RETURN.
11340 2014-02-19 Tom Tromey <tromey@redhat.com>
11342 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11344 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11348 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11350 * target-delegates.c: Rebuild.
11351 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11352 TARGET_DEFAULT_FUNC.
11353 * target.c (default_target_decr_pc_after_break): Rename from
11354 forward_target_decr_pc_after_break. Simplify.
11355 (target_decr_pc_after_break): Rely on delegation.
11357 2014-02-19 Tom Tromey <tromey@redhat.com>
11359 * target.c (update_current_target): Do not INHERIT to_doc or
11360 to_magic. Do not de_fault to_open or to_close.
11362 2014-02-19 Tom Tromey <tromey@redhat.com>
11364 * gcore.h (objfile_find_memory_regions): Declare.
11365 * gcore.c (objfile_find_memory_regions): No longer static. Add
11367 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11368 * exec.c: Include gcore.h.
11369 (exec_set_find_memory_regions): Remove.
11370 (exec_find_memory_regions): Remove.
11371 (exec_do_find_memory_regions): Remove.
11372 (init_exec_ops): Update.
11373 * defs.h (exec_set_find_memory_regions): Remove.
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11377 * target-delegates.c: Rebuild.
11378 * target.h (struct target_ops) <to_extra_thread_info,
11379 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11380 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11381 not 0, in TARGET_DEFAULT_RETURN.
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11385 * target.c (complete_target_initialization): Remove casts. Use
11386 return_zero_has_execution.
11387 (return_zero): Add "ignore" argument.
11388 (return_zero_has_execution): New function.
11389 (init_dummy_target): Remove casts. Use
11390 return_zero_has_execution.
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11394 * target.c (update_current_target): Update comments. Do not
11395 INHERIT to_stratum.
11397 2014-02-19 Tom Tromey <tromey@redhat.com>
11399 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11401 * corelow.c (core_read_description): Delegate when needed.
11402 * remote.c (remote_read_description): Delegate when needed.
11403 * target-delegates.c: Rebuild.
11404 * target.c (target_read_description): Rewrite.
11405 * target.h (struct target_ops) <to_read_description>: Update
11406 comment. Use TARGET_DEFAULT_RETURN.
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11410 * target-delegates.c: Rebuild.
11411 * target.c (update_current_target): Don't inherit or default
11413 (find_default_run_target): Check against delegate_can_run.
11414 * target.h (struct target_ops) <to_can_run>: Use
11415 TARGET_DEFAULT_RETURN.
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11419 * target-delegates.c: Rebuild.
11420 * target.c (target_disconnect): Unconditionally delegate.
11421 * target.h (struct target_ops) <to_disconnect>: Use
11422 TARGET_DEFAULT_NORETURN.
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11426 * record.c (record_stop): Unconditionally delegate.
11427 * target-delegates.c: Rebuild.
11428 * target.c (target_stop_recording): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_stop_recording>: Use
11430 TARGET_DEFAULT_IGNORE.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (target_enable_btrace): Unconditionally delegate.
11436 * target.h (struct target_ops) <to_enable_btrace>: Use
11437 TARGET_DEFAULT_NORETURN.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target-delegates.c: Rebuild.
11442 * target.c (target_read_btrace): Unconditionally delegate.
11443 * target.h (struct target_ops) <to_read_btrace>: Use
11444 TARGET_DEFAULT_NORETURN.
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11448 * target-delegates.c: Rebuild.
11449 * target.c (target_teardown_btrace): Unconditionally delegate.
11450 * target.h (struct target_ops) <to_teardown_btrace>: Use
11451 TARGET_DEFAULT_NORETURN.
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target-delegates.c: Rebuild.
11456 * target.c (target_disable_btrace): Unconditionally delegate.
11457 * target.h (struct target_ops) <to_disable_btrace>: Use
11458 TARGET_DEFAULT_NORETURN.
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11462 * target-delegates.c: Rebuild.
11463 * target.c (default_search_memory): New function.
11464 (simple_search_memory): Update comment.
11465 (target_search_memory): Unconditionally delegate.
11466 * target.h (struct target_ops) <to_search_memory>: Use
11467 TARGET_DEFAULT_FUNC.
11469 2014-02-19 Tom Tromey <tromey@redhat.com>
11471 * auxv.c (default_auxv_parse): No longer static.
11472 (target_auxv_parse): Unconditionally delegate.
11473 * auxv.h (default_auxv_parse): Declare.
11474 * target-delegates.c: Rebuild.
11475 * target.c: Include auxv.h.
11476 * target.h (struct target_ops) <to_auxv_parse>: Use
11477 TARGET_DEFAULT_FUNC.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.c (target_memory_map): Unconditionally delegate.
11483 * target.h (struct target_ops) <to_memory_map>: Use
11484 TARGET_DEFAULT_RETURN.
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11488 * target-delegates.c: Rebuild.
11489 * target.c (target_thread_alive): Unconditionally delegate.
11490 * target.h (struct target_ops) <to_thread_alive>: Use
11491 TARGET_DEFAULT_RETURN.
11493 2014-02-19 Tom Tromey <tromey@redhat.com>
11495 * target-delegates.c: Rebuild.
11496 * target.c (target_save_record): Unconditionally delegate.
11497 * target.h (struct target_ops) <to_save_record>: Use
11498 TARGET_DEFAULT_NORETURN.
11500 2014-02-19 Tom Tromey <tromey@redhat.com>
11502 * target-delegates.c: Rebuild.
11503 * target.c (target_delete_record): Unconditionally delegate.
11504 * target.h (struct target_ops) <to_delete_record>: Use
11505 TARGET_DEFAULT_NORETURN.
11507 2014-02-19 Tom Tromey <tromey@redhat.com>
11509 * target-delegates.c: Rebuild.
11510 * target.c (target_record_is_replaying): Unconditionally
11512 * target.h (struct target_ops) <to_record_is_replaying>: Use
11513 TARGET_DEFAULT_RETURN.
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11517 * target-delegates.c: Rebuild.
11518 * target.c (target_goto_record_begin): Unconditionally delegate.
11519 * target.h (struct target_ops) <to_goto_record_begin>: Use
11520 TARGET_DEFAULT_NORETURN.
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11524 * target-delegates.c: Rebuild.
11525 * target.c (target_goto_record_end): Unconditionally delegate.
11526 * target.h (struct target_ops) <to_goto_record_end>: Use
11527 TARGET_DEFAULT_NORETURN.
11529 2014-02-19 Tom Tromey <tromey@redhat.com>
11531 * target-delegates.c: Rebuild.
11532 * target.c (target_goto_record): Unconditionally delegate.
11533 * target.h (struct target_ops) <to_goto_record>: Use
11534 TARGET_DEFAULT_NORETURN.
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11538 * target-delegates.c: Rebuild.
11539 * target.c (target_insn_history): Unconditionally delegate.
11540 * target.h (struct target_ops) <to_insn_history>: Use
11541 TARGET_DEFAULT_NORETURN.
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11545 * target-delegates.c: Rebuild.
11546 * target.c (target_insn_history_from): Unconditionally delegate.
11547 * target.h (struct target_ops) <to_insn_history_from>: Use
11548 TARGET_DEFAULT_NORETURN.
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11552 * target-delegates.c: Rebuild.
11553 * target.c (target_insn_history_range): Unconditionally delegate.
11554 * target.h (struct target_ops) <to_insn_history_range>: Use
11555 TARGET_DEFAULT_NORETURN.
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11559 * target-delegates.c: Rebuild.
11560 * target.c (target_call_history): Unconditionally delegate.
11561 * target.h (struct target_ops) <to_call_history>: Use
11562 TARGET_DEFAULT_NORETURN.
11564 2014-02-19 Tom Tromey <tromey@redhat.com>
11566 * target-delegates.c: Rebuild.
11567 * target.c (target_call_history_from): Unconditionally delegate.
11568 * target.h (struct target_ops) <to_call_history_from>: Use
11569 TARGET_DEFAULT_NORETURN.
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11573 * target-delegates.c: Rebuild.
11574 * target.c (target_call_history_range): Unconditionally delegate.
11575 * target.h (struct target_ops) <to_call_history_range>: Use
11576 TARGET_DEFAULT_NORETURN.
11578 2014-02-19 Tom Tromey <tromey@redhat.com>
11580 * target-delegates.c: Rebuild.
11581 * target.c (target_verify_memory): Unconditionally delegate.
11582 * target.h (struct target_ops) <to_verify_memory>: Use
11583 TARGET_DEFAULT_NORETURN.
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11587 * target-delegates.c: Rebuild.
11588 * target.c (target_core_of_thread): Unconditionally delegate.
11589 * target.h (struct target_ops) <to_core_of_thread>: Use
11590 TARGET_DEFAULT_RETURN.
11592 2014-02-19 Tom Tromey <tromey@redhat.com>
11594 * target-delegates.c: Rebuild.
11595 * target.c (target_flash_done): Unconditionally delegate.
11596 * target.h (struct target_ops) <to_flash_done>: Use
11597 TARGET_DEFAULT_NORETURN.
11599 2014-02-19 Tom Tromey <tromey@redhat.com>
11601 * target-delegates.c: Rebuild.
11602 * target.c (target_flash_erase): Unconditionally delegate.
11603 * target.h (struct target_ops) <to_flash_erase>: Use
11604 TARGET_DEFAULT_NORETURN.
11606 2014-02-19 Tom Tromey <tromey@redhat.com>
11608 * target-delegates.c: Rebuild.
11609 * target.c (target_get_section_table): Unconditionally delegate.
11610 * target.h (struct target_ops) <to_get_section_table>: Use
11611 TARGET_DEFAULT_RETURN.
11613 2014-02-19 Tom Tromey <tromey@redhat.com>
11615 * target-delegates.c: Rebuild.
11616 * target.c (target_pid_to_str): Unconditionally delegate.
11617 (init_dummy_target): Don't initialize to_pid_to_str.
11618 (default_pid_to_str): Rename from dummy_pid_to_str.
11619 * target.h (struct target_ops) <to_pid_to_str>: Use
11620 TARGET_DEFAULT_FUNC.
11622 2014-02-19 Tom Tromey <tromey@redhat.com>
11624 * target-delegates.c: Rebuild.
11625 * target.c (target_find_new_threads): Unconditionally delegate.
11626 * target.h (struct target_ops) <to_find_new_threads>: Use
11627 TARGET_DEFAULT_RETURN.
11629 2014-02-19 Tom Tromey <tromey@redhat.com>
11631 * target-delegates.c: Rebuild.
11632 * target.c (target_program_signals): Unconditionally delegate.
11633 * target.h (struct target_ops) <to_program_signals>: Use
11634 TARGET_DEFAULT_IGNORE.
11636 2014-02-19 Tom Tromey <tromey@redhat.com>
11638 * target-delegates.c: Rebuild.
11639 * target.c (target_pass_signals): Unconditionally delegate.
11640 * target.h (struct target_ops) <to_pass_signals>: Use
11641 TARGET_DEFAULT_IGNORE.
11643 2014-02-19 Tom Tromey <tromey@redhat.com>
11645 * target-delegates.c: Rebuild.
11646 * target.c (default_mourn_inferior): New function.
11647 (target_mourn_inferior): Unconditionally delegate.
11648 * target.h (struct target_ops) <to_mourn_inferior>: Use
11649 TARGET_DEFAULT_FUNC.
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target-delegates.c: Rebuild.
11654 * target.c (default_follow_fork): New function.
11655 (target_follow_fork): Unconditionally delegate.
11656 * target.h (struct target_ops) <to_follow_fork>: Use
11657 TARGET_DEFAULT_FUNC.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target-delegates.c: Rebuild.
11662 * target.c (target_kill): Unconditionally delegate.
11663 * target.h (struct target_ops) <to_kill>: Use
11664 TARGET_DEFAULT_NORETURN.
11666 2014-02-19 Tom Tromey <tromey@redhat.com>
11668 * target-delegates.c: Rebuild.
11669 * target.c (target_masked_watch_num_registers): Unconditionally
11671 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11672 Use TARGET_DEFAULT_RETURN.
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11676 * target-delegates.c: Rebuild.
11677 * target.c (target_remove_mask_watchpoint): Unconditionally
11679 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11680 TARGET_DEFAULT_RETURN.
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11684 * target-delegates.c: Rebuild.
11685 * target.c (target_insert_mask_watchpoint): Unconditionally
11687 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11688 TARGET_DEFAULT_RETURN.
11690 2014-02-19 Tom Tromey <tromey@redhat.com>
11692 * target-delegates.c: Rebuild.
11693 * target.c (target_ranged_break_num_registers): Unconditionally
11695 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11696 Use TARGET_DEFAULT_RETURN.
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target-delegates.c: Rebuild.
11701 * target.c (target_fetch_registers): Unconditionally delegate.
11702 * target.h (struct target_ops) <to_fetch_registers>: Use
11703 TARGET_DEFAULT_NORETURN.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11710 * target.h (struct target_ops) <to_stop>: Use
11711 TARGET_DEFAULT_IGNORE.
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_can_run_breakpoint_commands.
11718 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11719 Use TARGET_DEFAULT_RETURN.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_supports_evaluation_of_breakpoint_conditions.
11726 * target.h (struct target_ops)
11727 <to_supports_evaluation_of_breakpoint_conditions>: Use
11728 TARGET_DEFAULT_RETURN.
11730 2014-02-19 Tom Tromey <tromey@redhat.com>
11732 * target-delegates.c: Rebuild.
11733 * target.c (update_current_target): Don't inherit or default
11734 to_augmented_libraries_svr4_read.
11735 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11736 Use TARGET_DEFAULT_RETURN.
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11740 * target-delegates.c: Rebuild.
11741 * target.c (update_current_target): Don't inherit or default
11743 * target.h (struct target_ops) <to_can_use_agent>: Use
11744 TARGET_DEFAULT_RETURN.
11746 2014-02-19 Tom Tromey <tromey@redhat.com>
11748 * target-delegates.c: Rebuild.
11749 * target.c (update_current_target): Don't inherit or default
11751 * target.h (struct target_ops) <to_use_agent>: Use
11752 TARGET_DEFAULT_NORETURN.
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11756 * target-delegates.c: Rebuild.
11757 * target.c (update_current_target): Don't inherit or default
11758 to_traceframe_info.
11759 (return_null): Remove.
11760 * target.h (struct target_ops) <to_traceframe_info>: Use
11761 TARGET_DEFAULT_RETURN.
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11765 * target-delegates.c: Rebuild.
11766 * target.c (update_current_target): Don't inherit or default
11767 to_static_tracepoint_markers_by_strid.
11768 * target.h (struct target_ops)
11769 <to_static_tracepoint_markers_by_strid>: Use
11770 TARGET_DEFAULT_NORETURN.
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11774 * target-delegates.c: Rebuild.
11775 * target.c (update_current_target): Don't inherit or default
11776 to_static_tracepoint_marker_at.
11777 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11778 Use TARGET_DEFAULT_RETURN.
11780 2014-02-19 Tom Tromey <tromey@redhat.com>
11782 * target-delegates.c: Rebuild.
11783 * target.c (update_current_target): Don't inherit or default
11784 to_set_permissions.
11785 * target.h (struct target_ops) <to_set_permissions>: Use
11786 TARGET_DEFAULT_IGNORE.
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11790 * target-delegates.c: Rebuild.
11791 * target.c (update_current_target): Don't inherit or default
11792 to_get_tib_address.
11793 * target.h (struct target_ops) <to_get_tib_address>: Use
11794 TARGET_DEFAULT_NORETURN.
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11798 * target-delegates.c: Rebuild.
11799 * target.c (update_current_target): Don't inherit or default
11800 to_set_trace_notes.
11801 * target.h (struct target_ops) <to_set_trace_notes>: Use
11802 TARGET_DEFAULT_RETURN.
11804 2014-02-19 Tom Tromey <tromey@redhat.com>
11806 * target-delegates.c: Rebuild.
11807 * target.c (update_current_target): Don't initialize
11808 to_set_trace_buffer_size.
11809 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11810 TARGET_DEFAULT_IGNORE.
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11814 * target-delegates.c: Rebuild.
11815 * target.c (update_current_target): Don't inherit or default
11816 to_set_circular_trace_buffer.
11817 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11818 TARGET_DEFAULT_IGNORE.
11820 2014-02-19 Tom Tromey <tromey@redhat.com>
11822 * target-delegates.c: Rebuild.
11823 * target.c (update_current_target): Don't inherit or default
11824 to_set_disconnected_tracing.
11825 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11826 TARGET_DEFAULT_IGNORE.
11828 2014-02-19 Tom Tromey <tromey@redhat.com>
11830 * target-delegates.c: Rebuild.
11831 * target.c (update_current_target): Don't inherit or default
11832 to_get_min_fast_tracepoint_insn_len.
11833 (return_minus_one): Remove.
11834 * target.h (struct target_ops)
11835 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11839 * target-delegates.c: Rebuild.
11840 * target.c (update_current_target): Don't inherit or default
11841 to_get_raw_trace_data.
11842 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11843 TARGET_DEFAULT_NORETURN.
11845 2014-02-19 Tom Tromey <tromey@redhat.com>
11847 * target-delegates.c: Rebuild.
11848 * target.c (update_current_target): Don't inherit or default
11849 to_upload_trace_state_variables.
11850 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11851 Use TARGET_DEFAULT_RETURN.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target-delegates.c: Rebuild.
11856 * target.c (update_current_target): Don't inherit or default
11857 to_upload_tracepoints.
11858 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11859 TARGET_DEFAULT_RETURN.
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * target-delegates.c: Rebuild.
11864 * target.c (update_current_target): Don't inherit or default
11865 to_save_trace_data.
11866 * target.h (struct target_ops) <to_save_trace_data>: Use
11867 TARGET_DEFAULT_NORETURN.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * target-delegates.c: Rebuild.
11872 * target.c (update_current_target): Don't inherit or default
11873 to_get_trace_state_variable_value.
11874 * target.h (struct target_ops)
11875 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11879 * target-delegates.c: Rebuild.
11880 * target.c (update_current_target): Don't inherit or default
11882 * target.h (struct target_ops): 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
11889 * target.h (struct target_ops) <to_trace_stop>: Use
11890 TARGET_DEFAULT_NORETURN.
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_tracepoint_status.
11897 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
11905 * target.h (struct target_ops) <to_get_trace_status>: 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 inherit or default
11913 * target.h (struct target_ops) <to_trace_start>: Use
11914 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
11921 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11922 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
11929 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11930 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
11937 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11938 TARGET_DEFAULT_NORETURN.
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11942 * target-delegates.c: Rebuild.
11943 * target.c (update_current_target): Don't inherit or default
11944 to_download_trace_state_variable.
11945 * target.h (struct target_ops) <to_download_trace_state_variable>:
11946 Use TARGET_DEFAULT_NORETURN.
11948 2014-02-19 Tom Tromey <tromey@redhat.com>
11950 * target-delegates.c: Rebuild.
11951 * target.c (update_current_target): Don't inherit or default
11952 to_can_download_tracepoint.
11953 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11954 TARGET_DEFAULT_RETURN.
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11960 to_download_tracepoint.
11961 * target.h (struct target_ops) <to_download_tracepoint>: Use
11962 TARGET_DEFAULT_NORETURN.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target-delegates.c: Rebuild.
11967 * target.c (update_current_target): Don't inherit or default
11969 * target.h (struct target_ops) <to_trace_init>: Use
11970 TARGET_DEFAULT_RETURN.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * target-delegates.c: Rebuild.
11975 * target.c (update_current_target): Don't inherit or default
11976 to_supports_string_tracing.
11977 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11978 TARGET_DEFAULT_RETURN.
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11982 * target-delegates.c: Rebuild.
11983 * target.c (update_current_target): Don't inherit or default
11984 to_supports_enable_disable_tracepoint.
11985 * target.h (struct target_ops)
11986 <to_supports_enable_disable_tracepoint>: Use
11987 TARGET_DEFAULT_RETURN.
11989 2014-02-19 Tom Tromey <tromey@redhat.com>
11991 * target-delegates.c: Rebuild.
11992 * target.c (update_current_target): Don't inherit or default
11993 to_supports_multi_process.
11994 * target.h (struct target_ops) <to_supports_multi_process>: Use
11995 TARGET_DEFAULT_RETURN.
11997 2014-02-19 Tom Tromey <tromey@redhat.com>
11999 * target-delegates.c: Rebuild.
12000 * target.c (update_current_target): Don't inherit or default
12001 to_get_ada_task_ptid.
12002 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12003 TARGET_DEFAULT_FUNC.
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12007 * target-delegates.c: Rebuild.
12008 * target.c (update_current_target): Don't inherit or default
12009 to_thread_architecture.
12010 * target.h (struct target_ops) <to_thread_architecture>: Use
12011 TARGET_DEFAULT_FUNC.
12013 2014-02-19 Tom Tromey <tromey@redhat.com>
12015 * target-delegates.c: Rebuild.
12016 * target.c (update_current_target): Don't inherit or default
12017 to_execution_direction.
12018 * target.h (struct target_ops) <to_execution_direction>: Use
12019 TARGET_DEFAULT_FUNC.
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12023 * target-delegates.c: Rebuild.
12024 * target.c (update_current_target): Don't inherit or default
12025 to_can_execute_reverse.
12026 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12027 TARGET_DEFAULT_RETURN.
12028 (target_can_execute_reverse): Unconditionally delegate.
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12032 * target-delegates.c: Rebuild.
12033 * target.c (update_current_target): Don't inherit or default
12035 (dummy_goto_bookmark): Remove.
12036 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12037 * target.h (struct target_ops) <to_goto_bookmark>: Use
12038 TARGET_DEFAULT_NORETURN.
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12042 * target-delegates.c: Rebuild.
12043 * target.c (update_current_target): Don't inherit or default
12045 (dummy_get_bookmark): Remove.
12046 (init_dummy_target): Don't inherit or default to_get_bookmark.
12047 * target.h (struct target_ops) <to_get_bookmark>: Use
12048 TARGET_DEFAULT_NORETURN
12050 2014-02-19 Tom Tromey <tromey@redhat.com>
12052 * target-delegates.c: Rebuild.
12053 * target.c (update_current_target): Don't inherit or default
12054 to_make_corefile_notes.
12055 (init_dummy_target): Don't initialize to_make_corefile_notes.
12056 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12057 TARGET_DEFAULT_FUNC.
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12061 * target-delegates.c: Rebuild.
12062 * target.c (update_current_target): Don't inherit or default
12063 to_find_memory_regions.
12064 (init_dummy_target): Don't initialize to_find_memory_regions.
12065 * target.h (struct target_ops) <to_find_memory_regions>: Use
12066 TARGET_DEFAULT_FUNC.
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_log_command>: Use
12074 TARGET_DEFAULT_IGNORE.
12075 (target_log_command): Unconditionally delegate.
12077 2014-02-19 Tom Tromey <tromey@redhat.com>
12079 * target-delegates.c: Rebuild.
12080 * target.c (update_current_target): Don't inherit or default
12081 to_pid_to_exec_file.
12082 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12083 TARGET_DEFAULT_RETURN.
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12087 * target-delegates.c: Rebuild.
12088 * target.c (update_current_target): Don't inherit or default
12090 (target_thread_name): Unconditionally delegate.
12091 * target.h (struct target_ops) <to_thread_name>: Use
12092 TARGET_DEFAULT_RETURN.
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12096 * target-delegates.c: Rebuild.
12097 * target.c (update_current_target): Don't inherit or default
12098 to_extra_thread_info.
12099 * target.h (struct target_ops) <to_extra_thread_info>: Use
12100 TARGET_DEFAULT_RETURN.
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12104 * target-delegates.c: Rebuild.
12105 * target.c (update_current_target): Don't inherit or default
12107 * target.h (struct target_ops) <to_has_exited>: Use
12108 TARGET_DEFAULT_RETURN..
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12112 * target-delegates.c: Rebuild.
12113 * target.c (update_current_target): Don't inherit or default
12114 to_set_syscall_catchpoint.
12115 (return_one): Remove.
12116 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12117 TARGET_DEFAULT_RETURN.
12119 2014-02-19 Tom Tromey <tromey@redhat.com>
12121 * target-delegates.c: Rebuild.
12122 * target.c (update_current_target): Don't inherit or default
12123 to_insert_exec_catchpoint.
12124 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12125 TARGET_DEFAULT_RETURN.
12127 2014-01-08 Tom Tromey <tromey@redhat.com>
12129 * target-delegates.c: Rebuild.
12130 * target.c (update_current_target): Don't inherit or default
12131 to_insert_exec_catchpoint.
12132 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12133 TARGET_DEFAULT_RETURN.
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12137 * target-delegates.c: Rebuild.
12138 * target.c (update_current_target): Don't inherit or default
12139 to_remove_vfork_catchpoint.
12140 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12141 TARGET_DEFAULT_RETURN.
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * target-delegates.c: Rebuild.
12146 * target.c (update_current_target): Don't inherit or default
12147 to_insert_vfork_catchpoint.
12148 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12149 TARGET_DEFAULT_RETURN.
12151 2014-02-19 Tom Tromey <tromey@redhat.com>
12153 * target-delegates.c: Rebuild.
12154 * target.c (update_current_target): Don't inherit or default
12155 to_remove_fork_catchpoint.
12156 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12157 TARGET_DEFAULT_RETURN.
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12161 * target-delegates.c: Rebuild.
12162 * target.c (update_current_target): Don't inherit or default
12163 to_insert_fork_catchpoint.
12164 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12165 TARGET_DEFAULT_RETURN.
12167 2014-02-19 Tom Tromey <tromey@redhat.com>
12169 * target-delegates.c: Rebuild.
12170 * target.c (update_current_target): Don't inherit or default
12171 to_post_startup_inferior.
12172 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12173 TARGET_DEFAULT_IGNORE.
12175 2014-02-19 Tom Tromey <tromey@redhat.com>
12177 * target-delegates.c: Rebuild.
12178 * target.c (update_current_target): Don't inherit or default
12180 * target.h (struct target_ops) <to_load>: Use
12181 TARGET_DEFAULT_NORETURN.
12183 2014-02-19 Tom Tromey <tromey@redhat.com>
12185 * target-delegates.c: Rebuild.
12186 * target.c (update_current_target): Don't inherit or default
12188 * target.h (struct target_ops) <to_terminal_info>: Use
12189 TARGET_DEFAULT_FUNC.
12191 2014-02-19 Tom Tromey <tromey@redhat.com>
12193 * target-delegates.c: Rebuild.
12194 * target.c (update_current_target): Don't inherit or default
12195 to_terminal_save_ours.
12196 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12197 TARGET_DEFAULT_IGNORE.
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12201 * target-delegates.c: Rebuild.
12202 * target.c (update_current_target): Don't inherit or default
12204 * target.h (struct target_ops) <to_terminal_ours>: Use
12205 TARGET_DEFAULT_IGNORE.
12207 2014-02-19 Tom Tromey <tromey@redhat.com>
12209 * target-delegates.c: Rebuild.
12210 * target.c (update_current_target): Don't inherit or default
12211 to_terminal_ours_for_output.
12212 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12213 TARGET_DEFAULT_IGNORE.
12215 2014-02-19 Tom Tromey <tromey@redhat.com>
12217 * target-delegates.c: Rebuild.
12218 * target.c (update_current_target): Don't inherit or default
12219 to_terminal_inferior.
12220 * target.h (struct target_ops) <to_terminal_inferior>: Use
12221 TARGET_DEFAULT_IGNORE.
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
12228 * target.h (struct target_ops) <to_terminal_init>: Use
12229 TARGET_DEFAULT_IGNORE.
12231 2014-02-19 Tom Tromey <tromey@redhat.com>
12233 * target-delegates.c: Rebuild.
12234 * target.c (update_current_target): Don't inherit or default
12235 to_can_accel_watchpoint_condition.
12236 * target.h (struct target_ops)
12237 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
12244 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12245 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
12252 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12253 Use TARGET_DEFAULT_FUNC.
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_watchpoint.
12260 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12261 TARGET_DEFAULT_NORETURN.
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_watchpoint.
12268 * target.h (struct target_ops) <to_insert_watchpoint>: 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_remove_hw_breakpoint.
12276 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12277 TARGET_DEFAULT_RETURN.
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
12283 to_insert_hw_breakpoint.
12284 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12285 TARGET_DEFAULT_RETURN.
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
12291 to_can_use_hw_breakpoint.
12292 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12293 TARGET_DEFAULT_RETURN.
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
12300 * target.h (struct target_ops) <to_files_info>: 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_store>: Use
12309 TARGET_DEFAULT_NORETURN.
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
12316 * target.h (struct target_ops) <to_post_attach>: 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
12324 (default_rcmd): New function.
12325 (do_monitor_command): Unconditionally delegate.
12326 * target.h (struct target_ops) <to_rmcd>: Use
12327 TARGET_DEFAULT_FUNC.
12329 2014-02-19 Tom Tromey <tromey@redhat.com>
12331 * target-delegates.c: Rebuild.
12332 * target.c (init_dummy_target): Don't initialize to_attach.
12333 (target_attach): Unconditionally delegate.
12334 * target.h (struct target_ops) <to_attach>: Use
12335 TARGET_DEFAULT_FUNC.
12337 2014-02-19 Tom Tromey <tromey@redhat.com>
12339 * target-delegates.c: Rebuild.
12340 * target.c (target_detach): Unconditionally delegate.
12341 (init_dummy_target): Don't initialize to_detach.
12342 * target.h (struct target_ops) <to_detach>: Use
12343 TARGET_DEFAULT_IGNORE.
12345 2014-02-19 Tom Tromey <tromey@redhat.com>
12347 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12349 (target_augmented_libraries_svr4_read): Add argument.
12350 * target.c (update_current_target): Update.
12351 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12354 2014-02-19 Tom Tromey <tromey@redhat.com>
12356 * target.h (struct target_ops) <to_call_history_range>: Add
12358 * target.c (target_call_history_range): Add argument.
12359 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12361 (record_btrace_call_history_from): Update.
12363 2014-02-19 Tom Tromey <tromey@redhat.com>
12365 * target.h (struct target_ops) <to_call_history_from>: Add
12367 * target.c (target_call_history_from): Add argument.
12368 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12371 2014-02-19 Tom Tromey <tromey@redhat.com>
12373 * target.h (struct target_ops) <to_call_history>: Add argument.
12374 * target.c (target_call_history): Add argument.
12375 * record-btrace.c (record_btrace_call_history): Add 'self'
12378 2014-02-19 Tom Tromey <tromey@redhat.com>
12380 * target.h (struct target_ops) <to_insn_history_range>: Add
12382 * target.c (target_insn_history_range): Add argument.
12383 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12385 (record_btrace_insn_history_from): Update.
12387 2014-02-19 Tom Tromey <tromey@redhat.com>
12389 * target.h (struct target_ops) <to_insn_history_from>: Add
12391 * target.c (target_insn_history_from): Add argument.
12392 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12395 2014-02-19 Tom Tromey <tromey@redhat.com>
12397 * target.h (struct target_ops) <to_insn_history>: Add argument.
12398 * target.c (target_insn_history): Add argument.
12399 * record-btrace.c (record_btrace_insn_history): Add 'self'
12402 2014-02-19 Tom Tromey <tromey@redhat.com>
12404 * target.h (struct target_ops) <to_goto_record>: Add argument.
12405 * target.c (target_goto_record): Add argument.
12406 * record-full.c (record_full_goto): Add 'self' argument.
12407 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12409 2014-02-19 Tom Tromey <tromey@redhat.com>
12411 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12412 * target.c (target_goto_record_end): Add argument.
12413 * record-full.c (record_full_goto_end): Add 'self' argument.
12414 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12418 * target.h (struct target_ops) <to_goto_record_begin>: Add
12420 * target.c (target_goto_record_begin): Add argument.
12421 * record-full.c (record_full_goto_begin): Add 'self' argument.
12422 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12425 2014-02-19 Tom Tromey <tromey@redhat.com>
12427 * target.h (struct target_ops) <to_record_is_replaying>: Add
12429 * target.c (target_record_is_replaying): Add argument.
12430 * record-full.c (record_full_is_replaying): Add 'self' argument.
12431 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12433 (record_btrace_xfer_partial, record_btrace_store_registers)
12434 (record_btrace_prepare_to_store, record_btrace_resume)
12435 (record_btrace_wait, record_btrace_decr_pc_after_break)
12436 (record_btrace_find_new_threads, record_btrace_thread_alive):
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12441 * target.h (struct target_ops) <to_delete_record>: Add argument.
12442 * target.c (target_delete_record): Add argument.
12443 * record-full.c (record_full_delete): Add 'self' argument.
12445 2014-02-19 Tom Tromey <tromey@redhat.com>
12447 * target.h (struct target_ops) <to_save_record>: Add argument.
12448 * target.c (target_save_record): Add argument.
12449 * record-full.c (record_full_save): Add 'self' argument.
12450 (record_full_save): Add 'self' argument.
12452 2014-02-19 Tom Tromey <tromey@redhat.com>
12454 * target.h (struct target_ops) <to_info_record>: Add argument.
12455 * target.c (target_info_record): Add argument.
12456 * record.c (info_record_command): Add argument.
12457 * record-full.c (record_full_info): Add 'self' argument.
12458 * record-btrace.c (record_btrace_info): Add 'self' argument.
12460 2014-02-19 Tom Tromey <tromey@redhat.com>
12462 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12463 * target.c (target_stop_recording): Add argument.
12464 * record.c (record_stop): Add argument.
12465 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12468 2014-02-19 Tom Tromey <tromey@redhat.com>
12470 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12471 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12472 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12474 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12475 (_initialize_amd64_linux_nat): Use it.
12476 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12477 (_initialize_i386_linux_nat): Use it.
12479 2014-02-19 Tom Tromey <tromey@redhat.com>
12481 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12482 * target.c (target_teardown_btrace): Add argument.
12483 * remote.c (remote_teardown_btrace): Add 'self' argument.
12484 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12486 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12489 2014-02-19 Tom Tromey <tromey@redhat.com>
12491 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12492 * target.c (target_disable_btrace): Add argument.
12493 * remote.c (remote_disable_btrace): Add 'self' argument.
12494 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12496 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12501 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12502 * target.c (target_enable_btrace): Add argument.
12503 * remote.c (remote_enable_btrace): Add 'self' argument.
12504 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12506 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12509 2014-02-19 Tom Tromey <tromey@redhat.com>
12511 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12512 (target_can_use_agent): Add argument.
12513 * target.c (update_current_target): Update.
12514 * remote.c (remote_can_use_agent): Add 'self' argument.
12515 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12517 2014-02-19 Tom Tromey <tromey@redhat.com>
12519 * target.h (struct target_ops) <to_use_agent>: Add argument.
12520 (target_use_agent): Add argument.
12521 * target.c (update_current_target): Update.
12522 * remote.c (remote_use_agent): Add 'self' argument.
12523 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12525 2014-02-19 Tom Tromey <tromey@redhat.com>
12527 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12528 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12529 (target_traceframe_info): Add argument.
12530 * target.c (update_current_target): Update.
12531 * remote.c (remote_traceframe_info): Add 'self' argument.
12532 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12534 2014-02-19 Tom Tromey <tromey@redhat.com>
12536 * target.h (target_static_tracepoint_markers_by_strid): Add
12538 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12540 * target.c (update_current_target): Update.
12541 * remote.c (struct target_ops)
12542 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12543 * linux-nat.c (struct target_ops)
12544 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12546 2014-02-19 Tom Tromey <tromey@redhat.com>
12548 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12550 (target_static_tracepoint_marker_at): Add argument.
12551 * target.c (update_current_target): Update.
12552 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12555 2014-02-19 Tom Tromey <tromey@redhat.com>
12557 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12558 (target_set_permissions): Add argument.
12559 * target.c (update_current_target): Update.
12560 * remote.c (remote_set_permissions): Add 'self' argument.
12561 (remote_start_remote): Update.
12563 2014-02-19 Tom Tromey <tromey@redhat.com>
12565 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12566 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12567 (target_get_tib_address): Add argument.
12568 * target.c (update_current_target): Update.
12569 * remote.c (remote_get_tib_address): Add 'self' argument.
12571 2014-02-19 Tom Tromey <tromey@redhat.com>
12573 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12574 (target_set_trace_notes): Add argument.
12575 * target.c (update_current_target): Update.
12576 * remote.c (remote_set_trace_notes): Add 'self' argument.
12578 2014-02-19 Tom Tromey <tromey@redhat.com>
12580 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12582 (target_set_trace_buffer_size): Add argument.
12583 * target.c (update_current_target): Update.
12584 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12586 2014-02-19 Tom Tromey <tromey@redhat.com>
12588 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12590 (target_set_circular_trace_buffer): Add argument.
12591 * target.c (update_current_target): Update.
12592 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12595 2014-02-19 Tom Tromey <tromey@redhat.com>
12597 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12599 (target_set_disconnected_tracing): Add argument.
12600 * target.c (update_current_target): Update.
12601 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12603 2014-02-19 Tom Tromey <tromey@redhat.com>
12605 * target.h (struct target_ops)
12606 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12607 (target_get_min_fast_tracepoint_insn_len): Add argument.
12608 * target.c (update_current_target): Update.
12609 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12612 2014-02-19 Tom Tromey <tromey@redhat.com>
12614 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12616 (target_get_raw_trace_data): Add argument.
12617 * target.c (update_current_target): Update.
12618 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12620 2014-02-19 Tom Tromey <tromey@redhat.com>
12622 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12624 (target_upload_trace_state_variables): Add argument.
12625 * target.c (update_current_target): Update.
12626 * remote.c (remote_upload_trace_state_variables): Add 'self'
12628 (remote_start_remote): Update.
12630 2014-02-19 Tom Tromey <tromey@redhat.com>
12632 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12634 (target_upload_tracepoints): Add argument.
12635 * target.c (update_current_target): Update.
12636 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12637 (remote_start_remote): Update.
12639 2014-02-19 Tom Tromey <tromey@redhat.com>
12641 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12642 (target_save_trace_data): Add argument.
12643 * target.c (update_current_target): Update.
12644 * remote.c (remote_save_trace_data): Add 'self' argument.
12646 2014-02-19 Tom Tromey <tromey@redhat.com>
12648 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12650 * target.h (struct target_ops)
12651 <to_get_trace_state_variable_value>: Add argument.
12652 (target_get_trace_state_variable_value): Add argument.
12653 * target.c (update_current_target): Update.
12654 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12656 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12658 2014-02-19 Tom Tromey <tromey@redhat.com>
12660 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12661 * target.h (struct target_ops) <to_trace_find>: Add argument.
12662 (target_trace_find): Add argument.
12663 * target.c (update_current_target): Update.
12664 * remote.c (remote_trace_find): Add 'self' argument.
12665 * ctf.c (ctf_trace_find): Add 'self' argument.
12667 2014-02-19 Tom Tromey <tromey@redhat.com>
12669 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12670 (target_trace_stop): Add argument.
12671 * target.c (update_current_target): Update.
12672 * remote.c (remote_trace_stop): Add 'self' argument.
12674 2014-02-19 Tom Tromey <tromey@redhat.com>
12676 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12677 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12679 (target_get_tracepoint_status): Add argument.
12680 * target.c (update_current_target): Update.
12681 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12683 2014-02-19 Tom Tromey <tromey@redhat.com>
12685 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12686 * target.h (struct target_ops) <to_get_trace_status>: Add
12688 (target_get_trace_status): Add argument.
12689 * target.c (update_current_target): Update.
12690 * remote.c (remote_get_trace_status): Add 'self' argument.
12691 (remote_start_remote, remote_can_download_tracepoint): Update.
12692 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12694 2014-02-19 Tom Tromey <tromey@redhat.com>
12696 * target.h (struct target_ops) <to_trace_start>: Add argument.
12697 (target_trace_start): Add argument.
12698 * target.c (update_current_target): Update.
12699 * remote.c (remote_trace_start): Add 'self' argument.
12701 2014-02-19 Tom Tromey <tromey@redhat.com>
12703 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12705 (target_trace_set_readonly_regions): Add argument.
12706 * target.c (update_current_target): Update.
12707 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12710 2014-02-19 Tom Tromey <tromey@redhat.com>
12712 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12714 (target_disable_tracepoint): Add argument.
12715 * target.c (update_current_target): Update.
12716 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12718 2014-02-19 Tom Tromey <tromey@redhat.com>
12720 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12722 (target_enable_tracepoint): Add argument.
12723 * target.c (update_current_target): Update.
12724 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12726 2014-02-19 Tom Tromey <tromey@redhat.com>
12728 * target.h (struct target_ops) <to_download_trace_state_variable>:
12730 (target_download_trace_state_variable): Add argument.
12731 * target.c (update_current_target): Update.
12732 * remote.c (remote_download_trace_state_variable): Add 'self'
12735 2014-02-19 Tom Tromey <tromey@redhat.com>
12737 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12739 (target_can_download_tracepoint): Add argument.
12740 * target.c (update_current_target): Update.
12741 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12743 2014-02-19 Tom Tromey <tromey@redhat.com>
12745 * target.h (struct target_ops) <to_download_tracepoint>: Add
12747 (target_download_tracepoint): Add argument.
12748 * target.c (update_current_target): Update.
12749 * remote.c (remote_download_tracepoint): Add 'self' argument.
12751 2014-02-19 Tom Tromey <tromey@redhat.com>
12753 * target.h (struct target_ops) <to_trace_init>: Add argument.
12754 (target_trace_init): Add argument.
12755 * target.c (update_current_target): Update.
12756 * remote.c (remote_trace_init): Add 'self' argument.
12758 2014-02-19 Tom Tromey <tromey@redhat.com>
12760 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12761 * target.c (target_fileio_readlink): Add argument.
12762 * remote.c (remote_hostio_readlink): Add 'self' argument.
12763 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12765 2014-02-19 Tom Tromey <tromey@redhat.com>
12767 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12768 * target.c (target_fileio_unlink): Add argument.
12769 * remote.c (remote_hostio_unlink): Add 'self' argument.
12770 (remote_file_delete): Update.
12771 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12773 2014-02-19 Tom Tromey <tromey@redhat.com>
12775 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12776 * target.c (target_fileio_close): Add argument.
12777 * remote.c (remote_hostio_close): Add 'self' argument.
12778 (remote_hostio_close_cleanup): Update.
12779 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12781 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12783 2014-02-19 Tom Tromey <tromey@redhat.com>
12785 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12786 * target.c (target_fileio_pread): Add argument.
12787 * remote.c (remote_hostio_pread): Add 'self' argument.
12788 (remote_bfd_iovec_pread, remote_file_get): Update.
12789 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12791 2014-02-19 Tom Tromey <tromey@redhat.com>
12793 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12794 * target.c (target_fileio_pwrite): Add argument.
12795 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12796 (remote_file_put): Update.
12797 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12799 2014-02-19 Tom Tromey <tromey@redhat.com>
12801 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12802 * target.c (target_fileio_open): Add argument.
12803 * remote.c (remote_hostio_open): Add 'self' argument.
12804 (remote_bfd_iovec_open): Add 'self' argument.
12805 (remote_file_put): Add 'self' argument.
12806 (remote_file_get): Add 'self' argument.
12807 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12809 2014-02-19 Tom Tromey <tromey@redhat.com>
12811 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12813 (target_can_run_breakpoint_commands): Add argument.
12814 * target.c (update_current_target): Update.
12815 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12817 (remote_insert_breakpoint): Add 'self' argument.
12818 (remote_insert_hw_breakpoint): Add 'self' argument.
12819 (remote_can_run_breakpoint_commands): Add 'self' argument.
12821 2014-02-19 Tom Tromey <tromey@redhat.com>
12823 * target.h (struct target_ops)
12824 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12825 (target_supports_evaluation_of_breakpoint_conditions): Add
12827 * target.c (update_current_target): Update.
12828 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12830 (remote_insert_breakpoint): Add 'self' argument.
12831 (remote_insert_hw_breakpoint): Add 'self' argument.
12832 (remote_supports_cond_breakpoints): Add 'self' argument.
12834 2014-02-19 Tom Tromey <tromey@redhat.com>
12836 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12838 (target_supports_string_tracing): Add argument.
12839 * target.c (update_current_target): Update.
12840 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12842 2014-02-19 Tom Tromey <tromey@redhat.com>
12844 * target.h (struct target_ops)
12845 <to_supports_disable_randomization>: Add argument.
12846 * target.c (find_default_supports_disable_randomization): Add
12848 (target_supports_disable_randomization): Add argument.
12849 (find_default_supports_disable_randomization): Add 'self'
12851 * remote.c (extended_remote_supports_disable_randomization): Add
12853 (remote_supports_disable_randomization): Add 'self' argument.
12854 (extended_remote_create_inferior): Update.
12855 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12858 2014-02-19 Tom Tromey <tromey@redhat.com>
12860 * target.h (struct target_ops)
12861 <to_supports_enable_disable_tracepoint>: Add argument.
12862 (target_supports_enable_disable_tracepoint): Add argument.
12863 * target.c (update_current_target): Update.
12864 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12867 2014-02-19 Tom Tromey <tromey@redhat.com>
12869 * target.h (struct target_ops) <to_supports_multi_process>: Add
12871 (target_supports_multi_process): Add argument.
12872 * target.c (update_current_target): Update.
12873 * remote.c (remote_supports_multi_process): Add 'self' argument.
12874 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12876 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12879 2014-02-19 Tom Tromey <tromey@redhat.com>
12881 * target.h (struct target_ops) <to_execution_direction>: Add
12883 (target_execution_direction): Add argument.
12884 * target.c (default_execution_direction): Add 'self' argument.
12885 * record-full.c (record_full_execution_direction): Add 'self'
12888 2014-02-19 Tom Tromey <tromey@redhat.com>
12890 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12892 (target_can_execute_reverse): Add argument.
12893 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12894 * record-full.c (record_full_can_execute_reverse): Add 'self'
12896 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12899 2014-02-19 Tom Tromey <tromey@redhat.com>
12901 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12902 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12904 (target_get_ada_task_ptid): Add argument.
12905 * target.c (update_current_target): Update.
12906 (default_get_ada_task_ptid): Add 'self' argument.
12907 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12908 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12909 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12911 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12913 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12915 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12917 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12918 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12921 2014-02-19 Tom Tromey <tromey@redhat.com>
12923 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12924 (target_goto_bookmark): Add argument.
12925 * target.c (dummy_goto_bookmark): Add 'self' argument.
12926 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12928 2014-02-19 Tom Tromey <tromey@redhat.com>
12930 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12931 (target_get_bookmark): Add argument.
12932 * target.c (dummy_get_bookmark): Add 'self' argument.
12933 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12935 2014-02-19 Tom Tromey <tromey@redhat.com>
12937 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12939 (target_make_corefile_notes): Add argument.
12940 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12941 * procfs.c (procfs_make_note_section): Add 'self' argument.
12942 (procfs_make_note_section): Add 'self' argument.
12943 (procfs_make_note_section): Add 'self' argument.
12944 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12946 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12947 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12948 * exec.c (exec_make_note_section): Add 'self' argument.
12949 (exec_make_note_section): Add 'self' argument.
12951 2014-02-19 Tom Tromey <tromey@redhat.com>
12953 * target.h (struct target_ops) <to_find_memory_regions>: Add
12955 (target_find_memory_regions): Add argument.
12956 * target.c (dummy_find_memory_regions): Add 'self' argument.
12957 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12958 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12959 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12960 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12961 * exec. (exec_do_find_memory_regions): New global.
12962 (exec_set_find_memory_regions): Rewrite.
12963 (exec_find_memory_regions): New function.
12964 (init_exec_ops): Use exec_find_memory_regions.
12966 2014-02-19 Tom Tromey <tromey@redhat.com>
12968 * target.h (struct target_ops) <to_supports_non_stop>: Add
12970 * target.c (find_default_supports_non_stop): Add argument.
12971 (target_supports_non_stop): Add argument.
12972 (find_default_supports_non_stop): Add 'self' argument.
12973 * remote.c (remote_supports_non_stop): Add 'self' argument.
12974 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12976 2014-02-19 Tom Tromey <tromey@redhat.com>
12978 * target.h (struct target_ops) <to_log_command>: Add argument.
12979 (target_log_command): Add argument.
12980 * serial.h (serial_log_command): Add 'self' argument.
12981 * serial.c (serial_log_command): Add 'self' argument.
12983 2014-02-19 Tom Tromey <tromey@redhat.com>
12985 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12986 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12988 (target_pid_to_exec_file): Add argument.
12989 * target.c (debug_to_pid_to_exec_file): Add argument.
12990 (update_current_target): Update.
12991 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12992 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12993 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12994 (linux_handle_extended_wait): Update.
12995 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12996 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12997 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12998 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13000 2014-02-19 Tom Tromey <tromey@redhat.com>
13002 * target.h (struct target_ops) <to_rcmd>: Add argument.
13003 (target_rcmd): Add argument.
13004 * target.c (debug_to_rcmd): Add argument.
13005 (update_current_target, do_monitor_command): Update.
13006 * remote.c (remote_rcmd): Add 'self' argument.
13007 * monitor.c (monitor_rcmd): Add 'self' argument.
13009 2014-02-19 Tom Tromey <tromey@redhat.com>
13011 * windows-nat.c (windows_stop): Add 'self' argument.
13012 * target.h (struct target_ops) <to_stop>: Add argument.
13013 * target.c (target_stop): Add argument.
13014 (debug_to_stop): Add argument.
13015 (update_current_target): Update.
13016 * remote.c (remote_stop): Add 'self' argument.
13017 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13018 (gdbsim_cntrl_c): Update.
13019 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13020 * procfs.c (procfs_stop): Add 'self' argument.
13021 * nto-procfs.c (procfs_stop): Add 'self' argument.
13022 * monitor.c (monitor_stop): Add 'self' argument.
13023 (monitor_open): Update.
13024 * linux-nat.c (linux_nat_stop): Add argument.
13025 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13026 * gnu-nat.c (gnu_stop): Add 'self' argument.
13027 * darwin-nat.c (darwin_stop): Add 'self' argument.
13029 2014-02-19 Tom Tromey <tromey@redhat.com>
13031 * target.h (struct target_ops) <to_thread_name>: Add argument.
13032 * target.c (target_thread_name): Add argument.
13033 (update_current_target): Update.
13034 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13036 2014-02-19 Tom Tromey <tromey@redhat.com>
13038 * target.h (struct target_ops) <to_extra_thread_info>: Add
13040 (target_extra_thread_info): Add argument.
13041 * target.c (update_current_target): Update.
13042 * remote.c (remote_threads_extra_info): Add 'self' argument.
13043 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13045 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13046 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13047 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13049 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13051 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13053 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13056 2014-02-19 Tom Tromey <tromey@redhat.com>
13058 * target.h (struct target_ops) <to_program_signals>: Add argument.
13059 * target.c (target_program_signals): Add argument.
13060 * remote.c (remote_program_signals): Add 'self' argument.
13062 2014-02-19 Tom Tromey <tromey@redhat.com>
13064 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13065 * target.c (target_pass_signals): Add argument.
13066 * remote.c (remote_pass_signals): Add 'self' argument.
13067 (remote_start_remote): Update.
13068 * procfs.c (procfs_pass_signals): Add 'self' argument.
13069 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13070 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13071 (linux_nat_create_inferior, linux_nat_attach): Update.
13073 2014-02-19 Tom Tromey <tromey@redhat.com>
13075 * windows-nat.c (windows_can_run): Add 'self' argument.
13076 * target.h (struct target_ops) <to_can_run>: Add argument.
13077 (target_can_run): Add argument.
13078 * target.c (debug_to_can_run): Add argument.
13079 (update_current_target): Update.
13080 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13081 * inf-child.c (inf_child_can_run): Add 'self' argument.
13082 * go32-nat.c (go32_can_run): Add 'self' argument.
13084 2014-02-19 Tom Tromey <tromey@redhat.com>
13086 * target.h (struct target_ops) <to_has_exited>: Add argument.
13087 (target_has_exited): Add argument.
13088 * target.c (debug_to_has_exited): Add argument.
13089 (update_current_target): Update.
13091 2014-02-19 Tom Tromey <tromey@redhat.com>
13093 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13095 (target_set_syscall_catchpoint): Add argument.
13096 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13098 * target.c (update_current_target): Update.
13100 2014-02-19 Tom Tromey <tromey@redhat.com>
13102 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13104 (target_remove_exec_catchpoint): Add argument.
13105 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13106 (update_current_target): Update.
13107 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13110 2014-02-19 Tom Tromey <tromey@redhat.com>
13112 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13114 (target_insert_exec_catchpoint): Add argument.
13115 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13116 (update_current_target): Update.
13117 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13120 2014-02-19 Tom Tromey <tromey@redhat.com>
13122 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13124 (target_remove_vfork_catchpoint): Add argument.
13125 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13126 (update_current_target): Update.
13127 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13130 2014-02-19 Tom Tromey <tromey@redhat.com>
13132 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13134 (target_insert_vfork_catchpoint): Add argument.
13135 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13136 (update_current_target): Update.
13137 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13140 2014-02-19 Tom Tromey <tromey@redhat.com>
13142 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13144 (target_remove_fork_catchpoint): Add argument.
13145 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13146 (update_current_target): Update.
13147 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13150 2014-02-19 Tom Tromey <tromey@redhat.com>
13152 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13154 (target_insert_fork_catchpoint): Add argument.
13155 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13156 (update_current_target): Update.
13157 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13160 2014-02-19 Tom Tromey <tromey@redhat.com>
13162 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13164 (target_post_startup_inferior): Add argument.
13165 * target.c (debug_to_post_startup_inferior): Add argument.
13166 (update_current_target): Update.
13167 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13169 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13171 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13173 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13175 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13177 (super_post_startup_inferior): Likewise.
13178 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13180 (super_post_startup_inferior): Likewise.
13181 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13182 Add 'self' argument.
13183 (super_post_startup_inferior): Likewise.
13185 2014-02-19 Tom Tromey <tromey@redhat.com>
13187 * target.h (struct target_ops) <to_load>: Add argument.
13188 * target.c (target_load): Add argument.
13189 (debug_to_load): Add argument.
13190 (update_current_target): Update.
13191 * remote.c (remote_load): Add 'self' argument.
13192 * remote-sim.c (gdbsim_load): Add 'self' argument.
13193 * remote-mips.c (mips_load): Add 'self' argument.
13194 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13195 * monitor.c (monitor_load): Add 'self' argument.
13196 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13198 2014-02-19 Tom Tromey <tromey@redhat.com>
13200 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13201 (target_terminal_info): Add argument.
13202 * target.c (debug_to_terminal_info): Add argument.
13203 (default_terminal_info): Likewise.
13204 * inflow.c (child_terminal_info): Add 'self' argument.
13205 * inferior.h (child_terminal_info): Add 'self' argument.
13206 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13208 2014-02-19 Tom Tromey <tromey@redhat.com>
13210 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13212 (target_terminal_save_ours): Add argument.
13213 * target.c (debug_to_terminal_save_ours): Add argument.
13214 (update_current_target): Update.
13215 * inflow.c (terminal_save_ours): Add 'self' argument.
13216 * inferior.h (terminal_save_ours): Add 'self' argument.
13218 2014-02-19 Tom Tromey <tromey@redhat.com>
13220 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13221 (target_terminal_ours): Add argument.
13222 * target.c (debug_to_terminal_ours): Add argument.
13223 (update_current_target): Update.
13224 * remote.c (remote_terminal_ours): Add 'self' argument.
13225 (remote_close): Update.
13226 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13227 * inflow.c (terminal_ours): Add 'self' argument.
13228 * inferior.h (terminal_ours): Add 'self' argument.
13229 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13231 2014-02-19 Pedro Alves <palves@redhat.com>
13232 Tom Tromey <tromey@redhat.com>
13234 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13236 (target_terminal_ours_for_output): Add argument.
13237 * target.c (debug_to_terminal_ours_for_output): Add argument.
13238 (update_current_target): Update.
13239 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13240 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13241 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13243 2014-02-19 Tom Tromey <tromey@redhat.com>
13245 * target.h (struct target_ops) <to_terminal_inferior>: Add
13247 * target.c (target_terminal_inferior): Add argument.
13248 (update_current_target): Update.
13249 * remote.c (remote_terminal_inferior): Add 'self' argument.
13250 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13251 * inflow.c (terminal_inferior): Add 'self' argument.
13252 * inferior.h (terminal_inferior): Add 'self' argument.
13253 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13254 (go32_terminal_inferior): Add 'self' argument.
13256 2014-02-19 Tom Tromey <tromey@redhat.com>
13258 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13259 (target_terminal_init): Add argument.
13260 * target.c (debug_to_terminal_init): Add argument.
13261 (update_current_target): Update.
13262 * inflow.c (terminal_init_inferior): Add 'self' argument.
13263 * inferior.h (terminal_init_inferior): Add 'self' argument.
13264 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13265 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13267 2014-02-19 Tom Tromey <tromey@redhat.com>
13269 * target.h (struct target_ops)
13270 <to_can_accel_watchpoint_condition>: Add argument.
13271 (target_can_accel_watchpoint_condition): Add argument.
13272 * target.c (debug_to_can_accel_watchpoint_condition): Add
13274 (update_current_target): Update.
13275 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13278 2014-02-19 Tom Tromey <tromey@redhat.com>
13280 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13282 (target_region_ok_for_hw_watchpoint): Add argument.
13283 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13284 (default_region_ok_for_hw_watchpoint): Add argument.
13285 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13286 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13288 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13290 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13292 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13294 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13296 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13298 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13299 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13301 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13302 Add 'self' argument.
13304 2014-02-19 Tom Tromey <tromey@redhat.com>
13306 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13308 (target_insert_watchpoint): Add argument.
13309 * target.c (debug_to_insert_watchpoint): Add argument.
13310 (update_current_target): Update.
13311 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13312 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13313 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13314 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13315 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13316 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13318 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13319 (procfs_insert_hw_watchpoint): Add 'self' argument.
13320 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13322 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13324 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13326 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13327 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13329 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13332 2014-02-19 Tom Tromey <tromey@redhat.com>
13334 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13336 (target_remove_watchpoint): Add argument.
13337 * target.c (debug_to_remove_watchpoint): Add argument.
13338 (update_current_target): Update.
13339 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13340 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13341 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13342 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13343 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13344 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13346 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13347 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13349 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13351 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13353 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13354 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13356 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13359 2014-02-19 Tom Tromey <tromey@redhat.com>
13361 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13363 (target_remove_hw_breakpoint): Add argument.
13364 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13365 (update_current_target): Update.
13366 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13367 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13369 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13370 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13372 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13375 2014-02-19 Tom Tromey <tromey@redhat.com>
13377 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13379 (target_insert_hw_breakpoint): Add argument.
13380 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13381 (update_current_target): Update.
13382 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13383 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13385 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13386 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13387 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13389 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13392 2014-02-19 Tom Tromey <tromey@redhat.com>
13394 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13396 (target_can_use_hardware_watchpoint): Add argument.
13397 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13398 (update_current_target): Update.
13399 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13401 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13403 * remote.c (remote_check_watch_resources): Add 'self' argument.
13404 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13405 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13407 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13408 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13410 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13412 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13414 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13416 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13418 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13420 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13421 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13423 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13426 2014-02-19 Tom Tromey <tromey@redhat.com>
13428 * target.h (struct target_ops) <to_post_attach>: Add argument.
13429 (target_post_attach): Add argument.
13430 * target.c (debug_to_post_attach): Add argument.
13431 (update_current_target): Update.
13432 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13433 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13434 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13435 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13436 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13438 2014-02-19 Tom Tromey <tromey@redhat.com>
13440 * windows-nat.c (windows_close): Add 'self' argument.
13441 * tracepoint.c (tfile_close): Add 'self' argument.
13442 * target.h (struct target_ops) <to_close>: Add argument.
13443 * target.c (target_close): Add argument.
13444 (update_current_target): Update.
13445 * remote.c (remote_close): Add 'self' argument.
13446 * remote-sim.c (gdbsim_close): Add 'self' argument.
13447 * remote-mips.c (mips_close): Add 'self' argument.
13448 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13449 * record-full.c (record_full_close): Add 'self' argument.
13450 * record-btrace.c (record_btrace_close): Add 'self' argument.
13451 * monitor.h (monitor_close): Add 'self' argument.
13452 * monitor.c (monitor_close): Add 'self' argument.
13453 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13454 * linux-nat.c (linux_nat_close): Add argument.
13455 * go32-nat.c (go32_close): Add 'self' argument.
13456 * exec.c (exec_close_1): Add 'self' argument.
13457 * ctf.c (ctf_close): Add 'self' argument.
13458 * corelow.c (core_close): Add 'self' argument.
13459 (core_close_cleanup): Update.
13460 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13461 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13463 2014-02-19 Tom Tromey <tromey@redhat.com>
13465 * remote.c (remote_load): New function.
13466 (init_remote_ops): Use it.
13468 2014-02-19 Tom Tromey <tromey@redhat.com>
13470 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13472 * common/linux-btrace.h (linux_supports_btrace): Update.
13473 * remote.c (remote_supports_btrace): Add "self" argument.
13474 * target-delegates.c: Rebuild.
13475 * target.c (target_supports_btrace): Remove.
13476 * target.h (struct target_ops) <to_supports_btrace>: Add
13477 target_ops argument.
13478 (target_supports_btrace): New define.
13480 2014-02-19 Tom Tromey <tromey@redhat.com>
13482 * record-full.c (record_full_beneath_to_resume_ops)
13483 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13484 (record_full_beneath_to_wait)
13485 (record_full_beneath_to_store_registers_ops)
13486 (record_full_beneath_to_store_registers)
13487 (record_full_beneath_to_xfer_partial_ops)
13488 (record_full_beneath_to_xfer_partial)
13489 (record_full_beneath_to_insert_breakpoint_ops)
13490 (record_full_beneath_to_insert_breakpoint)
13491 (record_full_beneath_to_remove_breakpoint_ops)
13492 (record_full_beneath_to_remove_breakpoint)
13493 (record_full_beneath_to_stopped_by_watchpoint)
13494 (record_full_beneath_to_stopped_data_address)
13495 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13496 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13497 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13498 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13499 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13500 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13501 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13502 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13503 (record_full_resume, record_full_wait_1)
13504 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13505 (record_full_store_registers, record_full_xfer_partial)
13506 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13507 (record_full_async, record_full_core_xfer_partial): Use target
13509 * target-delegates.c: Rebuild.
13510 * target.c (current_xfer_partial): Remove.
13511 (update_current_target): Do not INHERIT or de_fault
13512 to_insert_breakpoint, to_remove_breakpoint,
13513 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13514 to_is_async_p, to_async. Do not set to_xfer_partial field.
13515 (default_xfer_partial): Simplify.
13516 (current_xfer_partial): Remove.
13517 (target_wait, target_resume): Simplify.
13518 (find_default_can_async_p, find_default_is_async_p): Update.
13519 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13520 to_xfer_partial, to_stopped_by_watchpoint,
13521 to_stopped_data_address.
13522 (target_store_registers): Simplify.
13523 (forward_target_remove_breakpoint)
13524 (forward_target_insert_breakpoint): Remove.
13525 (target_remove_breakpoint, target_insert_breakpoint)
13526 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13527 * target.h (struct target_ops) <to_resume, to_wait,
13528 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13529 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13530 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13532 (forward_target_remove_breakpoint)
13533 (forward_target_insert_breakpoint): Remove.
13534 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13536 (record_btrace_insert_breakpoint): Delegate directly.
13538 2014-02-19 Tom Tromey <tromey@redhat.com>
13541 * target-delegates.c: New file.
13542 * target.c: Include target-delegates.c.
13543 (init_dummy_target): Call install_dummy_methods.
13544 (complete_target_initialization): Call install_delegators.
13545 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13546 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13547 * make-target-delegates: New file.
13549 2014-02-19 Tom Tromey <tromey@redhat.com>
13551 * record.c (find_record_target): Use find_target_at.
13552 * target.c (find_target_at): New function.
13553 * target.h (find_target_at): Declare.
13555 2014-02-19 Tom Tromey <tromey@redhat.com>
13557 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13558 Add 'ops' argument.
13559 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13561 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13562 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13564 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13566 * linux-nat.c (save_sigtrap): Update.
13567 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13568 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13569 (linux_nat_close): Update.
13570 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13572 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13574 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13575 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13576 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13577 (tmp_to_async): Add 'ops' argument.
13578 (record_full_stopped_by_watchpoint, record_full_async)
13579 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13581 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13582 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13583 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13584 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13585 (remote_is_async_p, remote_async): Add 'ops' argument.
13586 (remote_stopped_data_address): Update.
13587 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13588 * target.c (update_current_target)
13589 (find_default_can_async_p, find_default_is_async_p): Update.
13590 (init_dummy_target): Update.
13591 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13592 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13593 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13594 (target_can_async_p, target_is_async_p, target_async)
13595 (target_stopped_by_watchpoint): Update.
13597 2014-02-19 Yao Qi <yao@codesourcery.com>
13600 * gdbarch.sh: Remove startup_gdbarch.
13601 * gdbarch.c: Regenerated.
13602 * gdbarch.h: Likewise.
13604 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13606 * rl78-tdep.c (rl78_g10_register_name): New function.
13607 (rl78_return_value): Add g10 support.
13608 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13611 2014-02-17 Doug Evans <xdje42@gmail.com>
13613 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13614 (SUBDIR_GUILE_SRCS): Ditto.
13615 (scm-gsmob.o): Ditto.
13617 2014-02-17 Yao Qi <yao@codesourcery.com>
13619 * gnu-nat.c (ILL_RPC): Declare defined function.
13621 2014-02-17 Yao Qi <yao@codesourcery.com>
13623 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13624 mach_msg_type_number_t.
13625 (gnu_write_inferior): Likewise.
13627 2014-02-17 Yao Qi <yao@codesourcery.com>
13629 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13631 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13632 (inf_validate_procs, inf_signal): Likewise.
13633 (S_exception_raise_request): Likewise.
13634 (do_mach_notify_dead_name): Likewise.
13635 (steal_exc_port): Likewise.
13636 (gnu_read_inferior): Change 'copy_count''s type to
13637 mach_msg_type_number_t.
13638 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13641 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13643 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13644 flag. Adjust all users; in particular...
13645 (gnu_wait): ..., don't decrement its value in here...
13646 (gnu_create_inferior): ..., and instead set the flag in here,
13647 around the startup_inferior call, and call that one with
13648 START_INFERIOR_TRAPS_EXPECTED.
13650 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13651 (ILL_RPC): ... new macro.
13652 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13653 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13654 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13655 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13656 functions with ILL_RPC macro.
13657 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13658 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13659 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13660 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13661 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13662 (S_proc_getlogin_reply, S_proc_getsid_reply)
13663 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13664 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13665 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13666 (S_proc_getnports_reply, S_proc_is_important_reply)
13667 (S_proc_get_code_reply): New stub functions, generated with
13670 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13671 collected the type check structures.
13673 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13675 2014-02-14 Doug Evans <dje@google.com>
13677 * target.c (target_write_partial): Fix result type.
13679 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13681 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13682 the proper offsets to access fpregset_t.
13684 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13686 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13687 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13688 * h8300-tdep.c (setmachinelist): Remove global.
13689 * hppa-tdep.c (hppa_sigtramp): Remove global.
13690 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13691 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13692 * ravenscar-thread.c (update_target_observer): Remove global.
13693 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13695 2014-02-12 Tom Tromey <tromey@redhat.com>
13697 * common/rsp-low.c: Update comments.
13698 * common/rsp-low.h: Update comments.
13700 2014-02-12 Tom Tromey <tromey@redhat.com>
13702 * common/rsp-low.c (convert_ascii_to_int): Remove.
13703 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13705 2014-02-12 Tom Tromey <tromey@redhat.com>
13707 * common/rsp-low.h (unhexify): Don't declare.
13708 * common/rsp-low.c (unhexify): Remove.
13710 2014-02-12 Tom Tromey <tromey@redhat.com>
13712 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13713 * common/rsp-low.c (convert_int_to_ascii): Remove.
13715 2014-02-12 Tom Tromey <tromey@redhat.com>
13717 * common/rsp-low.h (hexify): Don't declare.
13718 * common/rsp-low.c (hexify): Remove.
13720 2014-02-12 Tom Tromey <tromey@redhat.com>
13722 * common/rsp-low.c (hexify): Never take strlen of argument.
13724 2014-02-12 Tom Tromey <tromey@redhat.com>
13726 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13727 * remote.c (extended_remote_run, remote_rcmd)
13728 (remote_download_trace_state_variable, remote_save_trace_data)
13729 (remote_set_trace_notes): Update.
13730 * tracepoint.c (encode_source_string, tfile_write_status)
13731 (tfile_write_uploaded_tsv): Update.
13733 2014-02-12 Tom Tromey <tromey@redhat.com>
13735 * tracepoint.c: Include rsp-low.h.
13736 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13737 * remote.c: Include rsp-low.h.
13738 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13739 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13740 (remote_unescape_input): Move to common/rsp-low.c.
13741 * common/rsp-low.h: New file.
13742 * common/rsp-low.c: New file.
13743 * Makefile.in (SFILES): Add common/rsp-low.c.
13744 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13745 (COMMON_OBS): Add rsp-low.o.
13746 (rsp-low.o): New target.
13748 2014-02-12 Tom Tromey <tromey@redhat.com>
13750 * utils.h: Include print-utils.h.
13751 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13752 (int_string, core_addr_to_string, core_addr_to_string_nz)
13753 (hex_string, hex_string_custom): Don't declare.
13754 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13755 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13756 (hex_string_custom, int_string, core_addr_to_string)
13757 (core_addr_to_string_nz, host_address_to_string): Move to
13758 common/print-utils.c.
13759 * common/print-utils.h: New file.
13760 * common/print-utils.c: New file
13761 * Makefile.in (SFILES): Add common/print-utils.c.
13762 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13763 (COMMON_OBS): Add print-utils.o.
13764 (print-utils.o): New target.
13766 2014-02-12 Tom Tromey <tromey@redhat.com>
13768 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13770 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13772 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13774 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13776 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13777 if a PT_IO ptrace request returns sucessfully but indicates that 0
13778 bytes were transferred.
13780 2014-02-12 Pedro Alves <palves@redhat.com>
13781 Kevin Buettner <kevinb@redhat.com>
13783 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13784 TYPE_INSTANCE_FLAG_CODE_SPACE.
13786 2014-02-12 Pedro Alves <palves@redhat.com>
13788 * h8300-tdep.c (pseudo_from_raw_register)
13789 (raw_from_pseudo_register): New functions.
13790 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13793 2014-02-12 Pedro Alves <palves@redhat.com>
13795 * h8300-tdep.c (h8300_register_sim_regno): New function.
13796 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13797 gdbarch_register_sim_regno hook.
13799 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13801 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13803 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13805 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13807 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13809 * obsd-tdep.h (obsd_init_abi): New prototype.
13810 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13811 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13812 (obsd_init_abi): New functions.
13813 * i386obsd-tdep.c: Include "obsd-tdep.h".
13814 (i386obsd_init_abi): Call obsd_init_abi.
13815 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13816 (amd64obsd_init_abi): Call obsd_init_abi.
13817 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13818 obsd-tdep.c to gdb_target_obs.
13820 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13822 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13823 double float arguments to 16-byte in the argument slots.
13825 2014-02-11 Doug Evans <xdje42@gmail.com>
13827 * configure.ac: Don't crash if pkg-config is not found and guile
13828 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13830 * configure: Regenerate.
13832 2014-02-11 Yao Qi <yao@codesourcery.com>
13834 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13835 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13836 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13837 * gnu-nat.c (gnu_xfer_memory): Likewise.
13838 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13839 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13840 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13841 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13843 2014-02-11 Yao Qi <yao@codesourcery.com>
13845 * target.h (enum target_xfer_error): Rename to ...
13846 (enum target_xfer_status): ... it. New. All users updated.
13847 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13849 (TARGET_XFER_STATUS_ERROR_P): New macro.
13850 (target_xfer_error_to_string): Remove declaration.
13851 (target_xfer_status_to_string): Declare.
13852 (target_xfer_partial_ftype): Adjust it.
13853 (struct target_ops) <to_xfer_partial>: Return
13854 target_xfer_status. Add argument xfered_len. Update
13856 * target.c (target_xfer_error_to_string): Rename to ...
13857 (target_xfer_status_to_string): ... it. New. All callers
13859 (target_read_live_memory): Likewise. Call target_xfer_partial
13860 instead of target_read.
13861 (memory_xfer_live_readonly_partial): Return
13862 target_xfer_status. Add argument xfered_len.
13863 (raw_memory_xfer_partial): Likewise.
13864 (memory_xfer_partial_1): Likewise.
13865 (memory_xfer_partial): Likewise.
13866 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13867 properly. Update debug message.
13868 (default_xfer_partial, current_xfer_partial): Likewise.
13869 (target_write_partial): Likewise.
13870 (target_read_partial): Likewise. All callers updated.
13871 (read_whatever_is_readable): Likewise.
13872 (target_write_with_progress): Likewise.
13873 (target_read_alloc_1): Likewise.
13875 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13876 * auxv.c (procfs_xfer_auxv): Likewise.
13877 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13878 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13879 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13880 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13881 * corefile.c (read_memory): Adjust.
13882 * corelow.c (core_xfer_partial): Likewise.
13883 * ctf.c (ctf_xfer_partial): Likewise.
13884 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13886 (darwin_xfer_partial): Likewise.
13887 * exec.c (section_table_xfer_memory_partial): Likewise. All
13889 (exec_xfer_partial): Likewise.
13890 * exec.h (section_table_xfer_memory_partial): Update
13892 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13894 (gnu_xfer_partial): Likewise.
13895 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13896 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13897 (ia64_hpux_xfer_solib_got): Likewise.
13898 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13899 type of 'partial_len' to ULONGEST.
13900 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13901 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13902 (linux_nat_xfer_partial): Likewise.
13903 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13904 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13905 * monitor.c (monitor_xfer_memory): Likewise.
13906 (monitor_xfer_partial): Likewise.
13907 * procfs.c (procfs_xfer_partial): Likewise.
13908 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13909 * record-full.c (record_full_xfer_partial): Likewise.
13910 (record_full_core_xfer_partial): Likewise.
13911 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13912 (gdbsim_xfer_partial): Likewise.
13913 * remote.c (remote_write_bytes_aux): Likewise. All callers
13915 (remote_write_bytes, remote_read_bytes): Likewise. All
13917 (remote_flash_erase): Likewise. All callers updated.
13918 (remote_write_qxfer): Likewise. All callers updated.
13919 (remote_read_qxfer): Likewise. All callers updated.
13920 (remote_xfer_partial): Likewise.
13921 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13922 (rs6000_xfer_shared_libraries): Likewise.
13923 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13924 (sol_thread_xfer_partial): Likewise.
13925 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13926 (sparc_xfer_partial): Likewise.
13927 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13929 (spu_xfer_partial): Likewise.
13930 * spu-multiarch.c (spu_xfer_partial): Likewise.
13931 * tracepoint.c (tfile_xfer_partial): Likewise.
13932 * windows-nat.c (windows_xfer_memory): Likewise.
13933 (windows_xfer_shared_libraries): Likewise.
13934 (windows_xfer_partial): Likewise.
13935 * valprint.c: Replace 'target_xfer_error' with
13936 'target_xfer_status' in comments.
13938 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13940 Checked in by Joel Brobecker <brobecker@adacore.com>.
13941 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13943 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13945 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13946 function parameters.
13948 2014-02-10 Will Newton <will.newton@linaro.org>
13950 * elfread.c (elf_rel_plt_read): Look for a .got section if
13951 looking up .got.plt fails.
13952 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13953 on address passed to elf_gnu_ifunc_record_cache.
13954 (elf_gnu_ifunc_resolve_addr): Likewise.
13955 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13957 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13959 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13960 (X_RETTURN): New macro.
13961 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13963 * sparc64-tdep.c (sparc64_init_abi): Hook
13964 sparc_in_function_epilogue_p.
13966 2014-02-10 Gary Benson <gbenson@redhat.com>
13968 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13969 Rename name_matcher to symbol_matcher.
13971 2014-02-10 Gary Benson <gbenson@redhat.com>
13973 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13974 Use expand_symtabs_file_matcher_ftype and
13975 expand_symtabs_symbol_matcher_ftype.
13977 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13979 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13980 (struct ada_symbol_cache): New.
13981 (ada_free_symbol_cache): Forward declare.
13982 (struct ada_pspace_data): New.
13983 (ada_pspace_data_handle): New static global.
13984 (get_ada_pspace_data, ada_pspace_data_cleanup)
13985 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13986 (cache_space, cache): Delete, now folded inside struct
13988 (ada_get_symbol_cache): New function.
13989 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13991 (_initialize_ada_language): Remove initialization of cache_space.
13992 Move call to observer_attach_inferior_exit up, grouping it
13993 with the other observer registrations inside this function.
13994 Rename command to be more general. Add call to
13995 register_program_space_data_with_cleanup.
13997 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13999 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14000 ada_new_objfile_observer.
14001 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14002 (_initialize_tasks): Update uses of ada_new_objfile_observer
14003 and ada_tasks_normal_stop_observer.
14005 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14007 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14008 returned by the 'Length attribute to integer.
14010 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14012 * ada-lang.c (_initialize_ada_language): Initialize
14013 cache_space obstack.
14015 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14017 * ada-lang.c (HASH_SIZE): New macro.
14018 (struct cache_entry): New type.
14019 (cache_space, cache): New static globals.
14020 (ada_clear_symbol_cache, find_entry): New functions.
14021 (lookup_cached_symbol, cache_symbol): Implement.
14022 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14023 (_initialize_ada_language): Attach ada_new_objfile_observer
14024 and ada_free_objfile_observer.
14026 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14028 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14029 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14030 struct block * parameter.
14031 (ada_lookup_symbol_list_worker): Constify local variable "block".
14032 Remove cast which is no longer necessary.
14034 2014-02-10 Doug Evans <xdje42@gmail.com>
14036 Add Guile as an extension language.
14037 * NEWS: Mention Guile scripting.
14038 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14039 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14040 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14041 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14042 (CLIBS): Add GUILE_LIBS.
14043 (install-guile): New rule.
14044 (guile.o): New rule.
14045 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14046 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14047 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14048 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14049 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14050 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14051 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14052 * configure.ac: New option --with-guile.
14053 * configure: Regenerate.
14054 * config.in: Regenerate.
14055 * auto-load.c: Remove #include "python/python.h". Add #include
14056 "gdb/section-scripts.h".
14057 (source_section_scripts): Handle Guile scripts.
14058 (_initialize_auto_load): Add name of Guile objfile script to
14059 scripts-directory help text.
14060 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14061 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14062 (struct breakpoint): New member scm_bp_object.
14063 * defs.h (enum command_control_type): New value guile_control.
14064 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14066 (show_user): Update comment.
14067 (_initialize_cli_cmds): Update help text for "show user". Update help
14068 text for max-user-call-depth.
14069 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14071 (multi_line_command_p): Add guile_control.
14072 (print_command_lines): Handle guile_control.
14073 (execute_control_command, recurse_read_control_structure): Ditto.
14074 (process_next_line): Recognize "guile" commands.
14075 * disasm.c (gdb_disassemble_info): Make non-static.
14076 * disasm.h: #include "dis-asm.h".
14077 (struct gdbarch): Add forward decl.
14078 (gdb_disassemble_info): Declare.
14079 * extension.c: #include "guile/guile.h".
14080 (extension_languages): Add guile.
14081 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14082 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14083 * gdbtypes.c (get_unsigned_type_max): New function.
14084 (get_signed_type_minmax): New function.
14085 * gdbtypes.h (get_unsigned_type_max): Declare.
14086 (get_signed_type_minmax): Declare.
14087 * guile/README: New file.
14088 * guile/guile-internal.h: New file.
14089 * guile/guile.c: New file.
14090 * guile/guile.h: New file.
14091 * guile/scm-arch.c: New file.
14092 * guile/scm-auto-load.c: New file.
14093 * guile/scm-block.c: New file.
14094 * guile/scm-breakpoint.c: New file.
14095 * guile/scm-disasm.c: New file.
14096 * guile/scm-exception.c: New file.
14097 * guile/scm-frame.c: New file.
14098 * guile/scm-gsmob.c: New file.
14099 * guile/scm-iterator.c: New file.
14100 * guile/scm-lazy-string.c: New file.
14101 * guile/scm-math.c: New file.
14102 * guile/scm-objfile.c: New file.
14103 * guile/scm-ports.c: New file.
14104 * guile/scm-pretty-print.c: New file.
14105 * guile/scm-safe-call.c: New file.
14106 * guile/scm-string.c: New file.
14107 * guile/scm-symbol.c: New file.
14108 * guile/scm-symtab.c: New file.
14109 * guile/scm-type.c: New file.
14110 * guile/scm-utils.c: New file.
14111 * guile/scm-value.c: New file.
14112 * guile/lib/gdb.scm: New file.
14113 * guile/lib/gdb/boot.scm: New file.
14114 * guile/lib/gdb/experimental.scm: New file.
14115 * guile/lib/gdb/init.scm: New file.
14116 * guile/lib/gdb/iterator.scm: New file.
14117 * guile/lib/gdb/printing.scm: New file.
14118 * guile/lib/gdb/types.scm: New file.
14119 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14120 (VPATH): Add $(GUILE_SRCDIR).
14121 (GUILE_DIR): New variable.
14122 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14123 (all): Add stamp-guile dependency.
14124 (stamp-guile): New rule.
14125 (clean-guile, install-guile, uninstall-guile): New rules.
14126 (install-only): Add install-guile dependency.
14127 (uninstall): Add uninstall-guile dependency.
14128 (clean): Add clean-guile dependency.
14130 2014-02-09 Doug Evans <xdje42@gmail.com>
14132 Revert this patch (which I approved, mea culpa).
14134 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14136 * Makefile.in (all-lib): Remove.
14137 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14139 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14141 Fix Python stack corruption.
14142 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14145 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14147 * Makefile.in (all-lib): Remove.
14148 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14150 2014-02-07 Doug Evans <dje@google.com>
14152 * extension-priv.h (extension_language_script_ops): Add comment.
14153 (extension_language_ops): Add comment.
14154 (active_ext_lang_state): Fix typo in comment.
14156 2014-02-07 Pedro Alves <palves@redhat.com>
14158 PR breakpoints/16292
14159 * infrun.c (handle_signal_stop) <signal arrives while stepping
14160 over a breakpoint>: Switch back to the stepping thread.
14162 2014-02-07 Yao Qi <yao@codesourcery.com>
14164 * target.c (target_xfer_partial): Return zero if LEN is zero.
14166 2014-02-07 Yao Qi <yao@codesourcery.com>
14168 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14169 (ld_so_xfer_auxv): Likewise.
14170 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14171 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14172 * corelow.c (core_xfer_partial): Likewise.
14173 * ctf.c (ctf_xfer_partial): Likewise.
14174 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14175 (darwin_xfer_partial): Likewise.
14176 * exec.c (exec_xfer_partial): Likewise.
14177 * gnu-nat.c (gnu_xfer_partial): Likewise.
14178 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14179 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14180 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14181 * linux-nat.c (linux_xfer_siginfo): Likewise.
14182 (linux_proc_xfer_spu): Likewise.
14183 * procfs.c (procfs_xfer_partial): Likewise.
14184 * record-full.c (record_full_xfer_partial): Likewise.
14185 (record_full_core_xfer_partial): Likewise.
14186 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14187 * remote.c (remote_write_qxfer): Likewise.
14188 (remote_write_qxfer, remote_read_qxfer): Likewise.
14189 (remote_xfer_partial): Likewise.
14190 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14191 (rs6000_xfer_shared_libraries): Likewise.
14192 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14193 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14194 (spu_xfer_partial): Likewise.
14195 * target.c (memory_xfer_partial_1): Likewise.
14196 * tracepoint.c (tfile_xfer_partial): Likewise.
14197 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14198 (windows_xfer_partial): Likewise.
14200 2014-02-07 Yao Qi <yao@codesourcery.com>
14202 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14204 (core_xfer_shared_libraries_aix): Likewise.
14205 * gdbarch.c, gdbarch.h: Regenerated.
14206 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14207 ULONGEST. Change 'len_avail' type to ULONGEST.
14208 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14209 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14211 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14213 2014-02-07 Yao Qi <yao@codesourcery.com>
14215 * corefile.c (memory_error): Get 'exception' from ERR and pass
14216 'exception' to throw_error.
14218 2014-02-06 Doug Evans <xdje42@gmail.com>
14220 * configure.ac (libpython checking): Remove all but python.o from
14221 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14222 * configure: Regenerate.
14224 * Makefile.in (SFILES): Add extension.c.
14225 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14226 (COMMON_OBS): Add extension.o.
14227 * extension.h: New file.
14228 * extension-priv.h: New file.
14229 * extension.c: New file.
14231 * python/python-internal.h: #include "extension.h".
14232 (gdbpy_auto_load_enabled): Declare.
14233 (gdbpy_apply_val_pretty_printer): Declare.
14234 (gdbpy_apply_frame_filter): Declare.
14235 (gdbpy_preserve_values): Declare.
14236 (gdbpy_breakpoint_cond_says_stop): Declare.
14237 (gdbpy_breakpoint_has_cond): Declare.
14238 (void source_python_script_for_objfile): Delete.
14239 * python/python.c: #include "extension-priv.h".
14240 Delete inclusion of "observer.h".
14241 (extension_language_python): Moved here and renamed from
14242 script_language_python in py-auto-load.c.
14243 Redefined to be of type extension_language_defn.
14244 (python_extension_script_ops): New global.
14245 (python_extension_ops): New global.
14246 (struct python_env): New member previous_active.
14247 (restore_python_env): Call restore_active_ext_lang.
14248 (ensure_python_env): Call set_active_ext_lang.
14249 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14251 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14253 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14255 (gdbpy_eval_from_control_command): Renamed from
14256 eval_python_from_control_command, made static. New arg extlang.
14257 (gdbpy_source_script) Renamed from source_python_script, made static.
14259 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14260 result to int. New arg extlang.
14261 (gdbpy_source_objfile_script): Renamed from
14262 source_python_script_for_objfile, made static. New arg extlang.
14263 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14264 static. New args extlang, extlang_printers. Change result type to
14266 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14267 static. New arg extlang. Rename arg printers to extlang_printers
14268 and change type to ext_lang_type_printers *.
14269 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14270 static. Replace argument arg with extlang, extlang_printers.
14271 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14272 (!HAVE_PYTHON, source_python_script): Delete.
14273 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14274 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14275 (!HAVE_PYTHON, start_type_printers): Delete.
14276 (!HAVE_PYTHON, apply_type_printers): Delete.
14277 (!HAVE_PYTHON, free_type_printers): Delete.
14278 (_initialize_python): Delete call to observer_attach_before_prompt.
14279 (finalize_python): Set/restore active extension language.
14280 (gdbpy_finish_initialization) Renamed from
14281 finish_python_initialization, made static. New arg extlang.
14282 (gdbpy_initialized): New function.
14283 * python/python.h: #include "extension.h". Delete #include
14284 "value.h", "mi/mi-cmds.h".
14285 (extension_language_python): Declare.
14286 (GDBPY_AUTO_FILE_NAME): Delete.
14287 (enum py_bt_status): Moved to extension.h and renamed to
14288 ext_lang_bt_status.
14289 (enum frame_filter_flags): Moved to extension.h.
14290 (enum py_frame_args): Moved to extension.h and renamed to
14291 ext_lang_frame_args.
14292 (finish_python_initialization): Delete.
14293 (eval_python_from_control_command): Delete.
14294 (source_python_script): Delete.
14295 (apply_val_pretty_printer): Delete.
14296 (apply_frame_filter): Delete.
14297 (preserve_python_values): Delete.
14298 (gdbpy_script_language_defn): Delete.
14299 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14300 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14302 * auto-load.c: #include "extension.h".
14303 (GDB_AUTO_FILE_NAME): Delete.
14304 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14305 (script_language_gdb): Delete, moved to extension.c and renamed to
14306 extension_language_gdb.
14307 (source_gdb_script_for_objfile): Delete.
14308 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14309 (loaded_script): Change type of language member to
14310 struct extension_language_defn *.
14311 (init_loaded_scripts_info): Initialize
14312 unsupported_script_warning_printed.
14313 (maybe_add_script): Make static. Change type of language arg to
14314 struct extension_language_defn *.
14315 (clear_section_scripts): Reset unsupported_script_warning_printed.
14316 (auto_load_objfile_script_1): Rewrite to use extension language API.
14317 (auto_load_objfile_script): Make public. Remove support-compiled-in
14318 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14319 (source_section_scripts): Rewrite to use extension language API.
14320 (load_auto_scripts_for_objfile): Rewrite to use
14321 auto_load_scripts_for_objfile.
14322 (collect_matching_scripts_data): Change type of language member to
14323 struct extension_language_defn *.
14324 (auto_load_info_scripts): Change type of language arg to
14325 struct extension_language_defn *.
14326 (unsupported_script_warning_print): New function.
14327 (script_not_found_warning_print): Make static.
14328 (_initialize_auto_load): Rewrite construction of scripts-directory
14330 * auto-load.h (struct objfile): Add forward decl.
14331 (struct script_language): Delete.
14332 (struct auto_load_pspace_info): Add forward decl.
14333 (struct extension_language_defn): Add forward decl.
14334 (maybe_add_script): Delete.
14335 (auto_load_objfile_script): Declare.
14336 (script_not_found_warning_print): Delete.
14337 (auto_load_info_scripts): Update prototype.
14338 (auto_load_gdb_scripts_enabled): Declare.
14339 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14340 auto_load_python_scripts_enabled and made public.
14341 (script_language_python): Delete, moved to python.c.
14342 (gdbpy_script_language_defn): Delete.
14343 (info_auto_load_python_scripts): Update to use
14344 extension_language_python.
14346 * breakpoint.c (condition_command): Replace call to
14347 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14348 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14349 with call to breakpoint_ext_lang_cond_says_stop.
14350 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14351 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14352 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14353 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14355 (local_setattro): Print name of extension language with existing
14358 * valprint.c (val_print, value_print): Update to call
14359 apply_ext_lang_val_pretty_printer.
14360 * cp-valprint.c (cp_print_value): Update call to
14361 apply_ext_lang_val_pretty_printer.
14362 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14363 (gdbpy_apply_val_pretty_printer): Renamed from
14364 apply_val_pretty_printer. New arg extlang.
14365 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14367 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14368 extension language API.
14369 * cli/cli-script.c (execute_control_command): Update to call
14370 eval_ext_lang_from_control_command.
14372 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14373 enum ext_lang_bt_status values. Update call to
14374 apply_ext_lang_frame_filter.
14375 (mi_cmd_stack_list_locals): Ditto.
14376 (mi_cmd_stack_list_args): Ditto.
14377 (mi_cmd_stack_list_variables): Ditto.
14378 * mi/mi-main.c: Delete #include "python/python-internal.h".
14379 Add #include "extension.h".
14380 (mi_cmd_list_features): Replace reference to python internal variable
14381 gdb_python_initialized with call to ext_lang_initialized_p.
14383 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14384 Update to use enum ext_lang_frame_args. Update to call
14385 apply_ext_lang_frame_filter.
14386 * python/py-framefilter.c (extract_sym): Update to use enum
14387 ext_lang_bt_status.
14388 (extract_value, py_print_type, py_print_value): Ditto.
14389 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14390 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14391 (py_print_frame): Ditto.
14392 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14393 New arg extlang. Update to use enum ext_lang_bt_status.
14395 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14396 finish_python_initialization. Replace with call to
14397 finish_ext_lang_initialization.
14399 * typeprint.c (do_free_global_table): Update to call
14400 free_ext_lang_type_printers.
14401 (create_global_typedef_table): Update to call
14402 start_ext_lang_type_printers.
14403 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14404 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14405 (type_print_options): Change type of global_printers from "void *"
14406 to "struct ext_lang_type_printers *".
14408 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14409 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14410 (gdbpy_preserve_values): Renamed from preserve_python_values.
14412 (!HAVE_PYTHON, preserve_python_values): Delete.
14414 * utils.c (quit_flag): Delete, moved to extension.c.
14415 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14418 * eval.c: Delete #include "python/python.h".
14419 * main.c: Delete #include "python/python.h".
14421 * defs.h: Update comment.
14423 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14427 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14429 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14432 2014-02-05 Yao Qi <yao@codesourcery.com>
14434 * remote.c (remote_pass_signals): Remove local 'buf' and use
14436 (remote_program_signals): Likewise.
14438 2014-02-05 Yao Qi <yao@codesourcery.com>
14440 * ctf.c: Include "inferior.h" and "gdbthread.h".
14441 (CTF_PID): A new macro.
14442 (ctf_open): Call inferior_appeared and add_thread_silent.
14443 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14444 (ctf_thread_alive): New function.
14445 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14447 2014-02-05 Yao Qi <yao@codesourcery.com>
14451 2013-05-24 Yao Qi <yao@codesourcery.com>
14453 * tracepoint.c (TFILE_PID): Remove.
14454 (tfile_open): Don't add thread and inferior.
14455 (tfile_close): Don't set 'inferior_ptid'. Don't call
14456 exit_inferior_silent.
14457 (tfile_thread_alive): Remove.
14458 (init_tfile_ops): Don't set field 'to_thread_alive' of
14461 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14463 * remote.c (remote_start_remote): Call remote_check_symbols even
14464 if only symbol-file (not file) has been given.
14466 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14468 * gdbarch.sh (skip_entrypoint): New callback.
14469 * gdbarch.c, gdbarch.h: Regenerate.
14470 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14471 * infrun.c (fill_in_stop_func): Likewise.
14472 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14473 (ppc_elfv2_elf_make_msymbol_special): New function.
14474 (ppc_elfv2_skip_entrypoint): Likewise.
14475 (ppc_linux_init_abi): Install them for ELFv2.
14477 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14479 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14480 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14481 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14482 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14483 structures returned in GPRs.
14485 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14487 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14488 offset to the stack parameter list for the ELFv2 ABI.
14490 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14492 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14493 set_gdbarch_convert_from_func_ptr_addr and
14494 set_gdbarch_elf_make_msymbol_special for ELFv1.
14495 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14496 function descriptors on ELFv1.
14497 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14498 set up r12 at function entry.
14500 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14502 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14503 (struct gdbarch_tdep): New member elf_abi.
14505 * rs6000-tdep.c: Include "elf/ppc64.h".
14506 (rs6000_gdbarch_init): Detect ELF ABI version.
14508 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14510 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14511 within a register pair holding a DFP 128-bit value on little-endian.
14512 (ppc64_sysv_abi_return_value_base): Likewise.
14513 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14514 (dfp_pseudo_register_write): Likewise.
14516 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14518 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14519 offset on little-endian when passing _Decimal32.
14520 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14522 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14524 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14525 of the overlapped FP register within the VSX register on little-
14527 (efpr_pseudo_register_write): Likewise.
14529 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14531 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14532 offset on little-endian when passing small structures.
14534 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14536 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14537 (struct ppc64_sysv_argpos): New data structure.
14538 (ppc64_sysv_abi_push_float): Remove.
14539 (ppc64_sysv_abi_push_val): New function.
14540 (ppc64_sysv_abi_push_integer): Likewise.
14541 (ppc64_sysv_abi_push_freg): Likewise.
14542 (ppc64_sysv_abi_push_vreg): Likewise.
14543 (ppc64_sysv_abi_push_param): Likewise.
14544 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14545 (ppc64_sysv_abi_return_value_base): New function.
14546 (ppc64_sysv_abi_return_value): Refactor to use it.
14548 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14550 * NEWS: Document new target powerpc64le-*-linux*.
14552 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14554 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14555 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14557 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14558 register set used in ELF core dumps. Add floating-point register set.
14560 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14562 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14563 dwarf2_to_gdb[] table using symbolic constants. Adjust
14564 penultimate entry from number representing the PC register
14565 to symbolic constant representing the MDR register. Add
14566 constant for the PC register to the end of the table.
14568 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14570 * bsd-kvm.c: Include <sys/param.h>
14572 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14574 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14576 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14578 * ada-lang.h (clear_ada_sym_cache): Delete.
14580 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14582 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14584 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14586 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14587 the sigreturn register save area only if the syscall is
14590 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14592 * valops.c (value_slice): Minor reformatting.
14594 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14596 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14598 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14600 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14601 New static globals.
14602 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14603 (ada_ignore_descriptive_types_p): New static global.
14604 (find_parallel_type_by_descriptive_type): Return immediately
14605 if ada_ignore_descriptive_types_p is set.
14606 (_initialize_ada_language): Register new commands "maintenance
14607 set ada", "maintenance show ada", "maintenance set ada
14608 ignore-descriptive-types" and "maintenance show ada
14609 ignore-descriptive-types".
14610 * NEWS: Add entry for new "maint ada set/show
14611 ignore-descriptive-types" commands.
14613 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14615 * record-btrace.c (record_btrace_close): Call btrace_teardown
14618 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14620 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14623 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14625 * ada-typeprint (type_is_full_subrange_of_target_type):
14627 (print_range): Add parameter bounds_prefered_p. If not set,
14628 try printing range types using the name of their base type.
14629 (print_range_type): Add parameter bounds_prefered_p.
14630 Use it in call to print_range.
14631 (print_array_type, ada_print_type): Update calls to print_range
14632 and print_range_type.
14634 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14636 * ada-typeprint.c (print_array_type, print_choices, print_range)
14637 (print_range_bound, print_dynamic_range_bound, print_range_type):
14638 Remove declaration.
14640 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14642 * ada-typeprint.c (print_range): Add missing empty line
14643 after local declaration.
14645 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14647 * ada-valprint.c (print_optional_low_bound): Get index_type's
14648 target type for as long as it is a TYPE_CODE_RANGE.
14650 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14652 * procfs.c (procfs_make_note_section): Remove assertion and
14653 associated comment.
14655 2014-01-24 Yao Qi <yao@codesourcery.com>
14657 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14658 * corelow.c (get_core_siginfo): Likewise.
14660 2014-01-24 Yao Qi <yao@codesourcery.com>
14662 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14663 ULONGEST. Don't check 'len' is negative.
14664 (remote_write_bytes): Change type of 'len' to ULONGEST.
14666 2014-01-23 Tom Tromey <tromey@redhat.com>
14669 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14670 Handle exception from frame.block.
14671 (FrameVars.fetch_frame_locals): Likewise.
14673 2014-01-23 Tom Tromey <tromey@redhat.com>
14676 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14677 on a NULL pointer. Move "goto error" to correct place.
14679 2014-01-23 Tom Tromey <tromey@redhat.com>
14682 * python/py-framefilter.c (apply_frame_filter): Call
14683 ensure_python_env after computing gdbarch.
14685 2014-01-23 Yao Qi <yao@codesourcery.com>
14687 * target.c (raw_memory_xfer_partial): Change argument type
14688 from void * to gdb_byte *.
14689 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14691 2014-01-22 Doug Evans <dje@google.com>
14693 New gdbserver option --debug-format=timestamp.
14694 * NEWS: Mention it.
14696 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14698 * syscalls/s390x-linux.xml: New file.
14699 * syscalls/s390-linux.xml: New file.
14700 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14701 (XML_SYSCALL_FILENAME_S390X): Likewise.
14702 (op_svc): New enum value for SVC opcode.
14703 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14704 (s390_linux_get_syscall_number): New function.
14705 (s390_gdbarch_init): Register '*get_syscall_number' and the
14706 syscall xml file name.
14707 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14708 "s390-linux.xml" and "s390x-linux.xml".
14709 * NEWS: Announce new feature.
14711 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14713 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14715 2014-01-22 Pedro Alves <palves@redhat.com>
14717 * xtensa-config.c: Include defs.h.
14719 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14721 * common/common-utils.h: Add "ARI:" comment beside __func__
14724 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14726 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14727 documentation a bit.
14729 2014-01-21 Roland McGrath <mcgrathr@google.com>
14731 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14732 * configure: Regenerate.
14733 * aclocal.m4: Regenerate.
14734 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14735 New substituted variables.
14736 (install-strip): New target.
14737 (INSTALL_SCRIPT): New substituted variable.
14738 (FLAGS_TO_PASS): Add it.
14739 (install-only): Use $(INSTALL_SCRIPT) rather than
14740 $(INSTALL_PROGRAM) for gcore.
14742 2014-01-20 Tom Tromey <tromey@redhat.com>
14744 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14747 2014-01-20 Tom Tromey <tromey@redhat.com>
14749 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14750 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14751 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14752 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14753 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14754 (struct cmd_list_element) <flags>: Remove.
14755 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14756 doc_allocated>: New fields.
14757 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14759 * maint.c (maintenance_do_deprecate): Update.
14760 * top.c (execute_command): Update.
14762 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14764 * xtensa-linux-nat.c: Include asm/ptrace.h.
14766 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14768 * Makefile.in (SFILES): Add d-support.c.
14769 (COMMON_OBS): Add d-support.o.
14770 * d-lang.h (d_parse_symbol): Add comment, now defined in
14772 * d-lang.c (parse_call_convention)
14773 (parse_attributes, parse_function_types)
14774 (parse_function_args, parse_type, parse_identifier)
14775 (call_convention_p, d_parse_symbol): Move functions to ...
14776 * d-support.c: ... New file.
14778 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14780 * d-lang.h (d_parse_symbol): Add declaration.
14781 * d-lang.c (extract_identifiers)
14782 (extract_type_info): Remove functions.
14783 (parse_call_convention, parse_attributes)
14784 (parse_function_types, parse_function_args)
14785 (parse_type, parse_identifier, call_convention_p)
14786 (d_parse_symbol): New functions.
14787 (d_demangle): Use d_parse_symbol to demangle D symbols.
14789 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14791 * d-lang.h (struct builtin_d_type): New data type.
14792 (builtin_d_type): Add declaration.
14793 * d-lang.c (d_language_arch_info, build_d_types)
14794 (builtin_d_type): New functions.
14795 (enum d_primitive_types): New data type.
14796 (d_language_defn): Change c_language_arch_info to
14797 d_language_arch_info.
14798 (d_type_data): New static variable.
14799 (_initialize_d_language): Initialize d_type_data.
14801 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14803 * d-lang.h (d_main_name): Add declaration.
14804 * d-lang.c (d_main_name): New function.
14805 * symtab.c (find_main_name): Add call to d_main_name.
14807 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14809 * d-lang.c (d_language_defn): Change macro_expansion_c to
14810 macro_expansion_no.
14812 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14814 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14816 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14818 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14819 gdb_exception" declaration.
14820 * remote.c (getpkt_or_notif_sane): Likewise.
14822 2014-01-17 Doug Evans <dje@google.com>
14824 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14825 function, contents of dirnames_to_char_ptr_vec_append moved here.
14826 (delim_string_to_char_ptr_vec): New function.
14827 (dirnames_to_char_ptr_vec_append): Rewrite.
14828 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14830 2014-01-17 Doug Evans <dje@google.com>
14832 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14834 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14835 #include "common-utils.h".
14836 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14837 * common/vec.h (VEC_ASSERT_PASS): Update.
14838 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14839 (MACH_CHECK_ERROR): Update.
14841 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14843 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14845 * gdbarch.h: Regenerate.
14847 2014-01-16 Tom Tromey <tromey@redhat.com>
14849 * value.c (struct value) <regnum>: Move earlier.
14851 2014-01-16 Tom Tromey <tromey@redhat.com>
14853 * remote.c (extended_remote_create_inferior): Rename from
14854 extended_remote_create_inferior_1. Add "ops" argument. Remove
14855 old implementation.
14857 2014-01-16 Pedro Alves <palves@redhat.com>
14859 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14860 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14863 2014-01-16 Doug Evans <dje@google.com>
14865 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14869 * btrace.h (btrace_thread_flag): New.
14870 (struct btrace_thread_info) <flags>: New.
14871 * record-btrace.c (record_btrace_resume_thread)
14872 (record_btrace_find_thread_to_move, btrace_step_no_history)
14873 (btrace_step_stopped, record_btrace_start_replaying)
14874 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14875 (record_btrace_find_resume_thread): New.
14876 (record_btrace_resume, record_btrace_wait): Extend.
14877 (record_btrace_can_execute_reverse): New.
14878 (record_btrace_open): Fail in non-stop mode.
14879 (record_btrace_set_replay): Split into this, ...
14880 (record_btrace_stop_replaying): ... this, ...
14881 (record_btrace_clear_histories): ... and this.
14882 (init_record_btrace_ops): Init to_can_execute_reverse.
14883 * NEWS: Announce it.
14885 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14887 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14888 (forward_target_decr_pc_after_break)
14889 (target_decr_pc_after_break): New.
14890 * target.c (forward_target_decr_pc_after_break)
14891 (target_decr_pc_after_break): New.
14892 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14893 instead of gdbarch_decr_pc_after_break.
14894 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14895 instead of gdbarch_decr_pc_after_break.
14896 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14897 instead of gdbarch_decr_pc_after_break.
14898 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14899 instead of gdbarch_decr_pc_after_break.
14900 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14901 instead of gdbarch_decr_pc_after_break.
14902 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14903 instead of gdbarch_decr_pc_after_break.
14905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14907 * btrace.c: Include regcache.h.
14908 (btrace_add_pc): New.
14909 (btrace_enable): Call btrace_add_pc.
14910 (btrace_is_empty): New.
14911 * btrace.h (btrace_is_empty): New.
14912 * record-btrace.c (require_btrace, record_btrace_info): Call
14915 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14917 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14918 Support delta reads.
14919 (linux_disable_btrace): Change return type.
14920 * common/linux-btrace.h (linux_read_btrace): Change parameters
14921 and return type to allow error reporting. Update users.
14922 (linux_disable_btrace): Change return type. Update users.
14923 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14925 (btrace_error): New.
14926 (btrace_block) <begin>: Comment on BEGIN == 0.
14927 * btrace.c (btrace_compute_ftrace): Start from the end of
14929 (btrace_stitch_trace, btrace_clear_history): New.
14930 (btrace_fetch): Read delta trace, return if replaying.
14931 (btrace_clear): Move clear history code to btrace_clear_history.
14932 (parse_xml_btrace): Throw an error if parsing failed.
14933 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14934 and return type to allow error reporting.
14935 (target_read_btrace): Change parameters and return type to allow
14937 * target.c (target_read_btrace): Update.
14938 * remote.c (remote_read_btrace): Support delta reads. Pass
14940 * NEWS: Announce it.
14942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14944 * record.h (record_btrace_frame_unwind)
14945 (record_btrace_tailcall_frame_unwind): New declarations.
14946 * dwarf2-frame: Include record.h
14947 (dwarf2_frame_cfa): Throw an error for btrace frames.
14948 * record-btrace.c: Include hashtab.h.
14949 (btrace_get_bfun_name): New.
14950 (btrace_call_history): Call btrace_get_bfun_name.
14951 (struct btrace_frame_cache): New.
14953 (bfcache_hash, bfcache_eq, bfcache_new): New.
14954 (btrace_get_frame_function): New.
14955 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14956 (record_btrace_frame_this_id): Compute own id.
14957 (record_btrace_frame_prev_register): Provide PC, throw_error
14958 for all other registers.
14959 (record_btrace_frame_sniffer): Detect btrace frames.
14960 (record_btrace_tailcall_frame_sniffer): New.
14961 (record_btrace_frame_dealloc_cache): New.
14962 (record_btrace_frame_unwind): Add new functions.
14963 (record_btrace_tailcall_frame_unwind): New.
14964 (_initialize_record_btrace): Allocate cache.
14965 * btrace.c (btrace_clear): Call reinit_frame_cache.
14966 * NEWS: Announce it.
14968 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14970 * record-btrace.c (record_btrace_set_replay)
14971 (record_btrace_goto_begin, record_btrace_goto_end)
14972 (record_btrace_goto): New.
14973 (init_record_btrace_ops): Initialize them.
14974 * NEWS: Announce it.
14976 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14978 * record-btrace.c (record_btrace_find_new_threads)
14979 (record_btrace_thread_alive): New.
14980 (init_record_btrace_ops): Initialize to_find_new_threads and
14983 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14985 * record-btrace.c (record_btrace_resume): New.
14986 (record_btrace_wait): New.
14987 (init_record_btrace_ops): Initialize to_wait and to_resume.
14989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14991 * record-btrace.c (record_btrace_xfer_partial)
14992 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14993 (record_btrace_allow_memory_access): New.
14994 (init_record_btrace_ops): Initialize new methods.
14995 * target.c (raw_memory_xfer_partial): Bail out if target reports
14996 that this memory is not available.
14998 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15000 * target.h (target_ops) <to_insert_breakpoint>
15001 <to_remove_breakpoint>: Add target_ops parameter.
15002 (forward_target_insert_breakpoint): New.
15003 (forward_target_remove_breakpoint): New.
15004 (memory_remove_breakpoint, memory_insert_breakpoint):
15005 Add target_ops parameter.
15006 * target.c (target_insert_breakpoint): Split into this and ...
15007 (forward_target_insert_breakpoint): ... this.
15008 (target_remove_breakpoint): Split into this and ...
15009 (forward_target_remove_breakpoint): ... this.
15010 (debug_to_insert_breakpoint): Add target_ops parameter.
15011 Call forward_target_insert_breakpoint.
15012 (debug_to_remove_breakpoint): Add target_ops parameter.
15013 Call forward_target_remove_breakpoint.
15014 (update_current_target): Do not inherit or default to_insert_breakpoint
15015 and to_remove_breakpoint.
15016 * corelow.c (ignore): Add target_ops parameter.
15017 * exec.c (ignore): Add target_ops parameter.
15018 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15019 Add target_ops parameter.
15020 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15021 Add target_ops parameter.
15022 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15023 Add target_ops parameter.
15024 * record-full.c (record_full_beneath_to_insert_breakpoint)
15025 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15026 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15027 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15028 (record_full_core_remove_breakpoint): Add target_ops parameter.
15030 (record_full_beneath_to_insert_breakpoint_ops)
15031 (record_full_beneath_to_remove_breakpoint_ops)
15032 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15033 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15034 tmp_to_remove_breakpoint_ops,
15035 record_full_beneath_to_insert_breakpoint_ops, and
15036 record_full_beneath_to_remove_breakpoint_ops.
15037 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15038 (m32r_remove_breakpoint): Add target_ops parameter.
15039 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15040 Add target_ops parameter.
15041 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15042 Add target_ops parameter.
15044 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15045 Markus Metzger <markus.t.metzger@intel.com>
15047 * record-btrace.c: Include frame-unwind.h.
15048 (record_btrace_frame_unwind_stop_reason)
15049 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15050 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15052 (init_record_btrace_ops): Install it.
15054 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15056 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15059 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15061 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15064 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15066 * frame-unwind.c: Include target.h.
15067 (frame_unwind_try_unwinder): New function with code from ...
15068 (frame_unwind_find_by_frame): ... here. New variable
15069 unwinder_from_target, call also target_get_unwinder)
15070 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15071 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15072 * target.h (struct target_ops): New fields to_get_unwinder and
15073 to_get_tailcall_unwinder.
15074 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15076 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15078 * record-btrace.c (record_btrace_fetch_registers)
15079 (record_btrace_store_registers)
15080 (record_btrace_to_prepare_to_store): New.
15081 (init_record_btrace_ops): Add the above.
15083 2014-01-16 Tom Tromey <tromey@redhat.com>
15085 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15086 * target.h (struct target_ops) <to_prepare_to_store>: Add
15088 (target_prepare_to_store): Add argument.
15089 * target.c (debug_to_prepare_to_store): Add argument.
15090 (update_current_target): Update.
15091 * remote.c (remote_prepare_to_store): Add 'self' argument.
15092 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15093 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15094 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15095 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15097 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15098 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15099 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15100 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15101 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15103 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15105 * btrace.h (replay) <replay>: New.
15106 (btrace_is_replaying): New.
15107 * btrace.c (btrace_clear): Free replay iterator.
15108 (btrace_is_replaying): New.
15109 * record-btrace.c (record_btrace_is_replaying): New.
15110 (record_btrace_info): Print insn number if replaying.
15111 (record_btrace_insn_history): Start at replay position.
15112 (record_btrace_call_history): Start at replay position.
15113 (init_record_btrace_ops): Init to_record_is_replaying.
15115 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15117 * record-btrace.c (record_btrace_insn_history_range): Include
15119 (record_btrace_insn_history_from): Adjust range.
15120 (record_btrace_call_history_range): Include
15122 (record_btrace_call_history_from): Adjust range.
15123 * NEWS: Announce changes.
15125 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15127 * record.h (enum record_print_flag)
15128 <record_print_indent_calls>: New.
15129 * record.c (get_call_history_modifiers): Recognize /c modifier.
15130 (_initialize_record): Document /c modifier.
15131 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15132 Reorder fields. Optionally indent the function name. Update
15134 * NEWS: Announce changes.
15136 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15138 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15140 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15142 * btrace.c (ftrace_new_function): Start counting at one.
15143 * record-btrace.c (record_btrace_info): Adjust number of calls
15145 * NEWS: Announce it.
15147 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15149 * record-btrace.c (btrace_call_history_insn_range): Print
15150 insn range as [begin, end].
15152 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15154 * btrace.h (struct btrace_func_link): New.
15155 (enum btrace_function_flag): New.
15156 (struct btrace_inst): Rename to ...
15157 (struct btrace_insn): ...this. Update all users.
15158 (struct btrace_func) <ibegin, iend>: Remove.
15159 (struct btrace_func_link): New.
15160 (struct btrace_func): Rename to ...
15161 (struct btrace_function): ...this. Update all users.
15162 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15163 (number, level, flags>: New.
15164 (struct btrace_insn_iterator): Rename to ...
15165 (struct btrace_insn_history): ...this.
15167 (struct btrace_insn_iterator, btrace_call_iterator): New.
15168 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15169 (struct btrace_target_info) <begin, end, level>
15170 <insn_history, call_history>: New.
15171 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15172 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15173 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15174 (btrace_call_number, btrace_call_begin, btrace_call_end)
15175 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15176 (btrace_find_function_by_number, btrace_set_insn_history)
15177 (btrace_set_call_history): New.
15178 * btrace.c (btrace_init_insn_iterator)
15179 (btrace_init_func_iterator, compute_itrace): Remove.
15180 (ftrace_print_function_name, ftrace_print_filename)
15181 (ftrace_skip_file): Change
15182 parameter to const.
15183 (ftrace_init_func): Remove.
15184 (ftrace_debug): Use new btrace_function fields.
15185 (ftrace_function_switched): Also consider gaining and
15186 losing symbol information).
15187 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15188 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15189 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15191 (ftrace_new_function): Move. Remove debug print.
15192 (ftrace_update_lines, ftrace_update_insns): New.
15193 (ftrace_update_function): Check for call, ret, and jump.
15194 (compute_ftrace): Renamed to ...
15195 (btrace_compute_ftrace): ...this. Rewritten to compute call
15197 (btrace_fetch, btrace_clear): Updated.
15198 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15199 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15200 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15201 (btrace_call_number, btrace_call_begin, btrace_call_end)
15202 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15203 (btrace_find_function_by_number, btrace_set_insn_history)
15204 (btrace_set_call_history): New.
15205 * record-btrace.c (require_btrace): Use new btrace thread
15207 (record_btrace_info, btrace_insn_history)
15208 (record_btrace_insn_history, record_btrace_insn_history_range):
15209 Use new btrace thread info fields and new iterator.
15210 (btrace_func_history_src_line): Rename to ...
15211 (btrace_call_history_src_line): ...this. Use new btrace
15212 thread info fields.
15213 (btrace_func_history): Rename to ...
15214 (btrace_call_history): ...this. Use new btrace thread info
15215 fields and new iterator.
15216 (record_btrace_call_history, record_btrace_call_history_range):
15217 Use new btrace thread info fields and new iterator.
15219 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15221 * frame.h (frame_id_build_unavailable_stack_special): New.
15222 * frame.c (frame_id_build_unavailable_stack_special): New.
15224 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15226 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15227 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15228 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15230 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15231 (i386_insn_is_jump, i386_jmp_p): New.
15232 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15233 insn_is_jump to gdbarch.
15234 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15235 * gdbarch.h: Regenerated.
15236 * gdbarch.c: Regenerated.
15237 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15238 (default_insn_is_jump): New.
15239 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15240 (default_insn_is_jump): New.
15242 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15244 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15246 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15247 (btrace_read_type) <btrace_read_new>: Change to ...
15248 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15250 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15252 * common/linux-btrace.c (linux_read_btrace): Free trace from
15253 previous iteration.
15255 2014-01-15 Doug Evans <dje@google.com>
15257 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15260 2014-01-15 Tom Tromey <tromey@redhat.com>
15262 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15263 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15264 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15265 (set_objfile_main_name): New function.
15266 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15267 language_of_main>: New fields.
15268 (set_objfile_main_name): Declare.
15269 * symtab.c (find_main_name): Loop over objfiles to find the main
15271 (set_main_name): Now static.
15272 (get_main_info): Add comment.
15273 * symtab.h (set_main_name): Don't declare.
15275 2014-01-15 Tom Tromey <tromey@redhat.com>
15277 * symtab.c (main_progspace_key): New global.
15278 (struct main_info): New.
15279 (name_of_main, language_of_main): Remove.
15280 (get_main_info, main_info_cleanup): New function.
15281 (set_main_name, main_name, main_language): Use get_main_info.
15282 (_initialize_symtab): Initialize main_progspace_key.
15284 2014-01-15 Tom Tromey <tromey@redhat.com>
15286 * dbxread.c (process_one_symbol): Update.
15287 * dwarf2read.c (read_partial_die): Update.
15288 * symfile.c (set_initial_language): Call main_language.
15289 * symtab.c (language_of_main): Now static.
15290 (set_main_name): Add 'lang' parameter.
15291 (find_main_name): Update.
15292 (main_language): New function.
15293 (symtab_observer_executable_changed): Update.
15294 * symtab.h (set_main_name): Update.
15295 (language_of_main): Remove.
15296 (main_language): Declare.
15298 2014-01-15 Tom Tromey <tromey@redhat.com>
15300 * symfile.c (init_entry_point_info): Use new "initialized" field.
15302 * objfiles.h (struct entry_point) <initialized>: New field.
15303 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15304 (struct objfile) <ei>: ...here. Remove.
15305 * objfiles.c (entry_point_address_query): Update.
15307 2014-01-15 Tom Tromey <tromey@redhat.com>
15309 * objfiles.c (entry_point_address_query): Relocate entry point
15311 (objfile_relocate1): Do not relocate entry point address.
15312 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15313 <the_bfd_section_index>: New field.
15314 * symfile.c (init_entry_point_info): Find the entry point's
15317 2014-01-15 Tom Tromey <tromey@redhat.com>
15319 * solib-frv.c (enable_break): Use entry_point_address_query.
15321 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15323 * NEWS: Add note on improved process record-replay on
15324 arm*-linux* targets.
15326 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15328 * arm-tdep.c (enum arm_record_result): New enum.
15329 (arm_record_unsupported_insn): New function.
15330 (arm_record_coproc_data_proc): Removed.
15331 (thumb2_record_ld_st_multiple): New function.
15332 (thumb2_record_ld_st_dual_ex_tbb): New function.
15333 (thumb2_record_data_proc_sreg_mimm): New function.
15334 (thumb2_record_ps_dest_generic): New function.
15335 (thumb2_record_branch_misc_cntrl): New function.
15336 (thumb2_record_str_single_data): New function.
15337 (thumb2_record_ld_mem_hints): New function.
15338 (thumb2_record_ld_word): New function.
15339 (thumb2_record_lmul_lmla_div): New function.
15340 (thumb2_record_decode_insn_handler): New function.
15341 (decode_insn): Add thumb32 instruction handlers.
15343 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15345 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15346 (struct arm_linux_record_tdep): Declare.
15347 (arm_canonicalize_syscall): New function.
15348 (arm_all_but_pc_registers_record): New function.
15349 (arm_linux_syscall_record): New function.
15350 (arm_linux_init_abi): Add syscall recording constructs.
15351 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15352 decoding. (arm_record_coproc_data_proc): Update arm syscall
15354 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15355 <arm_syscall_record>: New field.
15356 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15359 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15361 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15362 register for push instruction recording.
15364 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15366 * arm-tdep.c (thumb_record_misc): Update to correct logical
15367 error while recording ldm, ldmia and pop instructions.
15369 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15371 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15373 2014-01-15 Pedro Alves <palves@redhat.com>
15375 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15376 (go32_resume, go32_fetch_registers, store_register)
15377 (go32_store_registers, go32_prepare_to_store)
15378 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15379 (go32_create_inferior, go32_can_run, go32_terminal_init)
15380 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15383 2014-01-15 Tom Tromey <tromey@redhat.com>
15385 * target.h (async_callback_ftype): New typedef.
15386 (struct target_ops) <to_async>: Use it.
15388 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15390 * python/py-value.c (get_field_type): Remove unnecessary curly
15391 braces for single-statement if block.
15393 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15395 * python/py-type.c (convert_field): Add missing empty line
15396 after declarations.
15398 2014-01-14 Doug Evans <dje@google.com>
15400 * symfile.h (expand_symtabs_matching): Renamed from
15401 expand_partial_symbol_names. Update prototype.
15402 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15403 * symfile.c (expand_symtabs_matching): Renamed from
15404 expand_partial_symbol_names. New args file_matcher, kind.
15405 Rename arg fun to symbol_matcher.
15406 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15407 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15408 ada_expand_partial_symbol_name.
15409 (ada_make_symbol_completion_list): Update to call
15410 expand_symtabs_matching.
15411 (ada_add_global_exceptions): Call expand_symtabs_matching.
15412 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15413 call map_symbol_filenames.
15414 * symtab.c (sources_info): Update to call map_symbol_filenames.
15415 (search_symbols): Call expand_symtabs_matching.
15416 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15417 (default_make_symbol_completion_list_break_on): Update to call
15418 expand_symtabs_matching.
15419 (make_source_files_completion_list): Update to call
15420 map_symbol_filenames.
15422 2014-01-14 Doug Evans <dje@google.com>
15424 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15425 (expand_symtabs_symbol_matcher_ftype): New typedef.
15426 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15427 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15428 * symfile.c (expand_partial_symbol_names): Update to use
15429 expand_symtabs_symbol_matcher_ftype.
15430 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15431 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15432 Arg name_matcher renamed to symbol_matcher.
15433 * psymtab.c (recursively_search_psymtabs): Update to use
15434 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15436 (expand_symtabs_matching_via_partial): Update to use
15437 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15438 Arg name_matcher renamed to symbol_matcher.
15440 2014-01-14 Doug Evans <dje@google.com>
15442 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15443 (map_partial_symbol_filenames): Ditto.
15444 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15445 (map_partial_symbol_filenames): Ditto.
15446 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15447 (map_partial_symbol_filenames): Ditto.
15448 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15449 (map_partial_symbol_filenames): Ditto.
15450 * symtab.c: Delete #include "psymtab.h".
15452 2014-01-14 Pedro Alves <palves@redhat.com>
15453 Tom Tromey <tromey@redhat.com>
15455 * infrun.c (use_displaced_stepping): Use find_record_target
15456 instead of RECORD_IS_USED.
15457 (adjust_pc_after_break): Use record_full_is_used instead of
15459 * record-btrace.c (record_btrace_open): Call record_preopen
15460 instead of checking RECORD_IS_USED.
15461 * record-full.c (record_full_shortname)
15462 (record_full_core_shortname): New globals.
15463 (record_full_is_used): New function.
15464 (find_full_open): Call record_preopen instead of checking
15466 (init_record_full_ops): Set the target's shortname to
15467 record_full_shortname.
15468 (init_record_full_core_ops): Set the target's shortname to
15469 record_full_core_shortname.
15470 * record-full.h (record_full_is_used): Declare.
15471 * record.c (find_record_target): Make extern.
15472 (record_preopen): New function.
15473 * record.h (RECORD_IS_USED): Delete macro.
15474 (find_record_target, record_preopen): Declare functions.
15476 2014-01-14 Yao Qi <yao@codesourcery.com>
15478 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15479 'len''s type to ULONGEST.
15480 (core_xfer_shared_libraries_aix): Likewise.
15481 * gdbarch.c, gdbarch.h: Regenerated.
15482 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15483 Change type of 'len' to ULONGEST.
15484 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15485 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15487 2014-01-14 Yao Qi <yao@codesourcery.com>
15489 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15490 type of 'len' to ULONGEST.
15491 (linux_xfer_osdata_processgroups): Likewise.
15492 (linux_xfer_osdata_threads): Likewise.
15493 (linux_xfer_osdata_fds): Likewise.
15494 (linux_xfer_osdata_isockets): Likewise.
15495 (linux_xfer_osdata_shm): Likewise.
15496 (linux_xfer_osdata_sem): Likewise.
15497 (linux_xfer_osdata_msg): Likewise.
15498 (linux_common_xfer_osdata): Likewise.
15499 (struct osdata_type) <getter>: Likewise.
15500 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15503 2014-01-14 Yao Qi <yao@codesourcery.com>
15505 * target.h (target_xfer_partial_ftype): Update.
15506 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15508 * aix-thread.c (aix_thread_xfer_partial): Change type of
15509 argument 'len' to ULONGEST.
15510 * auxv.c (procfs_xfer_auxv): Likewise.
15511 (ld_so_xfer_auxv): Likewise.
15512 (memory_xfer_auxv): Likewise.
15513 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15514 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15515 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15516 * corelow.c (core_xfer_partial): Likewise.
15517 * ctf.c (ctf_xfer_partial): Likewise.
15518 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15520 (darwin_read_dyld_info): Likewise.
15521 (darwin_xfer_partial): Likewise.
15522 * exec.c (section_table_xfer_memory_partial): Likewise.
15523 (exec_xfer_partial): Likewise.
15524 * exec.h (section_table_xfer_memory_partial): Update
15526 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15527 instead of plongest.
15528 (gnu_xfer_partial): Likewise.
15529 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15530 (ia64_hpux_xfer_solib_got): Likewise.
15531 (ia64_hpux_xfer_partial): Likewise.
15532 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15533 * inf-ptrace.c (inf_ptrace_xfer_partial):
15534 * inf-ttrace.c (inf_ttrace_xfer_partial):
15535 * linux-nat.c (linux_xfer_siginfo): Likewise.
15536 (linux_nat_xfer_partial): Likewise.
15537 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15538 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15539 * monitor.c (monitor_xfer_memory): Likewise.
15540 (monitor_xfer_partial): Likewise.
15541 * procfs.c (procfs_xfer_partial): Likewise.
15542 * record-full.c (record_full_xfer_partial): Likewise.
15543 (record_full_core_xfer_partial): Likewise.
15544 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15545 instead of plongest.
15546 (gdbsim_xfer_partial): Likewise.
15547 * remote.c (remote_xfer_partial): Likewise.
15548 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15549 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15551 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15552 (rs6000_xfer_shared_libraries): Likewise.
15553 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15554 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15555 (sparc_xfer_partial): Likewise.
15556 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15557 (spu_xfer_partial): Likewise.
15558 * spu-multiarch.c (spu_xfer_partial): Likewise.
15559 * target.c (target_read_live_memory): Likewise.
15560 (memory_xfer_live_readonly_partial): Likewise.
15561 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15562 (target_xfer_partial, default_xfer_partial): Likewise.
15563 (current_xfer_partial): Likewise.
15564 * tracepoint.c (tfile_xfer_partial): Likewise.
15565 * windows-nat.c (windows_xfer_memory): Likewise. Call
15566 pulongest instead of plongest.
15567 (windows_xfer_partial): Likewise.
15568 (windows_xfer_shared_libraries): Likewise.
15570 2014-01-14 Yao Qi <yao@codesourcery.com>
15572 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15573 target_xfer_partial_ftype.
15575 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15579 * valops.c (value_struct_elt_bitpos): New function
15580 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15581 object to 'None' if the field name is an empty string ("").
15582 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15583 attribute to look for a field when 'name' is 'None'.
15584 (get_field_type): New function
15586 2014-01-13 Doug Evans <dje@google.com>
15589 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15590 (try_open_dwop_file): Ditto.
15591 * gdb_bfd.c: #include "vec.h".
15592 (bfdp): New typedef.
15593 (struct gdb_bfd_data): New member included_bfds.
15594 (gdb_bfd_unref): Unref all included bfds.
15595 (gdb_bfd_record_inclusion): New function.
15596 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15598 2014-01-13 Tom Tromey <tromey@redhat.com>
15600 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15602 2014-01-13 Tom Tromey <tromey@redhat.com>
15604 * defs.h (use_windows): Remove.
15605 * gdb.c (main): Update.
15606 * main.c (captured_main, gdb_main): Update.
15607 * main.h (struct captured_main_args) <use_windows>: Remove.
15608 * top.c (use_windows): Remove.
15610 2014-01-13 Tom Tromey <tromey@redhat.com>
15612 * defs.h (deprecated_flush_hook): Remove.
15614 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15617 * linux-thread-db.c (try_thread_db_load): Add parameter
15618 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15619 (try_thread_db_load_from_pdir_1): Move it there from here.
15620 (try_thread_db_load_from_sdir): Update caller.
15621 (try_thread_db_load_from_dir): Move it there from here.
15623 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15625 * regformats/regdat.sh: Always rewrite the register file.
15627 2014-01-13 Pedro Alves <palves@redhat.com>
15629 * Makefile.in (CHECK_HEADERS): New variable.
15630 (check-headers:): New rule.
15632 2014-01-13 Tom Tromey <tromey@redhat.com>
15634 * cli/cli-setshow.c (do_set_command): Update.
15635 * defs.h (deprecated_set_hook): Remove.
15636 * top.c (deprecated_set_hook): Remove.
15638 2014-01-13 Pedro Alves <palves@redhat.com>
15640 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15641 the tracepoint if the PC is a pseudo-register.
15643 2014-01-13 Tom Tromey <tromey@redhat.com>
15645 * defs.h (XCALLOC): Remove.
15646 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15647 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15648 * dwarf2loc.c (allocate_piece_closure): Likewise.
15649 * elfread.c (elf_symfile_segments): Likewise.
15650 (elf_symfile_segments): Likewise.
15651 * gdbtypes.c (copy_type_recursive): Likewise.
15652 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15653 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15654 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15656 * mt-tdep.c (mt_gdbarch_init): Likewise.
15657 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15659 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15660 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15661 * registry.c (registry_alloc_data): Likewise.
15662 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15663 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15664 * serial.c (serial_fdopen_ops): Likewise.
15665 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15667 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15668 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15671 2014-01-13 Tom Tromey <tromey@redhat.com>
15673 * defs.h (XMALLOC): Remove.
15674 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15675 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15676 * cli-out.c (struct ui_out *): Likewise.
15677 * cli/cli-dump.c (add_dump_command): Likewise.
15678 (add_dump_command): Likewise.
15679 * complaints.c (get_complaints): Likewise.
15680 (find_complaint): Likewise.
15681 * dwarf2-frame.c (execute_cfa_program): Likewise.
15682 * dwarf2read.c (abbrev_table_read_table): Likewise.
15683 * gdbarch.sh: Likewise.
15684 * gdbarch.c: Rebuild.
15685 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15686 * interps.c (interp_new): Likewise.
15687 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15688 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15689 * mi/mi-console.c (mi_console_file_new): Likewise.
15690 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15691 * mi/mi-out.c (mi_out_new): Likewise.
15692 * mi/mi-parse.c (mi_parse): Likewise.
15693 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15694 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15695 * observer.c (xalloc_observer_list_node): Likewise.
15696 * regcache.c (regcache_xmalloc_1): Likewise.
15697 * reggroups.c (reggroup_new): Likewise.
15698 (_initialize_reggroup): Likewise.
15699 * registry.c (register_data_with_cleanup): Likewise.
15700 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15701 * ser-base.c (serial_ttystate): Likewise.
15702 * ser-mingw.c (make_pipe_state): Likewise.
15703 * ser-pipe.c (pipe_open): Likewise.
15704 * serial.c (serial_open): Likewise.
15705 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15706 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15707 (tui_alloc_win_info): Likewise.
15708 (tui_add_content_elements): Likewise.
15709 * tui/tui-file.c (tui_file_new): Likewise.
15710 * tui/tui-out.c (tui_out_new): Likewise.
15711 * ui-file.c (mem_file_new): Likewise.
15712 * ui-out.c (push_level): Likewise.
15713 (make_cleanup_ui_out_end): Likewise.
15714 (append_header_to_list): Likewise.
15715 (ui_out_new): Likewise.
15716 * user-regs.c (user_reg_add_builtin): Likewise.
15718 2014-01-13 Tom Tromey <tromey@redhat.com>
15720 * defs.h (XZALLOC): Remove.
15721 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15722 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15723 (get_ada_tasks_inferior_data): Likewise.
15724 * auto-load.c (get_auto_load_pspace_data): Likewise.
15725 * auxv.c (get_auxv_inferior_data): Likewise.
15726 * bfd-target.c (target_bfd_reopen): Likewise.
15727 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15728 (deprecated_insert_raw_breakpoint): Likewise.
15729 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15730 * corelow.c (core_open): Likewise.
15731 * darwin-nat.c (darwin_check_new_threads): Likewise.
15732 (darwin_attach_pid): Likewise.
15733 * dummy-frame.c (dummy_frame_push): Likewise.
15734 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15735 * dwarf2loc.c (allocate_piece_closure): Likewise.
15736 * elfread.c (elf_symfile_segments): Likewise.
15737 * eval.c (ptrmath_type_p): Likewise.
15738 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15739 * gdbtypes.c (alloc_type_arch): Likewise.
15740 (alloc_type_instance): Likewise.
15741 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15742 * inf-child.c (inf_child_can_use_agent): Likewise.
15743 * inflow.c (get_inflow_inferior_data): Likewise.
15744 * infrun.c (save_infcall_suspend_state): Likewise.
15745 * jit.c (jit_reader_load): Likewise.
15746 (get_jit_objfile_data): Likewise.
15747 (get_jit_program_space_data): Likewise.
15748 (jit_object_open_impl): Likewise.
15749 (jit_symtab_open_impl): Likewise.
15750 (jit_block_open_impl): Likewise.
15751 (jit_frame_sniffer): Likewise.
15752 * linux-fork.c (add_fork): Likewise.
15753 * maint.c (make_command_stats_cleanup): Likewise.
15754 * objfiles.c (get_objfile_pspace_data): Likewise.
15755 * opencl-lang.c (struct lval_closure): Likewise.
15756 * osdata.c (osdata_start_osdata): Likewise.
15757 * progspace.c (new_address_space): Likewise.
15758 (add_program_space): Likewise.
15759 * remote-sim.c (get_sim_inferior_data): Likewise.
15760 * sh-tdep.c (sh_gdbarch_init): Likewise.
15761 * skip.c (Ignore): Likewise.
15762 (skip_delete_command): Likewise.
15763 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15764 (library_list_start_library): Likewise.
15765 (solib_aix_current_sos): Likewise.
15766 * solib-darwin.c (get_darwin_info): Likewise.
15767 (darwin_current_sos): Likewise.
15768 * solib-dsbt.c (get_dsbt_info): Likewise.
15769 * solib-ia64-hpux.c (new_so_list): Likewise.
15770 (ia64_hpux_get_solib_linkage_addr): Likewise.
15771 * solib-spu.c (append_ocl_sos): Likewise.
15772 (spu_current_sos): Likewise.
15773 * solib-svr4.c (get_svr4_info): Likewise.
15774 (svr4_keep_data_in_core): Likewise.
15775 (library_list_start_library): Likewise.
15776 (svr4_default_sos): Likewise.
15777 (svr4_read_so_list): Likewise.
15778 * solib-target.c (library_list_start_library): Likewise.
15779 (solib_target_current_sos): Likewise.
15780 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15781 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15782 * symfile.c (default_symfile_segments): Likewise.
15783 * target-descriptions.c (tdesc_data_init): Likewise.
15784 (tdesc_create_reg): Likewise.
15785 (struct tdesc_type *): Likewise.
15786 (tdesc_create_vector): Likewise.
15787 (tdesc_set_struct_size): Likewise.
15788 (struct tdesc_type *): Likewise.
15789 (tdesc_free_feature): Likewise.
15790 (tdesc_create_feature): Likewise.
15791 * windows-nat.c (windows_add_thread): Likewise.
15792 (windows_make_so): Likewise.
15793 * xml-support.c (gdb_xml_body_text): Likewise.
15794 (gdb_xml_create_parser_and_cleanup): Likewise.
15795 (xml_process_xincludes): Likewise.
15796 * xml-syscall.c (allocate_syscalls_info): Likewise.
15797 (syscall_create_syscall_desc): Likewise.
15799 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15801 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15802 function, with code from i386_stap_parse_special_token.
15803 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15804 (i386_stap_parse_special_token): Move code to the two functions
15805 above; simplify it.
15807 2014-01-09 Pedro Alves <palves@redhat.com>
15808 Hui Zhu <hui@codesourcery.com>
15811 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15812 bp_err_string. Don't mark the location shlib_disabled if the
15813 error thrown wasn't a generic or memory error. Catch errors
15814 thrown while inserting breakpoints in overlayed code. Output
15815 error message of software breakpoints.
15816 * remote.c (remote_insert_breakpoint): If this breakpoint has
15817 target-side commands but this stub doesn't support Z0 packets,
15818 throw NOT_SUPPORTED_ERROR error.
15819 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15820 * target.h (target_insert_breakpoint): Extend comment.
15821 (target_insert_hw_breakpoint): Add comment.
15823 2014-01-08 Pedro Alves <palves@redhat.com>
15825 * remote.c (remote_add_thread): Add threads silently if starting
15827 (remote_notice_new_inferior): If in all-stop, and starting up,
15828 don't call notice_new_inferior.
15829 (get_current_thread): New function, factored out from ...
15830 (add_current_inferior_and_thread): ... this. Adjust.
15831 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15832 found any thread, then select the remote's current thread as GDB's
15833 current thread too.
15835 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15837 * NEWS: Create a new section for the next release branch.
15838 Rename the section of the current branch, now that it has
15841 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15843 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15844 * version.in: Bump version to 7.7.50.DATE-cvs.
15846 2014-01-08 Yao Qi <yao@codesourcery.com>
15848 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15849 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15850 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15852 2014-01-08 Yao Qi <yao@codesourcery.com>
15854 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15855 return value of bfd_get_filename to symbol_file_add_from_bfd.
15857 2014-01-08 Pierre Muller <muller@sourceware.org>
15860 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15861 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15862 to prim_record_mininal_symbol_and_info.
15863 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15864 in call to prim_record_minimal_symbol_and_info.
15865 (read_pe_exported_syms): Set index field of section_data.
15867 2014-01-07 Andrew Pinski <apinski@cavium.com>
15869 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15870 * features/aarch64.c: Regenerate.
15872 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15874 * target.c (return_null): Define.
15875 (update_current_target): Use it instead of return_zero for
15876 functions that return a pointer.
15878 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15880 * source.c (add_path): Fix check for duplicated paths in the previously
15883 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15885 * ada-lang.c: Remove duplicated include statements.
15886 * alphabsd-nat.c: Ditto.
15887 * amd64-darwin-tdep.c: Ditto.
15888 * amd64fbsd-nat.c: Ditto.
15889 * auto-load.c: Ditto.
15891 * breakpoint.c: Ditto.
15892 * dbxread.c: Ditto.
15893 * fork-child.c: Ditto.
15894 * gdb_usleep.c: Ditto.
15895 * i386-darwin-tdep.c: Ditto.
15896 * i386fbsd-nat.c: Ditto.
15898 * inferior.c: Ditto.
15899 * jv-lang.c: Ditto.
15900 * linux-nat.c: Ditto.
15901 * linux-tdep.c: Ditto.
15902 * m68kbsd-nat.c: Ditto.
15903 * m68klinux-nat.c: Ditto.
15904 * microblaze-tdep.c: Ditto.
15905 * mips-linux-tdep.c: Ditto.
15906 * mn10300-tdep.c: Ditto.
15907 * nto-tdep.c: Ditto.
15908 * opencl-lang.c: Ditto.
15910 * printcmd.c: Ditto.
15911 * regcache.c: Ditto.
15912 * remote-m32r-sdi.c: Ditto.
15914 * symfile.c: Ditto.
15916 * tilegx-linux-nat.c: Ditto.
15917 * tilegx-tdep.c: Ditto.
15918 * tracepoint.c: Ditto.
15920 * vaxbsd-nat.c: Ditto.
15921 * windows-nat.c: Ditto.
15922 * xtensa-tdep.c: Ditto.
15924 2014-01-07 Yao Qi <yao@codesourcery.com>
15926 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15928 2014-01-07 Yao Qi <yao@codesourcery.com>
15929 Joel Brobecker <brobecker@adacore.com>
15931 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15932 (pdc_write_regs): Likewise.
15933 (fetch_regs_kernel_thread): Likewise.
15934 (store_regs_kernel_thread): Likewise.
15936 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15938 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15939 tagged type objects to their actual type.
15941 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15943 * ada-valprint.c (print_field_values): Add "language" parameter.
15944 Update calls to print_field_values and print_variant_part.
15945 Pass new parameter "language" in call to val_print instead
15946 of "current_language". Replace call to ada_val_print by call
15948 (print_variant_part): Add "language" parameter.
15949 (ada_val_print_struct_union): Update call to print_field_values.
15951 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15953 * ada-valprint.c (ui_memcpy): Delete.
15954 (ada_print_floating): Update documentation. Add empty line
15955 between between function documentation and implementation.
15956 Delete variable "buffer". Use ui_file_xstrdup in place of
15957 ui_file_put. Minor adjustments following this change.
15959 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15961 * ada-valprint.c (ada_val_print_string): New function,
15962 extracted from ada_val_print_array.
15963 (ada_val_print_array): Replace extracted code by call
15964 to ada_val_print_string followed by a return. Move
15965 "else" branch to the function's top block.
15967 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15969 * ada-valprint.c (ada_val_print_array): Move implementation
15970 down. Rename parameter "offset" and "val" into "offset_aligned"
15971 and "original_value" respectively. Add parameter "offset".
15973 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15975 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15976 re-organizing the code. Change the "???" message printed
15977 when target type is a TYPE_CODE_UNDEF into
15978 "<ref to undefined type>".
15980 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15982 * ada-valprint.c (print_record): Delete, implementation inlined...
15983 (ada_val_print_struct_union): ... here. Remove call to
15984 ada_check_typedef in inlined implementation.
15986 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15988 * ada-valprint.c (ada_val_print_gnat_array): New function,
15989 extracted from ada_val_print_1;
15990 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15991 (ada_val_print_flt, ada_val_print_struct_union)
15992 (ada_val_print_ref): Likewise.
15993 (ada_val_print_1): Delete variables i and elttype.
15994 Replace extracted-out code by call to corresponding
15997 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15999 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16001 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16003 * ada-valprint.c (ada_val_print_1): Replace calls to
16004 ada_val_print_1 by calls to val_print.
16006 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16008 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16009 Update calls to self accordingly. Replace calls to c_val_print
16010 by calls to val_print.
16012 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16014 * ada-valprint.c (print_record): Delete declaration.
16015 (adjust_type_signedness, ada_val_print_1): Likewise.
16016 (ada_val_print): Move function implementation down.
16017 (print_variant_part, print_field_values, print_record):
16018 Move function implementation up.
16020 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16022 * python/py-type.c (typy_get_name): New function.
16023 (type_object_getset): Add entry for attribute "name".
16024 * NEWS: Add entry mentioning this new attribute.
16026 2014-01-07 Yao Qi <yao@codesourcery.com>
16028 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16031 2014-01-07 Yao Qi <yao@codesourcery.com>
16033 * gnu-nat.c (info_port_rights): Add qualifier const to
16036 2014-01-07 Yao Qi <yao@codesourcery.com>
16038 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16040 2014-01-07 Yao Qi <yao@codesourcery.com>
16042 * gnu-nat.c (make_inf) Update declaration.
16043 (make_inf): Make it static.
16044 (inf_set_traced): Likewise.
16045 (inf_port_to_thread, inf_task_died_status): Likewise.
16047 2014-01-07 Yao Qi <yao@codesourcery.com>
16049 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16051 2014-01-07 Yao Qi <yao@codesourcery.com>
16053 * gnu-nat.c (_initialize_gnu_nat): Declare.
16055 2014-01-07 Yao Qi <yao@codesourcery.com>
16057 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16059 (struct gdbarch_info) <byte_order>: Change type to
16061 <byte_order_for_code>: Likewise.
16062 * gdbarch.c, gdbarch.h: Regenerated.
16064 2014-01-06 Sasha Smundak <asmundak@google.com>
16066 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16068 2014-01-06 Tom Tromey <tromey@redhat.com>
16070 * doublest.c (convert_doublest_to_floatformat): Use const, not
16072 * somread.c (som_symtab_read): Likewise.
16074 2014-01-07 Hui Zhu <hui@codesourcery.com>
16076 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16077 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16078 (gdb_bfd_fopen): Ditto.
16079 (gdb_bfd_openr): Ditto.
16080 (gdb_bfd_openw): Ditto.
16081 (gdb_bfd_openr_iovec): Ditto.
16082 (gdb_bfd_fdopenr): Ditto.
16083 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16084 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16086 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16088 * symfile-mem.c (symbol_file_add_from_memory): Removed
16089 gdb_bfd_stash_filename.
16091 2014-01-03 Doug Evans <dje@google.com>
16093 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16096 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16098 Update year range in copyright notice of all files.
16100 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16102 * top.c (print_gdb_version): Set copyright year to 2014.
16104 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16106 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16108 For older changes see ChangeLog-2013.
16114 version-control: never