1 2014-12-12 Tom Tromey <tromey@redhat.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
4 * osabi.h (osabi_triplet_regexp): Declare.
5 * osabi.c (struct osabi_names): New.
6 (gdb_osabi_names): Change type to struct osabi_names. Update
8 (gdbarch_osabi_name): Update.
9 (osabi_triplet_regexp): New function.
10 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
11 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
12 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
13 set_gdbarch_gnu_triplet_regexp.
14 * gdbarch.sh (gnu_triplet_regexp): New method.
15 * gdbarch.c, gdbarch.h: Rebuild.
16 * arch-utils.h (default_gnu_triplet_regexp): Declare.
17 * arch-utils.c (default_gnu_triplet_regexp): New function.
19 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
21 * arch-utils.c (default_infcall_mmap)
22 (default_gcc_target_options): New functions.
23 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
24 (GDB_MMAP_PROT_EXEC): Define.
25 (default_infcall_mmap, default_gcc_target_options): Declare.
28 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
30 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
32 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
34 (pop_dummy_frame): Call the destructor if it exists.
35 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
37 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
38 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
40 2014-12-12 Tom Tromey <tromey@redhat.com>
42 * gdbtypes.h (make_unqualified_type): Declare.
43 * gdbtypes.c (make_unqualified_type): New function.
45 2014-12-12 Tom Tromey <tromey@redhat.com>
47 * ui-file.h (ui_file_write_for_put): Declare.
48 * ui-file.c (ui_file_write_for_put): New function.
49 * mi/mi-out.c (do_write): Remove.
50 (mi_out_put): Use ui_file_write_for_put.
52 2014-12-12 Doug Evans <dje@google.com>
54 * NEWS: Mention gdb.lookup_objfile.
55 * python/python.c (GdbMethods): Add lookup_objfile.
56 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
57 * python/py-objfile.c: #include "symtab.h".
58 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
59 (objfpy_lookup_objfile_by_name): New function.
60 (objfpy_lookup_objfile_by_build_id): New function.
61 (gdbpy_lookup_objfile): New function.
63 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
65 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
66 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
67 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
69 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
72 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
74 * completer.c: Include "target.h", "reggroups.h", and
76 (reg_or_group_completer): New.
77 * completer.h (reg_or_group_completer): Declare.
78 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
79 the "info registers" and "info all-registers" commands and the
80 dbx-mode "lr" command.
82 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
84 * user-regs.c: Include "arch-utils.h", "command.h", and
86 (maintenance_print_user_registers): New.
87 (_initialize_user_regs): Register new "maint print user-registers"
89 * NEWS: Mention new GDB command "maint print user-registers".
91 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
92 Maciej W. Rozycki <macro@mips.com>
93 Pedro Alves <pedro@codesourcery.com>
95 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
96 remove `predefault' and `invalid_p' initializers.
97 (make_symbol_special): New architecture method.
98 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
99 (objfile, symbol): New declarations.
100 * arch-utils.h (default_elf_make_msymbol_special): Remove
102 (default_make_symbol_special): New prototype.
103 (default_adjust_dwarf2_addr): Likewise.
104 (default_adjust_dwarf2_line): Likewise.
105 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
106 * arch-utils.c (default_elf_make_msymbol_special): Remove
108 (default_make_symbol_special): New function.
109 (default_adjust_dwarf2_addr): Likewise.
110 (default_adjust_dwarf2_line): Likewise.
111 * dwarf2-frame.c (decode_frame_entry_1): Call
112 `gdbarch_adjust_dwarf2_addr'.
113 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
114 * dwarf2read.c (create_addrmap_from_index): Likewise.
115 (process_psymtab_comp_unit_reader): Likewise.
116 (add_partial_symbol): Likewise.
117 (add_partial_subprogram): Likewise.
118 (process_full_comp_unit): Likewise.
119 (read_file_scope): Likewise.
120 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
121 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
122 (read_call_site_scope): Likewise.
123 (dwarf2_ranges_read): Likewise.
124 (dwarf2_record_block_ranges): Likewise.
125 (read_attribute_value): Likewise.
126 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
127 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
128 * elfread.c (elf_symtab_read): Don't call
129 `gdbarch_elf_make_msymbol_special' if unset.
130 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
131 the ISA bit from the PC.
132 * mips-tdep.c (mips_unmake_compact_addr): New function.
133 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
134 address appropriately.
135 (mips_make_symbol_special): New function.
136 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
137 (mips_pc_is_mips16): Likewise.
138 (mips_pc_is_micromips): Likewise.
139 (mips_pc_isa): Likewise.
140 (mips_adjust_dwarf2_addr): New function.
141 (mips_adjust_dwarf2_line): Likewise.
142 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
143 (mips_addr_bits_remove): Likewise.
144 (mips_skip_trampoline_code): Likewise.
145 (mips_write_pc): Don't set the ISA bit.
146 (mips_eabi_push_dummy_call): Likewise.
147 (mips_o64_push_dummy_call): Likewise.
148 (mips_gdbarch_init): Install `mips_make_symbol_special',
149 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
151 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
152 target-specific symbol address adjustments.
153 * gdbarch.h: Regenerate.
154 * gdbarch.c: Regenerate.
156 2014-12-12 Yao Qi <yao@codesourcery.com>
159 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
160 'skip_pc'. Remove code skipping prologue instructions, use
161 arm_analyze_prologue instead.
162 (arm_analyze_prologue): Stop the scanning for unrecognized
163 instruction when skipping prologue.
165 2014-12-12 Yao Qi <yao@codesourcery.com>
167 * arm-tdep.c (arm_instruction_restores_sp): New function.
168 (arm_analyze_prologue): Call arm_instruction_restores_sp.
169 (arm_in_function_epilogue_p): Move code to
170 arm_instruction_restores_sp.
172 2014-12-11 Doug Evans <xdje42@gmail.com>
174 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
176 2014-12-11 Doug Evans <xdje42@gmail.com>
178 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
179 (symbol *lookup_symbol_via_quick_fns): Ditto.
180 (lookup_symbol_in_objfile): Add forward decl.
181 (lookup_global_symbol_from_objfile): Simplify, call
182 lookup_symbol_in_objfile.
184 2014-12-11 Doug Evans <xdje42@gmail.com>
186 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
188 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
191 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
192 it is marked as persistent.
194 2014-12-10 Doug Evans <xdje42@gmail.com>
196 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
197 closer to its subroutines.
199 2014-12-10 Doug Evans <xdje42@gmail.com>
201 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
203 2014-12-10 Doug Evans <xdje42@gmail.com>
205 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
206 * cp-support.c (cp_lookup_symbol_imports): Delete.
208 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
211 * target.c (cleanup_restore_target_terminal): New function.
212 (make_cleanup_restore_target_terminal): New function.
213 * target.h (make_cleanup_restore_target_terminal): New declaration.
214 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
216 2014-12-08 Doug Evans <dje@google.com>
218 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
220 2014-12-08 Doug Evans <dje@google.com>
222 * NEWS: Mention gdb.Objfile.owner.
223 * python/py-objfile.c (objfpy_get_owner): New function.
224 (objfile_getset): Add "owner".
226 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
228 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
229 (lookup_global_symbol_from_objfile): Call it.
231 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
233 Remove const from struct objfile *.
234 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
235 symtab.c, symtab.h: In these files.
237 2014-12-05 Andreas From <andreas.from@ericsson.com>
239 * MAINTAINERS (Write After Approval): Add "Andreas From"
241 2014-12-05 Doug Evans <xdje42@gmail.com>
245 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
247 2014-12-04 Doug Evans <dje@google.com>
249 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
250 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
251 (objfile_getset): Add "add_separate_debug_file".
253 2014-12-04 Doug Evans <dje@google.com>
255 * NEWS: Mention gdb.Objfile.build_id.
256 * build-id.c (build_id_bfd_get): Make non-static.
257 * build-id.h (build_id_bfd_get): Add declaration.
258 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
259 (OBJFPY_REQUIRE_VALID): New macro.
260 (objfpy_get_build_id): New function.
261 (objfile_getset): Add "build_id".
262 * utils.c (make_hex_string): New function.
263 * utils.h (make_hex_string): Add declaration.
265 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
267 * block.c (block_lookup_symbol_primary): New function.
268 * block.h (block_lookup_symbol_primary): New declaration.
269 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
270 Call block_lookup_symbol_primary.
272 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
274 * tramp-frame.h (tramp_frame): Add `validate' member.
275 * tramp-frame.c (tramp_frame_start): Validate trampoline before
277 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
278 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
279 (mips_linux_o32_sigframe): Initialize `validate' member.
280 (mips_linux_o32_rt_sigframe): Likewise.
281 (mips_linux_n32_rt_sigframe): Likewise.
282 (mips_linux_n64_rt_sigframe): Likewise.
283 (micromips_linux_o32_sigframe): New variable.
284 (micromips_linux_o32_rt_sigframe): Likewise.
285 (micromips_linux_n32_rt_sigframe): Likewise.
286 (micromips_linux_n64_rt_sigframe): Likewise.
287 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
288 (mips_linux_n32n64_sigframe_init): Likewise.
289 (mips_linux_sigframe_validate): New function.
290 (micromips_linux_sigframe_validate): Likewise.
291 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
293 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
295 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
296 * sparc-sol2-tdep.c: Include "regset.h".
297 (sparc32_sol2_supply_core_gregset): New function.
298 (sparc32_sol2_collect_core_gregset): Likewise.
299 (sparc32_sol2_supply_core_fpregset): Likewise.
300 (sparc32_sol2_collect_core_fpregset): Likewise.
301 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
302 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
303 tdep->fpregset/sizeof_fpregset.
304 * sparc64-sol2-tdep.c: Include "regset.h".
305 (sparc64_sol2_supply_core_gregset): New function.
306 (sparc64_sol2_collect_core_gregset): Likewise.
307 (sparc64_sol2_supply_core_fpregset): Likewise.
308 (sparc64_sol2_collect_core_fpregset): Likewise.
309 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
310 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
311 tdep->fpregset/sizeof_fpregset.
313 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
315 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
318 2014-12-02 Doug Evans <dje@google.com>
320 * symtab.c (symbol_init_cplus_specific): Delete.
321 (symbol_set_demangled_name): Remove special c++ support.
322 (symbol_get_demangled_name, symbol_set_language): Ditto.
323 * symtab.h (struct cplus_specific): Delete.
324 (struct general_symbol_info) <language_specific>: Remove
327 2014-12-02 Doug Evans <dje@google.com>
330 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
332 2014-12-02 Doug Evans <dje@google.com>
335 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
338 2014-12-02 Doug Evans <dje@google.com>
340 * dwarf2read.c (peek_die_abbrev): Improve error message text.
342 2014-12-02 Doug Evans <dje@google.com>
344 * valops.c (do_search_struct_field): Remove remnant of Chill support.
345 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
347 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
349 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
351 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
353 * NEWS: Mention new Python events.
354 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
355 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
356 (py-infevents.o): New rule.
357 * doc/observer.texi (inferior_call_pre, inferior_call_post)
358 (memory_changed, register_changed): New observers.
359 * infcall.c (call_function_by_hand): Notify observer before and
361 * python/py-event.h (inferior_call_kind): New enum.
362 (emit_inferior_call_event): New prototype.
363 (emit_register_changed_event): New prototype.
364 (emit_memory_changed_event): New prototype.
365 * python/py-events.h (events_object): New registries
366 inferior_call, memory_changed and register_changed.
367 * python/py-evts.c (gdbpy_initialize_py_events): Add the
368 inferior_call, memory_changed and register_changed registries.
369 * python/py-infevents.c: New.
370 * python/py-inferior.c (python_on_inferior_call_pre)
371 (python_on_inferior_call_post, python_on_register_change)
372 (python_on_memory_change): New functions.
373 (gdbpy_initialize_inferior): Attach python handler to new
375 * python/py-infthread.c(gdbpy_create_ptid_object): New.
376 (thpy_get_ptid) Use gdbpy_create_ptid_object.
377 * python/python-internal.h:
378 (gdbpy_create_ptid_object)
379 (gdbpy_initialize_inferior_call_pre_event)
380 (gdbpy_initialize_inferior_call_post_event)
381 (gdbpy_initialize_register_changed_event)
382 (gdbpy_initialize_memory_changed_event): New prototypes.
383 * python/python.c (_initialize_python): Initialize new events.
384 * valops.c (value_assign): Notify register_changed observer.
386 2014-12-02 Doug Evans <dje@google.com>
388 * python/py-infthread.c: Whitespace fixes.
390 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
392 * features/Makefile (s390-te-linux64-expedite): Replace
393 non-existant r14 and r15 by r14l and r15l, respectively.
394 * regformats/s390-te-linux64.dat: Regenerate.
396 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
398 * objfiles.c (allocate_objfile): Remove duplicate comment.
400 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
402 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
403 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
404 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
405 (supply_gregset, supply_fpregset): Remove.
406 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
407 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
410 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
412 Add add-auto-load-scripts-directory.
413 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
414 * auto-load.c (add_auto_load_dir): New function.
415 (_initialize_auto_load): Install it.
417 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
419 Pushed by Joel Brobecker <brobecker@adacore.com>.
420 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
422 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
424 * eval.c (evaluate_subexp): Check that the thread stack temporaries
425 are not already enabled before enabling them.
427 2014-11-29 Yao Qi <yao@codesourcery.com>
429 * arm-tdep.c (arm_analyze_prologue): Move local variables
430 'framereg' and 'framesize' to inner block. Move code to
433 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
435 * eval.c: Include gdbthread.h.
436 (evaluate_subexp): Enable thread stack temporaries before
437 evaluating a complete expression and clean them up after the
438 evaluation is complete.
439 * gdbthread.h: Include common/vec.h.
440 (value_ptr): New typedef.
441 (VEC (value_ptr)): New vector type.
442 (value_vec): New typedef.
443 (struct thread_info): Add new fields stack_temporaries_enabled
444 and stack_temporaries.
445 (enable_thread_stack_temporaries)
446 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
447 (get_last_thread_stack_temporary)
448 (value_in_thread_stack_temporaries): Declare.
449 * gdbtypes.c (class_or_union_p): New function.
450 * gdbtypes.h (class_or_union_p): Declare.
451 * infcall.c (call_function_by_hand): Store return values of class
452 type as temporaries on stack.
453 * thread.c (enable_thread_stack_temporaries): New function.
454 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
455 (get_last_thread_stack_temporary): Likewise.
456 (value_in_thread_stack_temporaries): Likewise.
457 * value.c (value_force_lval): New function.
458 * value.h (value_force_lval): Declare.
460 2014-11-28 Pierre Muller <muller@sourceware.org>
462 Pushed by Joel Brobecker <brobecker@adacore.com>.
463 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
466 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
468 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
469 * config/sparc/linux.mh (NATDEPFILES): Likewise.
470 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
471 * m68klinux-nat.c (fetch_core_registers): Remove.
472 (linux_elf_core_fns): Remove.
473 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
475 2014-11-28 Joel Brobecker <brobecker@adacore.com>
477 * utils.c (gdb_realpath): Rework comment about handling on
480 2014-11-28 Yao Qi <yao@codesourcery.com>
482 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
484 * gnulib/aclocal.m4: Re-generated.
485 * gnulib/config.in: Re-generated.
486 * gnulib/configure: Re-generated.
487 * gnulib/import/Makefile.am: Re-generated.
488 * gnulib/import/Makefile.in: Re-generated.
489 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
490 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
491 * import/basename-lgpl.c: New file.
492 * import/dirname-lgpl.c: New file.
493 * import/dirname.h: New file.
494 * import/m4/dirname.m4: New file.
495 * import/m4/malloc.m4: New file.
496 * import/m4/rename.m4: New file.
497 * import/m4/rmdir.m4: New file.
498 * import/m4/stdio_h.m4: New file.
499 * import/malloc.c: New file.
500 * import/rename.c: New file.
501 * import/rmdir.c: New file.
502 * import/same-inode.h: New file.
503 * import/stdio.c: New file.
504 * import/stdio.in.h: New file.
505 * import/stripslash.c: New file.
507 2014-11-28 Yao Qi <yao@codesourcery.com>
509 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
511 * config.in: Re-generated.
512 * configure: Re-generated.
513 * utils.c (gdb_realpath): Remove code calling realpath,
514 canonicalize_file_name and pathconf.
515 [!_WIN32]: Call canonicalize_file_name.
517 2014-11-28 Yao Qi <yao@codesourcery.com>
519 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
521 * aclocal.m4: Re-generated.
522 * config.in: Re-generated.
523 * configure: Re-generated.
524 * import/Makefile.am: Re-generated.
525 * import/Makefile.in: Re-generated.
526 * import/m4/gnulib-cache.m4: Re-generated.
527 * import/m4/gnulib-comp.m4: Re-generated.
528 * import/canonicalize-lgpl.c: New file.
529 * import/extra/snippet/_Noreturn.h: New file.
530 * import/m4/canonicalize.m4: New file.
531 * import/m4/double-slash-root.m4: New file.
532 * import/m4/eealloc.m4: New file.
533 * import/m4/malloca.m4: New file.
534 * import/m4/nocrash.m4: New file.
535 * import/m4/stdlib_h.m4: New file.
536 * import/malloca.c: New file.
537 * import/malloca.h: New file.
538 * import/malloca.valgrind: New file.
540 2014-11-28 Yao Qi <yao@codesourcery.com>
542 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
543 * config.in, configure: Regenerate.
544 * symfile.c (find_separate_debug_file_by_debuglink): Remove
545 code checking HAVE_LSTAT is defined.
547 2014-11-28 Yao Qi <yao@codesourcery.com>
549 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
551 * gnulib/aclocal.m4: Re-generated.
552 * gnulib/config.in: Re-generated.
553 * gnulib/configure: Re-generated.
554 * gnulib/import/Makefile.am: Re-generated.
555 * gnulib/import/Makefile.in: Re-generated.
556 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
557 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
558 * gnulib/import/lstat.c: New file.
559 * gnulib/import/m4/lstat.m4: New file.
561 2014-11-28 Yao Qi <yao@codesourcery.com>
563 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
564 * config.in, configure: Re-generate.
565 * inf-child.c (inf_child_fileio_readlink): Don't check
566 HAVE_READLINK is defined.
568 2014-11-28 Yao Qi <yao@codesourcery.com>
570 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
571 * gnulib/aclocal.m4: Re-generated.
572 * gnulib/config.in: Likewise.
573 * gnulib/configure: Likewise.
574 * gnulib/import/Makefile.am: Likewise.
575 * gnulib/import/Makefile.in: Likewise.
576 * gnulib/import/m4/gnulib-cache.m4: Likewise.
577 * gnulib/import/m4/gnulib-comp.m4: Likewise.
578 * gnulib/import/dosname.h: New file
579 * gnulib/import/m4/largefile.m4: New file.
580 * gnulib/import/m4/readlink.m4: New file.
581 * gnulib/import/m4/stat.m4: New file.
582 * gnulib/import/readlink.c: New file.
583 * gnulib/import/stat.c: New file.
585 2014-11-26 Mark Wielaard <mjw@redhat.com>
587 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
588 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
590 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
592 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
593 that there can be only one stack adjustment in the prologue
594 with tests to detect specific disallowed stack adjustments.
596 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
598 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
601 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
603 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
604 the instruction as well as reading it from memory.
605 (nios2_match_add): New.
606 (nios2_match_sub): New.
607 (nios2_match_addi): New.
608 (nios2_match_orhi): New.
609 (nios2_match_stw): New.
610 (nios2_match_ldw): New.
611 (nios2_match_rdctl): New.
612 (enum branch_condition): New.
613 (nios2_match_branch): New.
614 (nios2_match_jmpi): New.
615 (nios2_match_calli): New.
616 (nios2_match_jmpr): New.
617 (nios2_match_callr): New.
618 (nios2_match_break): New.
619 (nios2_match_trap): New.
620 (nios2_in_epilogue_p): Rewrite to use new functions.
621 (nios2_analyze_prologue): Likewise.
622 (nios2_skip_prologue): Delete unused local limit_pc.
623 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
624 (nios2_get_next_pc): Rewrite to use new functions.
626 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
628 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
630 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
632 Pushed by Joel Brobecker <brobecker@adacore.com>
633 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
634 elements pi_len by the size of the elements before calling
636 (inf_validate_task_sc): Likewise, and properly deallocate the
639 2014-11-23 Doug Evans <xdje42@gmail.com>
641 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
642 number and name if present. All callers updated.
643 (dump_fn_fieldlists): Fix indentation of args.
645 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
647 * MAINTAINERS (Write After Approval): Add myself.
649 2014-11-23 Joel Brobecker <brobecker@adacore.com>
651 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
652 to a bp_call_dummy breakpoint type.
654 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
656 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
657 registering the signal handler.
659 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
661 * event-top.h (call_stdin_event_handler_again_p): Declare.
662 * event-top.c (call_stdin_event_handler_again_p): Define.
663 (stdin_event_handler): Use it.
664 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
665 handler again if there is pending input following a
668 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
670 Pushed by Joel Brobecker <brobecker@adacore.com>
671 * linux-fork.c (checkpoint_command): Print index of new
672 checkpoint in response message.
674 2014-11-23 Yao Qi <yao@codesourcery.com>
676 * valprint.c (read_string): Move local variables 'found_nul',
677 'chunksize' and 'limit' to inner scope. Update comments.
679 2014-11-22 Doug Evans <xdje42@gmail.com>
681 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
683 (search_symbols): Fix comments and whitespace.
685 2014-11-22 Doug Evans <xdje42@gmail.com>
687 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
689 2014-11-21 Doug Evans <dje@google.com>
691 * psymtab.c (psymtab_search_name): Fix whitespace.
693 2014-11-21 Yao Qi <yao@codesourcery.com>
695 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
697 * gnulib/import/Makefile.am: Re-generated.
698 * gnulib/import/Makefile.in: Likewise.
699 * gnulib/import/m4/gnulib-cache.m4: Likewise.
701 2014-11-21 Yao Qi <yao@codesourcery.com>
703 * gdb_wchar.h: Include wchar.h and wctype.h.
704 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
705 include wchar.h and wctype.h.
706 Don't check HAVE_WCHAR_H.
708 2014-11-21 Yao Qi <yao@codesourcery.com>
710 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
712 * gnulib/import/Makefile.am: Re-generated.
713 * gnulib/import/Makefile.in: Likewise.
714 * gnulib/import/m4/gnulib-cache.m4: Likewise.
716 2014-11-21 Yao Qi <yao@codesourcery.com>
718 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
720 * gnulib/import/Makefile.am: Re-generated.
721 * gnulib/import/Makefile.in: Likewise.
722 * gnulib/import/m4/gnulib-cache.m4: Likewise.
724 2014-11-21 Yao Qi <yao@codesourcery.com>
726 * common/common-defs.h: Include alloca.h
727 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
728 * configure: Re-generated.
729 * defs.h: Remove code handling alloca.
730 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
733 2014-11-21 Yao Qi <yao@codesourcery.com>
735 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
737 * gnulib/import/Makefile.am: Re-generated.
738 * gnulib/import/Makefile.in: Likewise..
739 * gnulib/import/m4/gnulib-cache.m4: Likewise.
741 2014-11-21 Yao Qi <yao@codesourcery.com>
743 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
746 2014-11-21 Joel Brobecker <brobecker@adacore.com>
748 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
749 flag_unsigned if HIGH_BOUND is constant and negative.
751 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
754 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
755 modifier from "struct gdbarch" when compiling without Expat (XML)
757 (get_syscall_by_number): Likewise.
758 (get_syscall_by_name): Likewise.
759 (get_syscall_names): Likewise.
761 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
764 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
765 set_xml_syscall_file_name to provide gdbarch.
766 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
767 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
768 * breakpoint.c (print_it_catch_syscall): Adjust call to
769 get_syscall_by_number to provide gdbarch.
770 (print_one_catch_syscall): Likewise.
771 (print_mention_catch_syscall): Likewise.
772 (print_recreate_catch_syscall): Likewise.
773 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
774 and get_syscall_by_name to provide gdbarch.
775 (catch_syscall_completer): Adjust call to get_syscall_names to
777 * gdbarch.c: Regenerate.
778 * gdbarch.h: Likewise.
779 * gdbarch.sh: Forward declare "struct syscalls_info".
780 (xml_syscall_file): New variable.
781 (syscalls_info): Likewise.
782 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
783 set_xml_syscall_file_name to provide gdbarch.
784 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
785 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
786 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
787 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
788 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
789 * xml-syscall.c: Include gdbarch.h.
790 (set_xml_syscall_file_name): Accept gdbarch parameter.
791 (get_syscall_by_number): Likewise.
792 (get_syscall_by_name): Likewise.
793 (get_syscall_names): Likewise.
794 (my_gdb_datadir): Delete global variable.
795 (struct syscalls_info) <my_gdb_datadir>: New variable.
796 (struct syscalls_info) <sysinfo>: Rename variable to
798 (sysinfo): Delete global variable.
799 (have_initialized_sysinfo): Likewise.
800 (xml_syscall_file): Likewise.
801 (sysinfo_free_syscalls_desc): Rename to...
802 (syscalls_info_free_syscalls_desc): ... this.
803 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
804 code to the new layout of "struct syscalls_info".
805 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
807 (syscall_create_syscall_desc): Likewise.
808 (syscall_start_syscall): Likewise.
809 (syscall_parse_xml): Likewise.
810 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
811 (init_sysinfo): Rename to...
812 (init_syscalls_info): ...this. Add gdbarch as a parameter.
813 Adjust function to deal with gdbarch.
814 (xml_get_syscall_number): Delete parameter sysinfo. Accept
815 gdbarch as a parameter. Adjust code.
816 (xml_get_syscall_name): Likewise.
817 (xml_list_of_syscalls): Likewise.
818 (set_xml_syscall_file_name): Accept gdbarch as parameter.
819 (get_syscall_by_number): Likewise.
820 (get_syscall_by_name): Likewise.
821 (get_syscall_names): Likewise.
822 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
823 (get_syscall_by_number): Likewise.
824 (get_syscall_by_name): Likewise.
825 (get_syscall_names): Likewise.
827 2014-11-20 Doug Evans <xdje42@gmail.com>
829 Split struct symtab into two: struct symtab and compunit_symtab.
830 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
831 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
832 to "struct compunit_symtab *". All callers updated.
833 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
834 "struct symtab *" argument to "struct compunit_symtab *".
836 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
837 result to "struct compunit_symtab *". All callers updated.
838 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
839 Change result to "struct compunit_symtab *". All callers updated.
840 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
841 hange type to "struct compunit_symtab *". All uses updated.
842 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
843 Change type to "struct compunit_symtab *". All uses updated.
844 * buildsym.c (struct buildsym_compunit): New struct.
845 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
846 (buildsym_compunit): New static global.
847 (finish_block_internal): Update to fetch objfile from
849 (make_blockvector): Delete objfile argument.
850 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
851 debugformat, producer.
852 (start_buildsym_compunit): New function.
853 (free_buildsym_compunit): Renamed from free_subfiles_list.
855 (patch_subfile_names): Rewrite to use buildsym_compunit.
856 (get_compunit_symtab): New function.
857 (get_macro_table): Delete argument comp_dir. All callers updated.
858 (start_symtab): Change result to "struct compunit_symtab *".
859 All callers updated. Create the subfile of the main source file.
860 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
861 (reset_symtab_globals): Update.
862 (end_symtab_get_static_block): Update to use buildsym_compunit.
863 (end_symtab_without_blockvector): Rewrite.
864 (end_symtab_with_blockvector): Change result to
865 "struct compunit_symtab *". All callers updated.
866 Update to use buildsym_compunit. Don't set symtab->dirname,
867 instead set it in the compunit.
868 Explicitly make sure main symtab is first in its list.
869 Set debugformat, producer, blockvector, block_line_section, and
870 macrotable in the compunit.
871 (end_symtab_from_static_block): Change result to
872 "struct compunit_symtab *". All callers updated.
873 (end_symtab, end_expandable_symtab): Ditto.
874 (set_missing_symtab): Change symtab argument to
875 "struct compunit_symtab *". All callers updated.
876 (augment_type_symtab): Ditto.
877 (record_debugformat): Update to use buildsym_compunit.
878 (record_producer): Update to use buildsym_compunit.
879 * buildsym.h (struct subfile) <dirname>: Delete.
880 <producer, debugformat>: Delete.
881 <buildsym_compunit>: New member.
882 (get_compunit_symtab): Declare.
883 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
884 from primary_symtab. Change type to "struct compunit_symtab *".
886 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
888 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
889 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
890 symtab. Change type to "struct compunit_symtab *". All uses updated.
891 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
893 (dw2_find_last_source_symtab): Ditto.
894 (dw2_lookup_symbol): Ditto.
895 (recursively_find_pc_sect_compunit_symtab): Renamed from
896 recursively_find_pc_sect_symtab. Change result to
897 "struct compunit_symtab *". All callers updated.
898 (dw2_find_pc_sect_compunit_symtab): Renamed from
899 dw2_find_pc_sect_symtab. Change result to
900 "struct compunit_symtab *". All callers updated.
901 (get_compunit_symtab): Renamed from get_symtab. Change result to
902 "struct compunit_symtab *". All callers updated.
903 (recursively_compute_inclusions): Change type of immediate_parent
904 argument to "struct compunit_symtab *". All callers updated.
905 (compute_compunit_symtab_includes): Renamed from
906 compute_symtab_includes. All callers updated. Rewrite to compute
907 includes of compunit_symtabs and not symtabs.
908 (process_full_comp_unit): Update to work with struct compunit_symtab.
909 (process_full_type_unit): Ditto.
910 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
911 (dwarf_decode_lines): Remove special case handling of main subfile.
912 (macro_start_file): Delete argument comp_dir. All callers updated.
913 (dwarf_decode_macro_bytes): Ditto.
914 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
915 use struct compunit_symtab.
916 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
917 * jit.c (finalize_symtab): Build compunit_symtab.
918 * jv-lang.c (get_java_class_symtab): Change result to
919 "struct compunit_symtab *". All callers updated.
920 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
921 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
922 comp_dir. Change type to "struct compunit_symtab *".
924 (new_macro_table): Change comp_dir argument to cust,
925 "struct compunit_symtab *". All callers updated.
926 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
927 nr_primary_symtabs. All uses updated.
928 (count_symtabs_and_blocks): Update to handle compunits.
929 (report_command_stats): Update output, "primary symtabs" renamed to
931 * mdebugread.c (new_symtab): Change result to
932 "struct compunit_symtab *". All callers updated.
933 (parse_procedure): Change type of search_symtab argument to
934 "struct compunit_symtab *". All callers updated.
935 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
937 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
938 symtabs. Change type to "struct compunit_symtab *". All uses updated.
939 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
941 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
943 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
944 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
945 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
946 symtab. Change type to "struct compunit_symtab *". All uses updated.
947 * psymtab.c (psymtab_to_symtab): Change result type to
948 "struct compunit_symtab *". All callers updated.
949 (find_pc_sect_compunit_symtab_from_partial): Renamed from
950 find_pc_sect_symtab_from_partial. Change result type to
951 "struct compunit_symtab *". All callers updated.
952 (lookup_symbol_aux_psymtabs): Change result type to
953 "struct compunit_symtab *". All callers updated.
954 (find_last_source_symtab_from_partial): Ditto.
955 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
956 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
957 and macro_table from compunit.
958 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
959 type to "struct compunit_symtab *". All callers updated.
960 (debug_qf_lookup_symbol): Ditto.
961 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
962 debug_qf_find_pc_sect_symtab, change result type to
963 "struct compunit_symtab *". All callers updated.
964 * symfile.c (allocate_symtab): Delete objfile argument.
966 (allocate_compunit_symtab): New function.
967 (add_compunit_symtab_to_objfile): New function.
968 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
969 Change result type to "struct compunit_symtab *". All uses updated.
970 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
971 Change result type to "struct compunit_symtab *". All uses updated.
972 * symmisc.c (print_objfile_statistics): Compute blockvector count in
974 (dump_symtab_1): Update test for primary source symtab.
975 (maintenance_info_symtabs): Update to handle compunit symtabs.
976 (maintenance_check_symtabs): Ditto.
977 * symtab.c (set_primary_symtab): Delete.
978 (compunit_primary_filetab): New function.
979 (compunit_language): New function.
980 (iterate_over_some_symtabs): Change type of arguments "first",
981 "after_last" to "struct compunit_symtab *". All callers updated.
982 Update to loop over symtabs in each compunit.
983 (error_in_psymtab_expansion): Rename symtab argument to cust,
984 and change type to "struct compunit_symtab *". All callers updated.
985 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
986 Change result type to "struct compunit_symtab *". All callers updated.
987 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
988 Change result type to "struct compunit_symtab *". All callers updated.
989 (find_pc_sect_line): Only loop over symtabs within selected compunit
990 instead of all symtabs in the objfile.
991 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
992 <compunit_symtab> New member.
993 <block_line_section>: Moved to compunit_symtab.
994 <locations_valid>: Ditto.
995 <epilogue_unwind_valid>: Ditto.
996 <macro_table>: Ditto.
998 <debugformat>: Ditto.
1001 <call_site_htab>: Ditto.
1005 (SYMTAB_COMPUNIT): New macro.
1006 (SYMTAB_BLOCKVECTOR): Update definition.
1007 (SYMTAB_OBJFILE): Update definition.
1008 (SYMTAB_DIRNAME): Update definition.
1009 (struct compunit_symtab): New type. Common members among all source
1010 symtabs within a compilation unit moved here. All uses updated.
1011 (COMPUNIT_OBJFILE): New macro.
1012 (COMPUNIT_FILETABS): New macro.
1013 (COMPUNIT_DEBUGFORMAT): New macro.
1014 (COMPUNIT_PRODUCER): New macro.
1015 (COMPUNIT_DIRNAME): New macro.
1016 (COMPUNIT_BLOCKVECTOR): New macro.
1017 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1018 (COMPUNIT_LOCATIONS_VALID): New macro.
1019 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1020 (COMPUNIT_CALL_SITE_HTAB): New macro.
1021 (COMPUNIT_MACRO_TABLE): New macro.
1022 (ALL_COMPUNIT_FILETABS): New macro.
1023 (compunit_symtab_ptr): New typedef.
1024 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1026 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1028 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1029 if the TYPE_CODE of range_type's base type does not match
1030 the TYPE_CODE of encoding_type's base type.
1032 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1034 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1037 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1039 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1040 (ada_is_redundant_index_type_desc): New function.
1041 (to_fixed_array_type): Ignore parallel XA type if redundant.
1043 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1045 * ada-lang.c (constrained_packed_array_type): Set the length
1046 of the return array as if both bounds where zero if that
1047 returned array's index type is dynamic.
1049 2014-11-19 Yao Qi <yao@codesourcery.com>
1051 * config/i386/go32.mh (CC): Remove.
1053 2014-11-18 Doug Evans <xdje42@gmail.com>
1055 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1058 2014-11-18 Doug Evans <xdje42@gmail.com>
1060 * buildsym.c (buildsym_objfile): New static global.
1061 (buildsym_comp_dir): New static global.
1062 (finish_block_internal): Delete arg objfile. All callers updated.
1063 (finish_block): Delete arg objfile. All callers updated.
1064 (start_subfile): Delete arg dirname. All callers updated.
1065 (patch_subfile_names): Update buildsym_comp_dir.
1066 (get_macro_table): Delete arg objfile. All callers updated.
1067 (start_symtab): New arg objfile. All callers updated.
1068 Rename arg dirname to comp_dir.
1069 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1070 (end_symtab_get_static_block): Delete arg objfile. All callers
1072 (end_symtab_without_blockvector): Ditto.
1073 (end_symtab_with_blockvector): Ditto.
1074 (end_symtab_from_static_block): Ditto.
1075 (end_symtab): Ditto.
1076 (end_expandable_symtab): Ditto.
1077 (augment_type_symtab): Ditto.
1078 * coffread.c (coff_start_symtab): New arg objfile. All callers
1081 2014-11-18 Doug Evans <xdje42@gmail.com>
1083 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1086 2014-11-18 Doug Evans <xdje42@gmail.com>
1088 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1089 symtab.dirname updated to use it.
1091 2014-11-18 Doug Evans <xdje42@gmail.com>
1093 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1094 symtab.objfile updated to use it.
1096 2014-11-18 Doug Evans <xdje42@gmail.com>
1098 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1100 2014-11-18 Doug Evans <xdje42@gmail.com>
1102 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1104 * findvar.c (default_read_var_value): Ditto.
1105 * jv-lang.c (add_class_symtab_symbol): Ditto.
1106 * parse.c (operator_check_standard): Ditto.
1107 * printcmd.c (address_info): Ditto.
1108 * symtab.c (fixup_symbol_section): Ditto.
1109 (skip_prologue_sal): Ditto.
1110 * tracepoint.c (scope_info): Ditto.
1111 * valops.c (find_function_in_inferior): Ditto.
1112 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1113 * python/py-symbol.c (set_symbol): Ditto.
1115 2014-11-18 Doug Evans <xdje42@gmail.com>
1117 * buildsym.c (main_subfile): New static global.
1118 (free_subfiles_list): New function.
1119 (start_symtab): Set main_subfile.
1120 (restart_symtab): Replace init of subfiles, current_subfile with
1121 call to free_subfiles_list.
1122 (watch_main_source_file_lossage): Use main_subfile.
1123 (reset_symtab_globals): Replace init of current_subfile with call
1124 to free_subfiles_list.
1125 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1126 functions, split out from ...
1127 (end_symtab_from_static_block): ... here. Rewrite to call them.
1129 2014-11-18 Doug Evans <xdje42@gmail.com>
1131 The result of symtab expansion is always a primary symtab.
1132 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1133 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1134 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1135 (psymtab_to_symtab): Add comment and assert.
1136 (map_matching_symbols_psymtab): Remove unnecessary test for
1139 2014-11-15 Doug Evans <xdje42@gmail.com>
1142 * symtab.c (find_pc_line_symtab): New function.
1143 * symtab.h (find_pc_line_symtab): Declare.
1144 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1146 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1147 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1148 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1149 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1150 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1151 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1153 2014-11-15 Doug Evans <xdje42@gmail.com>
1155 * symtab.c (expand_symtab_containing_pc): Renamed from
1156 find_pc_sect_symtab_via_partial. All callers updated.
1158 2014-11-15 Yao Qi <yao@codesourcery.com>
1160 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1162 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1164 * common/common-defs.h: Move <stdarg.h> #include ahead of
1167 2014-11-14 Pedro Alves <palves@redhat.com>
1169 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1170 [!PHONY_ICONV] (gdb_iconv): New function.
1171 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1173 2014-11-13 Doug Evans <dje@google.com>
1176 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1177 "(anonymous namespace)".
1179 2014-11-13 Doug Evans <dje@google.com>
1181 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1184 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1186 * NEWS (maint set target-async): Fix typo.
1188 2014-11-12 Pedro Alves <palves@redhat.com>
1190 * infrun.c (enum infwait_states, infwait_state): Delete.
1192 2014-11-12 Pedro Alves <palves@redhat.com>
1194 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1195 Rewrite stepping over a permanent breakpoint.
1196 (thread_still_needs_step_over, proceed): Don't set
1197 stepping_over_breakpoint for permanent breakpoints.
1198 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1199 single-step breakpoints out of the target on hardware step
1201 (process_event_stop_test): If stepping a permanent breakpoint
1202 doesn't hit the step-resume breakpoint, delete the step-resume
1204 (switch_back_to_stepped_thread): Also check if the stepped thread
1205 has advanced already on hardware step targets.
1206 (currently_stepping): Return true if the thread stepped a
1209 2014-11-12 Pedro Alves <palves@redhat.com>
1211 Mark locations as permanent, not the whole breakpoint.
1212 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1213 (mark_breakpoints_out): Don't mark permanent breakpoints as
1215 (breakpoint_init_inferior): Use mark_breakpoints_out.
1216 (breakpoint_here_p): Adjust.
1217 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1218 of permanent breakpoints.
1219 (make_breakpoint_permanent): Mark each location as permanent,
1220 instead of marking the breakpoint.
1221 (add_location_to_breakpoint): If the location is permanent, mark
1222 it as such, and as inserted.
1223 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1224 (bp_location_compare, update_global_location_list): Adjust.
1225 (update_breakpoint_locations): Don't make the breakpoint permanent
1227 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1229 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1230 (struct bp_location) <permanent>: New field.
1231 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1232 reference to bp_permanent.
1234 2014-11-12 Pedro Alves <palves@redhat.com>
1236 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1237 * arch-utils.h (default_skip_permanent_breakpoint): New
1239 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1240 Install default_skip_permanent_breakpoint as default method.
1241 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1242 (i386_gdbarch_init): Don't install it.
1243 * infrun.c (resume): Assume there's always a
1244 gdbarch_skip_permanent_breakpoint implementation.
1245 * gdbarch.h, gdbarch.c: Regenerate.
1247 2014-11-11 Daniel Colascione <dancol@dancol.org>
1249 Warn about cross-PID-namespace debugging.
1250 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1251 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1252 * linux-thread-db.c (check_pid_namespace_match): New function.
1253 (thread_db_inferior_created): Call it.
1255 2014-11-10 Doug Evans <xdje42@gmail.com>
1257 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1258 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1260 2014-11-10 Doug Evans <xdje42@gmail.com>
1262 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1264 2014-11-10 Doug Evans <xdje42@gmail.com>
1267 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1268 (lookup_static_symbol): Move definition to new location and rewrite.
1269 (lookup_symbol_in_objfile): New function.
1270 (lookup_symbol_global_iterator_cb): Call it.
1272 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1274 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1276 2014-11-07 Pedro Alves <palves@redhat.com>
1278 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1279 check if we did a "nexti" inside a prologue.
1280 * symtab.c (in_prologue): Delete function.
1281 * symtab.h (in_prologue): Delete declaration.
1283 2014-11-06 Doug Evans <xdje42@gmail.com>
1285 * symtab.h (lookup_global_symbol): Improve function comment.
1287 2014-11-06 Doug Evans <xdje42@gmail.com>
1289 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1290 All callers updated.
1291 * symtab.h (lookup_global_symbol): Update decl.
1292 (lookup_static_symbol): Move decl to better location.
1294 2014-11-06 Doug Evans <xdje42@gmail.com>
1296 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1298 2014-11-06 Doug Evans <xdje42@gmail.com>
1300 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1301 All callers updated.
1302 (lookup_symbol_in_all_objfiles): Renamed from
1303 lookup_symbol_aux_symtabs. All callers updated.
1304 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1305 All callers updated.
1306 (lookup_symbol_in_objfile_symtabs): Renamed from
1307 lookup_symbol_aux_objfile. All callers updated.
1309 2014-11-06 Doug Evans <xdje42@gmail.com>
1311 * symtab.c (lookup_symbol_in_block): Renamed from
1312 lookup_symbol_aux_block. All callers updated.
1314 2014-11-06 Doug Evans <xdje42@gmail.com>
1316 * symtab.c (lookup_static_symbol): Renamed from
1317 lookup_static_symbol_aux. All callers updated.
1318 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1319 All callers updated.
1321 2014-11-06 Doug Evans <xdje42@gmail.com>
1323 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1324 * block.c (block_lookup_symbol): Use it.
1325 * cp-support.c (make_symbol_overload_list_block): Use it.
1326 * symtab.c (iterate_over_symbols): Use it.
1328 2014-11-06 Doug Evans <xdje42@gmail.com>
1330 * symtab.c (lookup_block_symbol): Moved to ...
1331 * block.c (block_lookup_symbol): ... here and renamed.
1332 All callers updated.
1333 * block.h (block_lookup_symbol): Declare.
1334 * symtab.h (lookup_block_symbol): Delete.
1336 2014-11-06 Doug Evans <xdje42@gmail.com>
1338 * ada-lang.c (ada_make_symbol_completion_list): Use
1339 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1340 * symtab.c (lookup_objfile_from_block): Ditto.
1342 2014-11-06 Doug Evans <xdje42@gmail.com>
1344 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1347 2014-11-06 Doug Evans <xdje42@gmail.com>
1349 * objfiles.c (get_objfile_arch): Constify.
1350 * objfiles.h (get_objfile_arch): Update prototype.
1351 * solib.c (solib_global_lookup): Fetch arch from objfile,
1354 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1356 * nios2-tdep.c (wild_insn): Delete.
1357 (profiler_insn, irqentry_insn): Delete.
1358 (nios2_match_sequence): Delete.
1359 (nios2_analyze_prologue): Update comments. Remove matching
1360 of obsolete profiler_insn and irqentry_insn sequences.
1362 2014-11-05 Alan Modra <amodra@gmail.com>
1364 * charset.c (convert_between_encodings): Shrink obstack using
1366 * minsyms.c (install_minimal_symbols): Likewise.
1367 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1368 to char* before doing pointer arithmetic.
1370 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1372 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1374 2014-11-04 Pedro Alves <palves@redhat.com>
1376 * breakpoint.c (breakpoint_thread_match): Delete function.
1377 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1379 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1382 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1383 the method args also under EVAL_SKIP when evaluating method
1384 calls under EVAL_SKIP.
1386 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1388 * dwarf2loc.c (read_pieced_value): Do big endian
1389 processing only if gdb_regnum is not -1.
1390 (write_pieced_value): Ditto.
1392 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1394 * arm-linux-tdep.c (arm_linux_init_abi): Use
1395 info.byte_order_for_code to choose endianity of breakpoint
1396 instructions snippets.
1398 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1400 * arm-tdep.c (extract_arm_insn): Use
1401 gdbarch_byte_order_for_code to read arm instruction.
1403 2014-11-02 Doug Evans <xdje42@gmail.com>
1405 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1407 2014-11-02 Doug Evans <xdje42@gmail.com>
1409 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1410 main_subfile before returning.
1412 2014-10-31 Doug Evans <xdje42@gmail.com>
1414 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1415 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1417 2014-10-31 Doug Evans <xdje42@gmail.com>
1419 * valops.c (value_cast_pointers): Fix whitespace.
1420 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1423 2014-10-30 Doug Evans <dje@google.com>
1425 * NEWS: Mention ability add attributes to gdb.Objfile and
1426 gdb.Progspace objects.
1427 * python/py-objfile.c (objfile_object): New member dict.
1428 (objfpy_dealloc): Py_XDECREF dict.
1429 (objfpy_initialize): Initialize dict.
1430 (objfile_getset): Add __dict__.
1431 (objfile_object_type): Set tp_dictoffset member.
1432 * python/py-progspace.c (progspace_object): New member dict.
1433 (pspy_dealloc): Py_XDECREF dict.
1434 (pspy_initialize): Initialize dict.
1435 (pspace_getset): Add __dict__.
1436 (pspace_object_type): Set tp_dictoffset member.
1438 2014-10-30 Yao Qi <yao@codesourcery.com>
1440 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1441 replace '\\' with '\\\\'.
1443 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1447 2014-10-29 Pedro Alves <palves@redhat.com>
1450 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1451 instead of assuming a thread with a stepping range is always
1454 2014-10-29 Pedro Alves <palves@redhat.com>
1457 * event-top.c (change_line_handler): Call
1458 gdb_rl_callback_handler_remove instead of
1459 rl_callback_handler_remove.
1460 (callback_handler_installed): New global.
1461 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1462 (gdb_rl_callback_handler_reinstall): New functions.
1463 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1464 gdb_rl_callback_handler_install instead of
1465 rl_callback_handler_remove and rl_callback_handler_install.
1466 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1467 instead of rl_callback_handler_remove.
1468 * event-top.h (gdb_rl_callback_handler_remove)
1469 (gdb_rl_callback_handler_install)
1470 (gdb_rl_callback_handler_reinstall): New declarations.
1471 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1473 (fetch_inferior_event): Install it.
1474 * top.c (gdb_readline_wrapper_line) Call
1475 gdb_rl_callback_handler_remove instead of
1476 rl_callback_handler_remove.
1477 (gdb_readline_wrapper_cleanup): Don't call
1478 rl_callback_handler_install.
1480 2014-10-29 Pedro Alves <palves@redhat.com>
1482 * event-top.c (command_line_handler): Clear the first byte of
1483 linebuffer, when it is first allocated.
1485 2014-10-29 Pedro Alves <palves@redhat.com>
1487 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1490 2014-10-29 Pedro Alves <palves@redhat.com>
1494 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1495 (tui_allowed_p): Delete function.
1496 * tui/tui.c: Include "interps.h".
1497 (tui_enable): Don't use tui_allowed_p. Error out here with
1498 detailed error messages if the TUI is the top level interpreter,
1499 or if output is not a terminal. Use newterm instead of initscr,
1500 and error out if initializing the terminal fails. Also error out if
1501 the terminal doesn't support cursor addressing.
1502 * tui/tui.h (tui_allowed_p): Delete declaration.
1504 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1506 * arm-tdep.c (arm_skip_stack_protector): Return early if
1507 address loaded by first "ldr" instruction does not have
1508 a corresponding minimal symbol. Update comment.
1510 2014-10-29 Yao Qi <yao@codesourcery.com>
1512 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1513 loaded address correctly of ldr instruction.
1515 2014-10-28 Pedro Alves <palves@redhat.com>
1518 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1520 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1521 thread's stepped_breakpoint field. Skip if reverse debugging.
1523 (init_thread_stepping_state, handle_signal_stop): Clear the
1524 thread's stepped_breakpoint field.
1526 2014-10-27 Pedro Alves <palves@redhat.com>
1528 * remote.c (remote_thread_alive): New, factored out from ...
1529 (remote_thread_alive): ... this.
1530 (remote_update_thread_list): Bail out before deleting threads if
1531 the target returned an empty list, and, the current thread has a
1534 2014-10-27 Pedro Alves <palves@redhat.com>
1536 * infrun.c (handle_signal_stop): Also skip handlers when a random
1537 signal arrives while handling a "stepi" or a "nexti". Set the
1538 thread's 'step_after_step_resume_breakpoint' flag.
1540 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1542 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1543 (arm_record_ld_st_imm_offset): Reimplement to cover all
1544 load/store cases for ARM opcode 010.
1545 (arm_record_ld_st_multiple): Reimplement to cover all
1546 load/store cases for ARM opcode 100.
1548 2014-10-26 Doug Evans <xdje42@gmail.com>
1550 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1552 2014-10-26 Doug Evans <xdje42@gmail.com>
1554 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1555 parameter "kind" to "block_index".
1556 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1558 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1560 2014-10-26 Doug Evans <xdje42@gmail.com>
1562 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1564 2014-10-26 Doug Evans <xdje42@gmail.com>
1566 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1569 2014-10-26 Doug Evans <xdje42@gmail.com>
1571 * parser-defs.h (block_found): Move decl from here ...
1572 * symtab.h (block_found): ... to here.
1574 2014-10-26 Doug Evans <xdje42@gmail.com>
1576 * symtab.h (struct field_of_this_result): Fix typo in comment.
1577 (lookup_symbol_in_language): Move function comment here.
1578 (lookup_symbol): Improve function comment.
1579 (basic_lookup_symbol_nonlocal): Ditto.
1580 (lookup_symbol_static, lookup_symbol_global): Ditto.
1581 (lookup_symbol_aux_block): Ditto.
1582 (lookup_language_this): Add function comment.
1583 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1585 (lookup_block_symbol): Improve function comment.
1586 (lookup_struct): Fix capitalization in function comment.
1587 (lookup_transparent_type): Add function comment.
1588 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1589 Improve function comment.
1590 (lookup_objfile_from_block): Add function comment.
1591 * symtab.c (lookup_symbol_in_language): Update function comment.
1592 (lookup_symbol, lookup_language_this): Ditto.
1593 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1594 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1595 (basic_lookup_symbol_nonlocal): Ditto.
1596 (lookup_symbol_static, lookup_symbol_global): Ditto.
1597 (lookup_transparent_type, lookup_block_symbol): Ditto.
1599 2014-10-25 Doug Evans <xdje42@gmail.com>
1601 * symtab.c (types_info): Delete forward decl.
1602 (functions_info, variables_info, sources_info): Ditto.
1603 (_initialize_symtab): Rewrite forward decl to use
1604 initialize_file_ftype.
1606 2014-10-25 Doug Evans <xdje42@gmail.com>
1608 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1610 2014-10-25 Doug Evans <xdje42@gmail.com>
1612 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1613 of local var child_die.
1615 2014-10-24 Don Breazeal <donb@codesourcery.com>
1617 * infrun.c (follow_fork_inferior): Update fork message printing
1618 to use target_terminal_ours_for_output instead of
1619 target_terminal_ours, to use _() for all format strings, to print
1620 "vfork" instead of "fork" for vforks, and to add a detach message.
1621 (handle_vfork_child_exec_or_exit): Update message printing to use
1622 target_terminal_ours_for_output instead of target_terminal_ours, to
1623 use _() for all format strings, and to fix some formatting.
1625 2014-10-24 Pedro Alves <palves@redhat.com>
1627 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1628 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1629 * config/vax/vax.mh: Delete.
1630 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1631 obsolete configurations section.
1632 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1633 * vax-nat.c: Delete file.
1635 2014-10-24 Pedro Alves <palves@redhat.com>
1637 * NEWS (Removed targets): Add OS/arch column.
1639 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1641 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1642 on the arg type of a constructor only if it is of reference type.
1644 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1646 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1647 accessors and constants from nios2 opcodes update.
1648 (nios2_get_next_pc): Likewise.
1650 2014-10-19 Doug Evans <xdje42@gmail.com>
1652 * gdbthread.h (set_running): Fix comment.
1653 (set_executing, finish_thread_state): Fix comment.
1655 2014-10-18 Doug Evans <xdje42@gmail.com>
1657 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1659 2014-10-17 Doug Evans <dje@google.com>
1661 * NEWS: Mention new event gdb.clear_objfiles.
1662 * python/py-event.h (emit_clear_objfiles_event): Clear
1663 * python/py-events.h (events_object): New member clear_objfiles.
1664 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1666 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1667 emit clear_objfiles event.
1668 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1670 (emit_clear_objfiles_event): New function.
1671 (clear_objfiles): New event.
1672 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1674 * python/python.c (_initialize_python): Call
1675 gdbpy_initialize_clear_objfiles_event.
1677 2014-10-17 Doug Evans <dje@google.com>
1679 * NEWS: Mention new gdb.Objfile.progspace attribute.
1680 * python/py-objfile.c (objfpy_get_progspace): New function.
1681 (objfile_getset): New entry for "progspace".
1683 2014-10-17 Pedro Alves <palves@redhat.com>
1686 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1687 returns a copy of the input.
1688 (run_command_1, continue_command, step_1, jump_command)
1689 (signal_command, until_command, advance_command, finish_command)
1690 (attach_command): Adjust and install a cleanup to free the
1693 2014-10-17 Pedro Alves <palves@redhat.com>
1696 * infcmd.c (continue_1): If continuing all threads in the
1697 foreground, make sure the inferior's terminal settings are put in
1700 2014-10-17 Pedro Alves <palves@redhat.com>
1703 * annotate.c (annotate_breakpoints_invalid): Use
1704 target_terminal_our_for_output instead of target_terminal_ours.
1705 Give back the terminal to the target.
1706 (annotate_frames_invalid): Likewise.
1708 2014-10-17 Pedro Alves <palves@redhat.com>
1710 * target.c (enum terminal_state): New enum.
1711 (terminal_state): New global.
1712 (target_terminal_init): New function.
1713 (target_terminal_inferior): Skip if inferior already owns the
1715 (target_terminal_ours, target_terminal_ours_for_output): New
1717 * target.h (target_terminal_init): Convert to function prototype.
1718 (target_terminal_ours_for_output): Convert to function prototype
1720 (target_terminal_ours): Convert to function prototype and tweak
1722 * windows-nat.c (do_initial_windows_stuff): Call
1723 target_terminal_init instead of child_terminal_init_with_pgrp.
1725 2014-10-17 Pedro Alves <palves@redhat.com>
1727 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1728 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1729 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1731 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1732 * ada-lang.h [__alpha__ && __osf__]
1733 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1734 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1735 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1737 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1739 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1740 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1741 * configure: Regenerate.
1742 * configure.ac: Remove references to osf.
1743 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1744 section. Remove all other references to osf.
1745 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1746 Remove all other references to osf.
1747 * dec-thread.c: Delete file.
1748 * defs.h (GDB_OSABI_OSF1): Delete.
1749 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1751 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1752 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1754 (unconditionally_kill_inferior)
1755 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1756 * solib-osf.c: Delete file.
1758 2014-10-17 Pedro Alves <palves@redhat.com>
1760 * remote.c (clear_threads_listing_context): Move higher up, out of
1761 the HAVE_LIBEXPAT guard.
1763 2014-10-16 Tristan Gingold <gingold@adacore.com>
1765 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1766 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1769 2014-10-15 Pedro Alves <palves@redhat.com>
1771 * dec-thread.c (dec_thread_count_gdb_threads)
1772 (dec_thread_add_gdb_thread): Delete.
1773 (dec_thread_update_thread_list): Delete.
1774 (dec_thread_find_new_threads): Rename to ...
1775 (dec_thread_update_thread_list): ... this. Delete GDB-size
1776 threads that are no longer found in dec_thread_list.
1777 (resync_thread_list): Delete.
1778 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1781 2014-10-15 Pedro Alves <palves@redhat.com>
1783 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1784 * remote.c (remote_update_thread_list): Skip calling prune_threads
1785 if any thread listing method is supported, and instead walk over
1786 the set of remote threads listed, deleting those that are not
1787 found in GDB's thread list.
1789 2014-10-15 Pedro Alves <palves@redhat.com>
1791 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1792 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1793 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1794 (bsd_uthread_target): Adjust.
1795 * corelow.c (core_open): Adjust.
1796 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1797 (dec_thread_update_thread_list): New function.
1798 (init_dec_thread_ops): Adjust.
1799 * gdbthread.h (prune_threads): New declaration.
1800 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1801 (thread_db_update_thread_list): ... this. Call prune_threads.
1802 (init_thread_db_ops): Adjust.
1803 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1804 (procfs_update_thread_list): ... this. Call prune_threads.
1805 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1807 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1808 (obsd_update_thread_list): ... this. Call prune_threads.
1809 (obsd_add_target): Adjust.
1810 * procfs.c (procfs_target): Adjust.
1811 (procfs_notice_thread): Update comment.
1812 (procfs_find_new_threads): Rename to ...
1813 (procfs_update_thread_list): ... this. Call prune_threads.
1814 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1816 (ravenscar_wait): Adjust.
1817 (ravenscar_find_new_threads): Rename to ...
1818 (ravenscar_update_thread_list): ... this. Call prune_threads.
1819 (init_ravenscar_thread_ops): Adjust.
1820 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1821 (record_btrace_update_thread_list): ... this. Adjust comment.
1822 (init_record_btrace_ops): Adjust.
1823 * remote.c (remote_threads_info): Rename to ...
1824 (remote_update_thread_list): ... this. Call prune_threads.
1825 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1827 * sol-thread.c (check_for_thread_db): Adjust.
1828 (sol_find_new_threads_callback): Rename to ...
1829 (sol_update_thread_list_callback): ... this.
1830 (sol_find_new_threads): Rename to ...
1831 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1832 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1833 * target-delegates.c: Regenerate.
1834 * target.c (target_find_new_threads): Rename to ...
1835 (target_update_thread_list): ... this.
1836 * target.h (struct target_ops): Rename to_find_new_threads field
1837 to to_update_thread_list.
1838 (target_find_new_threads): Rename to ...
1839 (target_update_thread_list): ... this.
1840 * thread.c (prune_threads): Make extern.
1841 (update_thread_list): Adjust.
1843 2014-10-15 Pedro Alves <palves@redhat.com>
1845 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1846 Add describing comment. Return -1 if the qL packet is not
1848 (struct thread_item, thread_item_t): Move higher up in
1849 the file. Add comments.
1850 (struct threads_parsing_context): Move higher up in
1851 the file, add comments, and remote to ...
1852 (struct threads_listing_context): ... this.
1853 (remote_newthread_step): Don't add the thread to GDB's thread
1854 database here. Instead push it to the thread_listing_context
1856 (remote_find_new_threads): Rename to ...
1857 (remote_get_threads_with_ql): ... this. Add target_ops and
1858 targets_listing_context parameters. Pass down context.
1859 (start_thread): Adjust.
1860 (clear_threads_parsing_context): Rename to ...
1861 (clear_threads_listing_context): ... this.
1862 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1863 remote_threads_info.
1864 (remote_get_threads_with_qthreadinfo): Ditto.
1865 (remote_threads_info): Reimplement.
1867 2014-10-15 Pedro Alves <palves@redhat.com>
1869 * infrun.c (resume): Don't force displaced-stepping for all
1870 single-steps on software single-stepping archs.
1872 2014-10-15 Pedro Alves <palves@redhat.com>
1874 * breakpoint.c (single_step_breakpoints): Delete global.
1875 (insert_single_step_breakpoint): Adjust to store the breakpoint
1876 pointer in the current thread.
1877 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1878 (cancel_single_step_breakpoints): Delete functions.
1879 (breakpoint_has_location_inserted_here): Make extern.
1880 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1882 * breakpoint.h (breakpoint_has_location_inserted_here): New
1884 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1885 (cancel_single_step_breakpoints): Remove declarations.
1886 * gdbthread.h (struct thread_control_state)
1887 <single_step_breakpoints>: New field.
1888 (delete_single_step_breakpoints)
1889 (thread_has_single_step_breakpoints_set)
1890 (thread_has_single_step_breakpoint_here): New declarations.
1891 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1892 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1893 (singlestep_pc): Delete globals.
1894 (infrun_thread_ptid_changed): Remove references to removed
1896 (resume_cleanups): Delete the current thread's single-step
1898 (maybe_software_singlestep): Remove references to removed globals.
1899 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1900 delete_single_step_breakpoints.
1901 (init_wait_for_inferior): Remove references to removed globals.
1902 (delete_thread_infrun_breakpoints): Delete the thread's
1903 single-step breakpoints too.
1904 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1905 single-step breakpoints here.
1906 (delete_stopped_threads_single_step_breakpoints): New function.
1907 (adjust_pc_after_break): Adjust to use
1908 thread_has_single_step_breakpoints_set.
1909 (handle_inferior_event): Remove references to removed globals.
1910 Use delete_stopped_threads_single_step_breakpoints.
1911 (handle_signal_stop): Adjust to per-thread single-step
1912 breakpoints. Swap test order to do cheaper tests first.
1913 (switch_back_to_stepped_thread): Extend debug output. Remove
1914 references to removed globals.
1915 * record-full.c (record_full_wait_1): Adjust to per-thread
1916 single-step breakpoints.
1917 * thread.c (delete_single_step_breakpoints)
1918 (thread_has_single_step_breakpoints_set)
1919 (thread_has_single_step_breakpoint_here): New functions.
1920 (clear_thread_inferior_resources): Also delete the thread's
1921 single-step breakpoints.
1923 2014-10-15 Pedro Alves <palves@redhat.com>
1925 * thread.c (delete_thread_breakpoint): New function.
1926 (delete_step_resume_breakpoint)
1927 (delete_exception_resume_breakpoint): Use it.
1928 (delete_at_next_stop): New function.
1929 (clear_thread_inferior_resources): Use delete_at_next_stop.
1931 2014-10-15 Pedro Alves <palves@redhat.com>
1933 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1934 (breakpoint_inserted_here_p): ... here. Remove special case for
1935 software single-step breakpoints.
1936 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1937 (software_breakpoint_inserted_here_p): ... here. Remove special
1938 case for software single-step breakpoints.
1939 (bp_target_info_copy_insertion_state)
1940 (deprecated_insert_raw_breakpoint)
1941 (deprecated_remove_raw_breakpoint): Delete functions.
1942 * breakpoint.h (deprecated_insert_raw_breakpoint)
1943 (deprecated_remove_raw_breakpoint): Remove declarations.
1945 2014-10-15 Pedro Alves <palves@redhat.com>
1948 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1949 Delete array globals.
1950 (single_step_breakpoints): New global.
1951 (breakpoint_xfer_memory): Remove special handling for single-step
1953 (update_breakpoints_after_exec): Delete bp_single_step
1955 (detach_breakpoints): Remove special handling for single-step
1957 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1958 (bpstat_stop_status): Add comment.
1959 (bpstat_what, bptype_string, print_one_breakpoint_location)
1960 (adjust_breakpoint_address, init_bp_location): Handle
1962 (new_single_step_breakpoint): New function.
1963 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1964 handling for single-step breakpoints.
1965 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1966 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1968 (detach_single_step_breakpoints, find_single_step_breakpoint):
1970 (breakpoint_has_location_inserted_here): New function.
1971 (single_step_breakpoint_inserted_here_p): Rewrite.
1972 * breakpoint.h: Remove FIXME.
1973 (enum bptype) <bp_single_step>: New enum value.
1974 (insert_single_step_breakpoint): Update comment.
1975 * infrun.c (resume_cleanups)
1976 (delete_step_thread_step_resume_breakpoint): Remove single-step
1978 (fetch_inferior_event): Install a cleanup that removes infrun
1980 (switch_back_to_stepped_thread) <expect thread advanced also>:
1981 Clear step-over info.
1983 2014-10-15 Pedro Alves <palves@redhat.com>
1985 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1986 (delete_thread_infrun_breakpoints): New function, with parts
1987 salvaged from delete_step_resume_breakpoint_callback.
1988 (delete_step_thread_step_resume_breakpoint): Delete.
1989 (for_each_just_stopped_thread_callback_func): New typedef.
1990 (for_each_just_stopped_thread): New function.
1991 (delete_just_stopped_threads_infrun_breakpoints): New function.
1992 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1993 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1995 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1997 2014-10-15 Pedro Alves <palves@redhat.com>
1999 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2000 trying to step past a non-steppable watchpoint.
2001 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2003 * infrun.c (struct step_over_info): Add new field
2004 'nonsteppable_watchpoint_p' and adjust comments.
2005 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2007 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2008 (stepping_past_nonsteppable_watchpoint): New function.
2009 (step_over_info_valid_p): Also return true if stepping past a
2010 nonsteppable watchpoint.
2011 (proceed): Adjust call to set_step_over_info. Remove reference to
2013 (init_wait_for_inferior): Remove reference to init_infwait_state.
2014 (waiton_ptid): Delete global.
2015 (struct execution_control_state)
2016 <stepped_after_stopped_by_watchpoint>: Delete field.
2017 (wait_for_inferior, fetch_inferior_event): Always pass
2018 minus_one_ptid to target_wait.
2019 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2021 (init_infwait_state): Delete function.
2022 (handle_inferior_event): Remove infwait_state handling.
2023 (handle_signal_stop) <watchpoints handling>: Adjust after
2024 stepped_after_stopped_by_watchpoint removal. Don't remove
2025 breakpoints here nor set infwait_state. Set the thread's
2026 stepping_over_watchpoint flag, and call keep_going instead.
2027 (keep_going): Handle stepping_over_watchpoint. Adjust
2028 set_step_over_info calls.
2029 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2032 2014-10-15 Pedro Alves <palves@redhat.com>
2034 * infrun.c (step_over_info_valid_p): New function.
2035 (resume): Use step_over_info_valid_p instead of checking the
2036 threads's trap_expected flag.
2038 2014-10-15 Doug Evans <dje@google.com>
2039 Walfred Tedeschi <walfred.tedeschi@intel.com>
2042 * python/lib/gdb/__init__.py (packages): Add "printer".
2043 * python/lib/gdb/command/bound_registers.py: Moved to ...
2044 * python/lib/gdb/printer/bound_registers.py: ... here.
2045 Add printer to global set of builtin printers. Rename printer from
2046 "bound" to "mpx_bound128".
2047 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2048 registered as global "builtin" printer.
2049 (add_builtin_pretty_printer): New function.
2050 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2051 gdb/printer/__init__.py.
2053 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2055 * Makefile.in (SFILES): Remove d-support.c.
2056 (COMMON_OBS): Remove d-support.o.
2057 * d-lang.h (d_parse_symbol): Remove declaration.
2058 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2059 * d-support.c: Remove file.
2061 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2063 * gdb/infrun.c (process_event_stop_test): Apply
2064 gdbarch_addr_bits_remove to longjmp resume address.
2066 2014-10-15 Pedro Alves <palves@redhat.com>
2068 * regformats/microblaze.dat: Delete file.
2070 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2072 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2073 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2075 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2077 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2080 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2084 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2085 with qualified args.
2087 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2089 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2090 of the case where the second operand is a pointer.
2091 <BINOP_SUB>: Likewise.
2093 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2095 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2096 only if it is not NULL.
2097 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2098 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2099 (struct probe_ops) <clear_semaphore>: Likewise.
2100 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2102 (stop_tracing): Likewise, for clear_semaphore.
2104 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2106 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2107 using language_c, instead of current_language.
2109 2014-10-13 Doug Evans <dje@google.com>
2111 * python/py-objfile.c (objfpy_initialize): New function.
2112 (objfpy_new, objfile_to_objfile_object): Call it.
2113 * python/py-progspace.c (pspy_initialize): New function.
2114 (pspy_new, pspace_to_pspace_object): Call it.
2116 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2117 Jan Kratochvil <jan.kratochvil@redhat.com>
2119 Fix "save breakpoints" for "catch" command.
2120 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2123 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2125 Fix "save breakpoints" for "disable $bpnum" command.
2126 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2128 2014-10-10 Pedro Alves <palves@redhat.com>
2130 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2131 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2132 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2133 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2135 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2136 * configure.ac: Remove references to IRIX.
2137 * configure.host: Add *-*-irix* to the obsolete hosts section.
2138 Remove all other references to irix.
2139 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2142 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2144 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2145 isn't valid, release the tdesc arch data and return NULL.
2147 2014-10-10 Pedro Alves <palves@redhat.com>
2149 * linux-tdep.c: Include observer.h.
2150 (linux_inferior_data): New global.
2151 (struct linux_info): New structure.
2152 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2153 (get_linux_inferior_data): New functions.
2154 (linux_vsyscall_range): Rename to ...
2155 (linux_vsyscall_range_raw): ... this.
2156 (linux_vsyscall_range): New function; handles caching.
2157 (_initialize_linux_tdep): Register linux_inferior_data. Install
2158 inferior_exit and inferior_appeared observers.
2160 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2161 Pedro Alves <palves@redhat.com>
2164 * solib-svr4.c (svr4_read_so_list): Rename to ...
2165 (svr4_current_sos_1): ... this and change the function comment.
2166 (svr4_current_sos): New function.
2168 2014-10-10 Pedro Alves <palves@redhat.com>
2170 * arch-utils.c (default_vsyscall_range): New function.
2171 * arch-utils.h (default_vsyscall_range): New declaration.
2172 * gdbarch.sh (vsyscall_range): New hook.
2173 * gdbarch.h, gdbarch.c: Regenerate.
2174 * linux-tdep.c (linux_vsyscall_range): New function.
2175 (linux_init_abi): Install linux_vsyscall_range as
2176 vsyscall_range gdbarch hook.
2177 * memrange.c (address_in_mem_range): New function.
2178 * memrange.h (address_in_mem_range): New declaration.
2179 * symfile-mem.c (find_vdso_size): Delete function.
2180 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2182 2014-10-10 Pedro Alves <palves@redhat.com>
2184 * infrun.c (normal_stop): Fix typo in comment.
2186 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2189 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2190 typo when using logical AND to determine instruction type.
2192 2014-10-09 Yao Qi <yao@codesourcery.com>
2194 * infrun.c (handle_signal_stop): Remove local variable
2197 2014-10-08 Stan Shebs <stan@codesourcery.com>
2199 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2201 2014-10-08 Gary Benson <gbenson@redhat.com>
2203 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2205 2014-10-08 Gary Benson <gbenson@redhat.com>
2207 * common/common-defs.h: Include common-exceptions.h.
2208 * exceptions.h: Do not include common-exceptions.h.
2210 2014-10-08 Gary Benson <gbenson@redhat.com>
2212 * common/common-defs.h: Include cleanups.h.
2213 * common/common-exceptions.c: Do not include cleanups.h.
2214 * utils.h: Likewise.
2216 2014-10-08 Gary Benson <gbenson@redhat.com>
2218 * ada-lang.c: Do not include exceptions.h.
2219 * ada-valprint.c: Likewise.
2220 * amd64-tdep.c: Likewise.
2221 * auto-load.c: Likewise.
2222 * block.c: Likewise.
2223 * break-catch-throw.c: Likewise.
2224 * breakpoint.c: Likewise.
2225 * btrace.c: Likewise.
2226 * c-lang.c: Likewise.
2227 * cli/cli-cmds.c: Likewise.
2228 * cli/cli-interp.c: Likewise.
2229 * cli/cli-script.c: Likewise.
2230 * completer.c: Likewise.
2231 * corefile.c: Likewise.
2232 * corelow.c: Likewise.
2233 * cp-abi.c: Likewise.
2234 * cp-support.c: Likewise.
2235 * cp-valprint.c: Likewise.
2236 * darwin-nat.c: Likewise.
2237 * dwarf2-frame-tailcall.c: Likewise.
2238 * dwarf2-frame.c: Likewise.
2239 * dwarf2loc.c: Likewise.
2240 * dwarf2read.c: Likewise.
2242 * event-loop.c: Likewise.
2243 * event-top.c: Likewise.
2244 * f-valprint.c: Likewise.
2245 * frame-unwind.c: Likewise.
2246 * frame.c: Likewise.
2247 * gdbtypes.c: Likewise.
2248 * gnu-v2-abi.c: Likewise.
2249 * gnu-v3-abi.c: Likewise.
2250 * guile/scm-auto-load.c: Likewise.
2251 * guile/scm-breakpoint.c: Likewise.
2252 * guile/scm-cmd.c: Likewise.
2253 * guile/scm-frame.c: Likewise.
2254 * guile/scm-lazy-string.c: Likewise.
2255 * guile/scm-param.c: Likewise.
2256 * guile/scm-symbol.c: Likewise.
2257 * guile/scm-type.c: Likewise.
2258 * hppa-hpux-tdep.c: Likewise.
2259 * i386-tdep.c: Likewise.
2260 * inf-loop.c: Likewise.
2261 * infcall.c: Likewise.
2262 * infcmd.c: Likewise.
2263 * infrun.c: Likewise.
2264 * interps.c: Likewise.
2265 * interps.h: Likewise.
2267 * linespec.c: Likewise.
2268 * linux-nat.c: Likewise.
2269 * linux-thread-db.c: Likewise.
2270 * m32r-rom.c: Likewise.
2272 * memory-map.c: Likewise.
2273 * mi/mi-cmd-break.c: Likewise.
2274 * mi/mi-cmd-stack.c: Likewise.
2275 * mi/mi-interp.c: Likewise.
2276 * mi/mi-main.c: Likewise.
2277 * monitor.c: Likewise.
2278 * nto-procfs.c: Likewise.
2279 * objc-lang.c: Likewise.
2280 * p-valprint.c: Likewise.
2281 * parse.c: Likewise.
2282 * ppc-linux-tdep.c: Likewise.
2283 * printcmd.c: Likewise.
2284 * probe.c: Likewise.
2285 * python/py-auto-load.c: Likewise.
2286 * python/py-breakpoint.c: Likewise.
2287 * python/py-cmd.c: Likewise.
2288 * python/py-finishbreakpoint.c: Likewise.
2289 * python/py-frame.c: Likewise.
2290 * python/py-framefilter.c: Likewise.
2291 * python/py-function.c: Likewise.
2292 * python/py-gdb-readline.c: Likewise.
2293 * python/py-inferior.c: Likewise.
2294 * python/py-infthread.c: Likewise.
2295 * python/py-lazy-string.c: Likewise.
2296 * python/py-linetable.c: Likewise.
2297 * python/py-param.c: Likewise.
2298 * python/py-prettyprint.c: Likewise.
2299 * python/py-symbol.c: Likewise.
2300 * python/py-type.c: Likewise.
2301 * python/py-value.c: Likewise.
2302 * python/python-internal.h: Likewise.
2303 * python/python.c: Likewise.
2304 * record-btrace.c: Likewise.
2305 * record-full.c: Likewise.
2306 * regcache.c: Likewise.
2307 * remote-fileio.c: Likewise.
2308 * remote-mips.c: Likewise.
2309 * remote.c: Likewise.
2310 * rs6000-aix-tdep.c: Likewise.
2311 * rs6000-nat.c: Likewise.
2313 * solib-darwin.c: Likewise.
2314 * solib-dsbt.c: Likewise.
2315 * solib-frv.c: Likewise.
2316 * solib-ia64-hpux.c: Likewise.
2317 * solib-spu.c: Likewise.
2318 * solib-svr4.c: Likewise.
2319 * solib.c: Likewise.
2320 * spu-tdep.c: Likewise.
2321 * stack.c: Likewise.
2322 * stap-probe.c: Likewise.
2323 * symfile-mem.c: Likewise.
2324 * symmisc.c: Likewise.
2325 * target.c: Likewise.
2326 * thread.c: Likewise.
2328 * tracepoint.c: Likewise.
2329 * tui/tui-interp.c: Likewise.
2330 * typeprint.c: Likewise.
2331 * utils.c: Likewise.
2332 * valarith.c: Likewise.
2333 * valops.c: Likewise.
2334 * valprint.c: Likewise.
2335 * value.c: Likewise.
2336 * varobj.c: Likewise.
2337 * windows-nat.c: Likewise.
2338 * xml-support.c: Likewise.
2340 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2342 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2344 (extended_mips16_next_pc): Update accordingly.
2346 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2348 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2350 (micromips_instruction_is_compact_branch): Likewise.
2351 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2352 or a compact jump, reaching a jump delay slot, or seeing a
2353 second non-prologue instruction.
2354 (micromips_scan_prologue): Also terminate scanning upon seeing a
2355 compact branch or jump, or reaching a branch or jump delay slot.
2356 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2357 or jump delay slot, or seeing a second non-prologue instruction.
2358 (mips32_instruction_has_delay_slot): Retain instruction
2359 examination code only, update arguments accordingly and move
2360 instruction fetch pieces to...
2361 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2362 (micromips_instruction_has_delay_slot): Likewise and to...
2363 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2364 (mips16_instruction_has_delay_slot): Likewise and to...
2365 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2366 (mips_single_step_through_delay): Update accordingly.
2367 (mips_adjust_breakpoint_address): Likewise.
2369 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2371 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2372 !mustbe32 also return 1 for 32-bit instructions.
2373 (mips16_instruction_has_delay_slot): Likewise. Add an
2374 explanatory comment.
2376 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2378 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2381 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2383 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2385 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2386 for the breakpoint's address. Don't preinitialize `placed_size'.
2387 (insert_bp_location): Set `reqstd_address' rather than
2389 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2390 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2392 (bkpt_remove_location): Likewise.
2393 (deprecated_insert_raw_breakpoint): Likewise.
2394 (deprecated_remove_raw_breakpoint): Likewise.
2395 (find_single_step_breakpoint): Likewise.
2396 * mem-break.c (default_memory_insert_breakpoint): Use
2397 `reqstd_address' for the breakpoint's address. Don't set
2398 `placed_address' or `placed_size' if breakpoint contents couldn't
2399 have been determined.
2400 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2401 the breakpoint's address.
2402 (remote_insert_hw_breakpoint): Likewise. Don't set
2403 `placed_address' or `placed_size' if breakpoint couldn't have been
2405 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2406 `reqstd_address' for the breakpoint's address.
2407 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2408 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2409 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2410 * microblaze-linux-tdep.c
2411 (microblaze_linux_memory_remove_breakpoint): Likewise.
2412 * monitor.c (monitor_insert_breakpoint): Likewise.
2413 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2414 (procfs_insert_hw_breakpoint): Likewise.
2415 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2416 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2417 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2418 * remote-mips.c (mips_insert_breakpoint): Likewise.
2419 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2421 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2423 * valops.c (value_assign): Check for bit field assignments
2424 before calling architecture-specific register value
2425 conversion functions.
2427 2014-10-03 Pierre Muller <muller@sourceware.org>
2429 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2431 2014-10-02 Pedro Alves <palves@redhat.com>
2433 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2434 threads_are_executing.
2435 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2437 * gdbthread.h (threads_are_executing): Declare.
2438 (handle_signal_stop) <random signals>: Don't print about the
2439 signal here if stopping.
2440 (end_stepping_range): Don't notify observers here.
2441 (normal_stop): Update the thread list. If stopped by a random
2442 signal or a stepping range ended, notify observers.
2443 * thread.c (threads_executing): New global.
2444 (init_thread_list): Clear 'threads_executing'.
2445 (set_executing): Set or clear 'threads_executing'.
2446 (threads_are_executing): New function.
2447 (update_threads_executing): New function.
2448 (update_thread_list): Use it.
2450 2014-10-02 Pedro Alves <palves@redhat.com>
2452 PR breakpoints/17431
2453 * breakpoint.c (update_breakpoints_after_exec): Don't create
2454 overlay, longjmp, std terminate nor exception breakpoints here.
2456 2014-10-02 Pedro Alves <palves@redhat.com>
2458 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2460 * inferior.c (find_inferior_for_program_space): Give preference to
2461 the current inferior.
2462 * inferior.h (find_inferior_for_program_space): Update comment.
2463 * progspace.c (switch_to_program_space_and_thread): Prefer the
2464 current inferior if it's bound to the program space requested. If
2465 the inferior found doesn't have a PID yet, don't bother looking up
2467 * progspace.h (switch_to_program_space_and_thread): Adjust
2469 * thread.c (any_thread_of_process, any_live_thread_of_process):
2470 Give preference to the current thread.
2472 2014-10-01 Pedro Alves <palves@redhat.com>
2474 * breakpoint.c (insert_bp_location): Error out if inserting a
2475 software breakpoint at a read-only address.
2476 * target.c (memory_xfer_check_region): New function, factored out
2478 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2480 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2481 against the memory region attributes.
2483 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2485 * NEWS: Announce new exit-code field in -list-thread-groups
2487 * inferior.c (exit_inferior_1): Don't clear exit code.
2488 (inferior_appeared): Clear exit code.
2489 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2492 2014-10-01 Pedro Alves <palves@redhat.com>
2494 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2495 GENERATED" along with emacs/vi read-only markers.
2496 * regformats/aarch64.dat: Regenerate.
2497 * regformats/arm-with-iwmmxt.dat: Regenerate.
2498 * regformats/arm-with-neon.dat: Regenerate.
2499 * regformats/arm-with-vfpv2.dat: Regenerate.
2500 * regformats/arm-with-vfpv3.dat: Regenerate.
2501 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2502 * regformats/i386/amd64-avx.dat: Regenerate.
2503 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2504 * regformats/i386/amd64-avx512.dat: Regenerate.
2505 * regformats/i386/amd64-linux.dat: Regenerate.
2506 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2507 * regformats/i386/amd64-mpx.dat: Regenerate.
2508 * regformats/i386/amd64.dat: Regenerate.
2509 * regformats/i386/i386-avx-linux.dat: Regenerate.
2510 * regformats/i386/i386-avx.dat: Regenerate.
2511 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2512 * regformats/i386/i386-avx512.dat: Regenerate.
2513 * regformats/i386/i386-linux.dat: Regenerate.
2514 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2515 * regformats/i386/i386-mmx.dat: Regenerate.
2516 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2517 * regformats/i386/i386-mpx.dat: Regenerate.
2518 * regformats/i386/i386.dat: Regenerate.
2519 * regformats/i386/x32-avx-linux.dat: Regenerate.
2520 * regformats/i386/x32-avx.dat: Regenerate.
2521 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2522 * regformats/i386/x32-avx512.dat: Regenerate.
2523 * regformats/i386/x32-linux.dat: Regenerate.
2524 * regformats/i386/x32.dat: Regenerate.
2525 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2526 * regformats/mips-dsp-linux.dat: Regenerate.
2527 * regformats/mips-linux.dat: Regenerate.
2528 * regformats/mips64-dsp-linux.dat: Regenerate.
2529 * regformats/mips64-linux.dat: Regenerate.
2530 * regformats/nios2-linux.dat: Regenerate.
2531 * regformats/rs6000/powerpc-32.dat: Regenerate.
2532 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2533 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2534 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2535 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2536 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2537 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2538 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2539 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2540 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2541 * regformats/s390-linux32.dat: Regenerate.
2542 * regformats/s390-linux32v1.dat: Regenerate.
2543 * regformats/s390-linux32v2.dat: Regenerate.
2544 * regformats/s390-linux64.dat: Regenerate.
2545 * regformats/s390-linux64v1.dat: Regenerate.
2546 * regformats/s390-linux64v2.dat: Regenerate.
2547 * regformats/s390-te-linux64.dat: Regenerate.
2548 * regformats/s390x-linux64.dat: Regenerate.
2549 * regformats/s390x-linux64v1.dat: Regenerate.
2550 * regformats/s390x-linux64v2.dat: Regenerate.
2551 * regformats/s390x-te-linux64.dat: Regenerate.
2552 * regformats/tic6x-c62x-linux.dat: Regenerate.
2553 * regformats/tic6x-c62x.dat: Regenerate.
2554 * regformats/tic6x-c64x-linux.dat: Regenerate.
2555 * regformats/tic6x-c64x.dat: Regenerate.
2556 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2557 * regformats/tic6x-c64xp.dat: Regenerate.
2559 2014-10-01 Pedro Alves <palves@redhat.com>
2561 * features/Makefile: Update comments.
2562 (XMLTOC): List all xml files we build C files from.
2563 (clean-cfiles): New rule.
2565 2014-10-01 Pedro Alves <palves@redhat.com>
2567 * features/i386/amd64-avx512-linux.c: Regenerate.
2568 * features/i386/amd64-avx512.c: Regenerate.
2569 * features/i386/x32-avx512-linux.c: Regenerate.
2570 * features/i386/x32-avx512.c: Regenerate.
2572 2014-10-01 Pedro Alves <palves@redhat.com>
2574 * features/Makefile (WHICH): Remove arm-with-m,
2575 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2577 2014-10-01 Pedro Alves <palves@redhat.com>
2579 * features/Makefile (clean): New rule.
2581 2014-10-01 Pedro Alves <palves@redhat.com>
2583 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2584 (zmm14h): Add missing end quotes.
2586 2014-10-01 Pedro Alves <palves@redhat.com>
2588 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2589 * features/aarch64.c: Regenerate.
2591 2014-09-30 Don Breazeal <donb@codesourcery.com>
2593 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2594 code so as to work with follow_fork_inferior.
2595 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2596 (inf_ttrace_create_inferior): Remove reference to
2597 inf_ttrace_vfork_ppid.
2598 (inf_ttrace_attach): Ditto.
2599 (inf_ttrace_detach): Ditto.
2600 (inf_ttrace_kill): Use current_inferior instead of
2601 inf_ttrace_vfork_ppid.
2602 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2603 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2604 inferior away from the parent.
2605 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2607 (follow_fork_inferior): New function.
2608 (follow_inferior_reset_breakpoints): Make function static.
2609 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2610 * linux-nat.c (linux_child_follow_fork): Move target-independent
2611 code to infrun.c:follow_fork_inferior.
2613 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2615 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2616 * gdbarch.c: Regenerate.
2617 * gdbarch.h: Likewise.
2618 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2619 gdbarch method 'regset_from_core_section'.
2620 (get_core_register_section): Remove handling for the case that
2621 regset == NULL and regset_from_core_section is defined.
2622 (get_core_registers): Drop check for deleted method.
2623 * procfs.c (procfs_do_thread_registers): Adjust comment.
2625 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2627 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2628 (linux_nat_make_corefile_notes): Remove.
2629 (linux_target_install_ops): Do not set target method
2630 'make_corefile_notes'.
2631 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2633 (linux_corefile_thread_callback): Instead of args->collect, call
2634 linux_collect_thread_registers.
2635 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2636 NULL unless there is a regset iterator.
2637 (linux_make_corefile_notes_1): Remove.
2638 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2639 by linux_make_corefile_notes.
2640 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2642 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2644 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2645 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2647 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2649 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2651 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2652 (xtensa_iterate_over_regset_sections): New.
2653 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2655 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2657 * vax-tdep.c (vax_regset_from_core_section): Remove.
2658 (vax_iterate_over_regset_sections): New.
2659 (vax_gdbarch_init): Adjust gdbarch initialization.
2661 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2663 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2664 (tilegx_regset_from_core_section): Remove.
2665 (tilegx_iterate_over_regset_sections): New.
2666 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2668 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2670 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2671 (sparc_iterate_over_regset_sections): New.
2672 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2673 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2675 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2676 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2677 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2678 target method 'make_corefile_notes'.
2680 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2682 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2683 'sizeof_gregset' and 'sizeof_fpregset'.
2684 * sh-tdep.c (sh_regset_from_core_section): Remove.
2685 (sh_iterate_over_regset_sections): New.
2686 (sh_gdbarch_init): Adjust gdbarch initialization.
2687 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2689 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2692 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2694 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2695 (score7_linux_iterate_over_regset_sections): New.
2696 (score_gdbarch_init): Adjust gdbarch initialization.
2698 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2700 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2702 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2703 method 'make_corefile_notes'.
2704 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2705 (ppcfbsd_regset_from_core_section): Remove.
2706 (ppcfbsd_iterate_over_regset_sections): New.
2707 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2709 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2710 (ppcnbsd_iterate_over_regset_sections): New.
2711 (ppcnbsd_init_abi): Adjust.
2712 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2713 (ppcobsd_iterate_over_regset_sections): New.
2714 (ppcobsd_init_abi): Adjust.
2715 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2716 (rs6000_aix_iterate_over_regset_sections): New.
2717 (rs6000_aix_init_osabi): Adjust.
2719 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2721 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2722 (nios2_regset_from_core_section): Remove.
2723 (nios2_iterate_over_regset_sections): New.
2724 (nios2_linux_init_abi): Adjust gdbarch initialization.
2726 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2729 (am33_iterate_over_regset_sections): New.
2730 (am33_linux_init_osabi): Adjust gdbarch initialization.
2732 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2734 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2735 (mips_linux_iterate_over_regset_sections): New.
2736 (mips_linux_init_abi): Adjust gdbarch initialization.
2737 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2738 (mips64obsd_iterate_over_regset_sections): New.
2739 (mips64obsd_init_abi): Adjust.
2740 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2741 (mipsnbsd_iterate_over_regset_sections): New.
2742 (mipsnbsd_init_abi): Adjust.
2744 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2746 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2747 (m88k_iterate_over_regset_sections): New.
2748 (m88k_gdbarch_init): Adjust gdbarch initialization.
2750 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2752 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2753 (ia64_linux_iterate_over_regset_sections): New.
2754 (ia64_linux_init_abi): Adjust gdbarch initialization.
2756 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2758 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2759 (m68kbsd_iterate_over_regset_sections): New.
2760 (m68kbsd_init_abi): Adjust gdbarch initialization.
2761 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2762 (m68k_linux_iterate_over_regset_sections): New.
2763 (m68k_linux_init_abi): Adjust gdbarch initialization.
2765 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2767 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2768 (m32r_linux_regset_from_core_section): Remove.
2769 (m32r_linux_iterate_over_regset_sections): New.
2770 (m32r_linux_init_abi): Adjust gdbarch initialization.
2772 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2774 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2775 (amd64obsd_iterate_over_regset_sections): New.
2776 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2777 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2779 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2780 regset_from_core_section initialization.
2781 * i386-tdep.c (i386_regset_from_core_section): Remove.
2782 (i386_iterate_over_regset_sections): New.
2783 (i386_gdbarch_init): Adjust gdbarch initialization.
2784 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2785 (i386_iterate_over_regset_sections): New prototype.
2786 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2788 (i386obsd_aout_iterate_over_regset_sections): New.
2789 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2790 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2792 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2793 (amd64fbsd_init_abi): Call fbsd_init_abi.
2794 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2795 (i386fbsd4_init_abi): Call fbsd_init_abi.
2796 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2797 target method 'make_corefile_notes'.
2798 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2800 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2802 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2803 (hppa_hpux_iterate_over_regset_sections): New.
2804 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2805 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2806 (hppa_linux_iterate_over_regset_sections): New.
2807 (hppa_linux_init_abi): Adjust.
2808 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2809 (hppanbsd_iterate_over_regset_sections): New.
2810 (hppanbsd_init_abi): Adjust.
2811 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2812 (hppaobsd_iterate_over_regset_sections): New.
2813 (hppaobsd_init_abi): Adjust.
2815 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2817 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2818 (frv_linux_iterate_over_regset_sections): New.
2819 (frv_linux_init_abi): Adjust gdbarch initialization.
2821 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2823 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2824 (armbsd_iterate_over_regset_sections): New prototype.
2825 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2826 (armbsd_iterate_over_regset_sections): New.
2827 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2830 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2832 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2833 (alpha_linux_iterate_over_regset_sections): New.
2834 (alpha_linux_init_abi): Adjust gdbarch initialization.
2835 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2837 (alphanbsd_iterate_over_regset_sections): New prototype.
2839 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2841 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2843 (aarch64_linux_iterate_over_regset_sections): New.
2844 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2846 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2848 * fbsd-tdep.c: New file.
2849 * fbsd-tdep.h: New file.
2850 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2851 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2852 (ALLDEPFILES): Add fbsd-tdep.c.
2854 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2856 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2858 * gdbarch.h: Regenerate.
2859 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2861 (get_core_register_section): Add parameter 'regset' and use it, if
2862 set. Add parameter 'min_size' and verify the bfd section size
2864 (get_core_registers_cb): Add parameter 'regset' and pass it to
2865 get_core_register section. For the "standard" register sections
2866 ".reg" and ".reg2", set an appropriate default for human_name.
2867 (get_core_registers): Don't abort when the gdbarch has an iterator
2868 but no regset_from_core_section. Add NULL/0 for parameters
2869 'regset'/'min_size' in calls to get_core_register_section.
2870 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2871 'regset' and use it instead of calling the
2872 regset_from_core_section gdbarch method.
2873 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2874 * i386-tdep.c (i386_supply_xstateregset)
2875 (i386_collect_xstateregset, i386_xstateregset): Moved to
2877 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2879 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2880 core file support only if the regset iterator hasn't been set.
2881 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2882 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2883 Moved from i386-tdep.c and renamed to *_linux*.
2884 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2885 each callback invocation. Allow any .reg-xstate size when reading
2887 * amd64-tdep.c (amd64_supply_xstateregset)
2888 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2890 (amd64_regset_from_core_section): Remove.
2891 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2892 install an amd64-specific regset_from_core_section gdbarch method.
2893 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2894 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2895 Moved from amd64-tdep.c and renamed to *_linux*.
2896 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2897 to each callback invocation. Allow any .reg-xstate size when
2898 reading from a core file.
2899 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2900 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2901 each callback invocation.
2902 (arm_linux_init_abi): No longer set the regset_from_core_section
2904 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2905 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2906 each callback invocation.
2907 (ppc_linux_init_abi): No longer set the regset_from_core_section
2909 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2910 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2911 (s390_regset_from_core_section): Remove.
2912 (s390_iterate_over_regset_sections): Add regset parameter to each
2913 callback invocation.
2914 (s390_gdbarch_init): No longer set the regset_from_core_section
2915 gdbarch method. Drop initialization of deleted tdep fields.
2917 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2919 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2920 (amd64_linux_iterate_over_regset_sections): New.
2921 (amd64_linux_init_abi_common): Don't install the regset section
2922 list, but the new iterator in gdbarch.
2923 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2924 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2925 (arm_linux_iterate_over_regset_sections): ...here. New function.
2926 (arm_linux_init_abi): Set iterator instead of section list.
2927 * corelow.c (get_core_registers_cb): New function, logic moved
2929 (get_core_registers): ...loop body here. Use new iterator method
2930 instead of walking through the regset section list.
2931 * gdbarch.sh: Remove 'core_regset_sections'. New method
2932 'iterate_over_regset_sections'. New typedef
2933 'iterate_over_regset_sections_cb'.
2934 * gdbarch.c: Regenerate.
2935 * gdbarch.h: Likewise.
2936 * i386-linux-tdep.c (i386_linux_regset_sections)
2937 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2939 (i386_linux_iterate_over_regset_sections): New.
2940 (i386_linux_init_abi): Don't choose a regset section list, but
2941 install new iterator in gdbarch.
2942 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2943 (linux_collect_regset_section_cb): New function, logic moved
2945 (linux_collect_thread_registers): ...loop body here. Use iterator
2946 method instead of walking through list.
2947 (linux_make_corefile_notes_1): Check for presence of iterator
2948 method instead of regset section list.
2949 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2950 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2951 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2952 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2953 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2954 (ppc_linux_init_abi): Don't choose from above regset section
2955 lists, but install new iterator in gdbarch.
2956 * regset.h (struct core_regset_section): Remove.
2957 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2958 have_linux_v1, have_linux_v2, and have_tdb.
2959 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2960 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2961 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2962 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2963 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2964 (s390_iterate_over_regset_sections): ...here. New function. Use
2966 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2967 regset section lists, but install new iterator.
2969 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2971 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2973 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2975 * progspace.c (print_program_space): Don't prune program spaces
2976 before printing them.
2978 2014-09-25 Pedro Alves <palves@redhat.com>
2980 * infrun.c (user_visible_resume_ptid): Don't check
2981 singlestep_breakpoints_inserted_p.
2983 2014-09-25 Pedro Alves <palves@redhat.com>
2985 * breakpoint.c (should_be_inserted): Add debug output.
2987 2014-09-25 Pedro Alves <palves@redhat.com>
2989 * infrun.c (stepping_past_instruction_at)
2990 (clear_exit_convenience_vars): Point at infrun.h instead of
2992 (handle_signal_stop): Fix typo.
2994 2014-09-24 Yao Qi <yao@codesourcery.com>
2996 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2999 2014-09-22 Gary Benson <gbenson@redhat.com>
3001 * target.c (target_stop): Updated comment.
3003 2014-09-22 Gary Benson <gbenson@redhat.com>
3005 * target/target.h (target_stop_ptid): Renamed as...
3006 (target_stop_and_wait): New function. Updated comment.
3008 (target_continue_ptid): Renamed as...
3009 (target_continue_no_signal): New function. Updated comment.
3012 2014-09-22 Pedro Alves <palves@redhat.com>
3014 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3016 * breakpoint.c (enum ugll_insert_mode): New enum.
3017 (always_inserted_mode): Now a plain boolean.
3018 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3019 (breakpoints_always_inserted_mode): Delete.
3020 (breakpoints_should_be_inserted_now): New function.
3021 (insert_breakpoints): Pass UGLL_INSERT to
3022 update_global_location_list instead of calling
3023 insert_breakpoint_locations manually.
3024 (create_solib_event_breakpoint_1): New, factored out from ...
3025 (create_solib_event_breakpoint): ... this.
3026 (create_and_insert_solib_event_breakpoint): Use
3027 create_solib_event_breakpoint_1 instead of calling
3028 insert_breakpoint_locations manually.
3029 (update_global_location_list): Change parameter type from boolean
3030 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3031 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3032 (update_global_location_list_nothrow): Change parameter type from
3033 boolean to enum ugll_insert_mode.
3034 (_initialize_breakpoint): "breakpoint always-inserted" option is
3035 now a boolean command. Update help text.
3036 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3037 (breakpoints_should_be_inserted_now): New declaration.
3038 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3039 Remove breakpoints_always_inserted_mode check.
3040 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3041 * remote.c (remote_start_remote): Likewise.
3043 2014-09-22 Pedro Alves <palves@redhat.com>
3045 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3046 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3047 Instead, pass UGLL_INSERT to update_global_location_list.
3048 (update_global_location_list): Change parameter type from boolean
3049 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3050 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3051 (create_solib_event_breakpoint_1): New, factored out from ...
3052 (create_solib_event_breakpoint): ... this.
3053 (create_and_insert_solib_event_breakpoint): Use
3054 create_solib_event_breakpoint_1 instead of calling
3055 insert_breakpoint_locations manually.
3056 (update_global_location_list): Handle UGLL_INSERT.
3058 2014-09-22 Pedro Alves <palves@redhat.com>
3060 * breakpoint.c (enum ugll_insert_mode): New enum.
3061 (update_global_location_list)
3062 (update_global_location_list_nothrow): Change parameter type from
3063 boolean to enum ugll_insert_mode. All callers adjusted.
3065 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3067 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3068 SystemTap support in GDB.
3070 2014-09-19 Don Breazeal <donb@codesourcery.com>
3072 * linux-nat.c (linux_handle_extended_wait): Call
3073 linux_ptrace_get_extended_event.
3074 (wait_lwp): Call linux_is_extended_waitstatus.
3075 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3076 and linux_is_extended_waitstatus.
3077 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3078 linux_ptrace_get_extended_event.
3079 (linux_ptrace_get_extended_event): New function.
3080 (linux_is_extended_waitstatus): New function.
3081 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3082 (linux_is_extended_waitstatus): New declarations.
3084 2014-09-19 Yao Qi <yao@codesourcery.com>
3086 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3087 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3088 comments. Callers update.
3089 (dwarf_decode_lines): Likewise.
3090 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3091 comments. Skip the line table if 'lowpc' is greater than
3092 'address'. Don't check
3093 dwarf2_per_objfile->has_section_at_zero.
3095 2014-09-18 Doug Evans <dje@google.com>
3097 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3098 * python/py-symtab.c (stpy_get_producer): New function.
3099 (symtab_object_getset): Add "producer" attribute.
3101 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3104 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3105 (do_captured_read_memory_integer): Remove.
3106 (safe_read_memory_integer): Use target_read_memory directly instead
3107 of catching errors in do_captured_read_memory_integer.
3109 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3111 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3114 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3116 * objc-lang.c (find_implementation_from_class): Remove dead code.
3118 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3121 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3122 "fprintf_unfiltered (gdb_stdlog...)".
3124 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3126 PR breakpoints/12526
3127 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3129 * breakpoint.c (watch_command_1): Use these fields to retain
3130 bitfield information.
3131 (extract_bitfield_from_watchpoint_value): New function.
3132 (watchpoint_check): Use it.
3133 (update_watchpoint): Use it. Optimize the address and length of a
3134 HW watchpoint pointing to a bitfield.
3135 * value.h (unpack_value_bitfield): New prototype.
3136 * value.c (unpack_value_bitfield): Make extern.
3138 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3140 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3142 * gnu-nat.c (inf_threads): New function.
3143 * gnu-nat.h (inf_threads_ftype): New typedef.
3144 (inf_threads): New declaration.
3145 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3146 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3147 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3148 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3149 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3150 (i386_gnu_dr_get_control): New functions.
3151 (reg_addr): New structure.
3152 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3153 i386 debugging register hooks.
3154 * NEWS: Mention this.
3156 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3158 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3159 vector data transfer instructions.
3160 (arm_record_coproc_data_proc): Updated.
3162 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3164 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3165 arm_record_exreg_ld_st_insn.
3166 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3169 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3171 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3172 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3173 processing instructions.
3175 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3177 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3178 for advance SIMD struct ld/st insn.
3179 (thumb2_record_decode_insn_handler): Replace stub handler with
3180 thumb2_record_asimd_struct_ld_st.
3182 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3184 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3185 for asimd, vfp and coprocessor insns.
3186 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3187 and coprocessor insns.
3188 (thumb2_record_coproc_insn): New function.
3189 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3191 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3194 2014-09-13 Doug Evans <xdje42@gmail.com>
3196 * NEWS: Mention new "queue-signal" command.
3197 * infcmd.c (queue_signal_command): New function.
3198 (_initialize_infcmd): Add new queue-signal command.
3200 2014-09-13 Doug Evans <xdje42@gmail.com>
3202 * linux-nat.c (wait_lwp): Add debugging printf.
3203 (linux_nat_wait_1): Ditto.
3205 2014-09-12 Pedro Alves <palves@redhat.com>
3207 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3208 (create_and_insert_solib_event_breakpoint): New functions.
3209 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3210 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3211 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3212 (remove_dbx_link_breakpoint): Delete function.
3213 (insert_dbx_link_bpt_in_file): Use
3214 create_and_insert_solib_event_breakpoint instead of
3215 deprecated_insert_raw_breakpoint.
3216 (procfs_wait): Don't check whether we hit __dbx_link here.
3217 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3219 * solib-irix.c (base_breakpoint): Delete global.
3220 (disable_break): Delete function.
3221 (enable_break): Use create_solib_event_breakpoint
3222 instead of deprecated_insert_raw_breakpoint.
3223 (irix_solib_handle_event): New function.
3224 (irix_solib_create_inferior_hook): Don't run the target or disable
3225 the mapping-complete breakpoint here.
3226 (_initialize_irix_solib): Install irix_solib_handle_event as
3227 so_ops->handle_event hook.
3229 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3230 Ulrich Weigand <uweigand@de.ibm.com>
3233 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3234 instead of read_memory_unsigned_integer.
3236 2014-09-12 Gary Benson <gbenson@redhat.com>
3238 * nat/linux-waitpid.c: Include common-defs.h.
3239 [GDBSERVER]: Add FIXME comment.
3240 [!GDBSERVER]: Don't include defs.h or signal.h.
3241 (linux_debug) [!GDBSERVER]: Remove empty block.
3243 2014-09-12 Gary Benson <gbenson@redhat.com>
3245 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3246 Don't include defs.h or server.h.
3248 2014-09-12 Gary Benson <gbenson@redhat.com>
3250 * nat/linux-btrace.c: Include common-defs.h.
3251 Don't include defs.h, server.h or gdbthread.h.
3252 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3254 2014-09-12 Gary Benson <gbenson@redhat.com>
3256 * common/agent.c: Include common-defs.h.
3257 Don't include defs.h or server.h.
3258 * common/buffer.c: Likewise.
3259 * common/common-debug.c: Likewise.
3260 * common/common-utils.c: Likewise.
3261 * common/errors.c: Likewise.
3262 * common/filestuff.c: Likewise.
3263 * common/format.c: Likewise.
3264 * common/gdb_vecs.c: Likewise.
3265 * common/print-utils.c: Likewise.
3266 * common/ptid.c: Likewise.
3267 * common/rsp-low.c: Likewise.
3268 * common/signals.c: Likewise.
3269 * common/vec.c: Likewise.
3270 * common/xml-utils.c: Likewise.
3271 * nat/linux-osdata.c: Likewise.
3272 * nat/linux-procfs.c: Likewise.
3273 * nat/linux-ptrace.c: Likewise.
3274 * nat/mips-linux-watch.c: Likewise.
3275 * target/waitstatus.c: Likewise.
3277 2014-09-12 Tom Tromey <tromey@redhat.com>
3278 Gary Benson <gbenson@redhat.com>
3280 * common/common-regcache.h: New file.
3281 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3282 * regcache.h: Include common-regcache.h.
3283 (regcache_read_pc): Don't declare.
3284 * regcache.c (get_thread_regcache_for_ptid): New function.
3285 * nat/linux-btrace.c: Don't include regcache.h.
3286 Include common-regcache.h.
3287 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3289 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3291 * regcache.h (struct regset): Declare.
3293 2014-09-11 Pedro Alves <palves@redhat.com>
3296 * main.c: Include "infrun.h".
3297 (catch_command_errors, catch_command_errors_const): Wait for the
3298 foreground command to complete.
3299 * top.c (maybe_wait_sync_command_done): New function, factored out
3301 (maybe_wait_sync_command_done): ... here.
3302 * top.h (maybe_wait_sync_command_done): New declaration.
3304 2014-09-11 Tom Tromey <tromey@redhat.com>
3305 Gary Benson <gbenson@redhat.com>
3307 * common/symbol.h: New file.
3308 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3309 * minsyms.c (find_minimal_symbol_address): New function.
3310 * common/agent.c: Include common/symbol.h.
3311 [!GDBSERVER]: Don't include objfiles.h.
3312 (agent_look_up_symbols): Use find_minimal_symbol_address.
3314 2014-09-11 Gary Benson <gbenson@redhat.com>
3316 * target/target.h (target_stop_ptid, target_continue_ptid):
3318 * target.c (target_stop_ptid, target_continue_ptid): New
3320 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3321 (agent_run_command): Always use target_stop_ptid and
3322 target_continue_ptid.
3324 2014-09-11 Tom Tromey <tromey@redhat.com>
3325 Gary Benson <gbenson@redhat.com>
3327 * target/target.h: New file.
3328 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3329 * target.h: Include target/target.h.
3330 (target_read_memory, target_write_memory): Don't declare.
3331 * target.c (target_read_uint32): New function.
3332 * common/agent.c: Include target/target.h.
3333 [!GDBSERVER]: Don't include target.h.
3334 (helper_thread_id): Type changed to uint32_t.
3335 (agent_get_helper_thread_id): Use target_read_uint32.
3336 (agent_run_command): Always use target_read_memory and
3337 target_write_memory.
3338 (agent_capability): Type changed to uint32_t.
3339 (agent_capability_check): Use target_read_uint32.
3341 2014-09-11 Gary Benson <gbenson@redhat.com>
3343 * common/common-debug.h (show_debug_regs): Declare.
3344 * common/common-debug.c (show_debug_regs): Define.
3345 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3346 all uses with show_debug_regs. Replace all uses that considered
3347 debug_hw_points as a multi-value integer with straight boolean
3349 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3350 with show_debug_regs.
3351 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3352 all uses with show_debug_regs.
3353 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3354 uses with show_debug_regs.
3356 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3358 * findvar.c (address_from_register): Handle targets requiring
3359 a special conversion routine even for plain pointer types.
3361 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3363 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3364 (store_register): Do not call exec_one_dummy_insn.
3366 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3368 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3369 dereference it first. Use value_enclosing_type instead of
3371 (ada_array_length): Likewise.
3373 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3375 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3376 Adjust function implementation and documentation accordingly.
3377 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3378 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3379 Update call to ada_value_ptr_subscript.
3381 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3383 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3384 instead of VAL's type.
3386 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3388 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3390 2014-09-09 Doug Evans <xdje42@gmail.com>
3393 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3394 last parameter to pkg-config, not first.
3395 * configure.ac: Pass --with-guile provided pkg-config path to
3396 GDB_GUILE_PROGRAM_NAMES.
3397 * configure: Regenerate.
3399 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3401 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3404 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3406 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3407 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3408 the list of sections determining GDB_OSABI_IRIX.
3410 2014-09-09 James Hogan <james.hogan@imgtec.com>
3412 * MAINTAINERS (Write After Approval): Add "James Hogan".
3414 2014-09-09 James Hogan <james.hogan@imgtec.com>
3416 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3418 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3420 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3422 2014-09-08 Doug Evans <xdje42@gmail.com>
3425 * guile.c: #include <signal.h>.
3426 (_initialize_guile): Block SIGCHLD while initializing Guile.
3428 Replaces the following, which is reverted.
3430 2014-07-26 Doug Evans <xdje42@gmail.com>
3433 * configure.ac: Add check for header gc/gc.h.
3434 Add check for function setenv.
3435 * configure: Regenerate.
3436 * config.in: Regenerate.
3437 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3439 2014-09-08 Doug Evans <xdje42@gmail.com>
3441 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3442 with named constant. Fix style of pointer comparison.
3443 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3445 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3448 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3449 decide whether we display the command on "show user".
3450 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3451 printing command name.
3452 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3453 * cli/cli-decode.c (cli_user_command_p): Create helper function
3454 to verify whether cmd_list_element is a user-defined command.
3456 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3459 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3460 Fix goto out of TRY_CATCH.
3462 2014-09-06 Doug Evans <xdje42@gmail.com>
3463 Tom Tromey <tromey@redhat.com>
3466 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3467 $_any_caller_matches.
3468 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3469 * python/lib/gdb/function/caller_is.py: New file.
3471 2014-09-06 Doug Evans <xdje42@gmail.com>
3473 * infcmd.c (program_info): Fix typo.
3475 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3478 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3479 'number'. New variable 'has_digit'. Rewrite code to deal with
3480 subexpressions on SDT probes.
3482 2014-09-04 Pedro Alves <palves@redhat.com>
3484 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3485 the input is only one character long.
3487 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3490 * f-valprint.c (f_val_print): Specify the correct print option to
3491 use when printing integer values.
3493 2014-09-04 Gary Benson <gbenson@redhat.com>
3495 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3496 Remove code to cope with LWPs wrapped as PIDs.
3497 Add assertions to ensure no wrapped LWPs are passed.
3499 2014-09-04 Pedro Alves <palves@redhat.com>
3501 * value.c (value_ranges_copy_adjusted): New function, factored out
3503 (value_contents_copy_raw): ... here.
3504 (unpack_value_bits_as_long_1): Rename back to ...
3505 (unpack_bits_as_long): ... this. Remove 'original_value' and
3506 'result' parameters. Change return type to LONGEST.
3507 (unpack_value_bits_as_long): Delete.
3508 (unpack_value_field_as_long_1): Delete.
3509 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3510 (unpack_value_bitfield): New function.
3511 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3512 (value_fetch_lazy): Use unpack_value_bitfield.
3513 * value.h (unpack_value_bits_as_long): Delete declaration.
3515 2014-09-03 Sasha Smundak <asmundak@google.com>
3517 * python/py-frame.c (frapy_read_register): New function.
3519 2014-09-03 James Hogan <james.hogan@imgtec.com>
3521 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3522 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3524 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3527 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3529 (add_cmd): Set "completer_handle_brkchars" to NULL.
3530 * cli/cli-decode.h (struct cmd_list_element)
3531 <completer_handle_brkchars>: New field.
3532 * command.h (completer_ftype_void): New typedef.
3533 (set_cmd_completer_handle_brkchars): New prototype.
3534 * completer.c (set_gdb_completion_word_break_characters): New
3536 (complete_line_internal): Call "completer_handle_brkchars"
3537 callback from command.
3538 * completer.h: Include "command.h".
3539 (set_gdb_completion_word_break_characters): New prototype.
3540 * python/py-cmd.c (cmdpy_completer_helper): New function.
3541 (cmdpy_completer_handle_brkchars): New function.
3542 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3543 (cmdpy_init): Set completer_handle_brkchars to
3544 cmdpy_completer_handle_brkchars.
3546 2014-09-03 Gary Benson <gbenson@redhat.com>
3548 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3549 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3550 Loop conditions changed to equivalent form.
3551 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3552 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3553 ALL_DEBUG_ADDRESS_REGISTERS.
3555 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3557 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3560 2014-09-02 Doug Evans <dje@google.com>
3562 * typeprint.c (find_global_typedef): Fix comment.
3564 2014-09-02 Gary Benson <gbenson@redhat.com>
3566 * i386-nat.h: Renamed as...
3567 * x86-nat.h: New file. All type, function and variable name
3568 prefixes changed from "i386_" to "x86_". All references updated.
3569 * i386-nat.c: Renamed as...
3570 * x86-nat.c: New file. All type, function and variable name
3571 prefixes changed from "i386_" to "x86_". All references updated.
3572 * common/i386-xstate.h: Renamed as...
3573 * common/x86-xstate.h: New file. All type, function and variable
3574 name prefixes changed from "i386_" to "x86_". All references
3576 * nat/i386-cpuid.h: Renamed as...
3577 * nat/x86-cpuid.h: New file. All type, function and variable name
3578 prefixes changed from "i386_" to "x86_". All references updated.
3579 * nat/i386-gcc-cpuid.h: Renamed as...
3580 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3581 name prefixes changed from "i386_" to "x86_". All references
3583 * nat/i386-dregs.h: Renamed as...
3584 * nat/x86-dregs.h: New file. All type, function and variable name
3585 prefixes changed from "i386_" to "x86_". All references updated.
3586 * nat/i386-dregs.c: Renamed as...
3587 * nat/x86-dregs.c: New file. All type, function and variable name
3588 prefixes changed from "i386_" to "x86_". All references updated.
3590 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3592 * varobj.c (_initialize_varobj): Move to the end of file.
3594 2014-08-29 Gary Benson <gbenson@redhat.com>
3596 * common/common-exceptions.h: New file.
3597 * common/common-exceptions.c: Likewise.
3598 * Makefile.in (SFILES): Add common/common-exceptions.c.
3599 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3600 (COMMON_OBS): Add common-exceptions.o.
3601 (common-exceptions.o): New rule.
3602 * exceptions.h (common-exceptions.h): Include.
3603 (gdb_setjmp.h): Do not include.
3604 (return_reason): Moved to common-exceptions.h.
3605 (enum return_reason): Likewise.
3606 (RETURN_MASK): Likewise.
3607 (typedef return_mask): Likewise.
3608 (enum errors): Likewise.
3609 (struct gdb_exception): Likewise.
3610 (exceptions_state_mc_init): Likewise.
3611 (exceptions_state_mc_action_iter): Likewise.
3612 (exceptions_state_mc_action_iter_1): Likewise.
3613 (TRY_CATCH): Likewise.
3614 (throw_exception): Likewise.
3615 (throw_verror): Likewise.
3616 (throw_vquit): Likewise.
3617 (throw_error): Likewise.
3618 (throw_quit): Likewise.
3619 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3620 (enum catcher_action): Likewise.
3621 (struct catcher): Likewise.
3622 (current_catcher): Likewise.
3623 (catcher_list_size): Likewise.
3624 (exceptions_state_mc_init): Likewise.
3625 (catcher_pop): Likewise.
3626 (exceptions_state_mc): Likewise.
3627 (exceptions_state_mc_action_iter): Likewise.
3628 (exceptions_state_mc_action_iter_1): Likewise.
3629 (throw_exception): Likewise.
3630 (exception_messages): Likewise.
3631 (exception_messages_size): Likewise.
3632 (throw_it): Likewise.
3633 (throw_verror): Likewise.
3634 (throw_vquit): Likewise.
3635 (throw_error): Likewise.
3636 (throw_quit): Likewise.
3637 (prepare_to_throw_exception): New function.
3639 2014-08-29 Gary Benson <gbenson@redhat.com>
3641 * common/gdb_setjmp.h: New file.
3642 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3643 * configure.ac: Move sigsetjmp check...
3644 * common/common.m4: ...here.
3645 * configure: Regenerate.
3646 * cp-support.c (SIGJMP_BUF): Delete.
3647 (SIGSETJMP): Likewise.
3648 (SIGLONGJMP): Likewise.
3649 * exceptions.h (gdb_setjmp.h): Include.
3650 (setjmp.h): Do not include.
3651 (EXCEPTIONS_SIGJMP_BUF): Delete.
3652 (EXCEPTIONS_SIGSETJMP): Likewise.
3653 (EXCEPTIONS_SIGLONGJMP): Likewise.
3654 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3656 * exceptions.c: Likewise.
3658 2014-08-29 Gary Benson <gbenson@redhat.com>
3660 * cleanups.h: Moved to...
3661 * common/cleanups.h: New file.
3662 * cleanups.c: Moved to...
3663 * common/cleanups.c: New file. Include common-defs.h and
3664 cleanups.h. Do not include defs.h.
3665 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3666 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3667 (cleanups.o): New rule.
3669 2014-08-29 Gary Benson <gbenson@redhat.com>
3671 * common/errors.h (internal_warning): New declaration.
3672 (internal_vwarning): Likewise.
3673 * common/errors.c (internal_warning): New function.
3674 * utils.h (internal_warning): Don't declare.
3675 (internal_vwarning): Likewise.
3676 * utils.c (internal_warning): Removed.
3678 2014-08-29 Gary Benson <gbenson@redhat.com>
3680 * main.c (captured_main): Use warning during startup.
3681 Prefix startup warning messages with command name.
3683 2014-08-29 Gary Benson <gbenson@redhat.com>
3685 * main.c (captured_main): Handle usage errors with error.
3687 2014-08-29 Gary Benson <gbenson@redhat.com>
3689 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3690 exit pair with a call to error. Wrap the message with _().
3692 2014-08-29 Gary Benson <gbenson@redhat.com>
3694 * main.c (captured_main): Replace a fprintf/exit
3695 pair with a call to error. Wrap the message with _().
3697 2014-08-29 Gary Benson <gbenson@redhat.com>
3699 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3700 pairs with calls to error. Wrap the message with _().
3702 2014-08-29 Gary Benson <gbenson@redhat.com>
3704 * utils.c (vwarning): Protect calls to target_terminal_ours
3707 2014-08-29 Gary Benson <gbenson@redhat.com>
3709 * exceptions.c (print_flush): Protect calls to
3710 target_terminal_ours and wrap_here.
3712 2014-08-29 Gary Benson <gbenson@redhat.com>
3714 * utils.h (filtered_printing_initialized): New declaration.
3715 * utils.c (abort_with_message): New function.
3716 (internal_vproblem): Use abort_with_message for first level
3717 recursive internal problems, and if gdb_stderr is not set up.
3718 Protect calls to target_terminal_ours, begin_line and query.
3720 2014-08-28 Doug Evans <dje@google.com>
3722 * symtab.c (in_prologue): Move definition to better spot.
3723 (skip_prologue_using_sal): Ditto.
3725 2014-08-28 Doug Evans <dje@google.com>
3727 * symtab.c (find_function_start_sal): Move definition to better spot.
3729 2014-08-28 Yao Qi <yao@codesourcery.com>
3731 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3732 found_stack_adjust in forward scan. Remove condition check
3733 on found_stack_adjust which is always true. Indent the code.
3735 2014-08-28 Yao Qi <yao@codesourcery.com>
3737 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3738 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3739 (dwarf_decode_lines): Remove argument
3740 want_line_info. Remove condition check on want_line_info.
3743 2014-08-27 Doug Evans <dje@google.com>
3745 * dwarf2read.c (dwarf_record_line): Fix typo.
3747 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3749 * target.h (struct target_ops::to_terminal_save_ours): Remove
3751 (target_terminal_save_ours): Remove macro.
3752 * target-delegates.c: Regenerate.
3753 * inf-child.c (inf_child_target): Don't set the nonexistent
3754 field to_terminal_save_ours.
3755 * inferior.h (child_terminal_save_ours): Remove declaration.
3756 * terminal.h (gdb_save_tty_state): New declaration.
3757 * inflow.c (child_terminal_save_ours): Rename to ...
3758 (gdb_save_tty_state): ... this.
3759 * tui/tui.c: Include terminal.h.
3760 (tui_enable): Use gdb_save_tty_state instead of
3761 target_terminal_save_ours.
3762 (tui_disable): Likewise.
3764 2014-08-25 Doug Evans <dje@google.com>
3766 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3767 Pass NULL instead of 0 for context pointer.
3769 2014-08-25 Yao Qi <yao@codesourcery.com>
3771 * dwarf2read.c: Fix grammatical error.
3773 2014-08-24 Yao Qi <yao@codesourcery.com>
3775 * dwarf2read.c (scan_partial_symbols): Update comments.
3776 Rename argument 'need_pc' with 'set_addrmap'.
3777 (add_partial_namespace): Rename argument 'need_pc' with
3779 (add_partial_module): Likewise.
3780 (add_partial_subprogram): Likewise. Update comments.
3781 (dwarf2_name): Fix typo.
3783 2014-08-22 Doug Evans <dje@google.com>
3786 * dwarf2read.c (dwarf_record_line_p): New function.
3787 (dwarf_decode_lines_1): Ignore subsequent line number entries
3788 for the same line if any entry had a non-zero discriminator.
3790 2014-08-22 Doug Evans <dje@google.com>
3792 * buildsym.h (record_line_ftype): New typedef.
3793 (record_line): Use it.
3794 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3795 (dwarf_decode_lines_1): Call them.
3797 2014-08-22 Yao Qi <yao@codesourcery.com>
3799 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3800 (ctf_end): Remove code.
3802 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3804 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3805 (linux_make_corefile_notes): call update_thread_list, protected against
3808 2014-08-21 Pedro Alves <palves@redhat.com>
3810 * infcmd.c (attach_command): Remove comment.
3812 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3814 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3815 unsigned LONGEST to ULONGEST.
3817 2014-08-20 Pedro Alves <palves@redhat.com>
3819 * Makefile.in (check-read1): New rule.
3821 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3823 * value.c (value_from_contents_and_address): Strip resolved_type's
3824 typedef layers before checking its TYPE_DATA_LOCATION.
3826 2014-08-20 Pedro Alves <palves@redhat.com>
3828 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3830 2014-08-20 Yao Qi <yao@codesourcery.com>
3832 * amd64-tdep.c (amd64_classify): Add a blank line after the
3833 example. Move "*/" to a new line.
3834 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3835 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3836 * dwarf2read.c (psymtab_include_file_name): Likewise.
3838 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3839 Pedro Alves <palves@redhat.com>
3843 * ada-lang.c (coerce_unspec_val_to_type): Use
3844 value_contents_copy_raw.
3845 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3846 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3847 * cp-valprint.c (cp_print_value_fields): Let the common printing
3848 code handle optimized out values.
3849 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3850 * d-valprint.c (dynamic_array_type): Use
3851 value_bits_any_optimized_out.
3852 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3853 check_any_valid fields.
3854 (check_pieced_value_bits): Delete and inline ...
3855 (check_pieced_synthetic_pointer): ... here.
3856 (check_pieced_value_validity): Delete.
3857 (check_pieced_value_invalid): Delete.
3858 (pieced_value_funcs): Remove check_validity and check_any_valid
3860 (read_pieced_value): Use mark_value_bits_optimized_out.
3861 (write_pieced_value): Switch to use
3862 mark_value_bytes_optimized_out.
3863 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3864 of assuming the whole value is optimized out.
3865 * findvar.c (read_frame_register_value): Remove special handling
3866 of optimized out registers.
3867 (value_from_register): Use mark_value_bytes_optimized_out.
3868 * frame-unwind.c (frame_unwind_got_optimized): Use
3869 mark_value_bytes_optimized_out.
3870 * jv-valprint.c (java_value_print): Adjust.
3871 (java_print_value_fields): Let the common printing code handle
3872 optimized out values.
3873 * mips-tdep.c (mips_print_register): Remove special handling of
3874 optimized out registers.
3875 * opencl-lang.c (lval_func_check_validity): Delete.
3876 (lval_func_check_any_valid): Delete.
3877 (opencl_value_funcs): Remove check_validity and check_any_valid
3879 * p-valprint.c (pascal_object_print_value_fields): Let the common
3880 printing code handle optimized out values.
3881 * stack.c (read_frame_arg): Remove special handling of optimized
3882 out values. Fetch both VAL and ENTRYVAL before comparing
3883 contents. Adjust to value_available_contents_eq rename.
3884 * valprint.c (valprint_check_validity)
3885 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3886 (val_print_array_elements): Adjust.
3887 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3888 (value_bits_any_optimized_out): New function.
3889 (value_entirely_covered_by_range_vector): New function, factored
3890 out from value_entirely_unavailable.
3891 (value_entirely_unavailable): Reimplement.
3892 (value_entirely_optimized_out): New function.
3893 (insert_into_bit_range_vector): New function, factored out from
3894 mark_value_bits_unavailable.
3895 (mark_value_bits_unavailable): Reimplement.
3896 (struct ranges_and_idx): New struct.
3897 (find_first_range_overlap_and_match): New function, factored out
3898 from value_available_contents_bits_eq.
3899 (value_available_contents_bits_eq): Rename to ...
3900 (value_contents_bits_eq): ... this. Check both unavailable
3901 contents and optimized out contents.
3902 (value_available_contents_eq): Rename to ...
3903 (value_contents_eq): ... this.
3904 (allocate_value_lazy): Remove reference to the old optimized_out
3906 (allocate_optimized_out_value): Use
3907 mark_value_bytes_optimized_out.
3908 (require_not_optimized_out): Adjust to check whether the
3909 optimized_out vec is empty.
3910 (ranges_copy_adjusted): New function, factored out from
3911 value_contents_copy_raw.
3912 (value_contents_copy_raw): Also copy the optimized out ranges.
3913 Assert the destination ranges aren't optimized out.
3914 (value_contents_copy): Update comment, remove call to
3915 require_not_optimized_out.
3916 (value_contents_equal): Adjust to check whether the optimized_out
3918 (set_value_optimized_out, value_optimized_out_const): Delete.
3919 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3921 (value_entirely_optimized_out, value_bits_valid): Delete.
3922 (value_copy): Take a VEC copy of the 'optimized_out' field.
3923 (value_primitive_field): Remove special handling of optimized out.
3924 (value_fetch_lazy): Assert that lazy values have no unavailable
3925 regions. Use value_bits_any_optimized_out. Remove some special
3926 handling for optimized out values.
3927 * value.h: Add intro comment about <optimized out> and
3929 (struct lval_funcs): Remove check_validity and check_any_valid
3931 (set_value_optimized_out, value_optimized_out_const): Remove.
3932 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3934 (value_bits_any_optimized_out): New declaration.
3935 (value_bits_valid): Delete declaration.
3936 (value_available_contents_eq): Rename to ...
3937 (value_contents_eq): ... this, and extend comments.
3939 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3941 Fix -fsanitize=address on unreadable inferior strings.
3942 * valprint.c (val_print_string): Fix access before BUFFER.
3944 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3946 * target.c (target_struct_size): Remove.
3947 (target_struct_allocsize): Remove.
3948 (DEFAULT_ALLOCSIZE): Remove.
3949 (target_ops_p): New typedef.
3950 (DEF_VEC_P (target_ops_p)): New vector type.
3951 (target_structs): Change type to VEC (target_ops_p).
3952 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3953 (find_default_run_target): Rewrite for loop following changes to
3956 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3958 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3959 Adjust code accordingly. Adjust function description comment.
3961 2014-08-19 Yao Qi <yao@codesourcery.com>
3963 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3966 2014-08-19 Alan Modra <amodra@gmail.com>
3968 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3969 * config.in: Regenerate.
3970 * configure: Regenerate.
3972 2014-08-19 Tom Tromey <tromey@redhat.com>
3973 Gary Benson <gbenson@redhat.com>
3975 * common/common-debug.h: New file.
3976 * common/common-debug.c: Likewise.
3977 * debug.c: Likewise.
3978 * Makefile.in (SFILES): Add common/common-debug.c.
3979 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3980 (COMMON_OBS): Add common-debug.o and debug.o.
3981 (common-debug.o): New rule.
3982 * common/common-defs.h: Include common-debug.h.
3983 * common/agent.c (debug_agent_printf): New function.
3984 (DEBUG_AGENT): Redefine.
3985 * nat/i386-dregs.c (debug_printf): Undefine.
3987 2014-08-19 Gary Benson <gbenson@redhat.com>
3989 * common/common-defs.h: Include print-utils.h.
3990 * utils.h: Do not include print-utils.h.
3992 2014-08-19 Tom Tromey <tromey@redhat.com>
3993 Gary Benson <gbenson@redhat.com>
3995 * common/common-types.h: New file.
3996 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3997 * common/common-defs.h: Include common-types.h.
3998 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4001 2014-08-19 Tom Tromey <tromey@redhat.com>
4002 Gary Benson <gbenson@redhat.com>
4004 * common/errors.h: New file.
4005 * common/errors.c: Likewise.
4006 * Makefile.in (SFILES): Add common/errors.c.
4007 (HFILES_NO_SRCDIR): Add common/errors.h.
4008 (COMMON_OBS): Add errors.o.
4009 (errors.o): New rule.
4010 * common/common-defs.h: Include errors.h.
4011 * utils.h (perror_with_name, error, verror, warning, vwarning):
4013 * common/common-utils.h: (malloc_failure, internal_error):
4016 2014-08-19 Gary Benson <gbenson@redhat.com>
4018 * utils.c (internal_vproblem): Always print the message.
4020 2014-08-18 Doug Evans <dje@google.com>
4022 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4024 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4026 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4027 Return 0 if TYPE is dynamic.
4028 (print_range): Add handling of dynamic ranges.
4030 2014-08-18 Keven Boell <keven.boell@intel.com>
4031 Joel Brobecker <brobecker@adacore.com>
4033 * gdbtypes.h (struct main_type): Add field "data_location".
4034 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4035 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4036 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4037 a dynamic data location.
4038 (resolve_dynamic_type): Add DW_AT_data_location handling.
4039 (copy_recursive, copy_type): Copy the data_location information
4041 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4042 * value.c (value_from_contents_and_address): Add
4043 DW_AT_data_location handling.
4045 2014-08-18 Keven Boell <keven.boell@intel.com>
4046 Joel Brobecker <brobecker@adacore.com>
4048 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4049 field "get_object_address".
4050 * dwarf2expr.c (execute_stack_op): Add handling for
4051 DW_OP_push_object_address.
4052 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4053 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4054 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4055 (dwarf_expr_get_obj_addr): New function.
4056 (dwarf_expr_ctx_funcs): Add get_object_address field.
4057 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4058 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4059 (dwarf2_evaluate_property): Add parameter "address". Use it.
4060 (needs_get_obj_addr): New function.
4061 (needs_frame_ctx_funcs): Add get_object_address field.
4062 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4063 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4064 (resolve_dynamic_array): Likewise.
4066 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4068 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4069 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4070 fixed value for records and unions for which some GNAT encodings
4073 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4075 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4076 rewrite to avoid "else if" and "else" constructs. Should be
4077 a no-op in practice.
4079 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4081 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4084 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4087 * eval.c: Update all calls to find_overload_match.
4088 * valarith.c: Likewise.
4089 (value_user_defined_cpp_op, value_user_defined_op): New
4090 argument NOSIDE. Update all callers.
4091 * valops.c (find_overload_match): New argument NOSIDE.
4092 * value.h (find_overload_match): Update signature.
4094 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4096 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4097 'items' methods instead of 'iteritems' method on dictionaries.
4099 2014-08-15 Doug Evans <dje@google.com>
4101 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4104 2014-08-15 Doug Evans <dje@google.com>
4106 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4108 2014-08-15 Doug Evans <dje@google.com>
4110 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4112 2014-08-15 Doug Evans <dje@google.com>
4114 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4117 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4119 * dcache.h: Include target.h, to avoid compile time warnings.
4121 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4123 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4124 frame_info" partial declaration.
4125 * gdbarch.h: Regenerate.
4127 2014-08-15 Yao Qi <yao@codesourcery.com>
4129 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4130 Add parameter 'decode_for_pst_p'. Callers update.
4132 2014-08-13 Yao Qi <yao@codesourcery.com>
4135 * configure.ac: Use local variable 'pos'.
4136 * configure: Regenerated.
4138 2014-08-11 Doug Evans <dje@google.com>
4140 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4141 message, it is redundant with "Reading symbols from ..." message.
4143 2014-08-10 Doug Evans <xdje42@gmail.com>
4145 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4147 2014-08-09 Yao Qi <yao@codesourcery.com>
4150 * remote.c (remote_xfer_partial): Remove dead code.
4152 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4154 * ia64-linux-tdep.c: Include "regset.h".
4155 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4156 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4157 (ia64_linux_supply_fpregset): New function.
4158 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4159 (ia64_linux_regset_from_core_section): New function.
4160 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4163 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4165 * m68klinux-tdep.c: Include "regset.h".
4166 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4167 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4168 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4169 (m68k_linux_regset_from_core_section): New function.
4170 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4173 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4175 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4176 function. Move logic to...
4177 (tilegx_linux_regmap): ... this new register map.
4178 (tilegx_linux_regset): Refer to register map, replace supply
4179 method by regcache_supply_regset, and add collect method.
4180 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4181 TILEGX_FIRST_EASY_REGNUM.
4183 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4185 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4186 that calls regcache_supply_regset and handles the EPC register
4187 separately. Move main logic to...
4188 (score7_linux_gregmap): ... this new register map.
4189 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4190 (score7_linux_gregset): Refer to register map. Add collect method.
4191 (score7_linux_regset_from_core_section): Replace
4192 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4193 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4194 (struct regset): Delete unused forward declaraction.
4195 (struct pt_regs): Delete structure definition.
4196 (elf_gregset_t): Delete typedef.
4198 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4200 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4201 (nios2_core_regset): Add collect method.
4203 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4205 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4206 platform-independent and don't write to read-only input buffer.
4207 (m32r_linux_collect_gregset): New function.
4208 (m32r_linux_gregset): Add collect method.
4210 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4212 * hppa-linux-tdep.c (greg_map): Rename to...
4213 (hppa_linux_gregmap): ... this. Also convert to
4214 regcache_map_entry format.
4215 (hppa_linux_supply_regset): Delete function.
4216 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4217 (hppa_linux_fpregmap): ... this new register map.
4218 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4219 register map, replace supply method by regcache_supply_regset, and
4220 add collect method regcache_collect_regset.
4222 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4224 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4225 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4226 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4227 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4228 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4229 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4230 (frv_linux_supply_gregset): Replace main logic by call to
4231 regcache_supply_regset, but keep clearing gr32-gr63.
4232 (frv_linux_supply_fpregset): Delete function.
4233 (frv_linux_gregset): Refer to appropriate register map and add
4234 regcache_collect_regset as the collect method.
4235 (frv_linux_fpregset): Likewise. Also exchange the supply method
4236 by regcache_supply_regset.
4238 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4240 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4241 by call to alpha_supply_int_regs.
4242 (alpha_linux_collect_gregset): New function.
4243 (alpha_linux_supply_fpregset): Replace logic by call to
4244 alpha_supply_fp_regs.
4245 (alpha_linux_collect_fpregset): New function.
4246 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4248 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4250 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4251 by call to regcache_collect_regset.
4252 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4253 instead of aarch64_linux_supply_gregset/_fpregset.
4254 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4255 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4256 header file instead.
4257 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4258 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4259 functions. Move logic to ...
4260 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4262 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4263 refer to new register maps, replace *_regset_from_core by
4264 regcache_supply_regset, and also use regcache_collect_regset.
4265 * aarch64-linux-tdep.h: Include "regset.h".
4266 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4268 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4269 macros, moved from C source file.
4270 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4271 variable declarations.
4273 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4275 * s390-linux-nat.c: Include "regset.h".
4276 (regmap_gregset): Delete macro.
4277 (s390_64_regmap_gregset): New register map for
4278 regcache_supply/_collect_regset.
4279 (s390_64_gregset): New regset.
4280 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4281 (regmap_fpregset): Delete macro.
4282 (s390_native_supply, s390_native_collect): Delete functions.
4283 (supply_gregset, fill_gregset): Replace s390-specific regmap
4284 handling by a call to regcache_supply/_collect_regset.
4285 (supply_fpregset, fill_fpregset): Call regcache_supply/
4286 _collect_regset instead of s390_native_supply/_collect.
4287 (fetch_regset, store_regset): Likewise. Also change the last
4288 parameter to a regset instead of a regmap.
4289 (s390_linux_fetch_inferior_registers)
4290 (390_linux_store_inferior_registers): Adjust last parameter in
4291 calls to fetch_regset and store_regset.
4292 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4293 (s390_gregmap): ... this. Also make static const and convert to
4294 regcache_map_entry format.
4295 (s390x_regmap_gregset): Delete.
4296 (s390_regmap_fpregset): Rename to...
4297 (s390_fpregmap): ... this. Make static const and convert to
4298 regcache_map_entry format.
4299 (s390_regmap_upper, s390_regmap_last_break)
4300 (s390x_regmap_last_break, s390_regmap_system_call)
4301 (s390_regmap_tdb): Likewise.
4302 (s390_supply_regset, s390_collect_regset): Remove functions.
4303 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4305 (s390_gregset, s390_fpregset, s390_upper_regset)
4306 (s390_last_break_regset, s390x_last_break_regset)
4307 (s390_system_call_regset, s390_tdb_regset): Make global and
4308 replace s390_supply/_collect_regset by regcache_supply/
4310 (s390x_gregset): Delete.
4311 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4312 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4313 (s390_regmap_fpregset, s390_regmap_last_break)
4314 (s390x_regmap_last_break, s390_regmap_system_call)
4315 (s390_regmap_tdb): Delete global variable declarations.
4316 (s390_gregset, s390_fpregset, s390_last_break_regset)
4317 (s390x_last_break_regset, s390_system_call_regset)
4318 (s390_tdb_regset): New global variable declarations.
4320 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4322 * regcache.c: Include "regset.h".
4323 (regcache_transfer_regset): New local function.
4324 (regcache_supply_regset, regcache_collect_regset): New functions.
4325 * regcache.h (struct regcache_map_entry): New structure.
4326 (REGCACHE_MAP_SKIP): New enum value.
4327 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4329 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4331 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4332 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4333 (ppc_linux_collect_gregset ): Likewise.
4334 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4335 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4336 (ppc_collect_vrregset): Likewise.
4337 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4340 2014-08-07 Yao Qi <yao@codesourcery.com>
4342 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4343 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4344 * remote.c (remote_read_bytes): Likewise.
4346 2014-08-07 Yao Qi <yao@codesourcery.com>
4348 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4350 2014-08-07 Yao Qi <yao@codesourcery.com>
4353 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4354 TARGET_XFER_OK instead of 0.
4356 2014-08-07 Gary Benson <gbenson@redhat.com>
4358 * common/common-defs.h: Include errno.h.
4359 * defs.h: Do not include errno.h.
4360 * ada-typeprint.c: Likewise.
4361 * c-typeprint.c: Likewise.
4362 * core-regset.c: Likewise.
4363 * corefile.c: Likewise.
4364 * corelow.c: Likewise.
4365 * event-loop.c: Likewise.
4366 * f-typeprint.c: Likewise.
4367 * gnu-nat.c: Likewise.
4368 * go32-nat.c: Likewise.
4369 * i386gnu-nat.c: Likewise.
4370 * m2-typeprint.c: Likewise.
4371 * nat/linux-btrace.c: Likewise.
4372 * p-typeprint.c: Likewise.
4373 * procfs.c: Likewise.
4374 * remote-sim.c: Likewise.
4375 * rs6000-nat.c: Likewise.
4376 * target.c: Likewise.
4377 * typeprint.c: Likewise.
4378 * ui-file.c: Likewise.
4379 * valops.c: Likewise.
4380 * valprint.c: Likewise.
4382 2014-08-07 Gary Benson <gbenson@redhat.com>
4384 * common/common-defs.h: Include string.h.
4385 * aarch64-tdep.c: Do not include string.h.
4386 * ada-exp.y: Likewise.
4387 * ada-lang.c: Likewise.
4388 * ada-lex.l: Likewise.
4389 * ada-typeprint.c: Likewise.
4390 * ada-valprint.c: Likewise.
4391 * aix-thread.c: Likewise.
4392 * alpha-linux-tdep.c: Likewise.
4393 * alpha-mdebug-tdep.c: Likewise.
4394 * alpha-nat.c: Likewise.
4395 * alpha-osf1-tdep.c: Likewise.
4396 * alpha-tdep.c: Likewise.
4397 * alphanbsd-tdep.c: Likewise.
4398 * amd64-dicos-tdep.c: Likewise.
4399 * amd64-linux-tdep.c: Likewise.
4400 * amd64-nat.c: Likewise.
4401 * amd64-sol2-tdep.c: Likewise.
4402 * amd64fbsd-tdep.c: Likewise.
4403 * amd64obsd-tdep.c: Likewise.
4404 * arch-utils.c: Likewise.
4405 * arm-linux-nat.c: Likewise.
4406 * arm-linux-tdep.c: Likewise.
4407 * arm-tdep.c: Likewise.
4408 * arm-wince-tdep.c: Likewise.
4409 * armbsd-tdep.c: Likewise.
4410 * armnbsd-nat.c: Likewise.
4411 * armnbsd-tdep.c: Likewise.
4412 * armobsd-tdep.c: Likewise.
4413 * avr-tdep.c: Likewise.
4414 * ax-gdb.c: Likewise.
4415 * ax-general.c: Likewise.
4416 * bcache.c: Likewise.
4417 * bfin-tdep.c: Likewise.
4418 * breakpoint.c: Likewise.
4419 * build-id.c: Likewise.
4420 * buildsym.c: Likewise.
4421 * c-exp.y: Likewise.
4422 * c-lang.c: Likewise.
4423 * c-typeprint.c: Likewise.
4424 * c-valprint.c: Likewise.
4425 * charset.c: Likewise.
4426 * cli-out.c: Likewise.
4427 * cli/cli-cmds.c: Likewise.
4428 * cli/cli-decode.c: Likewise.
4429 * cli/cli-dump.c: Likewise.
4430 * cli/cli-interp.c: Likewise.
4431 * cli/cli-logging.c: Likewise.
4432 * cli/cli-script.c: Likewise.
4433 * cli/cli-setshow.c: Likewise.
4434 * cli/cli-utils.c: Likewise.
4435 * coffread.c: Likewise.
4436 * common/agent.c: Likewise.
4437 * common/buffer.c: Likewise.
4438 * common/buffer.h: Likewise.
4439 * common/common-utils.c: Likewise.
4440 * common/filestuff.c: Likewise.
4441 * common/filestuff.c: Likewise.
4442 * common/format.c: Likewise.
4443 * common/print-utils.c: Likewise.
4444 * common/rsp-low.c: Likewise.
4445 * common/signals.c: Likewise.
4446 * common/vec.h: Likewise.
4447 * common/xml-utils.c: Likewise.
4448 * core-regset.c: Likewise.
4449 * corefile.c: Likewise.
4450 * corelow.c: Likewise.
4451 * cp-abi.c: Likewise.
4452 * cp-name-parser.y: Likewise.
4453 * cp-support.c: Likewise.
4454 * cp-valprint.c: Likewise.
4455 * cris-tdep.c: Likewise.
4456 * d-exp.y: Likewise.
4457 * darwin-nat.c: Likewise.
4458 * dbxread.c: Likewise.
4459 * dcache.c: Likewise.
4460 * demangle.c: Likewise.
4461 * dicos-tdep.c: Likewise.
4462 * disasm.c: Likewise.
4463 * doublest.c: Likewise.
4464 * dsrec.c: Likewise.
4465 * dummy-frame.c: Likewise.
4466 * dwarf2-frame.c: Likewise.
4467 * dwarf2loc.c: Likewise.
4468 * dwarf2read.c: Likewise.
4469 * elfread.c: Likewise.
4470 * environ.c: Likewise.
4472 * event-loop.c: Likewise.
4473 * exceptions.c: Likewise.
4475 * expprint.c: Likewise.
4476 * f-exp.y: Likewise.
4477 * f-lang.c: Likewise.
4478 * f-typeprint.c: Likewise.
4479 * f-valprint.c: Likewise.
4480 * fbsd-nat.c: Likewise.
4481 * findcmd.c: Likewise.
4482 * findvar.c: Likewise.
4483 * fork-child.c: Likewise.
4484 * frame.c: Likewise.
4485 * frv-linux-tdep.c: Likewise.
4486 * frv-tdep.c: Likewise.
4488 * gdb_bfd.c: Likewise.
4489 * gdbarch.c: Likewise.
4490 * gdbarch.sh: Likewise.
4491 * gdbtypes.c: Likewise.
4492 * gnu-nat.c: Likewise.
4493 * gnu-v2-abi.c: Likewise.
4494 * gnu-v3-abi.c: Likewise.
4495 * go-exp.y: Likewise.
4496 * go-lang.c: Likewise.
4497 * go32-nat.c: Likewise.
4498 * guile/guile.c: Likewise.
4499 * guile/scm-auto-load.c: Likewise.
4500 * hppa-hpux-tdep.c: Likewise.
4501 * hppa-linux-nat.c: Likewise.
4502 * hppanbsd-tdep.c: Likewise.
4503 * hppaobsd-tdep.c: Likewise.
4504 * i386-cygwin-tdep.c: Likewise.
4505 * i386-dicos-tdep.c: Likewise.
4506 * i386-linux-tdep.c: Likewise.
4507 * i386-nto-tdep.c: Likewise.
4508 * i386-sol2-tdep.c: Likewise.
4509 * i386-tdep.c: Likewise.
4510 * i386bsd-tdep.c: Likewise.
4511 * i386gnu-nat.c: Likewise.
4512 * i386nbsd-tdep.c: Likewise.
4513 * i386obsd-tdep.c: Likewise.
4514 * i387-tdep.c: Likewise.
4515 * ia64-libunwind-tdep.c: Likewise.
4516 * ia64-linux-nat.c: Likewise.
4517 * inf-child.c: Likewise.
4518 * inf-ptrace.c: Likewise.
4519 * inf-ttrace.c: Likewise.
4520 * infcall.c: Likewise.
4521 * infcmd.c: Likewise.
4522 * inflow.c: Likewise.
4523 * infrun.c: Likewise.
4524 * interps.c: Likewise.
4525 * iq2000-tdep.c: Likewise.
4526 * irix5-nat.c: Likewise.
4527 * jv-exp.y: Likewise.
4528 * jv-lang.c: Likewise.
4529 * jv-typeprint.c: Likewise.
4530 * jv-valprint.c: Likewise.
4531 * language.c: Likewise.
4532 * linux-fork.c: Likewise.
4533 * linux-nat.c: Likewise.
4534 * lm32-tdep.c: Likewise.
4535 * m2-exp.y: Likewise.
4536 * m2-typeprint.c: Likewise.
4537 * m32c-tdep.c: Likewise.
4538 * m32r-linux-nat.c: Likewise.
4539 * m32r-linux-tdep.c: Likewise.
4540 * m32r-rom.c: Likewise.
4541 * m32r-tdep.c: Likewise.
4542 * m68hc11-tdep.c: Likewise.
4543 * m68k-tdep.c: Likewise.
4544 * m68kbsd-tdep.c: Likewise.
4545 * m68klinux-nat.c: Likewise.
4546 * m68klinux-tdep.c: Likewise.
4547 * m88k-tdep.c: Likewise.
4548 * machoread.c: Likewise.
4549 * macrocmd.c: Likewise.
4551 * mdebugread.c: Likewise.
4552 * mem-break.c: Likewise.
4553 * memattr.c: Likewise.
4554 * memory-map.c: Likewise.
4555 * mep-tdep.c: Likewise.
4556 * mi/mi-cmd-break.c: Likewise.
4557 * mi/mi-cmd-disas.c: Likewise.
4558 * mi/mi-cmd-env.c: Likewise.
4559 * mi/mi-cmd-stack.c: Likewise.
4560 * mi/mi-cmd-var.c: Likewise.
4561 * mi/mi-cmds.c: Likewise.
4562 * mi/mi-console.c: Likewise.
4563 * mi/mi-getopt.c: Likewise.
4564 * mi/mi-interp.c: Likewise.
4565 * mi/mi-main.c: Likewise.
4566 * mi/mi-parse.c: Likewise.
4567 * microblaze-rom.c: Likewise.
4568 * microblaze-tdep.c: Likewise.
4569 * mingw-hdep.c: Likewise.
4570 * minidebug.c: Likewise.
4571 * minsyms.c: Likewise.
4572 * mips-irix-tdep.c: Likewise.
4573 * mips-linux-tdep.c: Likewise.
4574 * mips-tdep.c: Likewise.
4575 * mips64obsd-tdep.c: Likewise.
4576 * mipsnbsd-tdep.c: Likewise.
4577 * mipsread.c: Likewise.
4578 * mn10300-linux-tdep.c: Likewise.
4579 * mn10300-tdep.c: Likewise.
4580 * monitor.c: Likewise.
4581 * moxie-tdep.c: Likewise.
4582 * mt-tdep.c: Likewise.
4583 * nat/linux-btrace.c: Likewise.
4584 * nat/linux-osdata.c: Likewise.
4585 * nat/linux-procfs.c: Likewise.
4586 * nat/linux-ptrace.c: Likewise.
4587 * nat/linux-waitpid.c: Likewise.
4588 * nbsd-tdep.c: Likewise.
4589 * nios2-linux-tdep.c: Likewise.
4590 * nto-procfs.c: Likewise.
4591 * nto-tdep.c: Likewise.
4592 * objc-lang.c: Likewise.
4593 * objfiles.c: Likewise.
4594 * opencl-lang.c: Likewise.
4595 * osabi.c: Likewise.
4596 * osdata.c: Likewise.
4597 * p-exp.y: Likewise.
4598 * p-lang.c: Likewise.
4599 * p-typeprint.c: Likewise.
4600 * parse.c: Likewise.
4601 * posix-hdep.c: Likewise.
4602 * ppc-linux-nat.c: Likewise.
4603 * ppc-sysv-tdep.c: Likewise.
4604 * ppcfbsd-tdep.c: Likewise.
4605 * ppcnbsd-tdep.c: Likewise.
4606 * ppcobsd-tdep.c: Likewise.
4607 * printcmd.c: Likewise.
4608 * procfs.c: Likewise.
4609 * prologue-value.c: Likewise.
4610 * python/py-auto-load.c: Likewise.
4611 * python/py-gdb-readline.c: Likewise.
4612 * ravenscar-thread.c: Likewise.
4613 * regcache.c: Likewise.
4614 * registry.c: Likewise.
4615 * remote-fileio.c: Likewise.
4616 * remote-m32r-sdi.c: Likewise.
4617 * remote-mips.c: Likewise.
4618 * remote-notif.c: Likewise.
4619 * remote-sim.c: Likewise.
4620 * remote.c: Likewise.
4621 * reverse.c: Likewise.
4622 * rs6000-aix-tdep.c: Likewise.
4623 * ser-base.c: Likewise.
4624 * ser-go32.c: Likewise.
4625 * ser-mingw.c: Likewise.
4626 * ser-pipe.c: Likewise.
4627 * ser-tcp.c: Likewise.
4628 * ser-unix.c: Likewise.
4629 * serial.c: Likewise.
4630 * sh-tdep.c: Likewise.
4631 * sh64-tdep.c: Likewise.
4632 * shnbsd-tdep.c: Likewise.
4634 * sol-thread.c: Likewise.
4635 * solib-dsbt.c: Likewise.
4636 * solib-frv.c: Likewise.
4637 * solib-osf.c: Likewise.
4638 * solib-som.c: Likewise.
4639 * solib-spu.c: Likewise.
4640 * solib-target.c: Likewise.
4641 * solib.c: Likewise.
4642 * somread.c: Likewise.
4643 * source.c: Likewise.
4644 * sparc-nat.c: Likewise.
4645 * sparc-sol2-tdep.c: Likewise.
4646 * sparc-tdep.c: Likewise.
4647 * sparc64-tdep.c: Likewise.
4648 * sparc64fbsd-tdep.c: Likewise.
4649 * sparc64nbsd-tdep.c: Likewise.
4650 * sparcnbsd-tdep.c: Likewise.
4651 * spu-linux-nat.c: Likewise.
4652 * spu-multiarch.c: Likewise.
4653 * spu-tdep.c: Likewise.
4654 * stabsread.c: Likewise.
4655 * stack.c: Likewise.
4656 * std-regs.c: Likewise.
4657 * symfile.c: Likewise.
4658 * symmisc.c: Likewise.
4659 * symtab.c: Likewise.
4660 * target.c: Likewise.
4661 * thread.c: Likewise.
4662 * tilegx-linux-nat.c: Likewise.
4663 * tilegx-tdep.c: Likewise.
4665 * tracepoint.c: Likewise.
4666 * tui/tui-command.c: Likewise.
4667 * tui/tui-data.c: Likewise.
4668 * tui/tui-disasm.c: Likewise.
4669 * tui/tui-file.c: Likewise.
4670 * tui/tui-layout.c: Likewise.
4671 * tui/tui-out.c: Likewise.
4672 * tui/tui-regs.c: Likewise.
4673 * tui/tui-source.c: Likewise.
4674 * tui/tui-stack.c: Likewise.
4675 * tui/tui-win.c: Likewise.
4676 * tui/tui-windata.c: Likewise.
4677 * tui/tui-winsource.c: Likewise.
4678 * typeprint.c: Likewise.
4679 * ui-file.c: Likewise.
4680 * ui-out.c: Likewise.
4681 * user-regs.c: Likewise.
4682 * utils.c: Likewise.
4683 * v850-tdep.c: Likewise.
4684 * valarith.c: Likewise.
4685 * valops.c: Likewise.
4686 * valprint.c: Likewise.
4687 * value.c: Likewise.
4688 * varobj.c: Likewise.
4689 * vax-tdep.c: Likewise.
4690 * vaxnbsd-tdep.c: Likewise.
4691 * vaxobsd-tdep.c: Likewise.
4692 * windows-nat.c: Likewise.
4693 * xcoffread.c: Likewise.
4694 * xml-support.c: Likewise.
4695 * xstormy16-tdep.c: Likewise.
4696 * xtensa-linux-nat.c: Likewise.
4698 2014-08-07 Gary Benson <gbenson@redhat.com>
4700 * common/common-defs.h: Include gdb_assert.h.
4701 * aarch64-tdep.c: Do not include gdb_assert.h.
4702 * addrmap.c: Likewise.
4703 * aix-thread.c: Likewise.
4704 * alpha-linux-tdep.c: Likewise.
4705 * alpha-mdebug-tdep.c: Likewise.
4706 * alphanbsd-tdep.c: Likewise.
4707 * amd64-nat.c: Likewise.
4708 * amd64-tdep.c: Likewise.
4709 * amd64bsd-nat.c: Likewise.
4710 * amd64fbsd-nat.c: Likewise.
4711 * amd64fbsd-tdep.c: Likewise.
4712 * amd64nbsd-nat.c: Likewise.
4713 * amd64nbsd-tdep.c: Likewise.
4714 * amd64obsd-nat.c: Likewise.
4715 * amd64obsd-tdep.c: Likewise.
4716 * arch-utils.c: Likewise.
4717 * arm-tdep.c: Likewise.
4718 * armbsd-tdep.c: Likewise.
4720 * bcache.c: Likewise.
4721 * bfin-tdep.c: Likewise.
4722 * blockframe.c: Likewise.
4723 * breakpoint.c: Likewise.
4724 * bsd-kvm.c: Likewise.
4725 * bsd-uthread.c: Likewise.
4726 * buildsym.c: Likewise.
4727 * c-exp.y: Likewise.
4728 * c-lang.c: Likewise.
4729 * charset.c: Likewise.
4730 * cleanups.c: Likewise.
4731 * cli-out.c: Likewise.
4732 * cli/cli-decode.c: Likewise.
4733 * cli/cli-dump.c: Likewise.
4734 * cli/cli-logging.c: Likewise.
4735 * cli/cli-script.c: Likewise.
4736 * cli/cli-utils.c: Likewise.
4737 * coffread.c: Likewise.
4738 * common/common-utils.c: Likewise.
4739 * common/queue.h: Likewise.
4740 * common/signals.c: Likewise.
4741 * common/vec.h: Likewise.
4742 * complaints.c: Likewise.
4743 * completer.c: Likewise.
4744 * corelow.c: Likewise.
4745 * cp-abi.c: Likewise.
4746 * cp-name-parser.y: Likewise.
4747 * cp-namespace.c: Likewise.
4748 * cp-support.c: Likewise.
4749 * cris-tdep.c: Likewise.
4750 * dbxread.c: Likewise.
4751 * dictionary.c: Likewise.
4752 * doublest.c: Likewise.
4753 * dsrec.c: Likewise.
4754 * dummy-frame.c: Likewise.
4755 * dwarf2-frame-tailcall.c: Likewise.
4756 * dwarf2-frame.c: Likewise.
4757 * dwarf2expr.c: Likewise.
4758 * dwarf2loc.c: Likewise.
4759 * dwarf2read.c: Likewise.
4761 * event-loop.c: Likewise.
4762 * exceptions.c: Likewise.
4763 * expprint.c: Likewise.
4764 * f-valprint.c: Likewise.
4765 * fbsd-nat.c: Likewise.
4766 * findvar.c: Likewise.
4767 * frame-unwind.c: Likewise.
4768 * frame.c: Likewise.
4769 * frv-tdep.c: Likewise.
4770 * gcore.c: Likewise.
4771 * gdb-dlfcn.c: Likewise.
4772 * gdb_bfd.c: Likewise.
4773 * gdbarch.c: Likewise.
4774 * gdbarch.sh: Likewise.
4775 * gdbtypes.c: Likewise.
4776 * gnu-nat.c: Likewise.
4777 * gnu-v3-abi.c: Likewise.
4778 * go-lang.c: Likewise.
4779 * guile/scm-exception.c: Likewise.
4780 * guile/scm-gsmob.c: Likewise.
4781 * guile/scm-lazy-string.c: Likewise.
4782 * guile/scm-math.c: Likewise.
4783 * guile/scm-pretty-print.c: Likewise.
4784 * guile/scm-safe-call.c: Likewise.
4785 * guile/scm-utils.c: Likewise.
4786 * guile/scm-value.c: Likewise.
4787 * h8300-tdep.c: Likewise.
4788 * hppa-hpux-nat.c: Likewise.
4789 * hppa-tdep.c: Likewise.
4790 * hppanbsd-tdep.c: Likewise.
4791 * hppaobsd-tdep.c: Likewise.
4792 * i386-darwin-nat.c: Likewise.
4793 * i386-darwin-tdep.c: Likewise.
4794 * i386-nto-tdep.c: Likewise.
4795 * i386-tdep.c: Likewise.
4796 * i386bsd-nat.c: Likewise.
4797 * i386fbsd-tdep.c: Likewise.
4798 * i386gnu-nat.c: Likewise.
4799 * i386nbsd-tdep.c: Likewise.
4800 * i386obsd-tdep.c: Likewise.
4801 * i387-tdep.c: Likewise.
4802 * ia64-libunwind-tdep.c: Likewise.
4803 * ia64-tdep.c: Likewise.
4804 * inf-ptrace.c: Likewise.
4805 * inf-ttrace.c: Likewise.
4806 * infcall.c: Likewise.
4807 * infcmd.c: Likewise.
4808 * infrun.c: Likewise.
4809 * inline-frame.c: Likewise.
4810 * interps.c: Likewise.
4811 * jv-lang.c: Likewise.
4812 * jv-typeprint.c: Likewise.
4813 * linux-fork.c: Likewise.
4814 * linux-nat.c: Likewise.
4815 * linux-thread-db.c: Likewise.
4816 * m32c-tdep.c: Likewise.
4817 * m32r-linux-nat.c: Likewise.
4818 * m32r-tdep.c: Likewise.
4819 * m68k-tdep.c: Likewise.
4820 * m68kbsd-nat.c: Likewise.
4821 * m68kbsd-tdep.c: Likewise.
4822 * m88k-tdep.c: Likewise.
4823 * machoread.c: Likewise.
4824 * macroexp.c: Likewise.
4825 * macrotab.c: Likewise.
4826 * maint.c: Likewise.
4827 * mdebugread.c: Likewise.
4828 * memory-map.c: Likewise.
4829 * mep-tdep.c: Likewise.
4830 * mi/mi-common.c: Likewise.
4831 * microblaze-tdep.c: Likewise.
4832 * mingw-hdep.c: Likewise.
4833 * mips-linux-nat.c: Likewise.
4834 * mips-linux-tdep.c: Likewise.
4835 * mips-tdep.c: Likewise.
4836 * mips64obsd-tdep.c: Likewise.
4837 * mipsnbsd-tdep.c: Likewise.
4838 * mn10300-linux-tdep.c: Likewise.
4839 * mn10300-tdep.c: Likewise.
4840 * moxie-tdep.c: Likewise.
4841 * mt-tdep.c: Likewise.
4842 * nat/linux-btrace.c: Likewise.
4843 * nat/linux-osdata.c: Likewise.
4844 * nat/linux-ptrace.c: Likewise.
4845 * nat/mips-linux-watch.c: Likewise.
4846 * nios2-linux-tdep.c: Likewise.
4847 * nios2-tdep.c: Likewise.
4848 * objc-lang.c: Likewise.
4849 * objfiles.c: Likewise.
4850 * obsd-nat.c: Likewise.
4851 * opencl-lang.c: Likewise.
4852 * osabi.c: Likewise.
4853 * parse.c: Likewise.
4854 * ppc-linux-nat.c: Likewise.
4855 * ppc-sysv-tdep.c: Likewise.
4856 * ppcfbsd-nat.c: Likewise.
4857 * ppcfbsd-tdep.c: Likewise.
4858 * ppcnbsd-nat.c: Likewise.
4859 * ppcnbsd-tdep.c: Likewise.
4860 * ppcobsd-nat.c: Likewise.
4861 * ppcobsd-tdep.c: Likewise.
4862 * printcmd.c: Likewise.
4863 * procfs.c: Likewise.
4864 * prologue-value.c: Likewise.
4865 * psymtab.c: Likewise.
4866 * python/py-lazy-string.c: Likewise.
4867 * python/py-value.c: Likewise.
4868 * regcache.c: Likewise.
4869 * reggroups.c: Likewise.
4870 * registry.c: Likewise.
4871 * remote-sim.c: Likewise.
4872 * remote.c: Likewise.
4873 * rs6000-aix-tdep.c: Likewise.
4874 * rs6000-tdep.c: Likewise.
4875 * s390-linux-tdep.c: Likewise.
4876 * score-tdep.c: Likewise.
4877 * ser-base.c: Likewise.
4878 * ser-mingw.c: Likewise.
4879 * sh-tdep.c: Likewise.
4880 * sh64-tdep.c: Likewise.
4881 * solib-darwin.c: Likewise.
4882 * solib-spu.c: Likewise.
4883 * solib-svr4.c: Likewise.
4884 * source.c: Likewise.
4885 * sparc-nat.c: Likewise.
4886 * sparc-sol2-tdep.c: Likewise.
4887 * sparc-tdep.c: Likewise.
4888 * sparc64-sol2-tdep.c: Likewise.
4889 * sparc64-tdep.c: Likewise.
4890 * sparc64fbsd-tdep.c: Likewise.
4891 * sparc64nbsd-tdep.c: Likewise.
4892 * sparc64obsd-tdep.c: Likewise.
4893 * sparcnbsd-tdep.c: Likewise.
4894 * sparcobsd-tdep.c: Likewise.
4895 * spu-multiarch.c: Likewise.
4896 * spu-tdep.c: Likewise.
4897 * stabsread.c: Likewise.
4898 * stack.c: Likewise.
4899 * symfile.c: Likewise.
4900 * symtab.c: Likewise.
4901 * target-descriptions.c: Likewise.
4902 * target-memory.c: Likewise.
4903 * target.c: Likewise.
4904 * tic6x-linux-tdep.c: Likewise.
4905 * tic6x-tdep.c: Likewise.
4906 * tilegx-linux-nat.c: Likewise.
4907 * tilegx-tdep.c: Likewise.
4909 * tramp-frame.c: Likewise.
4910 * tui/tui-out.c: Likewise.
4911 * tui/tui-winsource.c: Likewise.
4912 * ui-out.c: Likewise.
4913 * user-regs.c: Likewise.
4914 * utils.c: Likewise.
4915 * v850-tdep.c: Likewise.
4916 * valops.c: Likewise.
4917 * value.c: Likewise.
4918 * varobj.c: Likewise.
4919 * vax-nat.c: Likewise.
4920 * xml-syscall.c: Likewise.
4921 * xml-tdesc.c: Likewise.
4922 * xstormy16-tdep.c: Likewise.
4923 * xtensa-linux-nat.c: Likewise.
4924 * xtensa-tdep.c: Likewise.
4926 2014-08-07 Gary Benson <gbenson@redhat.com>
4928 * common/common-defs.h: Include common-utils.h.
4929 * defs.h: Do not include common-utils.h.
4930 * common/gdb_assert.h: Likewise.
4931 * darwin-nat.h: Likewise.
4932 * nat/linux-btrace.c: Likewise.
4933 * target/waitstatus.h: Likewise.
4935 2014-08-07 Gary Benson <gbenson@redhat.com>
4937 * common/common-defs.h: Include ptid.h.
4938 * defs.h: Do not include ptid.h.
4939 * inferior.h: Likewise.
4940 * infrun.h: Likewise.
4941 * nat/linux-btrace.h: Likewise.
4942 * nat/linux-osdata.h: Likewise.
4943 * target/waitstatus.h: Likewise.
4945 2014-08-07 Gary Benson <gbenson@redhat.com>
4947 * common/common-defs.h: Include gdb_locale.h.
4948 * defs.h: Do not include gdb_locale.h.
4950 2014-08-07 Gary Benson <gbenson@redhat.com>
4952 * common/common-defs.h: Include gdb/signals.h.
4953 * defs.h: Do not include gdb/signals.h.
4955 2014-08-07 Gary Benson <gbenson@redhat.com>
4957 * common/common-defs.h: Include pathmax.h.
4958 * defs.h: Do not include pathmax.h.
4960 2014-08-07 Gary Benson <gbenson@redhat.com>
4962 * common/common-defs.h: Include libiberty.h.
4963 * defs.h: Do not include libiberty.h.
4964 * common/queue.h: Likewise.
4965 * cp-name-parser.y: Likewise.
4966 * mi/mi-cmd-catch.c: Likewise.
4967 * python/python.c: Likewise.
4969 2014-08-07 Gary Benson <gbenson@redhat.com>
4971 * common/common-defs.h: Include ansidecl.h.
4972 * defs.h: Do not include ansidecl.h.
4973 * common/buffer.h: Likewise.
4974 * common/common-utils.h: Likewise.
4976 2014-08-07 Gary Benson <gbenson@redhat.com>
4978 * common/common-defs.h: Include stddef.h.
4979 * defs.h: Do not include stddef.h.
4980 * common/common-utils.h: Likewise.
4981 * amd64fbsd-nat.c: Likewise.
4982 * bcache.c: Likewise.
4983 * charset.c: Likewise.
4984 * common/buffer.h: Likewise.
4985 * common/vec.h: Likewise.
4986 * i386bsd-nat.c: Likewise.
4987 * nat/linux-btrace.h: Likewise.
4988 * ppcfbsd-nat.c: Likewise.
4989 * ppcnbsd-tdep.h: Likewise.
4990 * ppcobsd-nat.c: Likewise.
4991 * ppcobsd-tdep.h: Likewise.
4992 * python/py-gdb-readline.c: Likewise.
4994 2014-08-07 Gary Benson <gbenson@redhat.com>
4996 * common/common-defs.h: Include stdarg.h.
4997 * defs.h: Do not include stdarg.h.
4998 * ada-lang.c: Likewise.
4999 * common/common-utils.h: Likewise.
5000 * guile/scm-string.c: Likewise.
5001 * guile/scm-utils.c: Likewise.
5002 * m32c-tdep.c: Likewise.
5004 2014-08-07 Gary Benson <gbenson@redhat.com>
5006 * common/common-defs.h: Include stdlib.h.
5007 * defs.h: Do not include stdlib.h.
5008 * addrmap.c: Likewise.
5009 * bcache.c: Likewise.
5010 * common/buffer.c: Likewise.
5011 * common/common-utils.c: Likewise.
5012 * cp-name-parser.y: Likewise.
5013 * go32-nat.c: Likewise.
5014 * mn10300-linux-tdep.c: Likewise.
5015 * nat/linux-osdata.c: Likewise.
5016 * tui/tui.c: Likewise.
5017 * windows-nat.c: Likewise.
5019 2014-08-07 Gary Benson <gbenson@redhat.com>
5021 * common/common-defs.h: Include stdio.h.
5022 * defs.h: Do not include stdio.h.
5023 * ada-lang.c: Likewise.
5024 * common/buffer.c: Likewise.
5025 * common/common-utils.c: Likewise.
5026 * cp-name-parser.y: Likewise.
5027 * gnu-nat.c: Likewise.
5028 * go32-nat.c: Likewise.
5029 * i386gnu-nat.c: Likewise.
5030 * proc-api.c: Likewise.
5031 * proc-events.c: Likewise.
5032 * proc-flags.c: Likewise.
5033 * proc-why.c: Likewise.
5034 * python/python-internal.h: Likewise.
5035 * target-memory.c: Likewise.
5036 * tui/tui-io.c: Likewise.
5037 * tui/tui.c: Likewise.
5039 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5041 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5042 (scan_dyntag_auxv): Same.
5044 2014-08-06 Yao Qi <yao@codesourcery.com>
5046 * amd64-linux-nat.c: Remove duplicated include
5048 * i386-linux-nat.c: Likewise.
5050 2014-08-06 Yao Qi <yao@codesourcery.com>
5052 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5053 operand" with "Special opcode" in comments.
5055 2014-08-05 Gary Benson <gbenson@redhat.com>
5057 * interps.c (initialize_interps): Remove prototype.
5058 (interpreter_initialized): Remove static global.
5059 (interp_add): Do not call initialize_interps.
5060 (initialize_interps): Remove function.
5062 2014-08-05 Gary Benson <gbenson@redhat.com>
5064 * utils.c (vwarning): Remove spurious va_end.
5066 2014-08-05 Alan Modra <amodra@gmail.com>
5068 * charset.c (convert_between_encodings): Cast result of obstack_base.
5069 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5070 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5071 (read_unwind_info): Use size_t for some locals.
5072 * jit.c (finalize_symtab): Likewise.
5073 * utils.c (hashtab_obstack_allocate): Likewise.
5074 * symmisc.c (print_objfile_statistics): Update format strings.
5076 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5078 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5079 (Changes in GDB 7.8): ... here.
5081 2014-08-04 Tom Tromey <tromey@redhat.com>
5083 * target.c (set_targetdebug): New function.
5084 (initialize_targets): Pass set_targetdebug when creating "set
5087 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5089 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5090 if detecting a variable-sized field that is not the last field.
5091 Fix struct type length computation.
5093 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5095 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5098 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5100 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5101 Remove "+ 8" offset in computation of CHAIN_VMA.
5103 2014-07-31 Doug Evans <dje@google.com>
5105 * inflow.c (child_terminal_inferior): Add comment.
5106 (child_terminal_ours_for_output): Add comment.
5107 (child_terminal_ours): Add comment.
5108 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5109 (linux_nat_terminal_ours): Add comment.
5111 2014-07-31 Gary Benson <gbenson@redhat.com>
5113 * common/btrace-common.h: Do not include defs.h or server.h.
5114 * nat/mips-linux-watch.h: Likewise.
5115 * gdb-dlfcn.h: Do not include defs.h.
5116 * tracefile.h: Likewise.
5118 2014-07-30 Roland McGrath <mcgrathr@google.com>
5120 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5122 2014-07-30 Tom Tromey <tromey@redhat.com>
5124 * bsd-kvm.c (bsd_kvm_open): Constify.
5125 * corelow.c (core_open): Constify.
5126 * ctf.c (ctf_open): Constify.
5127 * dbug-rom.c (dbug_open): Constify.
5128 * exec.c (exec_open): Constify.
5129 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5130 * microblaze-rom.c (picobug_open): Constify.
5131 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5133 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5134 * record-btrace.c (record_btrace_open): Constify.
5135 * record-full.c (record_full_core_open_1, record_full_open_1)
5136 (record_full_open): Constify.
5137 * remote-m32r-sdi.c (m32r_open): Constify.
5138 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5139 (rockhopper_open, lsi_open): Constify.
5140 * remote-sim.c (gdbsim_open): Constify.
5141 * remote.c (remote_open, extended_remote_open, remote_open_1):
5143 * target.h (struct target_ops) <to_open>: Make "arg" const.
5144 * tracefile-tfile.c (tfile_open): Constify.
5146 2014-07-30 Tom Tromey <tromey@redhat.com>
5148 * breakpoint.c (map_breakpoint_numbers): Update.
5149 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5150 (get_number_const): New function.
5151 (get_number): Rewrite using get_number_const.
5152 (init_number_or_range): Make "string" const.
5153 (number_is_in_list): Make "list" const.
5154 * cli/cli-utils.h (get_number_const): Declare.
5155 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5156 (init_number_or_range, number_is_in_list): Update.
5157 * printcmd.c (map_display_numbers): Update.
5158 * value.c (value_from_history_ref): Constify.
5159 * value.h (value_from_history_ref): Update.
5161 2014-07-30 Tom Tromey <tromey@redhat.com>
5163 * corefile.c (hook_type, call_extra_exec_file_hooks)
5164 (specify_exec_file_hook): Constify.
5165 * exec.c (exec_file_attach): Make "filename" const.
5166 * gdbcore.h (deprecated_exec_file_display_hook)
5167 (specify_exec_file_hook, exec_file_attach): Constify.
5168 * main.c (captured_main): Use catch_command_errors_const.
5170 2014-07-30 Tom Tromey <tromey@redhat.com>
5172 * target.c (open_target): New function.
5173 (add_target_with_completer, add_deprecated_target_alias): Use
5174 set_cmd_sfunc, set_cmd_context.
5175 (debug_to_open): Remove.
5176 (setup_target_debug): Update.
5178 2014-07-30 Yao Qi <yao@codesourcery.com>
5180 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5182 * parse.c (exp_iterate): Update comments.
5184 2014-07-30 Gary Benson <gbenson@redhat.com>
5186 * common/common-defs.h: New file.
5187 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5188 * defs.h: Include common-defs.h.
5189 Do not include config.h or build-gnulib/config.h.
5191 2014-07-30 Gary Benson <gbenson@redhat.com>
5193 * common/common-utils.h: Do not include config.h.
5194 * nat/linux-btrace.h: Likewise.
5196 2014-07-30 Gary Benson <gbenson@redhat.com>
5198 * btrace.c: Include defs.h.
5199 * common/ptid.c: Include defs.h or server.h as appropriate.
5200 * nat/mips-linux-watch.c: Likewise.
5202 2014-07-29 Tom Tromey <tromey@redhat.com>
5204 * target.c (target_is_pushed): Simplify.
5206 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5210 2014-07-29 Yao Qi <yao@codesourcery.com>
5213 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5215 2014-07-28 Doug Evans <xdje42@gmail.com>
5218 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5219 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5222 2014-07-28 Will Newton <will.newton@linaro.org>
5224 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5225 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5226 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5227 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5228 (THUMB2_EABI_SYSCALL): Likewise.
5229 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5231 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5232 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5234 2014-07-27 Doug Evans <xdje42@gmail.com>
5236 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5238 2014-07-27 Doug Evans <xdje42@gmail.com>
5240 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5242 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5243 Doug Evans <xdje42@gmail.com>
5246 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5247 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5248 * configure.ac: Try to use guild to compile an scm file, if it fails
5249 then disable guile support.
5250 * configure: Regenerate.
5251 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5253 (GUILE_COMPILED_FILES): New variable.
5254 (GUILE_FILES) Update.
5255 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5256 (stamp-guile): Compile scm files.
5257 * guile/guile.c (boot_guile_support): New function.
5258 (standard_throw_args_p): New function.
5259 (print_standard_throw_error, print_throw_error): New functions.
5260 (handle_boot_error): New function.
5261 (initialize_scheme_side): Rewrite to call boot_guile_support.
5262 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5263 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5265 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5266 Doug Evans <xdje42@gmail.com>
5269 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5270 * guile/lib/gdb/support.scm: New file.
5271 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5272 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5274 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5276 (%assert-type): Ditto, and renamed to assert-type.
5277 (%exception-print-style): Delete.
5279 2014-07-26 Doug Evans <xdje42@gmail.com>
5282 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5283 * configure: Regenerate.
5284 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5286 (PYTHON_FILES): New variable.
5287 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5288 (GUILE_FILES): New variable.
5289 (stamp-python, install-python, uninstall-python): Handle empty
5291 (stamp-guile, install-guile, uninstall-guile): Ditto.
5293 2014-07-26 Doug Evans <xdje42@gmail.com>
5296 * guile/lib/gdb.scm (pretty-printers): Export.
5297 (set-pretty-printers!): Export.
5298 * guile/lib/gdb/printing.scm (gdb module): Update.
5299 (prepend-pretty-printer!, append-pretty-printer!): Update.
5300 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5301 (pretty_printer_list_var): Delete.
5302 (pretty_printer_list): New static global.
5303 (gdbscm_pretty_printers): New function.
5304 (gdbscm_set_pretty_printers_x): New function.
5305 (ppscm_find_pretty_printer_from_gdb): Update.
5306 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5307 (gdbscm_initialize_pretty_printers): Update.
5309 2014-07-26 Doug Evans <xdje42@gmail.com>
5312 * configure.ac: Add check for header gc/gc.h.
5313 Add check for function setenv.
5314 * configure: Regenerate.
5315 * config.in: Regenerate.
5316 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5318 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5320 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5321 variation in gdbarch matching.
5323 2014-07-25 Tom Tromey <tromey@redhat.com>
5325 * exec.c (using_exec_ops): Remove.
5326 (exec_close_1): Update. Remove extraneous block, reindent.
5327 (add_target_sections): Use target_is_pushed.
5329 2014-07-25 Pedro Alves <palves@redhat.com>
5331 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5332 * monitor.c (monitor_create_inferior): Likewise.
5333 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5334 * remote-sim.c (gdbsim_create_inferior): Likewise.
5335 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5336 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5337 * windows-nat.c (do_initial_windows_stuff): Likewise.
5339 2014-07-25 Pedro Alves <palves@redhat.com>
5341 * NEWS: Mention signal passing and "signal" command changes.
5342 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5344 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5346 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5347 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5348 (jump_command): Adjust clear_proceed_status call.
5349 (signal_command): Warn if other thread that are resumed have
5350 signals that will be delivered. Adjust clear_proceed_status call.
5351 (until_next_command, finish_command)
5352 (proceed_after_attach_callback, attach_command_post_wait)
5353 (attach_command): Adjust clear_proceed_status call.
5354 * infrun.c (proceed_after_vfork_done): Likewise.
5355 (proceed_after_attach_callback): Adjust comment.
5356 (clear_proceed_status_thread): Clear stop_signal if not in pass
5358 (clear_proceed_status_callback): Delete.
5359 (clear_proceed_status): New 'step' parameter. Only clear the
5360 proceed status of threads the command being prepared is about to
5362 (proceed): If passed in an explicit signal, override stop_signal
5363 with it. Don't pass the last stop signal to the thread we're
5365 (init_wait_for_inferior): Adjust clear_proceed_status call.
5366 (switch_back_to_stepped_thread): Clear the signal if it should not
5368 * infrun.h (clear_proceed_status): New 'step' parameter.
5369 (user_visible_resume_ptid): Add comment.
5370 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5371 signal is in pass state.
5372 * remote.c (append_pending_thread_resumptions): Likewise.
5373 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5375 2014-07-25 Tom Tromey <tromey@redhat.com>
5377 * target.h (target_stopped_data_address)
5378 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5381 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5383 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5385 (avr_pointer_to_address): Likewise.
5387 2014-07-24 Tom Tromey <tromey@redhat.com>
5389 * monitor.c (compile_pattern): Update.
5390 * target.h (struct target_ops) <to_shortname, to_longname,
5393 2014-07-24 Tom Tromey <tromey@redhat.com>
5395 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5396 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5397 (add_info_alias, add_com): Make "doc" const.
5398 (print_doc_line): Make "str" const.
5399 (delete_cmd): Update.
5400 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5401 (print_doc_line): Update.
5402 * cli/cli-script.c (document_command): Update.
5403 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5404 (add_com, add_info, add_info_alias): Update.
5405 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5406 * python/py-cmd.c (cmdpy_destroyer): Update.
5408 2014-07-24 Tom Tromey <tromey@redhat.com>
5410 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5411 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5412 (help_cmd_list): Constify.
5413 (lookup_cmd): Update.
5414 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5416 (help_cmd_list, apropos_cmd): Update.
5417 * cli/cli-script.c (show_user): Update.
5418 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5419 * cli/cli-setshow.h (cmd_show_list): Update.
5420 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5421 (cmd_show_list): Update.
5422 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5423 * python/py-cmd.c (cmdpy_destroyer): Update.
5425 2014-07-24 Tom Tromey <tromey@redhat.com>
5427 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5428 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5430 * command.h (deprecate_cmd): Update.
5431 * maint.c (maintenance_do_deprecate): Add casts.
5433 2014-07-24 Tom Tromey <tromey@redhat.com>
5435 * cli/cli-decode.c (help_cmd): Make parameter "const".
5436 * cli/cli-decode.h (help_cmd): Update.
5438 2014-07-24 Tom Tromey <tromey@redhat.com>
5440 * stack.c (up_silently_base, down_silently_base): Make argument
5443 2014-07-24 Tom Tromey <tromey@redhat.com>
5445 * solib.c (solib_add): Make "pattern" const.
5446 * solib.h (solib_add): Update.
5448 2014-07-24 Tom Tromey <tromey@redhat.com>
5450 * remote.c (remote_serial_open, print_packet, putpkt)
5451 (putpkt_binary): Constify.
5452 * remote.h (putpkt): Update.
5454 2014-07-24 Tom Tromey <tromey@redhat.com>
5456 * monitor.c (monitor_open): Make "args" const.
5457 * monitor.h (monitor_open): Update.
5459 2014-07-24 Tom Tromey <tromey@redhat.com>
5461 * maint.c (match_bfd_flags): Make "string" const.
5462 (print_bfd_section_info): Remove casts.
5463 (print_objfile_section_info): Make "string" const.
5465 2014-07-24 Tom Tromey <tromey@redhat.com>
5467 * inf-child.c (inf_child_open_target): Make "arg" const.
5468 * inf-child.h (inf_child_open_target): Update.
5470 2014-07-24 Tom Tromey <tromey@redhat.com>
5472 * environ.c (unset_in_environ): Make "var" const.
5473 * environ.h (unset_in_environ): Update.
5475 2014-07-24 Tom Tromey <tromey@redhat.com>
5477 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5479 (scan_filename_with_cleanup): Likewise.
5480 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5481 Make arguments const.
5482 (restore_command): Update.
5484 2014-07-24 Pedro Alves <palves@redhat.com>
5486 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5488 2014-07-24 Tom Tromey <tromey@redhat.com>
5489 Gary Benson <gbenson@redhat.com>
5491 * nat/linux-ptrace.c (additional_flags): New global.
5492 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5493 additional_flags; don't check GDBSERVER.
5494 (linux_ptrace_set_additional_flags): New function.
5495 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5497 * linux-nat.c (_initialize_linux_nat): Call
5498 linux_ptrace_set_additional_flags.
5500 2014-07-24 Tom Tromey <tromey@redhat.com>
5502 * make-target-delegates (munge_type, write_debugmethod): New
5504 (debug_names): New global.
5505 ($TARGET_DEBUG_PRINTER): New global.
5506 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5508 Write debug methods. Generate init_debug_target.
5509 * target-debug.h: New file.
5510 * target-delegates.c: Rebuild.
5511 * target.c: Include target-debug.h.
5512 (debug_target): Hoist definition.
5513 (target_kill, target_get_section_table, target_memory_map)
5514 (target_flash_erase, target_flash_done, target_detach)
5515 (target_disconnect, target_wait, target_resume)
5516 (target_pass_signals, target_program_signals, target_follow_fork)
5517 (target_mourn_inferior, target_search_memory)
5518 (target_thread_address_space, target_close)
5519 (target_find_new_threads, target_core_of_thread)
5520 (target_verify_memory, target_insert_mask_watchpoint)
5521 (target_remove_mask_watchpoint): Remove targetdebug code.
5522 (debug_to_post_attach, debug_to_prepare_to_store)
5523 (debug_to_files_info, debug_to_insert_breakpoint)
5524 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5525 (debug_to_region_ok_for_hw_watchpoint)
5526 (debug_to_can_accel_watchpoint_condition)
5527 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5528 (debug_to_watchpoint_addr_within_range)
5529 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5530 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5531 (debug_to_terminal_init, debug_to_terminal_inferior)
5532 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5533 (debug_to_terminal_save_ours, debug_to_terminal_info)
5534 (debug_to_load, debug_to_post_startup_inferior)
5535 (debug_to_insert_fork_catchpoint)
5536 (debug_to_remove_fork_catchpoint)
5537 (debug_to_insert_vfork_catchpoint)
5538 (debug_to_remove_vfork_catchpoint)
5539 (debug_to_insert_exec_catchpoint)
5540 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5541 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5542 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5543 (setup_target_debug): Call init_debug_target.
5544 * target.h (TARGET_DEBUG_PRINTER): New macro.
5545 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5546 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5548 2014-07-24 Gary Benson <gbenson@redhat.com>
5550 * exceptions.h (throw_vfatal): Renamed to...
5551 (throw_vquit): New declaration.
5552 (throw_quit): Likewise.
5553 * exceptions.c (throw_vfatal): Renamed to...
5554 (throw_vquit): New function.
5555 (throw_quit): Likewise.
5556 (throw_error): Call throw_verror rather than throw_it.
5557 * utils.h (vfatal): Removed.
5559 * utils.c (vfatal): Removed.
5561 (internal_verror): Replaced call to fatal with call to throw_quit.
5562 (quit): Replaced calls to fatal with calls to throw_quit.
5564 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5566 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5569 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5571 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5572 less than zero in conditional expression.
5574 2014-07-23 Tom Tromey <tromey@redhat.com>
5576 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5577 ($INTRO_PART): Don't match whitespace.
5578 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5580 ($METHOD): Add $METHOD_TRAILER.
5582 (scan_target_h): New sub.
5583 Change main loop not to collect state.
5584 * target-delegates.c: Rebuild.
5586 2014-07-23 Gary Benson <gbenson@redhat.com>
5588 * cp-support.c (gdb_demangle): Fix build on systems without
5591 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5593 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5594 for reference entry value target data value.
5596 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5598 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5599 value_available_contents_eq.
5601 2014-07-22 Pedro Alves <palves@redhat.com>
5603 * value.c (allocate_optimized_out_value): Don't mark value as
5606 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5608 * MAINTAINERS (Write After Approval): Update my email address.
5610 2014-07-20 Doug Evans <dje@google.com>
5613 * remote.c (putpkt_binary): Add text to error message.
5615 2014-07-20 Yao Qi <yao@codesourcery.com>
5617 * eval.c: Remove "Chill" from comments.
5618 * gdbtypes.h: Likewise.
5619 * symtab.h: Likewise.
5621 2014-07-20 Yao Qi <yao@codesourcery.com>
5623 * std-operator.def: Update comments to TERNOP_SLICE.
5625 2014-07-20 Yao Qi <yao@codesourcery.com>
5627 * std-operator.def: Remove BINOP_RANGE.
5628 * breakpoint.c (watchpoint_exp_is_const): Update.
5629 * expprint.c (dump_subexp_body_standard): Likewise.
5630 * eval.c (init_array_element): Remove dead code.
5631 (evaluate_subexp_standard): Likewise.
5633 2014-07-20 Yao Qi <yao@codesourcery.com>
5635 * std-operator.def: Remove BINOP_IN.
5636 * breakpoint.c (watchpoint_exp_is_const): Update.
5637 * eval.c (evaluate_subexp_standard): Likewise.
5638 * expprint.c (dump_subexp_body_standard): Likewise.
5640 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5642 * microblaze-tdep.c (microblaze_register_names): Add
5643 the rshr and rslr register names.
5644 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5645 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5646 Use of tdesc_numbered_register. Use of
5647 microblaze_register_g_packet_guesses. Use of
5648 tdesc_use_registers. Use of set_gdbarch_register_type.
5649 (microblaze_register_g_packet_guesses): New.
5650 * microblaze-tdep.h (microblaze_reg_num): Add
5651 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5652 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5653 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5654 * features/microblaze-core.xml: New file.
5655 * features/microblaze-stack-protect.xml: New file.
5656 * features/microblaze-with-stack-protect.c: New file.
5657 * features/microblaze-with-stack-protect.xml: New file.
5658 * features/microblaze.xml: New file.
5659 * features/microblaze.c: New file.
5660 * features/Makefile (microblaze-with-stack-protect): Add
5661 microblaze-with-stack-protect microblaze and microblaze-expedite.
5662 * regformats/microblaze-with-stack-protect.dat: New file.
5663 * regformats/microblaze.dat: New file.
5664 * doc/gdb.texinfo (MicroBlaze Features): Added.
5666 2014-07-18 Tom Tromey <tromey@redhat.com>
5668 * exec.c (exec_ops): Now static.
5669 * exec.h (exec_ops): Don't declare.
5671 2014-07-18 Tom Tromey <tromey@redhat.com>
5673 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5674 to find_target_beneath.
5675 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5676 find_target_beneath.
5677 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5679 2014-07-18 Tom Tromey <tromey@redhat.com>
5682 * utils.c (quit): Use target_supports_terminal_ours.
5683 * target.h (target_supports_terminal_ours): Declare.
5684 * target.c (target_supports_delete_record): Don't check
5685 to_delete_record against NULL.
5686 (target_supports_terminal_ours): New function.
5688 2014-07-18 Tom Tromey <tromey@redhat.com>
5691 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5692 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5693 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5694 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5695 * windows-nat.c (windows_xfer_partial): Always delegate.
5696 * record-btrace.c (record_btrace_xfer_partial): Simplify
5698 (record_btrace_fetch_registers, record_btrace_store_registers)
5699 (record_btrace_prepare_to_store, record_btrace_resume)
5700 (record_btrace_wait, record_btrace_find_new_threads)
5701 (record_btrace_thread_alive): Likewise.
5702 * procfs.c (procfs_xfer_partial): Always delegate.
5703 * corelow.c (core_xfer_partial): Always delegate.
5704 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5706 2014-07-18 Tom Tromey <tromey@redhat.com>
5708 * exec.c (exec_make_note_section): Move earlier.
5710 2014-07-17 Doug Evans <dje@google.com>
5713 * maint.c (count_symtabs_and_blocks): Handle NULL
5714 current_program_space.
5715 (report_command_stats): Check global enabled flag in addition to
5716 recorded enabled flag.
5717 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5719 2014-07-16 Pedro Alves <palves@redhat.com>
5721 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5723 2014-07-16 Tom Tromey <tromey@redhat.com>
5725 * target.h (struct target_ops) <to_delete_record>: Reformat
5728 2014-07-16 Tom Tromey <tromey@redhat.com>
5730 * target-delegates.c: Rebuild.
5732 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5734 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5735 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5736 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5737 (avr_pointer_to_address): Likewise.
5738 (avr_address_class_type_flags): New function.
5739 (avr_address_class_type_flags_to_name): Likewise.
5740 (avr_address_class_name_to_type_flags): Likewise.
5741 (avr_gdbarch_init): Set address_class_type_flags,
5742 address_class_type_flags_to_name and
5743 address_class_name_to_type_flags.
5745 2014-07-15 Pedro Alves <palves@redhat.com>
5747 * linux-nat.c (kill_callback): Save errno and work with saved
5750 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5752 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5754 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5756 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5757 breakpoint support correctly.
5759 2014-07-14 Pedro Alves <palves@redhat.com>
5761 * utils.c (prompt_for_continue): Call target_terminal_ours.
5763 2014-07-14 Pedro Alves <palves@redhat.com>
5765 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5766 catch_errors. Don't re-enable stdin or notify observers where,
5768 (fetch_inferior_event_wrapper): Delete.
5770 2014-07-14 Pedro Alves <palves@redhat.com>
5773 * top.c: Include "inf-loop.h".
5774 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5776 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5778 (gdb_readline_wrapper): Store whether the target is async, and
5781 2014-07-14 Pedro Alves <palves@redhat.com>
5784 * top.c (gdb_readline_wrapper_line): Tweak comment.
5785 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5786 the input handler callback.
5788 2014-07-14 Pedro Alves <palves@redhat.com>
5791 * main.c: Include event-top.h.
5792 (handle_command_errors): New function.
5793 (catch_command_errors, catch_command_errors_const): Use it.
5795 2014-07-14 Pedro Alves <palves@redhat.com>
5797 * exceptions.c (catch_command_errors, catch_command_errors_const):
5799 * exceptions.h (catch_command_errors_ftype)
5800 (catch_command_errors_const_ftype): Moved to main.c.
5801 (catch_command_errors, catch_command_errors_const): Delete
5803 * main.c (catch_command_errors_ftype)
5804 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5805 (catch_command_errors, catch_command_errors_const)): Moved here
5806 from exceptions.c and make static.
5808 2014-07-14 Pedro Alves <palves@redhat.com>
5810 * exceptions.c (print_any_exception): Delete.
5811 (catch_exceptions_with_msg): Use exception_print instead of
5812 print_any_exception.
5813 (catch_errors): Use exception_fprintf instead of
5814 print_any_exception.
5815 (catch_command_errors, catch_command_errors_const): Use
5816 exception_print instead of print_any_exception.
5818 2014-07-14 Pedro Alves <palves@redhat.com>
5820 * infcall.c (run_inferior_call): Set 'sync_execution' while
5821 running the inferior call.
5823 2014-07-14 Pedro Alves <palves@redhat.com>
5825 * value.c (value_contents_equal): Delete function.
5826 * value.h (value_contents_equal): Delete declaration.
5828 2014-07-14 Tom Tromey <tromey@redhat.com>
5831 * gdbtypes.c (is_dynamic_type_internal): New function, from
5833 (is_dynamic_type): Rewrite.
5834 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5835 (resolve_dynamic_struct): Likewise.
5836 (resolve_dynamic_type_internal): New function, from
5837 resolve_dynamic_type.
5838 (resolve_dynamic_type): Rewrite.
5840 2014-07-14 Tom Tromey <tromey@redhat.com>
5842 * target.c (target_require_runnable): Also check record_stratum.
5845 2014-07-11 Yao Qi <yao@codesourcery.com>
5847 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5848 thumb_instruction_restores_sp return true.
5850 2014-07-11 Yao Qi <yao@codesourcery.com>
5852 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5853 (thumb_in_function_epilogue_p): Call
5854 thumb_instruction_restores_sp.
5856 2014-07-11 Yao Qi <yao@codesourcery.com>
5858 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5860 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5862 2014-07-11 Gary Benson <gbenson@redhat.com>
5864 * amd64-linux-nat.c (gdbcore.h): Remove include.
5865 (regset.h): Likewise.
5866 (nat/linux-btrace.h): Likewise.
5867 (btrace.h): Likewise.
5868 (gdb_assert.h): Likewise.
5869 (string.h): Likewise.
5870 (sys/uio.h): Likewise.
5871 (sys/debugreg.h): Likewise.
5872 (sys/syscall.h): Likewise.
5873 (sys/procfs.h): Likewise.
5874 (sys/user.h): Likewise.
5875 (asm/ptrace.h): Likewise.
5876 (i386-nat.h): Likewise.
5877 * i386-linux-nat.c (i386-nat.h): Likewise.
5878 (regset.h): Likewise.
5879 (target.h): Likewise.
5880 (linux-nat.h): Likewise.
5881 (nat/linux-btrace.h): Likewise.
5882 (btrace.h): Likewise.
5883 (gdb_assert.h): Likewise.
5884 (string.h): Likewise.
5885 (sys/uio.h): Likewise.
5886 (sys/user.h): Likewise.
5887 (sys/procfs.h): Likewise.
5888 (sys/reg.h): Likewise.
5889 (sys/debugreg.h): Likewise.
5890 (ORIG_EAX): Remove definition.
5892 2014-07-11 Gary Benson <gbenson@redhat.com>
5894 * i386-linux-nat.h: New file.
5895 * x86-linux-nat.h: Likewise.
5896 * x86-linux-nat.c: Likewise.
5897 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5898 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5899 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5900 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5901 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5902 (PTRACE_SETREGSET): Likewise.
5903 (arch_lwp_info): Now in x86-linux-nat.c.
5904 (have_ptrace_getregset): Now in x86-linux-nat.h.
5905 (x86_linux_dr_get): Now in x86-linux-nat.c.
5906 (x86_linux_dr_set): Likewise.
5907 (x86_linux_dr_get_addr): Likewise.
5908 (x86_linux_dr_get_control): Likewise.
5909 (x86_linux_dr_get_status): Likewise.
5910 (update_debug_registers_callback): Likewise.
5911 (x86_linux_dr_set_control): Likewise.
5912 (x86_linux_dr_set_addr): Likewise.
5913 (x86_linux_prepare_to_resume): Likewise.
5914 (x86_linux_new_thread): Likewise.
5915 (x86_linux_new_fork): Likewise.
5916 (x86_linux_get_thread_area): Likewise.
5917 (super_post_startup_inferior): Likewise.
5918 (x86_linux_child_post_startup_inferior): Likewise.
5919 (AMD64_LINUX_USER64_CS): Likewise.
5920 (AMD64_LINUX_X32_DS): Likewise.
5921 (x86_linux_read_description): Likewise.
5922 (x86_linux_enable_btrace): Likewise.
5923 (x86_linux_disable_btrace): Likewise.
5924 (x86_linux_teardown_btrace): Likewise.
5925 (x86_linux_read_btrace): Likewise.
5926 (x86_linux_create_target): Likewise.
5927 (x86_linux_add_target): Likewise.
5928 * i386-linux-nat.c (x86-linux-nat.h): New include.
5929 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5930 (PTRACE_SETREGSET): Likewise.
5931 (arch_lwp_info): Now in x86-linux-nat.c.
5932 (have_ptrace_getregset): Now in x86-linux-nat.h.
5933 (x86_linux_dr_get): Now in x86-linux-nat.c.
5934 (x86_linux_dr_set): Likewise.
5935 (x86_linux_dr_get_addr): Likewise.
5936 (x86_linux_dr_get_control): Likewise.
5937 (x86_linux_dr_get_status): Likewise.
5938 (update_debug_registers_callback): Likewise.
5939 (x86_linux_dr_set_control): Likewise.
5940 (x86_linux_dr_set_addr): Likewise.
5941 (x86_linux_prepare_to_resume): Likewise.
5942 (x86_linux_new_thread): Likewise.
5943 (x86_linux_new_fork): Likewise.
5944 (x86_linux_get_thread_area): Likewise.
5945 (super_post_startup_inferior): Likewise.
5946 (x86_linux_child_post_startup_inferior): Likewise.
5947 (AMD64_LINUX_USER64_CS): Likewise.
5948 (AMD64_LINUX_X32_DS): Likewise.
5949 (x86_linux_read_description): Likewise.
5950 (x86_linux_enable_btrace): Likewise.
5951 (x86_linux_disable_btrace): Likewise.
5952 (x86_linux_teardown_btrace): Likewise.
5953 (x86_linux_read_btrace): Likewise.
5954 (x86_linux_create_target): Likewise.
5955 (x86_linux_add_target): Likewise.
5957 2014-07-11 Gary Benson <gbenson@redhat.com>
5959 * amd64-linux-nat.c: Comment and whitespace changes.
5960 * i386-linux-nat.c: Comment and whitespace changes.
5962 2014-07-11 Gary Benson <gbenson@redhat.com>
5964 * amd64-linux-nat.c (x86_linux_create_target): New function.
5965 (x86_linux_add_target): Likewise.
5966 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5967 * i386-linux-nat.c (x86_linux_create_target): New function.
5968 (x86_linux_add_target): Likewise.
5969 (_initialize_i386_linux_nat): Delegate to the above new functions.
5971 2014-07-11 Gary Benson <gbenson@redhat.com>
5973 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5974 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5975 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5976 (ps_get_thread_area): Delegate to the above.
5978 2014-07-11 Gary Benson <gbenson@redhat.com>
5980 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5981 x86_linux_read_description. All uses updated. amd64-specific
5982 code conditionalized. Conditionalized i386-specific code added.
5983 Redundant cast removed.
5984 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5985 x86_linux_read_description. All uses updated. i386-specific
5986 code conditionalized. Conditionalized amd64-specific code added.
5987 One sizeof replaced with the actual type it is describing.
5989 2014-07-11 Gary Benson <gbenson@redhat.com>
5991 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5992 x86_linux_dr_get. All uses updated.
5993 (amd64_linux_dr_set): Renamed to
5994 x86_linux_dr_set. All uses updated.
5995 (amd64_linux_dr_get_addr): Renamed to
5996 x86_linux_dr_get_addr. All uses updated.
5997 (amd64_linux_dr_get_control): Renamed to
5998 x86_linux_dr_get_control. All uses updated.
5999 (amd64_linux_dr_get_status): Renamed to
6000 x86_linux_dr_get_status. All uses updated.
6001 (amd64_linux_dr_set_control): Renamed to
6002 x86_linux_dr_set_control. All uses updated.
6003 (amd64_linux_dr_set_addr): Renamed to
6004 x86_linux_dr_set_addr. All uses updated.
6005 (amd64_linux_prepare_to_resume): Renamed to
6006 x86_linux_prepare_to_resume. All uses updated.
6007 (amd64_linux_new_thread): Renamed to
6008 x86_linux_new_thread. All uses updated.
6009 (amd64_linux_new_fork): Renamed to
6010 x86_linux_new_fork. All uses updated.
6011 (amd64_linux_child_post_startup_inferior): Renamed to
6012 x86_linux_child_post_startup_inferior. All uses updated.
6013 (amd64_linux_enable_btrace): Renamed to
6014 x86_linux_enable_btrace. All uses updated.
6015 (amd64_linux_disable_btrace): Renamed to
6016 x86_linux_disable_btrace. All uses updated.
6017 (amd64_linux_teardown_btrace): Renamed to
6018 x86_linux_teardown_btrace. All uses updated.
6019 (amd64_linux_read_btrace): Renamed to
6020 x86_linux_read_btrace. All uses updated.
6021 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6022 x86_linux_dr_get. All uses updated.
6023 (i386_linux_dr_set): Renamed to
6024 x86_linux_dr_set. All uses updated.
6025 (i386_linux_dr_get_addr): Renamed to
6026 x86_linux_dr_get_addr. All uses updated.
6027 (i386_linux_dr_get_control): Renamed to
6028 x86_linux_dr_get_control. All uses updated.
6029 (i386_linux_dr_get_status): Renamed to
6030 x86_linux_dr_get_status. All uses updated.
6031 (i386_linux_dr_set_control): Renamed to
6032 x86_linux_dr_set_control. All uses updated.
6033 (i386_linux_dr_set_addr): Renamed to
6034 x86_linux_dr_set_addr. All uses updated.
6035 (i386_linux_prepare_to_resume): Renamed to
6036 x86_linux_prepare_to_resume. All uses updated.
6037 (i386_linux_new_thread): Renamed to
6038 x86_linux_new_thread. All uses updated.
6039 (i386_linux_new_fork): Renamed to
6040 x86_linux_new_fork. All uses updated.
6041 (i386_linux_child_post_startup_inferior): Renamed to
6042 x86_linux_child_post_startup_inferior. All uses updated.
6043 (i386_linux_enable_btrace): Renamed to
6044 x86_linux_enable_btrace. All uses updated.
6045 (i386_linux_disable_btrace): Renamed to
6046 x86_linux_disable_btrace. All uses updated.
6047 (i386_linux_teardown_btrace): Renamed to
6048 x86_linux_teardown_btrace. All uses updated.
6049 (i386_linux_read_btrace): Renamed to
6050 x86_linux_read_btrace. All uses updated.
6052 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6054 * remote.c (extended_remote_post_attach): New function.
6055 (init_extended_remote_ops): Install it as to_post_attach method.
6057 2014-07-09 Pedro Alves <palves@redhat.com>
6059 * infcmd.c (attach_command_post_wait): Don't call
6060 target_terminal_inferior here.
6061 (attach_command): Call it here instead.
6063 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6065 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6067 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6068 from varobj.c, with additional checks.
6069 (c_varobj_ops): Fill in is_path_expr_parent field.
6070 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6071 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6073 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6075 (varobj_default_is_path_expr_parent): New function.
6076 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6077 (varobj_default_is_path_expr_parent): Declare new function.
6079 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6081 * infcmd.c (finish_backward): Turn internal error into normal error.
6083 2014-07-07 Pedro Alves <palves@redhat.com>
6086 * remote.c (async_handle_remote_sigint)
6087 (async_handle_remote_sigint_twice): Call
6088 gdb_call_async_signal_handler instead of
6089 mark_async_signal_handler.
6091 2014-07-07 Tom Tromey <tromey@redhat.com>
6093 * target-delegates.c: Rebuild.
6094 * target.c (target_info_record): Remove.
6095 * record.c (info_record_command): Unconditionally call
6097 * target.h (struct target_ops) <to_info_record>: Use
6098 TARGET_DEFAULT_IGNORE.
6099 (target_info_record): Remove.
6101 2014-07-07 Tom Tromey <tromey@redhat.com>
6103 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6104 TARGET_DEFAULT_NORETURN.
6105 * target.c (generic_tls_error): New function.
6106 (target_translate_tls_address): Don't search target stack.
6107 * target-delegates.c: Rebuild.
6108 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6110 * linux-thread-db.c (thread_db_get_thread_local_address):
6111 Unconditionally call beneath target.
6113 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6115 * cli/cli-logging.c (pop_output_files): Assign targerr to
6118 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6120 * MAINTAINERS (Write After Approval): Update my email address.
6122 2014-07-02 Gary Benson <gbenson@redhat.com>
6124 * proc-service.c (ps_xfer_memory): Update comment.
6125 (ps_pstop): Remove unused function.
6126 (ps_pcontinue): Likewise.
6127 (ps_lstop): Likewise.
6128 (ps_lcontinue): Likewise.
6129 (ps_lgetxregsize): Likewise.
6130 (ps_lgetxregs): Likewise.
6131 (ps_lsetxregs): Likewise.
6132 (ps_plog): Likewise.
6133 (ps_ptread): Likewise.
6134 (ps_ptwrite): Likewise.
6136 2014-07-01 Mark Wielaard <mjw@redhat.com>
6138 * dwarf2read.c (add_array_cv_type): New function.
6139 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6140 (read_tag_volatile_type): Likewise.
6142 2014-07-01 Tom Tromey <tromey@redhat.com>
6144 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6145 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6146 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6147 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6148 * command.h (cmd_cfunc_ftype): Move earlier.
6149 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6150 (add_com, add_info): Use cmd_cfunc_ftype.
6152 2014-06-30 Tom Tromey <tromey@redhat.com>
6154 * symtab.c (operator_chars): Make parameters and return type
6156 (file_matches): Make "files" const.
6157 (struct search_symbols_data) <files>: Now const.
6158 (search_symbols): Make "regexp" and "files" parameters const.
6160 (symtab_symbol_info): Remove cast.
6161 (rbreak_command): Update.
6162 * symtab.h (search_symbols): Update.
6164 2014-06-27 Yao Qi <yao@codesourcery.com>
6166 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6167 Change parameter type to 'struct thread_info *'. Caller
6169 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6171 * dummy-frame.c (struct dummy_frame_id): New.
6172 (dummy_frame_id_eq): New function.
6173 (struct dummy_frame) <id>: Change its type to 'struct
6175 (dummy_frame_push): Add parameter ptid and save it in
6177 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6179 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6181 (lookup_dummy_frame): Change parameter type to 'struct
6182 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6183 instead of frame_id_eq.
6184 (dummy_frame_pop): Add parameter ptid. Callers updated.
6185 Update comments. Compose dummy_frame_id and pass it to
6187 (dummy_frame_discard): Add parameter ptid.
6188 (dummy_frame_sniffer): Compose dummy_frame_id and call
6189 dummy_frame_id_eq instead of frame_id_eq.
6190 (fprint_dummy_frames): Print ptid.
6191 * dummy-frame.h: Remove comments.
6192 (dummy_frame_push): Add ptid in declaration.
6193 (dummy_frame_pop, dummy_frame_discard): Likewise.
6195 2014-06-26 Tom Tromey <tromey@redhat.com>
6197 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6198 * command.h (error_no_arg): Update.
6200 2014-06-26 Tom Tromey <tromey@redhat.com>
6202 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6203 (do_show_command): Make "arg" const.
6204 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6206 2014-06-26 Tom Tromey <tromey@redhat.com>
6208 * record-full.c (record_full_get_bookmark): Make "args" const.
6209 (record_full_goto_bookmark): Make "raw_bookmark" const.
6210 * record.c (record_goto): New function.
6211 (cmd_record_goto): Use it. Now static.
6212 * record.h (record_goto): Declare.
6213 (cmd_record_goto): Remove declaration.
6214 * target-delegates.c: Rebuild.
6215 * target.h (struct target_ops) <to_get_bookmark,
6216 to_goto_bookmark>: Make parameter const.
6218 2014-06-26 Tom Tromey <tromey@redhat.com>
6220 * defs.h (generic_load): Update.
6221 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6222 * monitor.c (monitor_load): Make "args" const.
6223 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6224 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6226 (mips_load): Make "file" const.
6227 * remote-sim.c (gdbsim_load): Make "args" const.
6228 * remote.c (remote_load): Make "name" const.
6229 * symfile.c (generic_load): Make "args" const.
6230 * target-delegates.c: Rebuild.
6231 * target.c (target_load): Make "arg" const.
6232 (debug_to_load): Make "args" const.
6233 * target.h (struct target_ops) <to_load>: Make parameter const.
6234 (target_load): Update.
6236 2014-06-26 Tom Tromey <tromey@redhat.com>
6239 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6240 (dwarf2_physname, read_partial_die)
6241 (guess_partial_die_structure_name, fixup_partial_die)
6242 (guess_full_die_structure_name, anonymous_struct_prefix)
6243 (dwarf2_name): Use per-BFD obstack.
6245 2014-06-26 Yao Qi <yao@codesourcery.com>
6247 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6248 dummyframe and this_id into inner block below.
6250 2014-06-26 Yao Qi <yao@codesourcery.com>
6252 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6253 with "signal_pass[0]" in the initialization of signal_pass.
6255 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6257 * record-btrace.c (record_btrace_generating_corefile)
6258 (record_btrace_prepare_to_generate_core)
6259 (record_btrace_done_generating_core): New.
6260 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6261 (record_btrace_store_registers, record_btrace_prepare_to_store):
6262 Forward request when generating a core file.
6263 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6264 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6265 to_done_generating_core.
6267 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6269 * target.h (target_ops) <to_prepare_to_generate_core>
6270 <to_done_generating_core>: New.
6271 (target_prepare_to_generate_core, target_done_generating_core): New.
6272 * target.c (target_prepare_to_generate_core)
6273 (target_done_generating_core): New.
6274 * target-delegates.c: Regenerate.
6275 * gcore.c: (write_gcore_file): Rename to ...
6276 (write_gcore_file_1): ...this.
6277 (write_gcore_file): Call target_prepare_to_generate_core
6278 and target_done_generating_core.
6280 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6282 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6283 * gcore.c (write_gcore_file): Free memory returned from
6284 make_corefile_notes.
6285 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6286 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6288 2014-06-24 Yao Qi <yao@codesourcery.com>
6290 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6291 (arm_linux_init_abi): Set skip_trampoline_code with
6292 gdbarch_skip_trampoline_code instead of
6293 find_solib_trampoline_target.
6295 2014-06-24 Yao Qi <yao@codesourcery.com>
6297 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6298 arm_skip_bx_reg returns non-zero.
6300 2014-06-24 Yao Qi <yao@codesourcery.com>
6302 * arm-tdep.c (arm_skip_bx_reg): New function.
6303 (arm_skip_stub): Call arm_skip_bx_reg.
6305 2014-06-23 Don Breazeal <donb@codesourcery.com>
6307 * MAINTAINERS: Add myself as write-after-approval maintainer.
6309 2014-06-23 Pedro Alves <palves@redhat.com>
6311 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6312 DR_CONTROL before setting DR0..DR3.
6313 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6314 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6315 bits of DR_CONTROL related to the debug register slot being
6316 disabled. If all slots are vacant, clear local slowdown as well,
6317 and assert DR_CONTROL is 0.
6319 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6321 * python/lib/gdb/command/xmethods.py
6322 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6323 current progspace only if the string "progspace" matches LOCUS_RE.
6325 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6327 Fix --with-system-readline with readline-6.3 patch 5.
6328 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6329 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6332 2014-06-20 Tom Tromey <tromey@redhat.com>
6334 * dwarf2read.c (dw2_get_real_path): Use correct type in
6336 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6338 2014-06-20 Gary Benson <gbenson@redhat.com>
6340 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6341 * common/glibc_thread_db.h: Likewise.
6342 * common/i386-cpuid.h: Likewise.
6343 * common/i386-gcc-cpuid.h: Likewise.
6344 * common/linux-btrace.h: Likewise.
6345 * common/linux-osdata.h: Likewise.
6346 * common/linux-procfs.h: Likewise.
6347 * common/linux-ptrace.h: Likewise.
6348 * common/mips-linux-watch.h: Likewise.
6349 * common/linux-btrace.c: Moved to nat.
6350 * common/linux-osdata.c: Likewise.
6351 * common/linux-procfs.c: Likewise.
6352 * common/linux-ptrace.c: Likewise.
6353 * common/mips-linux-watch.c: Likewise.
6354 * nat/gdb_thread_db.h: Moved from common.
6355 * nat/glibc_thread_db.h: Likewise.
6356 * nat/i386-cpuid.h: Likewise.
6357 * nat/i386-gcc-cpuid.h: Likewise.
6358 * nat/linux-btrace.c: Likewise.
6359 * nat/linux-btrace.h: Likewise.
6360 * nat/linux-osdata.c: Likewise.
6361 * nat/linux-osdata.h: Likewise.
6362 * nat/linux-procfs.c: Likewise.
6363 * nat/linux-procfs.h: Likewise.
6364 * nat/linux-ptrace.c: Likewise.
6365 * nat/linux-ptrace.h: Likewise.
6366 * nat/mips-linux-watch.c: Likewise.
6367 * nat/mips-linux-watch.h: Likewise.
6368 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6369 (object file files): Reordered.
6370 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6371 of glibc_thread_db.h.
6373 2014-06-20 Gary Benson <gbenson@redhat.com>
6375 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6376 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6377 (i386_dr_low): Likewise.
6378 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6379 (i386_dr_low_set_addr): Likewise.
6380 (i386_dr_low_get_addr): Likewise.
6381 (i386_dr_low_can_set_control): Likewise.
6382 (i386_dr_low_set_control): Likewise.
6383 (i386_dr_low_get_control): Likewise.
6384 (i386_dr_low_get_status): Likewise.
6385 (i386_get_debug_register_length): Likewise.
6386 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6387 (i386_dr_low): Likewise.
6388 * nat/i386-dregs.c (i386-low.h): Remove include.
6389 (i386-nat.h): Likewise.
6390 (nat/i386-dregs.h): New include.
6391 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6392 (i386_dr_low_set_addr): Likewise.
6393 (i386_dr_low_get_addr): Likewise.
6394 (i386_dr_low_can_set_control): Likewise.
6395 (i386_dr_low_set_control): Likewise.
6396 (i386_dr_low_get_control): Likewise.
6397 (i386_dr_low_get_status): Likewise.
6398 (i386_get_debug_register_length): Likewise.
6399 (debug_hw_points): Likewise.
6401 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6403 * Makefile.in (SFILES): Add d-exp.y.
6404 (YYFILES): Add d-exp.c.
6405 (YYOBJ): Add d-exp.o.
6406 (local-maintainer-clean): Delete d-exp.c.
6407 * d-exp.y: New file.
6408 * d-lang.h (d_parse): New declaration.
6409 (d_error): New declaration.
6410 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6411 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6412 PREC_ORDER operators.
6413 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6415 2014-06-19 Yao Qi <yao@codesourcery.com>
6417 * gdbthread.h (any_running): Remove the declaration.
6418 * thread.c (any_running): Remove.
6420 2014-06-19 Yao Qi <yao@codesourcery.com>
6422 * gdbthread.h (struct thread_info) <state>: Change its type to
6423 'enum thread_state'. Update comments.
6425 2014-06-19 Pedro Alves <palves@redhat.com>
6427 * gdbthread.h (ALL_THREADS): Delete.
6428 (ALL_NON_EXITED_THREADS): New macro.
6429 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6430 instead of ALL_THREADS.
6431 * infrun.c (find_thread_needs_step_over)
6432 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6433 instead of ALL_THREADS.
6434 * record-btrace.c (record_btrace_open)
6435 (record_btrace_stop_recording, record_btrace_close)
6436 (record_btrace_is_replaying, record_btrace_resume)
6437 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6438 * remote.c (append_pending_thread_resumptions): Likewise.
6439 * thread.c (thread_apply_all_command): Likewise.
6441 2014-06-19 Gary Benson <gbenson@redhat.com>
6443 * i386-nat.c (i386_stopped_by_watchpoint):
6444 Use i386_dr_stopped_by_watchpoint.
6445 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6446 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6448 2014-06-19 Gary Benson <gbenson@redhat.com>
6450 * nat/i386-dregs.c: New file.
6451 * Makefile.in (i386-dregs.o): New rule.
6452 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6453 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6454 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6455 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6456 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6457 * config/i386/go32.mh (NATDEPFILES): Likewise.
6458 * config/i386/linux.mh (NATDEPFILES): Likewise.
6459 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6460 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6461 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6462 * i386-nat.h (debug_hw_points): New declaration.
6463 * i386-nat.c (breakpoint.h): Remove include.
6464 (command.h): Likewise.
6465 (target.h): Likewise.
6466 (gdb_assert.h): Likewise.
6467 (debug_hw_points): Made nonstatic.
6468 (debug_printf): Now in i386-dregs.c.
6469 (TARGET_HAS_DR_LEN_8): Likewise.
6470 (DR_CONTROL_SHIFT): Likewise.
6471 (DR_CONTROL_SIZE): Likewise.
6472 (DR_RW_EXECUTE): Likewise.
6473 (DR_RW_WRITE): Likewise.
6474 (DR_RW_READ): Likewise.
6475 (DR_RW_IORW): Likewise.
6476 (DR_LEN_1): Likewise.
6477 (DR_LEN_2): Likewise.
6478 (DR_LEN_4): Likewise.
6479 (DR_LEN_8): Likewise.
6480 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6481 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6482 (DR_ENABLE_SIZE): Likewise.
6483 (DR_LOCAL_SLOWDOWN): Likewise.
6484 (DR_GLOBAL_SLOWDOWN): Likewise.
6485 (DR_CONTROL_RESERVED): Likewise.
6486 (I386_DR_CONTROL_MASK): Likewise.
6487 (I386_DR_VACANT): Likewise.
6488 (I386_DR_LOCAL_ENABLE): Likewise.
6489 (I386_DR_GLOBAL_ENABLE): Likewise.
6490 (I386_DR_DISABLE): Likewise.
6491 (I386_DR_SET_RW_LEN): Likewise.
6492 (I386_DR_GET_RW_LEN): Likewise.
6493 (I386_DR_WATCH_HIT): Likewise.
6494 (i386_wp_op_t): Likewise.
6495 (i386_show_dr): Likewise.
6496 (i386_length_and_rw_bits): Likewise.
6497 (i386_insert_aligned_watchpoint): Likewise.
6498 (i386_remove_aligned_watchpoint): Likewise.
6499 (i386_handle_nonaligned_watchpoint): Likewise.
6500 (i386_update_inferior_debug_regs): Likewise.
6501 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6502 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6503 (i386_region_ok_for_watchpoint):
6504 Use i386_dr_region_ok_for_watchpoint.
6505 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6507 2014-06-19 Gary Benson <gbenson@redhat.com>
6509 * i386-nat.c (i386_insert_hw_breakpoint): Use
6510 i386_insert_watchpoint.
6511 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6513 2014-06-19 Gary Benson <gbenson@redhat.com>
6515 * i386-nat.c (i386_dr_show): Renamed to
6516 i386_show_dr and made static. All uses updated.
6517 (i386_dr_length_and_rw_bits): Renamed to
6518 i386_length_and_rw_bits and made static.
6520 (i386_dr_insert_aligned_watchpoint): Renamed to
6521 i386_insert_aligned_watchpoint and made static.
6523 (i386_dr_remove_aligned_watchpoint): Renamed to
6524 i386_remove_aligned_watchpoint and made static.
6526 (i386_dr_update_inferior_debug_regs): Renamed to
6527 i386_update_inferior_debug_regs and made static.
6529 * nat/i386-dregs.h (i386_dr_show): Removed.
6530 (i386_dr_length_and_rw_bits): Likewise.
6531 (i386_dr_insert_aligned_watchpoint): Likewise.
6532 (i386_dr_remove_aligned_watchpoint): Likewise.
6533 (i386_dr_update_inferior_debug_regs): Likewise.
6535 2014-06-19 Gary Benson <gbenson@redhat.com>
6537 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6538 * configure: Regenerate.
6539 * config.in: Likewise.
6540 * main.c (signal.h): New include.
6541 (setup_alternate_signal_stack): New function.
6542 (captured_main): Call the above.
6543 * cp-support.c (signal.h): New include.
6544 (catch_demangler_crashes): New flag.
6545 (SIGJMP_BUF): New define.
6546 (SIGSETJMP): Likewise.
6547 (SIGLONGJMP): Likewise.
6548 (gdb_demangle_jmp_buf): New static global.
6549 (gdb_demangle_attempt_core_dump): Likewise.
6550 (gdb_demangle_signal_handler): New function.
6551 (gdb_demangle): If catch_demangler_crashes is set, install the
6552 above signal handler before calling bfd_demangle, and restore
6553 the original signal handler afterwards. Display the offending
6554 symbol and call demangler_warning the first time a segmentation
6556 (_initialize_cp_support): New maint set/show command.
6558 2014-06-19 Gary Benson <gbenson@redhat.com>
6560 * utils.h (resource_limit_kind): New enum.
6561 (can_dump_core): New declaration.
6562 (warn_cant_dump_core): Likewise.
6563 (dump_core): Likewise.
6564 * utils.c (dump_core): Made nonstatic. Added new
6565 parameter "limit_kind".
6566 (can_dump_core): Made nonstatic. Moved printing code to...
6567 (warn_cant_dump_core): New function.
6568 (can_dump_core_warn): Likewise.
6569 (internal_vproblem): Replace calls to can_dump_core with
6570 calls to can_dump_core_warn. Supply new argument to each.
6572 2014-06-19 Gary Benson <gbenson@redhat.com>
6574 * utils.h (demangler_vwarning): New declaration.
6575 (demangler_warning): Likewise.
6576 * utils.c (struct internal_problem)
6577 <user_settable_should_quit>: New field.
6578 <user_settable_should_dump_core>: Likewise
6579 (internal_error_problem): Add values for above new fields.
6580 (internal_warning_problem): Likewise.
6581 (demangler_warning_problem): New static global.
6582 (demangler_vwarning): New function.
6583 (demangler_warning): Likewise.
6584 (add_internal_problem_command): Selectively add commands.
6585 (_initialize_utils): New internal problem command.
6586 * maint.c (maintenance_demangler_warning): New function.
6587 (_initialize_maint_cmds): New command.
6589 2014-06-18 Tom Tromey <tromey@redhat.com>
6591 * f-valprint.c (info_common_command_for_block): Update.
6592 * symtab.h (struct general_symbol_info) <common_block>: Now
6595 2014-06-18 Tom Tromey <tromey@redhat.com>
6597 * symtab.h (struct symtab) <blockvector>: Now const.
6598 * ada-lang.c (ada_add_global_exceptions): Update.
6599 * buildsym.c (augment_type_symtab): Update.
6600 * dwarf2read.c (dw2_lookup_symbol): Update.
6601 * jit.c (finalize_symtab): Update.
6602 * jv-lang.c (add_class_symtab_symbol): Update.
6603 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6605 * objfiles.c (objfile_relocate1): Update.
6606 * psymtab.c (lookup_symbol_aux_psymtabs)
6607 (maintenance_check_psymtabs): Update.
6608 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6610 * spu-tdep.c (spu_catch_start): Update.
6611 * symmisc.c (dump_symtab_1): Update.
6612 * symtab.c (lookup_global_symbol_from_objfile)
6613 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6614 (basic_lookup_transparent_type_quick)
6615 (basic_lookup_transparent_type, find_pc_sect_symtab)
6616 (find_pc_sect_line, search_symbols): Update.
6617 * block.c (find_block_in_blockvector): Make "bl" const.
6618 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6620 (blockvector_contains_pc): Make "bv" const.
6621 (block_for_pc_sect): Update.
6622 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6623 (blockvector_contains_pc): Update.
6624 * breakpoint.c (resolve_sal_pc): Update.
6625 * inline-frame.c (block_starting_point_at): Update.
6627 2014-06-18 Tom Tromey <tromey@redhat.com>
6629 * completer.c (complete_line): Make "line_buffer" const.
6630 * completer.h (complete_line): Update.
6632 2014-06-18 Tom Tromey <tromey@redhat.com>
6634 * symtab.c (add_macro_name): Remove unneeded cast.
6636 2014-06-18 Tom Tromey <tromey@redhat.com>
6638 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6639 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6641 2014-06-18 Tom Tromey <tromey@redhat.com>
6643 * probe.c (info_probes_for_ops): Make "arg" const.
6644 * probe.h (info_probes_for_ops): Update.
6646 2014-06-18 Tom Tromey <tromey@redhat.com>
6648 * varobj.c (varobj_create): Update.
6649 * valops.c (value_of_this): Update.
6650 * tracepoint.c (add_local_symbols, scope_info): Update.
6651 * symtab.h (struct general_symbol_info) <block>: Now const.
6652 * symtab.c (skip_prologue_sal)
6653 (default_make_symbol_completion_list_break_on)
6654 (skip_prologue_using_sal): Update.
6655 * stack.h (iterate_over_block_locals)
6656 (iterate_over_block_local_vars): Update.
6657 * stack.c (print_frame_args): Update.
6658 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6660 (get_selected_block): Make return type const.
6661 * python/py-frame.c (frapy_block): Update.
6662 * python/py-block.c (gdbpy_block_for_pc): Update.
6663 * p-exp.y (%union) <bval>: Now const.
6664 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6665 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6666 * m2-exp.y (%union) <bval>: Now const.
6667 * linespec.c (get_current_search_block): Make return type const.
6668 (create_sals_line_offset, find_label_symbols): Update.
6669 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6671 (block_starting_point_at): Make "block" const.
6672 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6673 (check_exception_resume): Update.
6674 * guile/scm-frame.c (gdbscm_frame_block): Update.
6675 * guile/scm-block.c (gdbscm_lookup_block): Update.
6676 * frame.h (get_frame_block): Update.
6677 (get_selected_block): Make return type const.
6678 * frame.c (frame_id_inner): Update.
6679 * f-valprint.c (info_common_command_for_block)
6680 (info_common_command): Update.
6681 * dwarf2loc.c (dwarf2_find_location_expression)
6682 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6683 (locexpr_describe_location_piece): Update.
6684 * c-exp.y (%union) <bval>: Now const.
6685 * breakpoint.c (resolve_sal_pc): Update.
6686 * blockframe.c (get_frame_block):Make return type const.
6687 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6688 (block_innermost_frame): Update.
6689 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6690 (block_for_pc, block_for_pc_sect): Update.
6691 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6693 (block_for_pc_sect, block_for_pc): Make return type const.
6694 * ax-gdb.c (gen_expr): Update.
6695 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6696 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6697 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6698 (ada_read_var_value): Update.
6699 * ada-exp.y (struct name_info) <block>: Now const.
6701 (block_lookup): Constify.
6703 2014-06-18 Gary Benson <gbenson@redhat.com>
6705 * nat/i386-dregs.h: New file.
6706 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6707 * i386-nat.h (i386-dregs.h): New include.
6708 (DR_FIRSTADDR): Now in i386-dregs.h.
6709 (DR_LASTADDR): Likewise.
6710 (DR_NADDR): Likewise.
6711 (DR_STATUS): Likewise.
6712 (DR_CONTROL): Likewise.
6713 (i386_debug_reg_state): Likewise.
6714 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6716 2014-06-18 Don Breazeal <donb@codesourcery.com>
6718 * breakpoint.c (set_longjmp_breakpoint): Call
6719 momentary_breakpoint_from_master with additional argument.
6720 (set_longjmp_breakpoint_for_call_dummy): Call
6721 momentary_breakpoint_from_master with additional argument.
6722 (set_std_terminate_breakpoint): Call
6723 momentary_breakpoint_from_master with additional argument.
6724 (momentary_breakpoint_from_master): Add argument to function
6725 definition and use it to initialize structure member flag.
6726 (clone_momentary_breakpoint): Call
6727 momentary_breakpoint_from_master with additional argument.
6728 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6729 member flags set in momentary_breakpoint_from_master.
6731 2014-06-18 Gary Benson <gbenson@redhat.com>
6733 * i386-nat.c (i386_show_dr): Renamed to
6734 i386_dr_show and made nonstatic. All uses updated.
6735 (i386_length_and_rw_bits): Renamed to
6736 i386_dr_length_and_rw_bits and made nonstatic.
6738 (i386_insert_aligned_watchpoint): Renamed to
6739 i386_dr_insert_aligned_watchpoint and made nonstatic.
6741 (i386_remove_aligned_watchpoint): Renamed to
6742 i386_dr_remove_aligned_watchpoint and made nonstatic.
6744 (i386_update_inferior_debug_regs): Renamed to
6745 i386_dr_update_inferior_debug_regs and made nonstatic.
6748 2014-06-18 Gary Benson <gbenson@redhat.com>
6750 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6751 (i386_dr_low_can_set_control): Likewise.
6752 (i386_dr_low_set_addr): Likewise.
6753 (i386_dr_low_set_control): Likewise.
6754 (i386_dr_low_get_addr): Likewise.
6755 (i386_dr_low_get_status): Likewise.
6756 (i386_dr_low_get_control): Likewise.
6757 (i386_insert_aligned_watchpoint): Use new macros.
6758 (i386_update_inferior_debug_regs): Likewise.
6759 (i386_stopped_data_address): Likewise.
6761 2014-06-18 Gary Benson <gbenson@redhat.com>
6763 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6764 New parameter. All uses updated.
6766 2014-06-18 Gary Benson <gbenson@redhat.com>
6768 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6771 2014-06-18 Gary Benson <gbenson@redhat.com>
6773 * i386-nat.c (debug_printf): New macro.
6774 (i386_get_debug_register_length): Likewise.
6775 (TARGET_HAS_DR_LEN_8): Use above macro.
6776 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6777 and printf_unfiltered. Use phex to format values.
6779 2014-06-18 Gary Benson <gbenson@redhat.com>
6781 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6784 2014-06-18 Gary Benson <gbenson@redhat.com>
6786 * i386-nat.c: Comment changes.
6788 2014-06-18 Gary Benson <gbenson@redhat.com>
6790 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6792 2014-06-18 Gary Benson <gbenson@redhat.com>
6794 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6795 (i386_insert_aligned_watchpoint): Likewise.
6796 (i386_remove_aligned_watchpoint): Likewise.
6797 (i386_handle_nonaligned_watchpoint): Likewise.
6799 2014-06-18 Gary Benson <gbenson@redhat.com>
6801 * i386-nat.c: Whitespace changes.
6803 2014-06-17 Samuel Bronson <naesten@gmail.com>
6805 * MAINTAINERS: Update Roland McGrath's email address.
6806 Thanks to Sergio Durigan Junior for pointing out that he left
6807 Red Hat a while ago, and giving me a current address.
6809 2014-06-17 Tom Tromey <tromey@redhat.com>
6811 * utils.h (savestring): Remove declaration.
6813 2014-06-17 Tom Tromey <tromey@redhat.com>
6815 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6817 2014-06-16 Keith Seitz <keiths@redhat.com>
6820 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6821 to update the varobj if inferior_ptid is null_ptid.
6823 2014-06-16 Tom Tromey <tromey@redhat.com>
6825 * target.h (struct target_ops) <to_info_proc>: Make parameter
6827 (target_info_proc): Update.
6828 * target.c (target_info_proc): Make "args" const.
6829 * procfs.c (procfs_info_proc): Update.
6830 * linux-tdep.c (linux_info_proc): Update.
6831 (linux_core_info_proc_mappings): Make "args" const.
6832 (linux_core_info_proc): Update.
6833 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6834 * gdbarch.c: Rebuild.
6835 * gdbarch.h: Rebuild.
6836 * corelow.c (core_info_proc): Update.
6838 2014-06-16 Tom Tromey <tromey@redhat.com>
6840 * target.h (struct target_ops) <to_disconnect>: Make parameter
6842 (target_disconnect): Update.
6843 * target.c (target_disconnect): Make "args" const.
6844 * target-delegates.c: Rebuild.
6845 * remote.c (remote_disconnect): Update.
6846 * record.h (record_disconnect): Update.
6847 * record.c (record_disconnect): Update.
6848 * inf-child.c (inf_child_disconnect): Update.
6850 2014-06-16 Tom Tromey <tromey@redhat.com>
6852 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6853 * target.c (debug_to_rcmd, default_rcmd): Update.
6854 * target-delegates.c: Rebuild.
6855 * remote.c (remote_rcmd): Update.
6856 * monitor.c (monitor_rcmd): Update.
6858 2014-06-16 Pedro Alves <palves@redhat.com>
6860 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6861 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6862 have OBJF_SHARED set.
6863 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6864 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6865 instead of OBJF_USERLOADED.
6866 * objfiles.h (OBJF_SHARED): Update comment.
6867 (userloaded_objfile_contains_address_p): Rename to ...
6868 (shared_objfile_contains_address_p): ... this, and update
6870 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6872 (remove_symbol_file_command): Skip objfiles that don't have
6875 2014-06-16 Tom Tromey <tromey@redhat.com>
6877 * minsyms.h (prim_record_minimal_symbol)
6878 (prim_record_minimal_symbol_and_info): Update comments.
6880 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6882 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6883 or --without-guile, according to how GDB was built.
6885 2014-06-13 Tom Tromey <tromey@redhat.com>
6887 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6889 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6891 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6893 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6894 help_list.Pass all_commands, not -1, to help_list.
6895 * cli/cli-dump.c (dump_command, append_command)
6896 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6897 (binary_dump_command, binary_append_command): Pass all_commands,
6898 not -1, to help_list.
6899 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6901 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6903 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6905 * top.c (set_history): Pass all_commands, not -1, to help_list.
6906 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6907 all_commands, not -1, to help_list.
6908 * symfile.c (overlay_command): Pass all_commands, not -1, to
6910 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6912 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6914 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6916 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6917 not -1, to help_list.
6918 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6919 not -1, to help_list.
6920 * maint.c (maintenance_command, maintenance_info_command)
6921 (maintenance_print_command, maintenance_set_cmd): Pass
6922 all_commands, not -1, to help_list.
6923 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6925 * language.c (set_check): Pass all_commands, not -1, to help_list.
6926 * infcmd.c (unset_command): Pass all_commands, not -1, to
6928 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6930 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6932 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6934 * breakpoint.c (save_command): Pass all_commands, not -1, to
6936 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6937 all_commands, not -1, to help_list.
6939 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6941 * regcache.c (struct register_to_invalidate): New structure.
6942 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6944 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6946 2014-06-12 Yao Qi <yao@codesourcery.com>
6948 * varobj.c (varobj_get_num_children): Call
6949 varobj_is_dynamic_p.
6950 (varobj_list_children): Likewise.
6951 (varobj_update): Likewise. Update comments.
6953 2014-06-12 Yao Qi <yao@codesourcery.com>
6955 * varobj.c (varobj_pretty_printed_p): Rename to ...
6956 (varobj_is_dynamic_p): ... this. New function.
6957 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6958 (varobj_is_dynamic_p): Declare.
6959 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6960 (mi_print_value_p, varobj_update_one): Likewise.
6962 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6963 Yao Qi <yao@codesourcery.com>
6965 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6966 (varobj_get_iterator): Wrap up code for pretty-printer by
6967 "#if HAVE_PYTHON" and "#endif".
6968 (update_dynamic_varobj_children): Likewise.
6970 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6971 Yao Qi <yao@codesourcery.com>
6973 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6974 gdb_python_initialized is false. Move some code from varobj.c.
6975 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6976 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6977 (struct varobj_item): Moved to varobj-iter.h".
6978 (varobj_clear_saved_item): New function.
6979 (update_dynamic_varobj_children): Move python-related code to
6981 (free_variable): Call varobj_clear_saved_item and
6984 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6985 Yao Qi <yao@codesourcery.com>
6987 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6988 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6989 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6990 (py-varobj.o): New rule.
6991 * python/py-varobj.c: New file.
6992 * python/python-internal.h (py_varobj_get_iterator): Declare.
6993 * varobj-iter.h: New file.
6994 * varobj.c: Include "varobj-iter.h"
6995 (struct varobj) <child_iter>: Change its type from "PyObject *"
6996 to "struct varobj_iter *".
6997 <saved_item>: Likewise.
6998 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6999 [HAVE_PYTHON] (varobj_get_iterator): New function.
7000 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7001 python-specific code to python/py-varobj.c.
7002 (install_visualizer): Call varobj_iter_delete instead of
7004 * varobj.h (varobj_ensure_python_env): Declare.
7006 2014-06-12 Yao Qi <yao@codesourcery.com>
7008 * varobj.c (struct varobj_item): New structure.
7009 (create_child_with_value): Update declaration.
7010 (varobj_add_child): Replace arguments 'name' and 'value' with
7011 'item'. All callers updated.
7012 (install_dynamic_child): Likewise.
7013 (update_dynamic_varobj_children): Likewise.
7014 (varobj_add_child): Likewise.
7015 (create_child_with_value): Likewise.
7017 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7019 * NEWS: Create a new section for the next release branch.
7020 Rename the section of the current branch, now that it has
7023 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7025 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7026 * version.in: Bump version to 7.8.50.DATE-cvs.
7028 2014-06-11 Pedro Alves <palves@redhat.com>
7031 * ser-mingw.c (net_windows_socket_check_pending): New function.
7032 (net_windows_select_thread): Ignore spurious wakeups. Use
7033 net_windows_socket_check_pending.
7034 (net_windows_wait_handle): Check for pending events with
7035 ioctlsocket, through net_windows_socket_check_pending, instead of
7036 checking the socket's event.
7038 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7040 * python/python-internal.h (gdb_PyObject_GetAttrString)
7041 (gdb_PyObject_HasAttrString): New inline function definitions.
7042 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7043 char * of the second argument to PyObject_GetAttrString.
7045 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7047 * serial.c (serial_write): Fix index of character to be printed
7048 in call to serial_logchar when serial debug traces are enabled.
7050 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7052 * gdbtypes (resolve_dynamic_range): Add function description.
7054 2014-06-09 Pedro Alves <palves@redhat.com>
7056 * linux-nat.c (linux_child_follow_fork): Initialize status with
7057 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7058 inner block. Only pass the signal to PTRACE_DETACH if in pass
7061 2014-06-09 Gary Benson <gbenson@redhat.com>
7063 * common/signals.c (gdb_signal_from_host): Reorder to separate
7064 the always-available ANSI-standard signals from the signals that
7066 (do_gdb_signal_to_host): Likewise.
7067 * proc-events.c (signal_table): Likewise.
7069 2014-06-08 Hui Zhu <hui@codesourcery.com>
7071 * common/linux-ptrace.c (linux_disable_event_reporting): New
7073 * common/linux-ptrace.h (linux_disable_event_reporting): New
7075 * linux-nat.c (linux_child_follow_fork): Do a single step before
7078 2014-06-07 Keith Seitz <keiths@redhat.com>
7082 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7083 from symbol_matches_domain in symtab.c. All local callers
7084 of symbol_matches_domain updated.
7085 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7086 search STRUCT_DOMAIN.
7087 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7088 independently. standard_lookup will do that automatically.
7089 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7090 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7091 (cp_lookup_symbol_in_namespace): Likewise.
7092 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7093 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7094 may return a STRUCT_DOMAIN match.
7095 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7096 * cp-support.c: Include language.h.
7097 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7099 * psymtab.c (match_partial_symbol): Compare the requested
7100 domain with the symbol's domain directly.
7101 (lookup_partial_symbol): Likewise.
7102 * symtab.c (lookup_symbol_in_language): Explain when/why
7103 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7104 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7105 appropriate languages.
7106 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7107 and moved to ada-lang.c
7108 (lookup_block_symbol): Explain that this function only returns
7109 symbol matching the requested DOMAIN.
7110 Compare the requested domain with the symbol's domain directly.
7111 (iterate_over_symbols): Compare the requested domain with the
7112 symbol's domain directly.
7113 * symtab.h (symbol_matches_domain): Remove.
7115 2014-06-06 Doug Evans <xdje42@gmail.com>
7117 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7118 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7119 (gdbscm_guile_version_is_at_least): Declare.
7120 (gdbscm_scm_string_to_int): Declare.
7121 * guile/guile.c (gdbscm_guile_major_version): New global.
7122 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7123 (guile_datadir): New static global.
7124 (gdbscm_guile_data_directory): New function.
7125 (initialize_scheme_side): Update.
7126 (misc_guile_functions): Add guile-data-directory.
7127 (initialize_gdb_module): Fetch guile version number.
7128 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7129 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7130 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7131 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7133 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7134 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7135 * guile/scm-value.c (gdbscm_value_to_string): Only call
7136 scm_port_conversion_strategy if Guile version >= 2.0.6.
7138 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7140 * main.c (print_gdb_help): Add -q and --silent.
7142 2014-06-06 Gary Benson <gbenson@redhat.com>
7144 * common/signals.c: Remove preprocessor conditionals for
7145 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7146 SIGSEGV and SIGTERM.
7147 * proc-events.c: Likewise.
7149 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7151 * symfile.c (symfile_free_objfile): Remove restriction to
7153 * symfile-mem.c (symbol_file_add_from_memory): Call
7154 add_target_sections_of_objfile.
7156 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7158 * guile/scm-value.c (gdbscm_history_append_x): Use
7159 'vlscm_get_value_smob_arg_unsafe' instead of
7160 'vlscm_scm_to_value'.
7162 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7165 * utils.c (printchar): Don't escape at all if quoter is NUL.
7166 Update function documentation to clarify effect of parameter
7168 * remote.c (escape_buffer): Pass '\\' as the quoter to
7169 fputstrn_unfiltered.
7170 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7171 generate the output.
7172 (mi_solib_unloaded): Same.
7174 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7176 * development.sh: Delete.
7177 * Makefile.in (config.status): Adjust dependency on development.sh.
7178 * configure.ac: Adjust development.sh source call.
7179 * configure: Regenerate.
7181 2014-06-04 Doug Evans <xdje42@gmail.com>
7183 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7184 is_scheme_bkpt, spec.
7185 (bpscm_make_breakpoint_smob): Initialize new members.
7186 (gdbscm_create_breakpoint_x): Split into two ...
7187 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7188 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7189 (scheme_function breakpoint_functions): Update.
7190 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7191 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7192 register-breakpoint!.
7194 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7197 * mem-break.c (z_type_supported): Return zero if
7198 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7200 2014-06-04 Tom Tromey <tromey@redhat.com>
7202 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7203 value_from_contents_and_address_unresolved.
7204 (ada_template_to_fixed_record_type_1): Likewise.
7205 (ada_which_variant_applies): Likewise.
7206 * value.h (value_from_contents_and_address_unresolved): Declare.
7207 * value.c (value_from_contents_and_address_unresolved): New
7209 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7210 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7211 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7213 2014-06-04 Tom Tromey <tromey@redhat.com>
7215 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7217 2014-06-04 Tom Tromey <tromey@redhat.com>
7219 * procfs.c (procfs_attach): Make "args" const.
7220 * windows-nat.c (windows_attach): Make "args" const.
7221 * nto-procfs.c (procfs_attach): Make "args" const.
7222 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7223 * go32-nat.c (go32_attach): Make "args" const.
7224 * gnu-nat.c (gnu_attach): Make "args" const.
7225 * darwin-nat.c (darwin_attach): Make "args" const.
7226 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7227 * linux-nat.c (linux_nat_attach): Make "args" const.
7228 * remote.c (extended_remote_attach_1, extended_remote_attach):
7230 * target.h (struct target_ops) <to_attach>: Make "args" const.
7231 (find_default_attach): Likewise.
7232 * utils.c (parse_pid_to_attach): Make "args" const.
7233 * utils.h (parse_pid_to_attach): Update.
7235 2014-06-04 Tom Tromey <tromey@redhat.com>
7237 * target-delegates.c: Rebuild.
7238 * target.c (default_thread_address_space): New function.
7239 (target_thread_address_space): Simplify.
7240 * target.h (struct target_ops) <to_thread_address_space>: Add
7241 TARGET_DEFAULT_FUNC.
7243 2014-06-04 Doug Evans <xdje42@gmail.com>
7245 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7247 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7249 * record-btrace.c: Include event-loop.h and inf-loop.h.
7250 (record_btrace_resume_exec_dir)
7251 (record_btrace_async_inferior_event_handler)
7252 (record_btrace_handle_async_inferior_event): New.
7253 (record_btrace_open): Create async event handler.
7254 (record_btrace_close): Delete async event handler.
7255 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7256 Mark async event handler.
7257 (record_btrace_execution_direction): New.
7258 (init_record_btrace_ops): Initialize to_execution_direction.
7260 2014-06-03 Doug Evans <xdje42@gmail.com>
7262 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7263 (gdbscm_make_parameter): Ditto.
7265 2014-06-03 Doug Evans <dje@google.com>
7267 * exec.c (exec_close_1): Call clear_section_table instead of
7268 resize_section_table.
7269 (clear_section_table): New function.
7270 (resize_section_table): Make static. Rename arg num_added to
7272 * exec.h (clear_section_table): Declare.
7273 (resize_section_table): Delete.
7274 * progspace.c (release_program_space): Call clear_section_table
7275 instead of resize_section_table.
7277 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7279 * NEWS (Python Scripting): Add entry about the new xmethods
7282 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7284 * python/py-xmethods.c: New file.
7285 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7286 (objfpy_dealloc): XDECREF on the new xmethods field.
7287 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7289 (objfpy_get_xmethods): New function.
7290 (objfile_getset): New entry 'xmethods'.
7291 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7292 (pspy_dealloc): XDECREF on the new xmethods field.
7293 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7295 (pspy_get_xmethods): New function.
7296 (pspace_getset): New entry 'xmethods'.
7297 * python/python-internal.h: Add declarations for new functions.
7298 * python/python.c (_initialize_python): Invoke
7299 gdbpy_initialize_xmethods.
7300 * python/lib/gdb/__init__.py (xmethods): New
7302 * python/lib/gdb/xmethod.py: New file.
7303 * python/lib/gdb/command/xmethods.py: New file.
7305 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7307 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7308 best match method returned by find_overload_match is an xmethod.
7309 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7310 the best matching operator returned by find_overload_match is an
7312 * valops.c: #include "extension.h".
7313 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7314 Return void. The list of matching source methods is returned in
7315 "fn_list" and a vector of matching debug method workers is
7316 returned in "xm_worker_vec". Update all callers.
7317 (value_find_oload_method_list): Likewise.
7318 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7319 non-NULL, then the index of the best matching method in this
7320 vector is returned. Update all callers.
7321 (find_overload_match): Include xmethods while performing overload
7324 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7326 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7327 * extension-priv.h (struct extension_language_ops): Add the
7329 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7330 get_matching_xmethod_workers, get_xmethod_argtypes,
7331 invoke_xmethod, free_xmethod_worker,
7332 free_xmethod_worker_vec): New functions.
7333 * extension.h: #include "common/vec.h".
7334 New function declarations.
7335 (struct xmethod_worker): New struct.
7336 (VEC (xmethod_worker_ptr)): New vector type.
7337 (xmethod_worker_ptr): New typedef.
7338 (xmethod_worker_vec): Likewise.
7339 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7341 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7342 (struct builtin_type): New field "xmethod".
7343 * valarith.c (value_ptradd): Assert that the value argument is not
7345 * valops.c (value_must_coerce_to_target): Return 0 for
7346 lval_xcallable values.
7347 * value.c (struct value): New field XM_WORKER in the field
7349 (value_address, value_raw_address): Return 0 for lval_xcallable
7351 (set_value_address): Assert that the value is not an
7353 (value_free): Free the associated xmethod worker when freeing
7354 lval_xcallable values.
7355 (set_value_component_location): Assert that the WHOLE value is not
7357 (value_of_xmethod, call_xmethod): New functions.
7358 * value.h: Declare "struct xmethod_worker".
7359 Declare new functions value_of_xmethod, call_xmethod.
7361 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7362 Pedro Alves <palves@redhat.com>
7364 PR breakpoints/17000
7365 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7366 New function, extracted from software_breakpoint_inserted_here_p.
7367 (software_breakpoint_inserted_here_p): Replace factored out code
7368 by call to find_non_raw_software_breakpoint_inserted_here.
7369 (bp_target_info_copy_insertion_state): New function.
7370 (bkpt_insert_location): Handle the case of a single-step
7371 breakpoint already inserted at the same address.
7372 (bkpt_remove_location): Handle the case of a single-step
7373 breakpoint still inserted at the same address.
7374 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7375 breakpoint already inserted at the same address.
7376 (deprecated_remove_raw_breakpoint): Handle the case of a
7377 non-raw breakpoint still inserted at the same address.
7378 (find_single_step_breakpoint): New function, extracted from
7379 single_step_breakpoint_inserted_here_p.
7380 (find_single_step_breakpoint): New function,
7381 factored out from single_step_breakpoint_inserted_here_p.
7382 (single_step_breakpoint_inserted_here_p): Reimplement.
7384 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7386 Pushed by Joel Brobecker <brobecker@adacore.com>
7387 * source.c (show_substitute_path_command): Fix display of matching
7390 2014-06-03 Gary Benson <gbenson@redhat.com>
7392 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7394 2014-06-02 Doug Evans <xdje42@gmail.com>
7396 Add parameter support for Guile.
7397 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7398 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7399 (scm-param.o): New rule.
7400 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7401 (gdbscm_misc_error): Declare.
7402 (gdbscm_canonicalize_command_name): Declare.
7403 (gdbscm_scm_to_host_string): Declare.
7404 (gdbscm_scm_from_host_string): Declare.
7405 (gdbscm_initialize_parameters): Declare.
7406 * guile/guile.c (initialize_gdb_module): Call
7407 gdbscm_initialize_parameters.
7408 * guile/lib/gdb.scm: Export parameter symbols.
7409 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7410 cmdscm_canonicalize_name and made public. All callers updated.
7411 * guile/scm-exception.c (gdbscm_misc_error): New function.
7412 * guile/scm-param.c: New file.
7413 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7414 (gdbscm_scm_to_host_string): New function.
7415 (gdbscm_scm_from_host_string): New function.
7416 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7418 2014-06-02 Doug Evans <xdje42@gmail.com>
7420 Add command support for Guile.
7421 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7422 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7423 (scm-cmd.o): New rule.
7424 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7425 (gdbscm_user_error_p): Declare.
7426 (gdbscm_parse_command_name): Declare.
7427 (gdbscm_valid_command_class_p): Declare.
7428 (gdbscm_initialize_commands): Declare.
7429 * guile/guile.c (initialize_gdb_module): Call
7430 gdbscm_initialize_commands.
7431 * guile/lib/gdb.scm: Export command symbols.
7432 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7433 (throw-user-error): New function.
7434 * guile/scm-cmd.c: New file.
7435 * guile/scm-exception.c (user_error_symbol): New static global.
7436 (gdbscm_user_error_p): New function.
7437 (gdbscm_initialize_exceptions): Set user_error_symbol.
7438 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7440 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7442 * top.c (command_loop): Handle comments here...
7443 (command_line_input): ... not here.
7445 2014-06-02 Doug Evans <xdje42@gmail.com>
7447 Add progspace support for Guile.
7448 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7449 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7450 (scm-progspace.o): New rule.
7451 * guile/guile-internal.h (pspace_smob): New typedef.
7452 (psscm_pspace_smob_pretty_printers): Declare.
7453 (psscm_pspace_smob_from_pspace): Declare.
7454 (psscm_scm_from_pspace): Declare.
7455 * guile/guile.c (initialize_gdb_module): Call
7456 gdbscm_initialize_pspaces.
7457 * guile/lib/gdb.scm: Export progspace symbols.
7458 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7460 (append-pretty-printer!): Ditto.
7461 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7463 * guile/scm-progspace.c: New file.
7465 2014-06-03 Alan Modra <amodra@gmail.com>
7467 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7468 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7470 2014-06-02 Doug Evans <dje@google.com>
7472 Add support for skeletonless type units.
7473 * dwarf2read.c (struct dwarf2_per_objfile): New member
7474 n_allocated_type_units.
7475 (struct dwarf2_per_objfile) <tu_stats>: New member
7476 nr_all_type_units_reallocs.
7477 (create_signatured_type_table_from_index): Initialize
7478 n_allocated_type_units
7479 (create_all_type_units): Ditto.
7480 (add_type_unit): Move up in file. New arg slot.
7481 All callers updated. Increase space for all_type_units more
7483 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7484 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7485 (lookup_dwp_signatured_type): Ditto.
7486 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7487 All callers updated.
7488 (build_type_psymtabs_1): Leave type_unit_groups as
7489 NULL if no TUs present.
7490 (print_tu_stats): New function.
7491 (process_skeletonless_type_unit): New function.
7492 (process_dwo_file_for_skeletonless_type_units): New
7494 (process_skeletonless_type_units): New function.
7495 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7496 Call print tu_stats if debugging enabled.
7498 2014-06-02 Pedro Alves <palves@redhat.com>
7500 * breakpoint.c (build_target_command_list): Don't build a command
7501 list if we have any duplicate location that isn't a dprintf.
7503 2014-06-02 Pedro Alves <palves@redhat.com>
7505 * breakpoint.c (dprintf_breakpoint_hit): New function.
7506 (initialize_breakpoint_ops): Install it as dprintf's
7507 breakpoint_hit method.
7509 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7511 * source.c (substitute_path_rule_matches): Simplify using
7512 filename_ncmp instead of FILENAME_CMP.
7514 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7516 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7518 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7520 * configure.ac: When Guile is available, check for the
7521 availability of 'scm_new_smob'.
7522 * configure, config.h.in: Regenerate.
7523 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7526 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7528 * frame.c (struct frame_info): Add stop_string field.
7529 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7530 (get_prev_frame_always): Old content moved into
7531 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7532 TRY_CATCH, handle MEMORY_ERROR exceptions.
7533 (frame_stop_reason_string): New function definition.
7534 * frame.h (unwind_stop_reason_to_string): Extend comment to
7535 mention frame_stop_reason_string.
7536 (frame_stop_reason_string): New function declaration.
7537 * stack.c (frame_info): Switch to frame_stop_reason_string.
7538 (backtrace_command_1): Switch to frame_stop_reason_string.
7539 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7540 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7541 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7543 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7545 * frame.c (frame_stop_reason_string): Rename to ...
7546 (unwind_stop_reason_to_string): this.
7547 * frame.h (frame_stop_reason_string): Rename to ...
7548 (unwind_stop_reason_to_string): this.
7549 * stack.c (frame_info): Update call to frame_stop_reason_string.
7550 (backtrace_command_1): Likewise.
7551 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7552 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7554 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7556 * frame.c (remove_prev_frame): New function.
7557 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7560 2014-05-29 Pedro Alves <palves@redhat.com>
7562 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7563 and make it const. When a single-step decays to a continue,
7564 clear 'step', not 'hw_step'. Pass whether the caller wanted
7565 to step to user_visible_resume_ptid, not what we ask the
7568 2014-05-29 Pedro Alves <palves@redhat.com>
7570 * infrun.c (process_event_stop_test, handle_step_into_function)
7571 (handle_step_into_function_backward): Adjust.
7572 Don't set the even thread's stop_step and call stop_waiting before
7573 calling end_stepping_range. Instead do that ...
7574 (end_stepping_range): ... here. Take an ecs pointer parameter.
7576 2014-05-29 Pedro Alves <palves@redhat.com>
7578 * infrun.c (stop_stepping): Rename to ...
7579 (stop_waiting): ... this.
7580 (proceed): Update comment.
7581 (process_event_stop_test, handle_inferior_event)
7582 (handle_signal_stop, handle_step_into_function)
7583 (handle_step_into_function_backward): Update.
7585 2014-05-29 Pedro Alves <palves@redhat.com>
7587 * infcall.c (run_inferior_call): Don't check whether the current
7588 thread is running after the proceed call.
7590 2014-05-29 Pedro Alves <palves@redhat.com>
7591 Tom Tromey <tromey@redhat.com>
7593 * NEWS: Mention "maint set target-async", "set mi-async", and that
7594 background execution commands are now always available.
7595 * target.h (target_async_permitted): Update comment.
7596 * target.c (target_async_permitted, target_async_permitted_1):
7598 (set_target_async_command): Rename to ...
7599 (maint_set_target_async_command): ... this.
7600 (show_target_async_command): Rename to ...
7601 (maint_show_target_async_command): ... this.
7602 (_initialize_target): Adjust.
7603 * infcmd.c (prepare_execution_command): Make extern.
7604 * inferior.h (prepare_execution_command): Declare.
7605 * infrun.c (set_observer_mode): Leave target async alone.
7606 * mi/mi-interp.c (mi_interpreter_init): Install
7607 mi_on_sync_execution_done as sync_execution_done observer.
7608 (mi_on_sync_execution_done): New function.
7609 (mi_execute_command_input_handler): Don't print the prompt if we
7610 just started a synchronous command with an async target.
7611 (mi_on_resume): Check sync_execution before printing prompt.
7612 * mi/mi-main.h (mi_async_p): Declare.
7613 * mi/mi-main.c: Include gdbcmd.h.
7614 (mi_async_p): New function.
7615 (mi_async, mi_async_1): New globals.
7616 (set_mi_async_command, show_mi_async_command, mi_async): New
7618 (exec_continue): Call prepare_execution_command.
7619 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7620 (mi_execute_async_cli_command): Use mi_async_p.
7621 (_initialize_mi_main): Install "set mi-async". Make
7622 "target-async" a deprecated alias.
7624 2014-05-29 Pedro Alves <palves@redhat.com>
7626 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7627 (_initialize_cli_interp): Adjust.
7628 * event-loop.c: Include "observer.h".
7629 (start_event_loop): Notify 'command_error' observers instead of
7630 calling display_gdb_prompt. Remove FIXME comment.
7631 * event-top.c (display_gdb_prompt): Remove call into the
7633 * inf-loop.c: Include "observer.h".
7634 (inferior_event_handler): Notify 'command_error' observers instead
7635 of calling display_gdb_prompt.
7636 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7637 observers instead of calling display_gdb_prompt.
7638 * interps.c (interp_set): Don't call display_gdb_prompt.
7639 (current_interp_display_prompt_p): Delete.
7640 * interps.h (interp_prompt_p): Delete declaration.
7641 (interp_prompt_p_ftype): Delete.
7642 (struct interp_procs) <prompt_proc_p>: Delete field.
7643 (current_interp_display_prompt_p): Delete declaration.
7644 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7645 (_initialize_mi_interp): Adjust.
7646 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7647 'command_error' observers.
7648 (tui_on_sync_execution_done, tui_on_command_error): New
7650 (tui_display_prompt_p): Delete.
7651 (_initialize_tui_interp): Adjust.
7653 2014-05-29 Pedro Alves <palves@redhat.com>
7656 * cli/cli-interp.c: Include infrun.h and observer.h.
7657 (cli_uiout, cli_interp): New globals.
7658 (cli_on_signal_received, cli_on_end_stepping_range)
7659 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7661 (cli_interpreter_init): Install them as 'end_stepping_range',
7662 'signal_received' 'signal_exited', 'exited' and 'no_history'
7664 (_initialize_cli_interp): Remove cli_interp local.
7665 * infrun.c (handle_inferior_event): Call the several stop reason
7666 observers instead of printing the stop reason directly.
7667 (end_stepping_range): New function.
7668 (print_end_stepping_range_reason, print_signal_exited_reason)
7669 (print_exited_reason, print_signal_received_reason)
7670 (print_no_history_reason): Make static, and add an uiout
7671 parameter. Print to that instead of to CURRENT_UIOUT.
7672 * infrun.h (print_end_stepping_range_reason)
7673 (print_signal_exited_reason, print_exited_reason)
7674 (print_signal_received_reason print_no_history_reason): New
7676 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7678 <cli_uiout>: New field.
7679 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7680 uiout for CLI output. Install 'signal_received',
7681 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7683 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7684 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7685 (mi_on_no_history): New functions.
7686 (ui_out_free_cleanup): Delete function.
7687 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7688 instead use the one already stored in the MI interpreter data.
7689 (mi_ui_out): Adjust.
7690 * tui/tui-interp.c: Include infrun.h and observer.h.
7691 (tui_interp): New global.
7692 (tui_on_signal_received, tui_on_end_stepping_range)
7693 (tui_on_signal_exited, tui_on_exited)
7694 (tui_on_no_history): New functions.
7695 (tui_init): Install them as 'end_stepping_range',
7696 'signal_received' 'signal_exited', 'exited' and 'no_history'
7698 (_initialize_tui_interp): Delete tui_interp local.
7700 2014-05-29 Pedro Alves <palves@redhat.com>
7703 * linux-nat.c (linux_nat_resume_callback): Rename the second
7704 parameter to 'except'. Skip LP if it points to EXCEPT.
7705 (linux_nat_resume): Don't mark the event lwp as not stopped
7706 before resuming sibling lwps. Instead ask
7707 linux_nat_resume_callback to skip the event lwp. Mark it as not
7708 stopped after actually resuming it.
7709 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7711 (wait_lwp): Mark the lwp as stopped here.
7712 (stop_wait_callback): Mark the lwp as not stopped right after
7713 resuming it. Don't mark lwps as stopped here.
7714 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7715 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7717 2014-05-29 Pedro Alves <palves@redhat.com>
7720 * infrun.c (resume): Determine how much to resume depending on
7721 whether the caller wanted a step, not whether we can hardware step
7722 the target. Mark all threads that we intend to run as running,
7723 unless we're calling an inferior function.
7724 (normal_stop): If the thread is running an infcall, don't finish
7726 * target.c (target_resume): Don't mark threads as running here.
7728 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7730 * serial.c (_initialize_serial): Remove support for
7731 the "set remotebaud" and "show remotebaud" commands.
7732 * NEWS: Add entry documenting the removal of that command.
7734 2014-05-28 Yao Qi <yao@codesourcery.com>
7736 * charset.c: Fix typo in comments.
7738 2014-05-27 Gary Benson <gbenson@redhat.com>
7740 * utils.c (internal_vproblem): Prompt for a bug report.
7742 2014-05-26 Andy Wingo <wingo@igalia.com>
7744 * guile/scm-arch.c (arscm_mark_arch_smob):
7745 * guile/scm-block.c (bkscm_mark_block_smob)
7746 (bkscm_mark_block_syms_progress_smob):
7747 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7748 * guile/scm-exception.c (exscm_mark_exception_smob):
7749 * guile/scm-frame.c (frscm_mark_frame_smob):
7750 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7751 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7752 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7753 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7754 (ppscm_mark_pretty_printer_worker_smob):
7755 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7756 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7757 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7758 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7760 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7763 2014-05-26 Andy Wingo <wingo@igalia.com>
7764 Doug Evans <xdje42@gmail.com>
7766 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7767 empty_base_class. All uses updated.
7768 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7769 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7771 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7772 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7773 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7774 (gdbscm_gsmob_has_property_p, add_property_name)
7775 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7776 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7777 (gdb-object-has-property?, gdb-object-properties): Remove.
7778 (gdb-object-kind): Renamed from gsmob-kind.
7780 2014-05-26 Andy Wingo <wingo@igalia.com>
7782 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7783 * configure: Regenerate.
7785 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7787 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7789 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7791 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7792 (replay_memory_access_read_only, replay_memory_access_read_write)
7793 (replay_memory_access_types, replay_memory_access)
7794 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7795 (cmd_set_record_btrace, cmd_show_record_btrace)
7796 (cmd_show_replay_memory_access): New.
7797 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7798 (record_btrace_remove_breakpoint): Replace
7799 record_btrace_allow_memory_access with replay_memory_access.
7800 (_initialize_record_btrace): Add commands.
7801 * NEWS: Announce it.
7803 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7805 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7807 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7809 * MAINTAINERS (Write After Approval): Move self back from
7812 2014-05-22 Pedro Alves <palves@redhat.com>
7814 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7815 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7816 (disable_randomization, enum exec_direction_kind)
7817 (execution_direction, stop_registers, start_remote)
7818 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7819 (wait_for_inferior, normal_stop, get_last_target_status)
7820 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7821 (insert_step_resume_breakpoint_at_sal)
7822 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7823 (set_step_info, print_stop_event, signal_stop_state)
7824 (signal_print_state, signal_pass_state, signal_stop_update)
7825 (signal_print_update, signal_pass_update)
7826 (update_signals_program_target, clear_exit_convenience_vars)
7827 (displaced_step_dump_bytes, update_observer_mode)
7828 (signal_catch_update, gdb_signal_from_command): Move
7830 * infrun.h: ... to this new file.
7831 * amd64-tdep.c: Include infrun.h.
7832 * annotate.c: Include infrun.h.
7833 * arch-utils.c: Include infrun.h.
7834 * arm-linux-tdep.c: Include infrun.h.
7835 * arm-tdep.c: Include infrun.h.
7836 * break-catch-sig.c: Include infrun.h.
7837 * breakpoint.c: Include infrun.h.
7838 * common/agent.c: Include infrun.h instead of inferior.h.
7839 * corelow.c: Include infrun.h.
7840 * event-top.c: Include infrun.h.
7841 * go32-nat.c: Include infrun.h.
7842 * i386-tdep.c: Include infrun.h.
7843 * inf-loop.c: Include infrun.h.
7844 * infcall.c: Include infrun.h.
7845 * infcmd.c: Include infrun.h.
7846 * infrun.c: Include infrun.h.
7847 * linux-fork.c: Include infrun.h.
7848 * linux-nat.c: Include infrun.h.
7849 * linux-thread-db.c: Include infrun.h.
7850 * monitor.c: Include infrun.h.
7851 * nto-tdep.c: Include infrun.h.
7852 * procfs.c: Include infrun.h.
7853 * record-btrace.c: Include infrun.h.
7854 * record-full.c: Include infrun.h.
7855 * remote-m32r-sdi.c: Include infrun.h.
7856 * remote-mips.c: Include infrun.h.
7857 * remote-notif.c: Include infrun.h.
7858 * remote-sim.c: Include infrun.h.
7859 * remote.c: Include infrun.h.
7860 * reverse.c: Include infrun.h.
7861 * rs6000-tdep.c: Include infrun.h.
7862 * s390-linux-tdep.c: Include infrun.h.
7863 * solib-irix.c: Include infrun.h.
7864 * solib-osf.c: Include infrun.h.
7865 * solib-svr4.c: Include infrun.h.
7866 * target.c: Include infrun.h.
7867 * top.c: Include infrun.h.
7868 * windows-nat.c: Include infrun.h.
7869 * mi/mi-interp.c: Include infrun.h.
7870 * mi/mi-main.c: Include infrun.h.
7871 * python/py-threadevent.c: Include infrun.h.
7873 2014-05-22 Pedro Alves <palves@redhat.com>
7875 * infrun.c (handle_inferior_event): Store the exit code for
7876 --return-child-result here, instead of ...
7877 (print_exited_reason): ... here.
7879 2014-05-21 Pedro Alves <palves@redhat.com>
7882 * gdbthread.h (struct thread_control_state): New field
7884 * infrun.c (follow_fork): Copy the new thread control field to the
7886 (clear_proceed_status_thread): Clear the new thread control field.
7887 (proceed): Set the new thread control field.
7888 * interps.h (command_interp): Declare.
7889 * interps.c (command_interpreter): New global.
7890 (command_interp): New function.
7891 (interp_exec): Set `command_interpreter' while here.
7892 * cli-out.c (cli_uiout_dtor): New function.
7893 (cli_ui_out_impl): Install it.
7894 * mi/mi-interp.c: Include cli-out.h.
7895 (mi_cmd_interpreter_exec): Add comment.
7896 (restore_current_uiout_cleanup): New function.
7897 (ui_out_free_cleanup): New function.
7898 (mi_on_normal_stop): If finishing an execution command started by
7899 a CLI command, or any kind of breakpoint-like event triggered,
7900 print the stop event to the output (CLI) stream.
7901 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7903 2014-05-21 Pedro Alves <palves@redhat.com>
7905 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7906 current source line having changed.
7907 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7908 * infrun.c (normal_stop): Adjust call to
7909 set_current_sal_from_frame.
7910 * source.c (clear_lines_listed_range): New function.
7911 (set_current_source_symtab_and_line, identify_source_line): Clear
7912 the lines listed range.
7913 (line_info): Handle the first "info line" after the current source
7914 line having changed.
7915 * stack.c (print_stack_frame): Remove center handling.
7916 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7919 2014-05-21 Pedro Alves <palves@redhat.com>
7921 * inf-child.c (inf_child_mourn_inferior): New function.
7922 * inf-child.h (inf_child_mourn_inferior): New declaration.
7923 * darwin-nat.c (darwin_mourn_inferior): Use
7924 inf_child_mourn_inferior.
7925 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7926 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7927 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7928 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7929 * windows-nat.c (windows_mourn_inferior): Likewise.
7931 2014-05-21 Doug Evans <xdje42@gmail.com>
7933 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7935 2014-05-21 Doug Evans <xdje42@gmail.com>
7937 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7938 (gdbscm_out_of_range_error): Ditto.
7939 (gdbscm_memory_error): Ditto.
7940 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7941 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7942 (gdbscm_out_of_range_error): Update.
7943 (gdbscm_memory_error): Update.
7944 (gdbscm_scm_to_target_string_unsafe): Delete.
7946 2014-05-21 Pedro Alves <palves@redhat.com>
7948 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7950 (inf_child_open_target): New function.
7951 (inf_child_open): Use inf_child_open_target to push the target
7952 instead of erroring out.
7953 (inf_child_disconnect, inf_child_close)
7954 (inf_child_maybe_unpush_target): New functions.
7955 (inf_child_target): Install inf_child_disconnect and
7956 inf_child_close. Store a pointer to the returned object.
7957 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7959 * target.c (auto_connect_native_target): New global.
7960 (show_default_run_target): New function.
7961 (find_default_run_target): Return NULL if automatically connecting
7962 to the native target is disabled.
7963 (_initialize_target): Install set/show auto-connect-native-target.
7964 * NEWS: Mention "set auto-connect-native-target", and "target
7966 * linux-nat.c (super_close): New global.
7967 (linux_nat_close): Call super_close.
7968 (linux_nat_add_target): Store a pointer to the base class's
7970 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7971 inf_child_maybe_unpush.
7972 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7974 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7975 the inferior. Use inf_child_maybe_unpush_target.
7976 (inf_ttrace_attach): Don't push the target if it is already
7978 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7979 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7980 after mourning the inferior. Use inf_child_maybe_unpush_target.
7981 (darwin_attach_pid): Don't push the target if it is already
7983 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7984 mourning the inferior. Use inf_child_maybe_unpush_target.
7985 (gnu_detach): Use inf_child_maybe_unpush_target.
7986 * go32-nat.c (go32_create_inferior): Don't push the target if it
7988 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7989 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7990 (procfs_open): Rename to ...
7991 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7992 comments. Can target_preopen before changing node. Call
7993 inf_child_open_target to push the target explicitly.
7994 (procfs_attach): Don't push the target if it is already pushed.
7995 (procfs_detach): Use inf_child_maybe_unpush_target.
7996 (procfs_create_inferior): Don't push the target if it is already
7998 (nto_native_ops): New global.
7999 (procfs_open): Reimplement.
8000 (procfs_native_open): New function.
8001 (init_procfs_targets): Install procfs_native_open as to_open of
8002 "target native". Store a pointer to the "native" target in
8004 * procfs.c (procfs_attach): Don't push the target if it is already
8006 (procfs_detach): Use inf_child_maybe_unpush_target.
8007 (procfs_mourn_inferior): Only unpush the target after mourning the
8008 inferior. Use inf_child_maybe_unpush_target.
8009 (procfs_init_inferior): Don't push the target if it is already
8011 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8012 if it is already pushed.
8014 2014-05-21 Pedro Alves <palves@redhat.com>
8016 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8017 and "procfs" targets are now called "native" instead.
8019 2014-05-21 Pedro Alves <palves@redhat.com>
8021 * go32-nat.c (go32_open): Delete.
8022 (go32_target): Don't override the to_open method.
8024 2014-05-21 Pedro Alves <palves@redhat.com>
8026 * nto-procfs.c (procfs_can_run): New function.
8027 (nto_procfs_ops): New global.
8028 (init_procfs_targets): New, based on procfs_target. Install
8029 "target native" in addition to "target procfs".
8030 (_initialize_procfs): Call init_procfs_targets instead of adding
8033 2014-05-21 Pedro Alves <palves@redhat.com>
8035 * windows-nat.c (windows_target): Don't override to_shortname,
8036 to_longname or to_doc.
8038 2014-05-21 Pedro Alves <palves@redhat.com>
8040 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8043 2014-05-21 Pedro Alves <palves@redhat.com>
8045 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8046 to_shortname, to_longname or to_doc.
8048 2014-05-21 Pedro Alves <palves@redhat.com>
8050 * go32-nat.c (go32_target): Don't override to_shortname,
8051 to_longname or to_doc.
8053 2014-05-21 Pedro Alves <palves@redhat.com>
8055 * inf-child.c (inf_child_open): Remove mention of "child".
8056 (inf_child_target): Rename target to "native" instead of "child".
8058 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8060 * Makefile.in (SFILES): Delete "regset.c".
8061 (COMMON_OBS): Delete "regset.o".
8063 * regset.h (regset_alloc): Delete prototype.
8065 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8067 * sparc-linux-tdep.c (sparc32_linux_gregset)
8068 (sparc32_linux_fpregset): New static regset structures.
8069 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8070 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8072 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8073 (sparc64_linux_fpregset): New static regset structures.
8074 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8075 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8076 New static regset structures.
8077 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8078 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8079 New static regset structures.
8080 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8081 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8082 New static regset structures.
8083 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8084 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8085 New static regset structures.
8086 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8088 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8090 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8091 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8092 register maps ("regmaps") from "*regset" to "*regmap". Do this
8093 for all regmap types and variables.
8094 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8095 (sparc32_linux_supply_core_gregset)
8096 (sparc32_linux_collect_core_gregset)
8097 (sparc32_linux_supply_core_fpregset)
8098 (sparc32_linux_collect_core_fpregset): Likewise.
8099 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8100 (sparc_gregmap, sparc_fpregmap): ... these.
8101 (sparc_supply_gregset, sparc_collect_gregset)
8102 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8103 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8104 (_initialize_sparc_nat): Rename regmaps.
8105 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8106 (sparc_gregmap, sparc_fpregmap): ... these.
8107 (sparc_supply_gregset, sparc_collect_gregset)
8108 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8109 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8111 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8112 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8114 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8116 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8117 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8118 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8120 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8121 (sparc32_bsd_fpregset): Rename to...
8122 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8123 (sparc32_bsd_fpregmap): ... these.
8124 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8125 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8126 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8127 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8128 (struct sparc_gregmap, struct sparc_fpregmap)
8129 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8130 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8131 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8132 (sparc32_supply_regset, sparc32_collect_gregset)
8133 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8135 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8136 (sparc64_linux_ptrace_gregmap): ... this.
8137 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8138 (_initialize_sparc64_linux_nat): Rename regmaps.
8139 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8140 (sparc64_linux_core_gregmap): ... this.
8141 (sparc64_linux_supply_core_gregset)
8142 (sparc64_linux_collect_core_gregset)
8143 (sparc64_linux_supply_core_fpregset)
8144 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8145 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8146 (sparc64_sol2_fpregset): Rename to...
8147 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8148 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8149 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8151 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8152 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8153 (sparc64_bsd_fpregset): Rename to...
8154 (struct sparc_gregmap, sparc64_sol2_gregmap)
8155 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8156 (sparc64_bsd_fpregmap): ... these.
8157 (sparc64_supply_gregset, sparc64_collect_gregset)
8158 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8160 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8161 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8162 (sparc64fbsd_gregmap): ... this.
8163 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8164 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8166 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8167 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8168 (sparc64nbsd_collect_fpregset): Likewise.
8169 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8170 (sparc64nbsd_gregmap): ... this.
8171 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8173 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8174 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8175 (sparc64obsd_gregmap): ... this.
8176 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8178 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8179 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8180 (sparc32nbsd_gregmap): ... this.
8181 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8184 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8186 * score-tdep.c (score7_linux_gregset): New static regset
8188 (score7_linux_regset_from_core_section): Remove dynamic regset
8190 (score_gdbarch_init): Drop allocation of tdep structure.
8191 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8193 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8195 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8197 (am33_regset_from_core_section): Remove dynamic regset
8200 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8202 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8203 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8205 (mips_linux_regset_from_core_section): Remove dynamic regset
8207 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8208 'gregset64', 'fpregset', and 'fpregset64'.
8209 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8210 deleted tdep fields.
8212 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8214 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8216 (amd64_regset_from_core_section): Remove dynamic regset
8218 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8220 (amd64obsd_regset_from_core_section): Remove dynamic regset
8222 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8224 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8225 x86-common regset supply function.
8226 * i386-tdep.c (i386_collect_gregset): Make static.
8227 (i386_gregset): New global regset structure.
8228 (i386_fpregset, i386_xstateregset): New static regset structures.
8229 (i386_regset_from_core_section): Remove dynamic regset
8231 (i386_gdbarch_init): Remove initialization of tdep fields
8232 'gregset', 'fpregset', and 'xstateregset'.
8233 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8234 'fpregset', and 'xstateregset'.
8235 (i386_collect_gregset): Remove prototype.
8236 (i386_gregset): New declaration.
8237 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8239 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8242 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8244 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8245 (arm_linux_vfpregset): New static regset structures.
8246 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8248 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8249 and 'vfpregset' fields.
8251 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8253 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8254 (aarch64_linux_fpregset): New static regset structures.
8255 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8256 of regset structures.
8257 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8260 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8262 * regset.h (struct regset): Remove gdbarch field.
8263 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8264 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8265 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8267 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8268 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8269 (ppc32_linux_vsxregset): Likewise.
8270 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8271 via the regcache instead of the regset.
8272 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8273 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8274 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8275 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8278 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8280 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8281 Constify structures.
8282 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8283 (alphanbsd_aout_gregset): Likewise.
8284 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8285 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8287 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8288 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8290 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8291 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8292 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8293 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8294 * m88k-tdep.c (m88k_gregset): Likewise.
8295 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8296 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8297 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8298 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8299 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8300 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8301 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8302 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8303 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8305 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8306 * sh-tdep.h (sh_corefile_gregset): Likewise.
8307 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8308 * vax-tdep.c (vax_gregset): Likewise.
8310 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8312 Fix TLS access for -static -pthread.
8313 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8314 (try_thread_db_load_1): Initialize it.
8315 (thread_db_get_thread_local_address): Call it if LM is zero.
8316 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8317 * target.h (struct target_ops) (to_get_thread_local_address): Add
8318 load_module_addr comment.
8320 2014-05-21 Pedro Alves <palves@redhat.com>
8322 * dcache.c (dcache_read_memory_partial): If reading the cache line
8323 fails, fallback to reading just the memory the caller wanted.
8325 2014-05-20 Doug Evans <dje@google.com>
8327 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8328 instead of get_current_arch.
8330 2014-05-20 Pedro Alves <palves@redhat.com>
8332 * NEWS: Mention that compare-sections now works with all targets.
8334 * remote.c (PACKET_qCRC): New enum value.
8335 (remote_verify_memory): Don't send qCRC if the target has no
8336 execution. Use packet_support/packet_ok. If the target doesn't
8337 support the qCRC packet, fallback to a deep memory copy.
8338 (compare_sections_command): Say "target image" instead of "remote
8340 (_initialize_remote): Add PACKET_qCRC to the list of config
8341 packets that have no associated command. Extend comment.
8342 * target.c (simple_verify_memory, default_verify_memory): New
8344 * target.h (struct target_ops) <to_verify_memory>: Default to
8345 default_verify_memory.
8346 (simple_verify_memory): New declaration.
8347 * target-delegates.c: Regenerate.
8349 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8351 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8353 2014-05-20 Hui Zhu <hui@codesourcery.com>
8354 Yao Qi <yao@codesourcery.com>
8357 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8358 and change address of sp and pc.
8360 2014-05-19 Tom Tromey <tromey@redhat.com>
8362 * gdbtypes.c (rank_function): Use XNEWVEC.
8363 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8365 2014-05-19 Doug Evans <dje@google.com>
8367 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8368 build_type_unit_groups and moved closer to only caller. Remove
8369 arguments. All references updated. Remove outdated .gdb_index
8371 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8372 build_type_psymtabs_1.
8374 2014-05-19 Doug Evans <dje@google.com>
8376 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8377 n_type_unit_groups, all_type_unit_groups. All uses removed.
8378 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8379 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8380 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8381 (add_type_unit_group_to_table): Delete.
8383 2014-05-19 Doug Evans <dje@google.com>
8385 * eval.c (evaluate_subexp_standard): Add some comments.
8387 2014-05-17 Doug Evans <xdje42@gmail.com>
8389 * progspace.c (remove_program_space): Delete, unused.
8390 * progspace.h (remove_program_space): Ditto.
8392 2014-05-17 Doug Evans <xdje42@gmail.com>
8394 * inferior.c (prune_inferiors): Fix comment.
8395 (remove_inferior_command): Call prune_program_spaces.
8397 2014-05-16 Doug Evans <dje@google.com>
8399 New command line option -D.
8401 * main.c (set_gdb_data_directory): New function.
8402 (captured_main): Recognize -D. Flag error for --data-directory "".
8403 Call set_gdb_data_directory.
8404 (print_gdb_help): Print --data-directory, -D.
8405 * main.h (set_gdb_data_directory): Declare.
8406 * top.c (staged_gdb_datadir): New static global.
8407 (set_gdb_datadir): Call set_gdb_data_directory
8408 (show_gdb_datadir): New function.
8409 (init_main): Update init of data-directory parameter.
8411 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8413 Import the "dirfd" gnulib module.
8414 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8415 * gnulib/aclocal.m4: Update.
8416 * gnulib/config.in: Update.
8417 * gnulib/configure: Update.
8418 * gnulib/import/Makefile.am: Update.
8419 * gnulib/import/Makefile.in: Update.
8420 * gnulib/import/dirfd.c: New.
8421 * gnulib/import/m4/dirfd.m4: New.
8422 * gnulib/import/m4/gnulib-cache.m4: Update.
8423 * gnulib/import/m4/gnulib-comp.m4: Update.
8425 2014-05-16 Pierre Muller <muller@sourceware.org>
8426 Yao Qi <yao@codesourcery.com>
8428 * valprint.c (print_wchar): Move the code on checking whether
8429 W is a printable wide char to the default branch of switch
8430 statement below. Call wchar_printable instead of gdb_iswprint.
8432 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8434 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8435 ldr.w and ldrd instructions.
8437 2014-05-15 Doug Evans <dje@google.com>
8439 * dwarf2read.c (read_structure_type): Delete outdated comments.
8441 2014-05-14 Tom Tromey <tromey@redhat.com>
8443 * macrocmd.c (print_macro_definition): Reindent.
8445 2014-05-13 Doug Evans <xdje42@gmail.com>
8447 * python/py-cmd.c (cmdpy_completer): Add comment.
8448 (completers): Make const.
8450 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8452 * infrun.c (resume): Remove should_resume (unused). Move up
8453 declaration of resume_ptid.
8455 2014-05-13 Tom Tromey <tromey@redhat.com>
8457 * language.h (unop_type_check): Remove.
8458 (binop_type_check): Don't declare.
8460 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8462 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8463 call to regcache_raw_collect.
8465 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8467 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8468 mi_console->quote as the quoting character.
8470 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8472 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8474 2014-04-29 Tom Tromey <tromey@redhat.com>
8476 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8477 "show debug varobj".
8479 2014-05-07 Kyle McMartin <kyle@redhat.com>
8481 Pushed by Joel Brobecker <brobecker@adacore.com>.
8482 * aarch64-tdep.c (aarch64_software_single_step): New function.
8483 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8484 with aarch64_software_single_step.
8486 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8490 2014-05-05 Keith Seitz <keiths@redhat.com>
8492 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8493 variable or history value is successfully parsed.
8495 2014-05-05 Yao Qi <yao@codesourcery.com>
8496 Pedro Alves <palves@redhat.com>
8498 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8499 address of blocks that intersects the requested range. Trim
8500 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8502 * ctf.c (ctf_xfer_partial): Likewise.
8504 2014-05-05 Yao Qi <yao@codesourcery.com>
8506 * printcmd.c (display_command): Remove the check to
8507 target_has_execution.
8509 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8511 * ppcobsd-nat.c: Include "obsd-nat.h".
8512 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8514 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8516 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8518 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8519 and 16-bit signed and unsigned arguments. Update comment.
8520 (stap_parse_probe_arguments): Extend code to handle such
8521 arguments. Use warning instead of complaint to notify about
8522 unrecognized bitness.
8524 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8526 PR breakpoints/16889
8527 * stap-probe.c (stap_parse_probe_arguments): Simplify
8528 check for non-prefixed probes (i.e., probes whose
8529 arguments do not start with "N@"). Always set the
8530 argument type to a sane value.
8532 2014-05-01 David Taylor <dtaylor@emc.com>
8534 * remote.c (compare_sections_command): Add -r option to compare
8535 all loadable read-only sections.
8537 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8539 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8540 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8542 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8543 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8544 Remove unused CORE_ADDR argument. Update all callers.
8546 2014-04-29 Pedro Alves <palves@redhat.com>
8548 * remote.c (struct packet_config) <detect>: Extend comment.
8549 (add_packet_config_cmd): Don't set the config's detect or support
8551 (init_all_packet_configs): Also initialize the config's 'detect'
8553 (reset_all_packet_configs_support): New function.
8554 (remote_open_1): Call reset_all_packet_configs_support instead of
8555 init_all_packet_configs.
8556 (_initialize_remote): Initialize all packet configs. Assert that
8557 all packets have an associated command, except a few known
8560 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8562 * dwarf2read.c (read_subrange_type): Handle dynamic
8563 DW_AT_lower_bound attributes.
8565 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8567 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8568 dynamic bounds before computing its upper bound.
8569 (ada_discrete_type_low_bound): Same as above with the lower bound.
8571 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8573 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8574 range types. Adjust the array handling implementation to
8575 take advantage of this change.
8576 (resolve_dynamic_range): New function, mostly extracted from
8577 resolve_dynamic_bounds.
8578 (resolve_dynamic_array): New function, mostly extracted from
8579 resolve_dynamic_bounds.
8580 (resolve_dynamic_bounds): Delete.
8581 (resolve_dynamic_type): Reimplement. Add handling of
8582 TYPE_CODE_RANGE types.
8584 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8586 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8587 handling of parallel ___XA types.
8589 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8591 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8592 unnecessary second call to static_unwrap_type.
8594 2014-04-27 Hui Zhu <hui@codesourcery.com>
8596 * stack.c (print_frame_info): Call do_gdb_disassembly with
8597 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8599 2014-04-26 Doug Evans <xdje42@gmail.com>
8601 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8603 2014-04-25 Pedro Alves <palves@redhat.com>
8606 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8607 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8608 and newline from built string.
8609 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8610 (linux_ptrace_attach_fail_reason): ... this.
8611 * linux-nat.c (linux_nat_attach): Adjust to use
8612 linux_ptrace_attach_fail_reason.
8614 2014-04-25 Pedro Alves <palves@redhat.com>
8616 * remote.c (struct remote_state): Remove multi_process_aware,
8617 non_stop_aware, cond_tracepoints, cond_breakpoints,
8618 breakpoint_commands, fast_tracepoints, static_tracepoints,
8619 install_in_trace, disconnected_tracing,
8620 enable_disable_tracepoints, string_tracing, and
8621 augmented_libraries_svr4_read fields.
8622 (remote_multi_process_p): Move further below in the file.
8623 (struct packet_config): Add comments.
8624 (update_packet_config): Delete function.
8625 (show_packet_config_cmd): Use packet_config_support.
8626 (add_packet_config_cmd): Use NULL as set callback.
8627 (packet_ok): "set remote foo-packet"-style commands no longer
8628 change config->supported -- adjust.
8629 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8630 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8631 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8632 (PACKET_QNonStop, PACKET_multiprocess_feature)
8633 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8634 (PACKET_DisconnectedTracing_feature)
8635 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8636 (set_remote_protocol_packet_cmd): Delete function.
8637 (packet_config_support, packet_support): New functions.
8638 (set_remote_protocol_Z_packet_cmd): Don't call
8639 update_packet_config.
8640 (remote_query_attached, remote_pass_signals)
8641 (remote_program_signals, remote_threads_info)
8642 (remote_threads_extra_info, remote_start_remote): Use
8644 (remote_start_remote): Use packet_config_support and
8646 (init_all_packet_configs): Set all packets to unknown support,
8647 instead of calling update_packet_config.
8648 (remote_check_symbols): Use packet_support.
8649 (remote_supported_packet): Unconditionally set the packet config's
8651 (remote_multi_process_feature, remote_non_stop_feature)
8652 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8653 (remote_breakpoint_commands_feature)
8654 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8655 (remote_install_in_trace_feature)
8656 (remote_disconnected_tracing_feature)
8657 (remote_enable_disable_tracepoint_feature)
8658 (remote_string_tracing_feature)
8659 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8660 (remote_protocol_features): Adjust to use remote_supported_packet
8661 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8662 "ConditionalTracepoints", "ConditionalBreakpoints",
8663 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8664 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8665 "EnableDisableTracepoints", and "tracenz".
8666 (remote_query_supported): Use packet_support.
8667 (remote_open_1): Adjust.
8668 (extended_remote_attach_1): Use packet_support. Switch on the
8669 result of packet_ok instead of checking whether the packet ended
8671 (remote_vcont_resume): Use packet_support.
8672 (remote_resume, remote_stop_ns, fetch_register_using_p)
8673 (remote_prepare_to_store, store_register_using_P)
8674 (check_binary_download, remote_write_bytes): Use packet_support.
8675 (remote_vkill): Use packet_support. Switch on the result of
8676 packet_ok instead of checking whether the packet ended up
8678 (extended_remote_supports_disable_randomization): Use
8680 (extended_remote_run): Switch on the result of packet_ok instead
8681 of checking whether the packet ended up disabled.
8682 (remote_insert_breakpoint, remote_remove_breakpoint)
8683 (remote_insert_watchpoint, remote_remove_watchpoint)
8684 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8686 (remote_search_memory): Use packet_config_support.
8687 (remote_get_thread_local_address, remote_get_tib_address)
8688 (remote_hostio_send_command, remote_can_execute_reverse): Use
8690 (remote_supports_cond_tracepoints)
8691 (remote_supports_cond_breakpoints)
8692 (remote_supports_fast_tracepoints)
8693 (remote_supports_static_tracepoints)
8694 (remote_supports_install_in_trace)
8695 (remote_supports_enable_disable_tracepoint)
8696 (remote_supports_string_tracing)
8697 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8698 the packet config says the feature is enabled or disabled.
8699 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8700 (remote_get_trace_status): Use packet_support.
8701 (remote_set_disconnected_tracing): Adjust to check whether the
8702 feature is enabled with packet_support.
8703 (remote_set_trace_buffer_size, remote_use_agent)
8704 (remote_can_use_agent, remote_supports_btrace): Use
8706 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8707 Use packet_config_support.
8708 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8709 the packet config says the feature is enabled or disabled.
8710 (set_range_stepping): Use packet_support.
8712 2014-04-25 Tom Tromey <tromey@redhat.com>
8714 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8717 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8719 * NEWS: Mention support for C99 variable length arrays.
8721 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8723 * ada-lang.c (standard_exc): Expand introductory comment.
8725 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8726 Walfred Tedeschi <walfred.tedeschi@intel.com>
8728 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8730 (amd64_linux_read_description): Add code to handle AVX512 xstate
8731 mask and return respective tdesc.
8732 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8733 and features/i386/x32-avx512-linux.c.
8734 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8735 (amd64_linux_core_read_description): Add code to handle AVX512
8736 xstate mask and return respective tdesc.
8737 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8738 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8740 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8741 (tdesc_amd64_avx512_linux): New prototype.
8742 (tdesc_x32_avx512_linux): Likewise.
8743 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8744 features/i386/x32-avx512.c.
8745 (amd64_ymm_avx512_names): New register names for pseudo
8747 (amd64_ymmh_avx512_names): New register names for raw registers
8749 (amd64_k_names): New register names for K registers.
8750 (amd64_zmmh_names): New register names for ZMM raw registers.
8751 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8752 (amd64_xmm_avx512_names): New register names for XMM16-31
8754 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8756 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8757 if feature is present.
8758 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8759 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8760 (AMD64_NUM_REGS): Adjust to new number of registers.
8761 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8762 registers supplied via XSTATE by AVX512 registers.
8763 (i386_linux_read_description): Add case for AVX512.
8764 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8765 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8766 (i386_linux_core_read_description): Add case for AVX512.
8767 (i386_linux_init_abi): Install supported register note section
8769 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8771 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8772 registers to be number of zmm7h + 1.
8773 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8774 * i386-tdep.c: Include features/i386/i386-avx512.c.
8775 (i386_zmm_names): Add ZMM pseudo register names array.
8776 (i386_zmmh_names): Add ZMM raw register names array.
8777 (i386_k_names): Add K raw register names array.
8778 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8779 registers. AVX512 has 16 more ZMM registers than there are YMM
8781 (i386_zmmh_regnum_p): Add function to look up register number of
8783 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8784 (i386_k_regnum_p): Likewise for K raw registers.
8785 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8786 registers added by AVX512.
8787 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8788 registers added by AVX512.
8789 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8791 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8792 (i386_pseudo_register_name): Add ZMM pseudo registers.
8793 (i386_zmm_type): Construct and return vector registers type for ZMM
8795 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8796 ZMM0-31 pseudo registers and K registers.
8797 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8798 and YMM16-31 registers from register cache.
8799 (i386_pseudo_register_write): Add code to write K, ZMM and
8801 (i386_register_reggroup_p): Add code to include/exclude AVX512
8802 registers in/from respective register groups.
8803 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8804 registers if feature is present in xcr0.
8805 (i386_gdbarch_init): Add code to initialize AVX512 feature
8806 variables in tdep structure, wire in pseudo registers and call
8807 initialize_tdesc_i386_avx512.
8808 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8810 (i386_regnum): Add AVX512 registers.
8811 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8812 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8813 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8814 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8816 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8817 (i386_ymm_avx512_regnum_p): Likewise.
8818 (i386_k_regnum_p): Likewise.
8819 (i386_zmm_regnum_p): Likewise.
8820 (i386_zmmh_regnum_p): Likewise.
8821 * i387-tdep.c : Update year in copyright notice.
8822 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8824 (XSAVE_YMM_AVX512_ADDR): New macro.
8825 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8827 (XSAVE_XMM_AVX512_ADDR): New macro.
8828 (xsave_avx512_k_offset): New table for K register offsets in
8830 (XSAVE_AVX512_K_ADDR): New macro.
8831 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8833 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8834 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8836 (i387_collect_xsave): Add code to collect AVX512 registers from
8838 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8839 of XMM16-31 registers.
8840 (I387_NUM_K_REGS): New define for number of K registers.
8841 (I387_K0_REGNUM): New define for K0 register number.
8842 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8843 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8844 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8846 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8847 (I387_XMM16_REGNUM): New define for XMM16 register number.
8848 (I387_YMM0_REGNUM): New define for YMM0 register number.
8849 (I387_KEND_REGNUM): New define for last K register number.
8850 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8851 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8853 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8855 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8857 * features/Makefile: Add AVX512 related files.
8858 * features/i386/32bit-avx512.xml: New file.
8859 * features/i386/64bit-avx512.xml: Likewise.
8860 * features/i386/amd64-avx512-linux.c: Likewise.
8861 * features/i386/amd64-avx512-linux.xml: Likewise.
8862 * features/i386/amd64-avx512.c: Likewise.
8863 * features/i386/amd64-avx512.xml: Likewise.
8864 * features/i386/i386-avx512-linux.c: Likewise.
8865 * features/i386/i386-avx512-linux.xml: Likewise.
8866 * features/i386/i386-avx512.c: Likewise.
8867 * features/i386/i386-avx512.xml: Likewise.
8868 * features/i386/x32-avx512-linux.c: Likewise.
8869 * features/i386/x32-avx512-linux.xml: Likewise.
8870 * features/i386/x32-avx512.c: Likewise.
8871 * features/i386/x32-avx512.xml: Likewise.
8872 * regformats/i386/amd64-avx512-linux.dat: New file.
8873 * regformats/i386/amd64-avx512.dat: Likewise.
8874 * regformats/i386/i386-avx512-linux.dat: Likewise.
8875 * regformats/i386/i386-avx512.dat: Likewise.
8876 * regformats/i386/x32-avx512-linux.dat: Likewise.
8877 * regformats/i386/x32-avx512.dat: Likewise.
8878 * NEWS: Add note about new support for AVX512.
8881 2014-04-23 Pedro Alves <palves@redhat.com>
8883 * breakpoint.c (insert_bp_location): Tolerate errors if the
8884 breakpoint is set in a user-loaded objfile.
8885 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8886 location is marked shlib_disabled. If the breakpoint is set in a
8887 user-loaded objfile is a GDB-side memory breakpoint, validate it
8888 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8889 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8891 * mem-break.c (memory_validate_breakpoint): New function.
8892 * objfiles.c (userloaded_objfile_contains_address_p): New
8894 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8895 * target.h (memory_validate_breakpoint): New declaration.
8897 2014-04-23 Pedro Alves <palves@redhat.com>
8899 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8900 the breakpoint is set in a shared library, only suppress
8901 errors for software breakpoints, not hardware breakpoints.
8903 2014-04-22 Pedro Alves <palves@redhat.com>
8905 * infrun.c (schedlock_applies): New function, factored out from
8906 find_thread_needs_step_over.
8907 (find_thread_needs_step_over): Use it.
8908 (switch_back_to_stepped_thread): Always clear trap_expected if the
8909 step over is finished. Return early if scheduler locking applies.
8910 Look for the stepping thread and a potential step-over thread with
8912 (currently_stepping_or_nexting_callback): Delete.
8914 2014-04-22 Nick Clifton <nickc@redhat.com>
8916 * NEWS: Mention that ARM sim now supports tracing.
8918 2014-04-22 Yao Qi <yao@codesourcery.com>
8920 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8922 * tracefile.c (tracefile_fetch_registers): ... it. New
8924 * tracefile.h (tracefile_fetch_registers): Declare.
8925 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8926 tracefile_fetch_registers.
8928 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8931 * windows-nat.c (thread_rec): Don't display a warning when
8932 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8933 fails for any reason, set th->suspended to -1, so that we don't
8934 try to resume such a thread. Also, don't return NULL in these
8935 cases, to avoid completely ruin the session due to "PC register is
8936 not available" error.
8937 (do_windows_fetch_inferior_registers): Check errors in
8938 GetThreadContext call.
8939 (windows_continue): Accept an additional argument KILLED; if not
8940 zero, ignore errors in the SetThreadContext call, since the
8941 inferior was killed and is shutting down.
8942 (windows_resume, get_windows_debug_event)
8943 (windows_create_inferior, windows_mourn_inferior)
8944 (windows_kill_inferior): All callers of windows_continue changed
8945 to adjust to its new calling sequence.
8947 2014-04-19 Yao Qi <yao@codesourcery.com>
8949 * ctf.c (ctf_open): Call post_create_inferior.
8951 2014-04-19 Yao Qi <yao@codesourcery.com>
8953 * ctf.c (handle_id): New static variable.
8954 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8955 value. Get the declaration of event "register" and get length
8956 of field "contents".
8958 2014-04-19 Yao Qi <yao@codesourcery.com>
8960 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8962 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8964 * valops.c (oload_method_static): Remove unnecessary argument
8965 METHOD. Update all callers.
8967 2014-04-18 Pedro alves <palves@redhat.com>
8968 Tom Tromey <tromey@redhat.com>
8971 * frame.c (get_prev_frame_1): Rename to ...
8972 (get_prev_frame_always): ... this, and make extern. Adjust.
8973 (skip_artificial_frames): Use get_prev_frame_always.
8974 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8975 (get_frame_unwind_stop_reason): Adjust to rename.
8976 * frame.h (get_prev_frame_always): Declare.
8977 * inline-frame.c: Include frame.h.
8978 (inline_frame_this_id): Use get_prev_frame_always.
8980 2014-04-18 Tristan Gingold <gingold@adacore.com>
8982 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8983 code by using bfd_mach_o_get_base_address.
8985 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8987 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8988 (spu_ax_pseudo_register_collect): New function.
8989 (spu_ax_pseudo_register_push_stack): Likewise.
8990 (spu_dwarf_reg_to_regnum): Likewise.
8991 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8993 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8995 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8996 Replace FRAME argument with FRAME_ID.
8997 * gdbarch.c, gdbarch.h: Regenerate.
8998 * findvar.c (default_value_from_register): Add GDBARCH argument;
8999 replace FRAME by FRAME_ID. No longer call get_frame_id.
9000 (value_from_register): Update call to gdbarch_value_from_register.
9001 * value.h (default_value_from_register): Update prototype.
9002 * s390-linux-tdep.c (s390_value_from_register): Update interface
9003 and call to default_value_from_register.
9004 * spu-tdep.c (spu_value_from_register): Likewise.
9006 * findvar.c (address_from_register): Remove TYPE argument.
9007 Do not call value_from_register; use gdbarch_value_from_register
9008 with null_frame_id instead.
9009 * value.h (address_from_register): Update prototype.
9010 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9011 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9012 address_from_register interface change.
9014 2014-04-17 Yao Qi <yao@codesourcery.com>
9016 * gdbtypes.h: Update comments to link to types and macros'
9019 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9021 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9023 2014-04-16 Keith Seitz <keiths@redhat.com>
9026 * dwarf2read.c (skip_one_die): Check that all relative-offset
9027 sibling DIEs fall within range of the current reader's buffer.
9028 (read_partial_die): Likewise.
9030 2014-04-16 Keith Seitz <keiths@redhat.com>
9033 * cp-namespace.c (lookup_symbol_file): If the type name of
9034 `this' is NULL, return immediately.
9036 2014-04-14 Keith Seitz <keiths@redhat.com>
9039 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9040 from symbol_matches_domain in symtab.c. All local callers
9041 of symbol_matches_domain updated.
9042 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9043 search STRUCT_DOMAIN.
9044 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9045 independently. standard_lookup will do that automatically.
9046 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9047 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9048 (cp_lookup_symbol_in_namespace): Likewise.
9049 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9050 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9051 may return a STRUCT_DOMAIN match.
9052 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9053 * cp-support.c: Include language.h.
9054 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9056 * psymtab.c (match_partial_symbol): Compare the requested
9057 domain with the symbol's domain directly.
9058 (lookup_partial_symbol): Likewise.
9059 * symtab.c (lookup_symbol_in_language): Explain when/why
9060 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9061 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9062 appropriate languages.
9063 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9064 and moved to ada-lang.c
9065 (lookup_block_symbol): Explain that this function only returns
9066 symbol matching the requested DOMAIN.
9067 Compare the requested domain with the symbol's domain directly.
9068 (iterate_over_symbols): Compare the requested domain with the
9069 symbol's domain directly.
9070 * symtab.h (symbol_matches_domain): Remove.
9072 2014-04-14 Tom Tromey <tromey@redhat.com>
9075 * c-exp.y (type_aggregate_p): New function.
9076 (qualified_name, classify_inner_name): Use it.
9077 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9078 and TYPE_TARGET_TYPE of an enum type.
9079 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9081 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9082 handle TYPE_DECLARED_CLASS.
9083 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9085 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9086 * valops.c (enum_constant_from_type): New function.
9087 (value_aggregate_elt): Use it.
9088 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9091 2014-04-14 Tom Tromey <tromey@redhat.com>
9093 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9094 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9096 * value.h (value_aggregate_elt): Update.
9098 2014-04-14 Tom Tromey <tromey@redhat.com>
9100 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9102 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9104 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9105 (evaluate_subexp_standard): Pass noside argument.
9106 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9107 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9108 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9109 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9110 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9112 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9114 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9115 points to a constant blob.
9117 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9119 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9120 property and store it as the high bound and flag the range accordingly.
9121 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9122 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9123 * gdbtypes.h (enum range_flags): New enum.
9124 (struct range_bounds): Add flags member.
9126 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9128 * c-typeprint.c (c_type_print_varspec_suffix): Added
9129 check for not yet resolved high bound. If unresolved, print
9130 "variable length" string to the console instead of random
9133 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9135 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9137 (ada_template_to_fixed_record_type_1): Likewise.
9138 (ada_to_fixed_type_1): Likewise.
9139 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9140 (cp_print_value): Likewise.
9141 * d-valprint.c (dynamic_array_type): Likewise.
9142 * findvar.c (address_of_variable): Likewise.
9143 * jv-valprint.c (java_value_print): Likewise.
9144 * valops.c (value_ind): Likewise.
9145 * value.c (coerce_ref): Likewise.
9147 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9149 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9150 value and retrieve the dynamic type size.
9152 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9154 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9155 passed to sizeof is dynamic evaluate the argument to compute the length.
9157 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9158 Joel Brobecker <brobecker@adacore.com>
9160 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9161 (dwarf2_evaluate_property): New function.
9162 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9163 * dwarf2read.c (attr_to_dynamic_prop): New function.
9164 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9166 * gdbtypes.c: Include dwarf2loc.h.
9167 (is_dynamic_type): New function.
9168 (resolve_dynamic_type): New function.
9169 (resolve_dynamic_bounds): New function.
9170 (get_type_length): New function.
9171 (check_typedef): Use get_type_length to compute type length.
9172 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9173 (TYPE_LOW_BOUND_KIND): New macro.
9174 (is_dynamic_type): New function prototype.
9175 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9176 to resolve dynamic properties of the type. Update comment.
9177 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9179 2014-04-14 Richard Henderson <rth@redhat.com>
9181 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9183 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9184 Doug Evans <xdje42@gmail.com>
9186 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9187 dereference TYPE_CODE_REF values.
9189 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9191 Revert the following changes due to regressions:
9193 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9194 (dwarf2_evaluate_property): New function.
9195 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9196 * dwarf2read.c (attr_to_dynamic_prop): New function.
9197 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9199 * gdbtypes.c: Include dwarf2loc.h.
9200 (is_dynamic_type): New function.
9201 (resolve_dynamic_type): New function.
9202 (resolve_dynamic_bounds): New function.
9203 (get_type_length): New function.
9204 (check_typedef): Use get_type_length to compute type length.
9205 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9206 (TYPE_LOW_BOUND_KIND): New macro.
9207 (is_dynamic_type): New function prototype.
9208 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9209 to resolve dynamic properties of the type. Update comment.
9210 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9212 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9213 passed to sizeof is dynamic evaluate the argument to compute the length.
9215 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9216 value and retrieve the dynamic type size.
9218 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9219 (ada_template_to_fixed_record_type_1): Likewise.
9220 (ada_to_fixed_type_1): Likewise.
9221 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9222 (cp_print_value): Likewise.
9223 * d-valprint.c (dynamic_array_type): Likewise.
9224 * eval.c (evaluate_subexp_with_coercion): Likewise.
9225 * findvar.c (address_of_variable): Likewise.
9226 * jv-valprint.c (java_value_print): Likewise.
9227 * valops.c (value_ind): Likewise.
9228 * value.c (coerce_ref): Likewise.
9230 * c-typeprint.c (c_type_print_varspec_suffix): Added
9231 check for not yet resolved high bound. If unresolved, print
9232 "variable length" string to the console instead of random
9235 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9236 property and store it as the high bound and flag the range accordingly.
9237 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9238 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9239 * gdbtypes.h (enum range_flags): New enum.
9240 (struct range_bounds): Add flags member.
9242 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9243 points to a constant blob.
9245 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9246 (evaluate_subexp_standard): Pass noside argument.
9247 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9248 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9249 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9250 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9251 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9253 2014-04-11 Keith Seitz <keiths@redhat.com>
9256 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9257 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9260 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9262 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9263 (evaluate_subexp_standard): Pass noside argument.
9264 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9265 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9266 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9267 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9268 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9270 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9272 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9273 points to a constant blob.
9275 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9277 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9278 property and store it as the high bound and flag the range accordingly.
9279 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9280 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9281 * gdbtypes.h (enum range_flags): New enum.
9282 (struct range_bounds): Add flags member.
9284 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9286 * c-typeprint.c (c_type_print_varspec_suffix): Added
9287 check for not yet resolved high bound. If unresolved, print
9288 "variable length" string to the console instead of random
9291 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9293 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9294 (ada_template_to_fixed_record_type_1): Likewise.
9295 (ada_to_fixed_type_1): Likewise.
9296 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9297 (cp_print_value): Likewise.
9298 * d-valprint.c (dynamic_array_type): Likewise.
9299 * eval.c (evaluate_subexp_with_coercion): Likewise.
9300 * findvar.c (address_of_variable): Likewise.
9301 * jv-valprint.c (java_value_print): Likewise.
9302 * valops.c (value_ind): Likewise.
9303 * value.c (coerce_ref): Likewise.
9305 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9307 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9308 value and retrieve the dynamic type size.
9310 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9312 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9313 passed to sizeof is dynamic evaluate the argument to compute the length.
9315 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9317 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9318 (dwarf2_evaluate_property): New function.
9319 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9320 * dwarf2read.c (attr_to_dynamic_prop): New function.
9321 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9323 * gdbtypes.c: Include dwarf2loc.h.
9324 (is_dynamic_type): New function.
9325 (resolve_dynamic_type): New function.
9326 (resolve_dynamic_bounds): New function.
9327 (get_type_length): New function.
9328 (check_typedef): Use get_type_length to compute type length.
9329 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9330 (TYPE_LOW_BOUND_KIND): New macro.
9331 (is_dynamic_type): New function prototype.
9332 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9333 to resolve dynamic properties of the type. Update comment.
9334 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9336 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9338 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9339 declaring high/low bounds and change uses accordingly. Call
9340 create_range_type instead of create_static_range_type.
9341 * gdbtypes.c (create_range_type): New function.
9342 (create_range_type): Convert bounds into struct bound_prop and pass
9343 them to create_range_type.
9344 * gdbtypes.h (struct bound_prop): New struct.
9345 (create_range_type): New function prototype.
9346 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9347 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9348 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9350 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9352 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9354 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9355 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9356 * ada-lang.c: All uses of create_range_type updated.
9357 * coffread.c: All uses of create_range_type updated.
9358 * dwarf2read.c: All uses of create_range_type updated.
9359 * f-exp.y: All uses of create_range_type updated.
9360 * m2-valprint.c: All uses of create_range_type updated.
9361 * mdebugread.c: All uses of create_range_type updated.
9362 * stabsread.c: All uses of create_range_type updated.
9363 * valops.c: All uses of create_range_type updated.
9364 * valprint.c: All uses of create_range_type updated.
9366 2014-04-10 Pedro Alves <palves@redhat.com>
9368 * breakpoint.c (single_step_breakpoints)
9369 (single_step_gdbarch): Move up in the file.
9370 (one_breakpoint_xfer_memory): New function, factored out from ...
9371 (breakpoint_xfer_memory): ... here. Also process single-step
9374 2014-04-09 Tristan Gingold <gingold@adacore.com>
9376 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9378 (darwin_decode_exception_message): Free port only after use.
9380 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9382 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9383 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9384 when setting the size of call_length.
9386 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9388 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9389 dereference TYPE_CODE_REF values.
9391 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9393 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9394 end of warning message.
9396 2014-04-03 Doug Evans <dje@google.com>
9398 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9399 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9401 2014-04-02 Alan Modra <amodra@gmail.com>
9403 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9404 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9405 (struct symbol_file_add_from_memory_args): Add size field.
9406 (find_vdso_size): New function.
9407 (add_vsyscall_page): Attempt to find vdso size.
9409 2014-04-01 Doug Evans <dje@google.com>
9411 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9413 2014-04-01 Tristan Gingold <gingold@adacore.com>
9415 * darwin-nat.c (darwin_encode_reply): Add prototype.
9416 (darwin_decode_exception_message): Reply to unknown inferiors.
9417 (darwin_decode_message): Handle message by id. Ignore message
9418 to unknown inferior.
9419 (darwin_wait): Discard unknown messages, add debug trace.
9421 2014-03-31 Doug Evans <dje@google.com>
9423 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9426 2014-03-31 Doug Evans <dje@google.com>
9428 New option "set print symbol-loading".
9430 * solib.c (solib_read_symbols): Only print symbol loading messages
9432 (solib_add): If symbol loading is in "brief" mode, notify user
9433 symbols are being loaded.
9434 (reload_shared_libraries_1): Ditto.
9435 * symfile.c (print_symbol_loading_off): New static global.
9436 (print_symbol_loading_brief): New static global.
9437 (print_symbol_loading_full): New static global.
9438 (print_symbol_loading_enums): New static global.
9439 (print_symbol_loading): New static global.
9440 (print_symbol_loading_p): New function.
9441 (symbol_file_add_with_addrs): Only print symbol loading messages
9443 (_initialize_symfile): Register "print symbol-loading" set/show
9445 * symfile.h (print_symbol_loading_p): Declare.
9447 2014-03-30 Doug Evans <xdje42@gmail.com>
9449 * infrun.c (set_last_target_status): New function.
9450 (handle_inferior_event): Call it.
9452 2014-03-30 Doug Evans <xdje42@gmail.com>
9454 * inferior.h (enum stop_kind): Improve comment.
9456 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9458 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9459 a reference, strip the reference layer before calling
9460 the lang_ops value_has_mutated callback.
9462 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9464 Remove some globals from our parser.
9465 * language.c (unk_lang_parser): Add "struct parser_state"
9467 * language.h (struct language_defn) <la_parser>: Likewise.
9468 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9469 (initialize_expout): Add "struct parser_state" argument.
9470 Rewrite function to use the parser state.
9471 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9472 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9473 write_exp_elt_longcst, write_exp_elt_dblcst,
9474 write_exp_elt_decfloatcst, write_exp_elt_type,
9475 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9476 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9477 write_dollar_variable): Likewise.
9478 (parse_exp_in_context_1): Use parser state.
9479 (insert_type_address_space): Add "struct parser_state" argument.
9481 (increase_expout_size): New function.
9482 * parser-defs.h: Forward declare "struct language_defn" and
9483 "struct parser_state".
9484 (expout, expout_size, expout_ptr): Remove extern declarations.
9485 (parse_gdbarch, parse_language): Rewrite macro declarations to
9486 accept the parser state.
9487 (struct parser_state): New struct.
9488 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9489 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9490 write_exp_elt_decfloatcst, write_exp_elt_type,
9491 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9492 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9493 write_exp_msymbol, write_dollar_variable,
9494 mark_struct_expression, insert_type_address_space): Add "struct
9495 parser_state" argument.
9496 (increase_expout_size): New function.
9497 * utils.c (do_clear_parser_state): New function.
9498 (make_cleanup_clear_parser_state): Likewise.
9499 * utils.h (make_cleanup_clear_parser_state): New function
9501 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9502 Update calls to write_exp* in order to pass the parser state.
9503 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9504 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9505 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9506 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9507 * stap-probe.c (stap_parse_register_operand): Likewise.
9508 (stap_parse_single_operand): Likewise.
9509 (stap_parse_argument_1): Likewise.
9510 (stap_parse_argument): Use parser state.
9511 * stap-probe.h: Include "parser-defs.h".
9512 (struct stap_parse_info) <pstate>: New field.
9513 * c-exp.y (parse_type): Rewrite to use parser state.
9514 (yyparse): Redefine to c_parse_internal.
9515 (pstate): New global variable.
9516 (parse_number): Add "struct parser_state" argument.
9517 (write_destructor_name): Likewise.
9518 (type_exp): Update calls to write_exp* and similars in order to
9520 (exp1, exp, variable, qualified_name, space_identifier,
9521 typename, typebase): Likewise.
9522 (write_destructor_name, parse_number, lex_one_token,
9523 classify_name, classify_inner_name, c_parse): Add "struct
9524 parser_state" argument. Update function to use parser state.
9525 * c-lang.h: Forward declare "struct parser_state".
9526 (c_parse): Add "struct parser_state" argument.
9527 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9528 (yyparse): Redefine macro to ada_parse_internal.
9529 (pstate): New variable.
9530 (write_int, write_object_renaming, write_var_or_type,
9531 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9532 type_int, type_long, type_long_long, type_float, type_double,
9533 type_long_double, type_char, type_boolean, type_system_address):
9534 Add "struct parser_state" argument.
9535 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9536 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9537 var_or_type, aggregate, aggregate_component_list,
9538 positional_list, others, component_group,
9539 component_associations): Update calls to write_exp* and similar
9540 functions in order to use parser state.
9541 (ada_parse, write_var_from_sym, write_int,
9542 write_exp_op_with_string, write_object_renaming,
9543 find_primitive_type, write_selectors, write_ambiguous_var,
9544 write_var_or_type, write_name_assoc, type_int, type_long,
9545 type_long_long, type_float, type_double, type_long_double,
9546 type_char, type_boolean, type_system_address): Add "struct
9547 parser_state" argument. Adjust function to use parser state.
9548 * ada-lang.c (parse): Likewise.
9549 * ada-lang.h: Forward declare "struct parser_state".
9550 (ada_parse): Add "struct parser_state" argument.
9551 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9552 calls to both functions.
9553 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9555 (yyparse): Redefine macro to f_parse_internal.
9556 (pstate): New variable.
9557 (parse_number): Add "struct parser_state" argument.
9558 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9559 and similars in order to use parser state.
9560 (parse_number): Adjust code to use parser state.
9562 (f_parse): New function.
9563 * f-lang.h: Forward declare "struct parser_state".
9564 (f_parse): Add "struct parser_state" argument.
9565 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9567 (yyparse): Redefine macro for java_parse_internal.
9568 (pstate): New variable.
9569 (push_expression_name, push_expression_name, insert_exp): Add
9570 "struct parser_state" argument.
9571 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9572 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9573 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9574 PostIncrementExpression, PostDecrementExpression,
9575 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9576 UnaryExpressionNotPlusMinus, CastExpression,
9577 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9578 RelationalExpression, EqualityExpression, AndExpression,
9579 ExclusiveOrExpression, InclusiveOrExpression,
9580 ConditionalAndExpression, ConditionalOrExpression,
9581 ConditionalExpression, Assignment, LeftHandSide): Update
9582 calls to write_exp* and similars in order to use parser state.
9583 (parse_number): Ajust code to use parser state.
9585 (java_parse): New function.
9586 (push_variable): Add "struct parser_state" argument. Adjust
9587 code to user parser state.
9588 (push_fieldnames, push_qualified_expression_name,
9589 push_expression_name, insert_exp): Likewise.
9590 * jv-lang.h: Forward declare "struct parser_state".
9591 (java_parse): Add "struct parser_state" argument.
9592 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9594 (yyparse): Redefine macro to m2_parse_internal.
9595 (pstate): New variable.
9596 (type_exp, exp, fblock, variable, type): Update calls to
9597 write_exp* and similars to use parser state.
9599 (m2_parse): New function.
9600 * m2-lang.h: Forward declare "struct parser_state".
9601 (m2_parse): Add "struct parser_state" argument.
9602 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9603 * objc-lang.h: Forward declare "struct parser_state".
9604 (end_msglist): Add "struct parser_state" argument.
9605 * p-exp.y (parse_type): Rewrite macro to use parser state.
9606 (yyparse): Redefine macro to pascal_parse_internal.
9607 (pstate): New variable.
9608 (parse_number): Add "struct parser_state" argument.
9609 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9610 write_exp* and similars in order to use parser state.
9611 (parse_number, yylex): Adjust code to use parser state.
9612 (pascal_parse): New function.
9613 * p-lang.h: Forward declare "struct parser_state".
9614 (pascal_parse): Add "struct parser_state" argument.
9615 * go-exp.y (parse_type): Rewrite macro to use parser state.
9616 (yyparse): Redefine macro to go_parse_internal.
9617 (pstate): New variable.
9618 (parse_number): Add "struct parser_state" argument.
9619 (type_exp, exp1, exp, variable, type): Update calls to
9620 write_exp* and similars in order to use parser state.
9621 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9622 to use parser state.
9623 (go_parse): Likewise.
9624 * go-lang.h: Forward declare "struct parser_state".
9625 (go_parse): Add "struct parser_state" argument.
9627 2014-03-27 Doug Evans <dje@google.com>
9629 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9631 2014-03-27 Doug Evans <dje@google.com>
9633 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9634 Remove argument abbrev_section. All callers updated.
9636 2014-03-27 Doug Evans <dje@google.com>
9638 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9639 addr_base, ranges_base.
9641 2014-03-26 Keith Seitz <keiths@redhat.com>
9643 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9644 types, not VAR_DOMAIN.
9646 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9648 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9650 * features/nios2-linux.c: Regenerated.
9651 * features/nios2.c: Regenerated.
9653 2014-03-25 Pedro Alves <palves@redhat.com>
9655 * cli/cli-script.c (script_from_file): Force the interpreter to
9658 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9660 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9661 small stack allocation.
9663 2014-03-24 Tristan Gingold <gingold@adacore.com>
9665 * darwin-nat.c (exc_server): Remove unused prototype.
9666 (darwin_dump_message): Correctly display data on x86_64.
9667 (darwin_encode_reply): Fix style.
9668 Add comments and fix indentation.
9670 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9672 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9674 2014-03-22 Doug Evans <xdje42@gmail.com>
9676 * infcmd.c: Whitespace fixes.
9677 (interrupt_command): Merge two function comments into one.
9679 2014-03-22 Doug Evans <xdje42@gmail.com>
9681 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9684 2014-03-22 Yao Qi <yao@codesourcery.com>
9686 * remote.c (target_read_live_memory): Remove.
9687 (memory_xfer_live_readonly_partial): Rename it to
9688 remote_xfer_live_readonly_partial. Remove argument 'object'.
9689 All callers updated. Call remote_read_bytes_1
9690 instead of target_read_live_memory.
9691 * tracepoint.c (set_traceframe_number): Remove.
9692 (make_cleanup_restore_traceframe_number): Likewise .
9693 * tracepoint.h (set_traceframe_number): Remove declaration.
9694 (make_cleanup_restore_traceframe_number): Likewise.
9696 2014-03-22 Yao Qi <yao@codesourcery.com>
9698 * remote.c (remote_read_bytes): Move code on reading from the
9700 (remote_read_bytes_1): ... here. New function.
9702 2014-03-22 Yao Qi <yao@codesourcery.com>
9704 * ctf.c (ctf_xfer_partial): Check the return value of
9705 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9706 return TARGET_XFER_UNAVAILABLE.
9707 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9708 * target.c (target_read_live_memory): Move it to remote.c.
9709 (memory_xfer_live_readonly_partial): Likewise.
9710 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9711 * remote.c (target_read_live_memory): Moved from target.c.
9712 (memory_xfer_live_readonly_partial): Likewise.
9713 (remote_read_bytes): Factored out from
9714 memory_xfer_partial_1.
9716 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9718 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9721 2014-03-21 Pedro Alves <palves@redhat.com>
9723 * infrun.c (normal_stop): Extend comment.
9725 2014-03-21 Hui Zhu <hui@codesourcery.com>
9726 Pedro Alves <palves@redhat.com>
9728 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9730 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9731 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9732 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9734 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9736 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9737 `z' formatted output modifier.
9739 2014-03-20 Tom Tromey <tromey@redhat.com>
9740 Sergio Durigan Junior <sergiodj@redhat.com>
9742 * probe.c (parse_probes): Turn assert into an ordinary error.
9743 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9744 exceptions when parsing probes. Rearrange the code for clarity.
9746 2014-03-20 Tom Tromey <tromey@redhat.com>
9749 * top.c (execute_command): Only dispatch events if the command
9752 2014-03-20 Tom Tromey <tromey@redhat.com>
9755 * infcall.c: Include event-top.h.
9756 (run_inferior_call): Call async_disable_stdin if needed.
9758 2014-03-20 Pedro Alves <palves@redhat.com>
9760 * infrun.c (prepare_to_proceed): Delete.
9761 (thread_still_needs_step_over): New function.
9762 (find_thread_needs_step_over): New function.
9763 (proceed): If the current thread needs a step-over, set its
9764 steping_over_breakpoint flag. Adjust to use
9765 find_thread_needs_step_over instead of prepare_to_proceed.
9766 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9767 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9769 (switch_back_to_stepped_thread): Step over breakpoints of all
9770 threads not the stepping thread, before switching back to the
9773 2014-03-20 Pedro Alves <palves@redhat.com>
9775 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9777 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9778 * infrun.c (saved_singlestep_ptid)
9779 (stepping_past_singlestep_breakpoint): Delete.
9780 (resume): Remove stepping_past_singlestep_breakpoint handling.
9781 (proceed): Store the prev_pc of the stepping thread too.
9782 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9784 (enum infwait_states): Delete infwait_thread_hop_state.
9785 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9787 (handle_inferior_event): Adjust.
9788 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9789 handling and the thread-hop code. Before removing single-step
9790 breakpoints, check whether the thread hit a single-step breakpoint
9791 of another thread. If it did, the trap is not a random signal.
9792 (switch_back_to_stepped_thread): If the event thread hit a
9793 single-step breakpoint, unblock it before switching to the
9794 stepping thread. Handle the case of the stepped thread having
9796 (keep_going): Handle the case of the current thread moving past a
9797 single-step breakpoint.
9799 2014-03-20 Pedro Alves <palves@redhat.com>
9802 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9803 are being stepped over.
9804 (breakpoint_address_match): Make extern.
9805 * breakpoint.h (breakpoint_address_match): New declaration.
9806 * inferior.h (stepping_past_instruction_at): New declaration.
9807 * infrun.c (struct step_over_info): New type.
9808 (step_over_info): New global.
9809 (set_step_over_info, clear_step_over_info)
9810 (stepping_past_instruction_at): New functions.
9811 (handle_inferior_event): Clear the step-over info when
9812 trap_expected is cleared.
9813 (resume): Remove now stale comment.
9814 (clear_proceed_status): Clear step-over info.
9815 (proceed): Adjust step-over handling to set or clear the step-over
9816 info instead of removing all breakpoints.
9817 (handle_signal_stop): When setting up a thread-hop, don't remove
9819 (stop_stepping): Clear step-over info.
9820 (keep_going): Adjust step-over handling to set or clear step-over
9821 info and then always inserting breakpoints, instead of removing
9822 all breakpoints when stepping over one.
9824 2014-03-20 Pedro Alves <palves@redhat.com>
9826 * infrun.c (previous_inferior_ptid): Adjust comment.
9827 (deferred_step_ptid): Delete.
9828 (infrun_thread_ptid_changed, prepare_to_proceed)
9829 (init_wait_for_inferior): Adjust.
9830 (handle_signal_stop): Delete deferred_step_ptid handling.
9832 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9835 * defs.h (sync_quit_force_run): New declaration.
9836 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9837 * event-top.c (async_sigterm_handler): New declaration.
9838 (async_sigterm_token): New variable.
9839 (async_init_signals): Create also async_sigterm_token.
9840 (async_sigterm_handler): New function.
9841 (sync_quit_force_run): New variable.
9842 (handle_sigterm): Replace quit_force call by other calls.
9843 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9845 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9847 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9848 offset into SPE pseudo registers.
9850 2014-03-18 Pedro Alves <palves@redhat.com>
9853 * inferior.h (print_stop_event): Declare.
9854 * infrun.c (print_stop_event): New, factored out from ...
9855 (normal_stop): ... this.
9856 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9857 of bpstat_print/print_stack_frame.
9859 2014-03-17 Tom Tromey <tromey@redhat.com>
9861 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9863 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9865 * ada-lang.c (decode_constrained_packed_array): Perform a
9866 minimal coercion for reference with coerce_ref instead of
9869 2014-03-17 Tristan Gingold <gingold@adacore.com>
9871 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9872 (darwin_solib_create_inferior_hook): Emit a warning if version
9875 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9877 * python/py-value.c (get_field_flag): Cast flag_name argument to
9878 PyObject_GetAttrString to support Python 2.4.
9880 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9882 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9883 (Global Maintainers): Remove Jan Kratochvil.
9885 2014-03-14 Pedro Alves <palves@redhat.com>
9887 * inferior.h (terminal_ours_for_output): Rename to ...
9888 (child_terminal_ours_for_output): ... this.
9889 (terminal_save_ours): Rename to ...
9890 (child_terminal_save_ours): ... this.
9891 (terminal_ours): Rename to ...
9892 (child_terminal_ours): ... this.
9893 (terminal_inferior): Rename to ...
9894 (child_terminal_inferior): ... this.
9895 (terminal_init_inferior): Rename to ...
9896 (child_terminal_init_inferior): ... this.
9897 (terminal_init_inferior_with_pgrp): Rename to ...
9898 (child_terminal_init_inferior_with_pgrp): ... this.
9899 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9900 (child_terminal_init_with_pgrp): ... this.
9901 (terminal_save_ours): Rename to ...
9902 (child_terminal_save_ours): ... this.
9903 (terminal_init_inferior): Rename to ...
9904 (child_terminal_init): ... this. Adjust.
9905 (terminal_inferior): Rename to ...
9906 (child_terminal_inferior): ... this.
9907 (terminal_ours_for_output): Rename to ...
9908 (child_terminal_ours_for_output): ... this. Adjust.
9909 (terminal_ours): Rename to ...
9910 (child_terminal_ours): ... this.
9911 (terminal_ours_1): Rename to ...
9912 (child_terminal_ours_1): ... this. Adjust.
9913 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9914 * windows-nat.c (do_initial_windows_stuff): Adjust.
9915 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9916 (gnu_terminal_init): ... this. Adjust.
9917 (gnu_target): Adjust.
9918 * inf-child.c (inf_child_target): Adjust.
9920 2014-03-13 Doug Evans <xdje42@gmail.com>
9923 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9926 2014-03-13 Doug Evans <xdje42@gmail.com>
9928 * value.c (record_latest_value): Call release_value_or_incref
9929 instead of release_value.
9931 2014-03-13 Pedro Alves <palves@redhat.com>
9933 * procfs.c (procfs_target): Don't override to_shortname,
9934 to_longname or to_doc.
9936 2014-03-13 Pedro Alves <palves@redhat.com>
9938 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9939 Unix in user visible strings.
9941 2014-03-12 Stan Shebs <stan@codesourcery.com>
9943 * gdbtypes.h: Annotate comments for Doxygen, add a page
9944 block comment with some general info.
9946 2014-03-12 Pedro Alves <palves@redhat.com>
9948 * infcmd.c (prepare_execution_command): New function, factored out
9949 from several execution commands.
9950 (run_command_1, continue_command, step_1, jump_command)
9951 (signal_command, until_command, advance_command, finish_command)
9952 (attach_command): Use prepare_execution_command.
9954 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9956 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9959 (struct arm_linux_thread_points): Removed.
9960 (struct arm_linux_process_info): New.
9961 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9962 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9963 (arm_linux_find_breakpoints_by_tid): Removed.
9964 (struct arch_lwp_info): New.
9965 (arm_linux_find_process_pid): New functions.
9966 (arm_linux_add_process): New functions.
9967 (arm_linux_process_info_get): New functions.
9968 (arm_linux_forget_process): New function.
9969 (arm_linux_get_debug_reg_state): New function.
9970 (struct update_registers_data): New.
9971 (update_registers_callback): New function.
9972 (arm_linux_insert_hw_breakpoint1): Updated.
9973 (arm_linux_remove_hw_breakpoint1): Updated.
9974 (arm_linux_insert_hw_breakpoint): Updated.
9975 (arm_linux_remove_hw_breakpoint): Updated.
9976 (arm_linux_insert_watchpoint): Updated.
9977 (arm_linux_remove_watchpoint): Updated.
9978 (arm_linux_new_thread): Updated.
9979 (arm_linux_prepare_to_resume): New function.
9980 (arm_linux_new_fork): New function.
9981 (_initialize_arm_linux_nat): Updated.
9983 2014-03-12 Pedro Alves <palves@redhat.com>
9985 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9987 2014-03-12 Tom Tromey <tromey@redhat.com>
9989 * inf-child.c (return_zero): New function.
9990 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9991 * aix-thread.c (aix_thread_inferior_created): New function.
9992 (aix_thread_attach): Remove.
9993 (init_aix_thread_ops): Don't set to_attach.
9994 (_initialize_aix_thread): Register inferior_created observer.
9995 * corelow.c (init_core_ops): Don't set to_attach or
9997 * exec.c (init_exec_ops): Don't set to_attach or
9999 * infcmd.c (run_command_1): Use find_run_target. Make direct
10001 (attach_command): Use find_attach_target. Make direct target
10003 * record-btrace.c (init_record_btrace_ops): Don't set
10004 to_create_inferior.
10005 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10007 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10008 set to_create_inferior.
10009 * target.c (complete_target_initialization): Add assertion.
10010 (target_create_inferior): Remove.
10011 (find_default_attach, find_default_create_inferior): Remove.
10012 (find_attach_target, find_run_target): New functions.
10013 (find_default_is_async_p, find_default_can_async_p)
10014 (target_supports_non_stop, target_attach): Remove.
10015 (init_dummy_target): Don't set to_create_inferior or
10016 to_supports_non_stop.
10017 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10018 TARGET_DEFAULT_FUNC.
10019 <to_create_inferior>: Add comment.
10020 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10021 TARGET_DEFAULT_RETURN.
10022 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10023 (find_attach_target, find_run_target): Declare.
10024 (target_create_inferior): Remove.
10025 (target_has_execution_1): Update comment.
10026 (target_supports_non_stop): Remove.
10027 * target-delegates.c: Rebuild.
10029 2014-03-12 Pedro Alves <palves@redhat.com>
10031 * inf-child.h: Update comment to not mention Unix.
10033 2014-03-12 Pedro Alves <palves@redhat.com>
10035 * inf-child.c: Update top comment to not mention Unix. Add
10036 generic comment describing how this target is meant to be used.
10037 (inf_child_post_attach, inf_child_post_startup_inferior)
10038 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10041 2014-03-12 Pedro Alves <palves@redhat.com>
10043 * nto-procfs.c: Include inf-child.h.
10044 (procfs_ops): Delete global.
10045 (procfs_can_run): Delete method.
10046 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10047 target pointer instead of referencing procfs_ops.
10048 (procfs_prepare_to_store): Delete.
10049 (init_procfs_ops): Delete function.
10050 (procfs_target): New function, based on init_procfs_ops, but
10051 inherit inf_child_target.
10052 (_initialize_procfs): Use procfs_target.
10054 2014-03-12 Pedro Alves <palves@redhat.com>
10056 * windows-nat.c: Include inf-child.h.
10057 (windows_ops): Delete global.
10058 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10060 (init_windows_ops): Delete function.
10061 (windows_target): New function, based on init_windows_ops, but
10062 inherit inf_child_target.
10063 (_initialize_windows_nat): Use windows_target. Install x86
10064 specific target methods here.
10066 2014-03-10 Doug Evans <xdje42@gmail.com>
10068 * guile/guile.c (call_initialize_gdb_module): New function.
10069 (initialize_guile): Replace call to scm_init_guile with call to
10072 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10074 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10075 in call to TYPE_CODE macro.
10077 2014-03-10 Jerome Guitton <guitton@adacore.com>
10079 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10080 Resolve tagged types to full view.
10082 2014-03-10 Hui Zhu <hui@codesourcery.com>
10084 * target.h (target_insert_breakpoint): Remove "hardware" from its
10087 2014-03-07 Doug Evans <dje@google.com>
10089 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10091 2014-03-07 Doug Evans <dje@google.com>
10093 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10094 Remove unused local comp_dir_attr. Assert exactly one of
10095 stub_comp_unit_die, stub_comp_dir is non-NULL.
10097 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10099 * target.h (complete_target_initialization, add_target):
10102 2014-03-07 Pedro Alves <palves@redhat.com>
10104 * go32-nat.c: Include inf-child.h.
10105 (go32_ops): Delete global.
10106 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10108 (go32_create_inferior): Push the passed in target pointer instead
10109 of referencing go32_ops.
10110 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10111 (go32_target): New function, based on init_go32_ops, but inherit
10113 (_initialize_go32_nat): Use go32_target. Move parts of
10114 init_go32_ops here.
10116 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10118 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10119 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10120 SYMBOL_VALUE_ADDRESS.
10121 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10123 2014-03-06 Yao Qi <yao@codesourcery.com>
10125 * breakpoint.c (get_tracepoint_by_number): Remove argument
10126 optional_p. All callers updated. Adjust comments. Update
10128 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10130 2014-03-06 Yao Qi <yao@codesourcery.com>
10132 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10133 early if get_number returns zero. Use 'p' instead of 'args'.
10135 2014-03-06 Yao Qi <yao@codesourcery.com>
10137 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10140 2014-03-06 Yao Qi <yao@codesourcery.com>
10142 PR breakpoints/16508
10143 * tracepoint.c (check_trace_running): New function.
10144 (trace_find_command): Move code to check_trace_running and
10145 call check_trace_running.
10146 (trace_find_pc_command): Likewise.
10147 (trace_find_tracepoint_command): Likewise.
10148 (trace_find_line_command): Likewise.
10149 (trace_find_range_command): Likewise.
10150 * tracepoint.h (check_trace_running): Likewise.
10151 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10153 2014-03-06 Yao Qi <yao@codesourcery.com>
10155 * target.h (struct target_ops) <to_traceframe_info>: Use
10156 TARGET_DEFAULT_NORETURN (tcomplain ()).
10157 * target-delegates.c: Regenerated.
10159 2014-03-05 Pedro Alves <palves@redhat.com>
10162 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10163 void. Update comment.
10164 (dcache_xfer_memory): Delete.
10165 (dcache_read_memory_partial): New, based on the read bits of
10166 dcache_xfer_memory.
10167 (dcache_update): Add status parameter. Use ULONGEST for len, and
10168 adjust. Discard cache lines if the reason for the update was
10170 * dcache.h (dcache_xfer_memory): Delete declaration.
10171 (dcache_read_memory_partial): New declaration.
10172 (dcache_update): Update prototype.
10173 * target.c (raw_memory_xfer_partial): Update the dcache here.
10174 (memory_xfer_partial_1): Don't handle dcache writes here.
10176 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10178 * remote-sim.c (gdbsim_load): Add const to prog.
10180 2014-03-03 Tom Tromey <tromey@redhat.com>
10182 * elfread.c (probe_key): Change to bfd_data.
10183 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10184 now per-BFD, not per-objfile.
10185 * stap-probe.c (stap_probe_destroy): Update comment.
10186 (handle_stap_probe): Allocate on the per-BFD obstack.
10188 2014-03-03 Tom Tromey <tromey@redhat.com>
10190 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10191 * breakpoint.c (create_longjmp_master_breakpoint): Use
10193 (add_location_to_breakpoint, bkpt_probe_insert_location)
10194 (bkpt_probe_remove_location): Update.
10195 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10196 * elfread.c (elf_symfile_relocate_probe): Remove.
10197 (elf_probe_fns): Update.
10198 (insert_exception_resume_breakpoint): Change type of "probe"
10199 parameter to bound_probe.
10200 (check_exception_resume): Update.
10201 * objfiles.c (objfile_relocate1): Don't relocate probes.
10202 * probe.c (bound_probe_s): New typedef.
10203 (parse_probes): Use get_probe_address. Set sal's objfile.
10204 (find_probe_by_pc): Return a bound_probe.
10205 (collect_probes): Return a VEC(bound_probe_s).
10206 (compare_probes): Update.
10207 (gen_ui_out_table_header_info): Change type of "probes"
10209 (info_probes_for_ops): Update.
10210 (get_probe_address): New function.
10211 (probe_safe_evaluate_at_pc): Update.
10212 * probe.h (struct probe_ops) <get_probe_address>: New field.
10213 <set_semaphore, clear_semaphore>: Add objfile parameter.
10214 (struct probe) <objfile>: Remove field.
10216 <address>: Update comment.
10217 (struct bound_probe): New.
10218 (find_probe_by_pc): Return a bound_probe.
10219 (get_probe_address): Declare.
10220 * solib-svr4.c (struct probe_and_action) <address>: New field.
10221 (hash_probe_and_action, equal_probe_and_action): Update.
10222 (register_solib_event_probe): Add address parameter.
10223 (solib_event_probe_at): Update.
10224 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10226 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10227 (stap_get_probe_address): New function.
10228 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10229 (compile_probe_arg): Update.
10230 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10232 (handle_stap_probe): Don't relocate the probe.
10233 (stap_relocate): Remove.
10234 (stap_gen_info_probes_table_values): Update.
10235 (stap_probe_ops): Remove stap_relocate.
10236 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10237 (debug_sym_probe_fns): Update.
10238 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10239 * symtab.c (init_sal): Use memset.
10240 * symtab.h (struct symtab_and_line) <objfile>: New field.
10241 * tracepoint.c (start_tracing, stop_tracing): Update.
10243 2014-03-03 Tom Tromey <tromey@redhat.com>
10245 * probe.h (parse_probes, find_probe_by_pc)
10246 (find_probes_in_objfile): Fix comments.
10248 2014-03-02 Doug Evans <xdje42@gmail.com>
10250 * infrun.c (handle_signal_stop): Replace test for
10251 TARGET_WAITKIND_STOPPED with an assert.
10253 2014-03-02 Doug Evans <xdje42@gmail.com>
10255 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10257 2014-03-02 Doug Evans <xdje42@gmail.com>
10259 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10261 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10263 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10265 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10267 * i386obsd-nat.c: Include "obsd-nat.h".
10268 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10270 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10272 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10274 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10276 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10278 * mips64obsd-nat.c: Include "obsd-nath".
10279 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10281 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10283 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10285 * amd64obsd-nat.c: Include "obsd-nat,h.
10286 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10288 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10290 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10292 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10293 (find_overload_match): Update call to find_oload_champ.
10294 (find_oload_champ_namespace_loop): Likewise
10296 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10298 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10300 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10301 * config/sparc/obsd64.mh: New file.
10302 * sparc64obsd-nat.c: New file.
10304 * obsd-nat.h: New file.
10305 * obsd-nat.c: New file.
10306 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10307 (ALLDEPFILES): Add obsd-nat.c.
10309 2014-02-28 Tom Tromey <tromey@redhat.com>
10311 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10312 * cli-out.h (cli_ui_out_impl): Now const.
10313 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10314 * ui-out.c (struct ui_out) <impl>: Now const.
10315 (default_ui_out_impl): Now const.
10316 (ui_out_new): Make 'impl' parameter const.
10317 * ui-out.h (ui_out_new): Update.
10319 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10321 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10323 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10325 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10327 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10329 Additional PR 8882 fix.
10330 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10332 2014-02-27 Pedro Alves <palves@redhat.com>
10334 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10337 2014-02-27 Pedro Alves <palves@redhat.com>
10340 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10341 * nat/linux-waitpid.c: Include string.h.
10342 (status_to_str): Moved here and made extern.
10343 * nat/linux-waitpid.h (status_to_str): New declaration.
10345 2014-02-27 Hui Zhu <hui@codesourcery.com>
10348 * infrun.c (ptid_match): Move ...
10349 * common/ptid.c (ptid_match): ... here.
10350 * inferior.h (ptid_match): Move ...
10351 * common/ptid.h (ptid_match): ... here.
10353 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10355 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10356 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10359 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10361 * obsd-tdep.c (obsd_auxv_parse): New function.
10362 (obsd_init_abi): Set auxv_parse.
10364 * gdbarch.sh (auxv_parse): New.
10365 * gdbarch.h: Regenerated.
10366 * gdbarch.c: Regenerated.
10367 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10369 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10371 * guile/scm-value.c (gdbscm_history_append_x): New function.
10372 (value_functions): Add it.
10374 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10376 * dwarf2read.c (attr_value_as_address): New function.
10377 (dwarf2_find_base_address, read_call_site_scope): Use
10378 attr_value_as_address in place of DW_ADDR.
10379 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10380 the low and high addresses. Slight rework of the handling
10381 of the high pc being a constant form, and limit it to
10382 DWARF verson 4 or higher.
10383 (dwarf2_record_block_ranges): Likewise.
10384 (read_partial_die): Likewise.
10385 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10387 2014-02-26 Tom Tromey <tromey@redhat.com>
10389 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10391 2014-02-26 Tom Tromey <tromey@redhat.com>
10393 * elfread.c (elf_read_minimal_symbols): Return early if
10394 minimal symbols have already been read. Add "ei" parameter.
10395 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10396 * minsyms.c (prim_record_minimal_symbol_full): Update.
10397 * objfiles.h (struct objstats) <n_minsyms>: Move...
10398 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10399 * symmisc.c (print_objfile_statistics): Update.
10401 2014-02-26 Tom Tromey <tromey@redhat.com>
10403 * elfread.c (elf_read_minimal_symbols): New function, from
10405 (elf_symfile_read): Call it.
10407 2014-02-26 Tom Tromey <tromey@redhat.com>
10409 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10410 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10411 (lookup_minimal_symbol_solib_trampoline)
10412 (lookup_minimal_symbol_by_pc_section_1)
10413 (lookup_minimal_symbol_and_objfile): Update.
10414 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10415 Don't allocate a minimal symbol if minsyms have already been read.
10416 (build_minimal_symbol_hash_tables): Update.
10417 (install_minimal_symbols): Do nothing if minsyms already read.
10418 Use the per-BFD obstack.
10419 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10420 * objfiles.c (allocate_objfile): Call
10421 terminate_minimal_symbol_table later.
10422 (have_minimal_symbols): Update.
10423 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10424 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10425 Move from struct objfile.
10426 <minsyms_read>: New field.
10427 (struct objfile) <msymbols, minimal_symbol_count,
10428 msymbol_hash, msymbol_demangled_hash>: Move.
10429 (ALL_OBJFILE_MSYMBOLS): Update.
10430 * symfile.c (read_symbols): Set minsyms_read.
10431 (reread_symbols): Update.
10432 * symmisc.c (dump_objfile, dump_msymbols): Update.
10434 2014-02-26 Tom Tromey <tromey@redhat.com>
10436 * minsyms.c (msymbols_sort): Remove.
10437 * minsyms.h (msymbols_sort): Remove.
10438 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10439 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10440 * elfread.c (elf_symtab_read): Don't add section offsets.
10441 * xcoffread.c (record_minimal_symbol): Don't add section offset
10442 to minimal symbol address.
10443 * somread.c (text_offset, data_offset): Remove.
10444 (som_symtab_read): Don't add section offsets to minimal symbol
10446 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10447 Don't add section offsets to minimal symbols.
10448 * coffread.c (coff_symtab_read): Don't add section offsets
10449 to minimal symbol addresses.
10450 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10451 to minimal symbol addresses.
10452 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10453 section offset to minimal symbol addresses.
10454 * mdebugread.c (parse_partial_symbols): Don't add section
10455 offset to minimal symbol addresses.
10456 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10457 offset to minimal symbol addresses.
10459 2014-02-26 Tom Tromey <tromey@redhat.com>
10461 * ada-lang.c (ada_main_name): Update.
10462 (ada_add_standard_exceptions): Update.
10463 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10464 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10465 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10466 * auxv.c (ld_so_xfer_auxv): Update.
10467 * avr-tdep.c (avr_scan_prologue): Update.
10468 * ax-gdb.c (gen_var_ref): Update.
10469 * blockframe.c (get_pc_function_start)
10470 (find_pc_partial_function_gnu_ifunc): Update.
10471 * breakpoint.c (create_overlay_event_breakpoint)
10472 (create_longjmp_master_breakpoint)
10473 (create_std_terminate_master_breakpoint)
10474 (create_exception_master_breakpoint): Update.
10475 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10476 * c-valprint.c (c_val_print): Update.
10477 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10478 * common/agent.c (agent_look_up_symbols): Update.
10479 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10480 * dwarf2loc.c (call_site_to_target_addr): Update.
10481 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10482 * elfread.c (elf_gnu_ifunc_record_cache)
10483 (elf_gnu_ifunc_resolve_by_got): Update.
10484 * findvar.c (default_read_var_value): Update.
10485 * frame.c (inside_main_func): Update.
10486 * frv-tdep.c (frv_frame_this_id): Update.
10487 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10488 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10490 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10491 (hppa_hpux_find_dummy_bpaddr): Update.
10492 * hppa-tdep.c (hppa_symbol_address): Update.
10493 * infcmd.c (until_next_command): Update.
10494 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10496 * linespec.c (minsym_found, add_minsym): Update.
10497 * linux-nat.c (get_signo): Update.
10498 * linux-thread-db.c (inferior_has_bug): Update.
10499 * m32c-tdep.c (m32c_return_value)
10500 (m32c_m16c_address_to_pointer): Update.
10501 * m32r-tdep.c (m32r_frame_this_id): Update.
10502 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10503 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10504 * maint.c (maintenance_translate_address): Update.
10505 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10506 (frob_address): New function.
10507 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10508 frob_address. Rename parameter to "pc_in".
10509 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10511 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10513 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10514 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10515 * objc-lang.c (find_objc_msgsend): Update.
10516 * objfiles.c (objfile_relocate1): Update.
10517 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10518 * p-valprint.c (pascal_val_print): Update.
10519 * parse.c (write_exp_msymbol): Update.
10520 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10521 (ppc_elfv2_skip_entrypoint): Update.
10522 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10523 * printcmd.c (build_address_symbolic, msym_info)
10524 (address_info): Update.
10525 * proc-service.c (ps_pglobal_lookup): Update.
10526 * psymtab.c (find_pc_sect_psymtab_closer)
10527 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10528 Change msymbol parameter to bound_minimal_symbol.
10529 * ravenscar-thread.c (get_running_thread_id): Update.
10530 * remote.c (remote_check_symbols): Update.
10531 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10533 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10534 * solib-dsbt.c (lm_base): Update.
10535 * solib-frv.c (lm_base, main_got): Update.
10536 * solib-irix.c (locate_base): Update.
10537 * solib-som.c (som_solib_create_inferior_hook)
10538 (link_map_start): Update.
10539 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10540 * solib-svr4.c (elf_locate_base, enable_break): Update.
10541 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10542 (flush_ea_cache): Update.
10543 * stabsread.c (define_symbol, scan_file_globals): Update.
10544 * stack.c (find_frame_funname): Update.
10545 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10546 (debug_qf_find_pc_sect_symtab): Update.
10547 * symfile.c (simple_read_overlay_table)
10548 (simple_overlay_update): Update.
10549 * symfile.h (struct quick_symbol_functions)
10550 <find_pc_sect_symtab>: Change type of msymbol to
10551 bound_minimal_symbol.
10552 * symmisc.c (dump_msymbols): Update.
10553 * symtab.c (find_pc_sect_symtab_via_partial)
10554 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10555 (search_symbols, print_msymbol_info): Update.
10556 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10557 (MSYMBOL_VALUE_ADDRESS): Redefine.
10558 (BMSYMBOL_VALUE_ADDRESS): New macro.
10559 * tracepoint.c (scope_info): Update.
10560 * tui/tui-disasm.c (tui_find_disassembly_address)
10561 (tui_get_begin_asm_address): Update.
10562 * valops.c (find_function_in_inferior): Update.
10563 * value.c (value_static_field, value_fn_field): Update.
10565 2014-02-26 Tom Tromey <tromey@redhat.com>
10567 * ada-lang.c (ada_update_initial_language): Update.
10568 (ada_main_name, ada_has_this_exception_support): Update.
10569 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10570 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10571 * arm-tdep.c (arm_skip_stub): Update.
10572 * auxv.c (ld_so_xfer_auxv): Update.
10573 * avr-tdep.c (avr_scan_prologue): Update.
10574 * ax-gdb.c (gen_var_ref): Update.
10575 * breakpoint.c (struct breakpoint_objfile_data)
10576 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10577 type to bound_minimal_symbol.
10578 (create_overlay_event_breakpoint)
10579 (create_longjmp_master_breakpoint)
10580 (create_std_terminate_master_breakpoint)
10581 (create_exception_master_breakpoint): Update.
10582 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10583 * c-exp.y (classify_name): Update.
10584 * coffread.c (coff_symfile_read): Update.
10585 * common/agent.c (agent_look_up_symbols): Update.
10586 * d-lang.c (d_main_name): Update.
10587 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10588 * dec-thread.c (enable_dec_thread): Update.
10589 * dwarf2loc.c (call_site_to_target_addr): Update.
10590 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10591 * eval.c (evaluate_subexp_standard): Update.
10592 * findvar.c (struct minsym_lookup_data) <result>: Change type
10593 to bound_minimal_symbol.
10595 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10596 * frame.c (inside_main_func): Update.
10597 * frv-tdep.c (frv_frame_this_id): Update.
10598 * gcore.c (call_target_sbrk): Update.
10599 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10600 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10602 * go-lang.c (go_main_name): Update.
10603 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10604 (hppa_hpux_find_import_stub_for_addr): Update.
10605 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10606 Update. Change return type.
10607 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10609 * jit.c (jit_breakpoint_re_set_internal): Update.
10610 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10612 * linux-nat.c (get_signo): Update.
10613 * linux-thread-db.c (inferior_has_bug): Update
10614 * m32c-tdep.c (m32c_return_value)
10615 (m32c_m16c_address_to_pointer): Update.
10616 * m32r-tdep.c (m32r_frame_this_id): Update.
10617 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10618 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10619 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10620 lookup_minimal_symbol. Change return type.
10621 (lookup_minimal_symbol): Remove.
10622 (lookup_bound_minimal_symbol): Update.
10623 (lookup_minimal_symbol_text): Change return type.
10624 (lookup_minimal_symbol_solib_trampoline): Change return type.
10625 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10626 (lookup_minimal_symbol_solib_trampoline): Change return type.
10627 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10628 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10629 (value_nsstring, find_imps): Update.
10630 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10631 * p-lang.c (pascal_main_name): Update.
10632 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10633 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10634 * proc-service.c (ps_pglobal_lookup): Update.
10635 * ravenscar-thread.c (get_running_thread_msymbol): Change
10637 (has_ravenscar_runtime, get_running_thread_id): Update.
10638 * remote.c (remote_check_symbols): Update.
10639 * sol-thread.c (ps_pglobal_lookup): Update.
10640 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10641 * solib-dsbt.c (lm_base): Update.
10642 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10644 * solib-irix.c (locate_base): Update.
10645 * solib-som.c (som_solib_create_inferior_hook)
10646 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10648 * solib-spu.c (spu_enable_break): Update.
10649 * solib-svr4.c (elf_locate_base, enable_break): Update.
10650 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10651 (flush_ea_cache): Update.
10652 * stabsread.c (define_symbol): Update.
10653 * symfile.c (simple_read_overlay_table): Update.
10654 * symtab.c (find_pc_sect_line): Update.
10655 * tracepoint.c (scope_info): Update.
10656 * tui-disasm.c (tui_get_begin_asm_address): Update.
10657 * value.c (value_static_field): Update.
10659 2014-02-26 Tom Tromey <tromey@redhat.com>
10661 * minsyms.c (prim_record_minimal_symbol_full): Use
10662 SET_MSYMBOL_VALUE_ADDRESS.
10663 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10664 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10665 SET_MSYMBOL_VALUE_ADDRESS.
10666 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10667 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10669 2014-02-26 Tom Tromey <tromey@redhat.com>
10671 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10672 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10673 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10674 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10675 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10676 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10677 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10678 * ada-lang.c (ada_main_name): Update.
10679 (ada_lookup_simple_minsym): Update.
10680 (ada_make_symbol_completion_list): Update.
10681 (ada_add_standard_exceptions): Update.
10682 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10683 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10684 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10685 * arm-tdep.c (skip_prologue_function): Update.
10686 (arm_skip_stack_protector, arm_skip_stub): Update.
10687 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10688 (arm_wince_skip_main_prologue): Update.
10689 * auxv.c (ld_so_xfer_auxv): Update.
10690 * avr-tdep.c (avr_scan_prologue): Update.
10691 * ax-gdb.c (gen_var_ref): Update.
10692 * block.c (call_site_for_pc): Update.
10693 * blockframe.c (get_pc_function_start): Update.
10694 (find_pc_partial_function_gnu_ifunc): Update.
10695 * breakpoint.c (create_overlay_event_breakpoint): Update.
10696 (create_longjmp_master_breakpoint): Update.
10697 (create_std_terminate_master_breakpoint): Update.
10698 (create_exception_master_breakpoint): Update.
10699 (resolve_sal_pc): Update.
10700 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10701 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10703 * c-valprint.c (c_val_print): Update.
10704 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10705 * coffread.c (coff_symfile_read): Update.
10706 * common/agent.c (agent_look_up_symbols): Update.
10707 * dbxread.c (find_stab_function_addr): Update.
10708 (end_psymtab): Update.
10709 * dwarf2loc.c (call_site_to_target_addr): Update.
10710 (func_verify_no_selftailcall): Update.
10711 (tailcall_dump): Update.
10712 (call_site_find_chain_1): Update.
10713 (dwarf_expr_reg_to_entry_parameter): Update.
10714 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10715 (elf_gnu_ifunc_resolve_by_got): Update.
10716 * f-valprint.c (info_common_command): Update.
10717 * findvar.c (read_var_value): Update.
10718 * frame.c (get_prev_frame_1): Update.
10719 (inside_main_func): Update.
10720 * frv-tdep.c (frv_skip_main_prologue): Update.
10721 (frv_frame_this_id): Update.
10722 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10723 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10724 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10725 (gnuv3_skip_trampoline): Update.
10726 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10727 (hppa64_hpux_in_solib_call_trampoline): Update.
10728 (hppa_hpux_skip_trampoline_code): Update.
10729 (hppa64_hpux_search_dummy_call_sequence): Update.
10730 (hppa_hpux_find_import_stub_for_addr): Update.
10731 (hppa_hpux_find_dummy_bpaddr): Update.
10732 * hppa-tdep.c (hppa_symbol_address)
10733 (hppa_lookup_stub_minimal_symbol): Update.
10734 * i386-tdep.c (i386_skip_main_prologue): Update.
10735 (i386_pe_skip_trampoline_code): Update.
10736 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10737 * infcall.c (get_function_name): Update.
10738 * infcmd.c (until_next_command): Update.
10739 * jit.c (jit_breakpoint_re_set_internal): Update.
10740 (jit_inferior_init): Update.
10741 * linespec.c (minsym_found): Update.
10742 (add_minsym): Update.
10743 * linux-fork.c (info_checkpoints_command): Update.
10744 * linux-nat.c (get_signo): Update.
10745 * linux-thread-db.c (inferior_has_bug): Update.
10746 * m32c-tdep.c (m32c_return_value): Update.
10747 (m32c_m16c_address_to_pointer): Update.
10748 (m32c_m16c_pointer_to_address): Update.
10749 * m32r-tdep.c (m32r_frame_this_id): Update.
10750 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10751 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10752 * maint.c (maintenance_translate_address): Update.
10753 * minsyms.c (add_minsym_to_hash_table): Update.
10754 (add_minsym_to_demangled_hash_table): Update.
10755 (msymbol_objfile): Update.
10756 (lookup_minimal_symbol): Update.
10757 (iterate_over_minimal_symbols): Update.
10758 (lookup_minimal_symbol_text): Update.
10759 (lookup_minimal_symbol_by_pc_name): Update.
10760 (lookup_minimal_symbol_solib_trampoline): Update.
10761 (lookup_minimal_symbol_by_pc_section_1): Update.
10762 (lookup_minimal_symbol_and_objfile): Update.
10763 (prim_record_minimal_symbol_full): Update.
10764 (compare_minimal_symbols): Update.
10765 (compact_minimal_symbols): Update.
10766 (build_minimal_symbol_hash_tables): Update.
10767 (install_minimal_symbols): Update.
10768 (terminate_minimal_symbol_table): Update.
10769 (find_solib_trampoline_target): Update.
10770 (minimal_symbol_upper_bound): Update.
10771 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10772 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10773 (mips_skip_pic_trampoline_code): Update.
10774 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10775 * objc-lang.c (selectors_info): Update.
10776 (classes_info): Update.
10777 (find_methods): Update.
10778 (find_imps): Update.
10779 (find_objc_msgsend): Update.
10780 * objfiles.c (objfile_relocate1): Update.
10781 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10782 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10783 * p-valprint.c (pascal_val_print): Update.
10784 * parse.c (write_exp_msymbol): Update.
10785 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10786 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10787 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10788 * printcmd.c (build_address_symbolic): Update.
10789 (sym_info): Update.
10790 (address_info): Update.
10791 * proc-service.c (ps_pglobal_lookup): Update.
10792 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10793 (find_pc_sect_psymtab): Update.
10794 * python/py-framefilter.c (py_print_frame): Update.
10795 * ravenscar-thread.c (get_running_thread_id): Update.
10796 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10798 * remote.c (remote_check_symbols): Update.
10799 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10800 (rs6000_skip_trampoline_code): Update.
10801 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10802 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10803 * solib-dsbt.c (lm_base): Update.
10804 * solib-frv.c (lm_base): Update.
10805 (main_got): Update.
10806 * solib-irix.c (locate_base): Update.
10807 * solib-som.c (som_solib_create_inferior_hook): Update.
10808 (som_solib_desire_dynamic_linker_symbols): Update.
10809 (link_map_start): Update.
10810 * solib-spu.c (spu_enable_break): Update.
10811 (ocl_enable_break): Update.
10812 * solib-svr4.c (elf_locate_base): Update.
10813 (enable_break): Update.
10814 * spu-tdep.c (spu_get_overlay_table): Update.
10815 (spu_catch_start): Update.
10816 (flush_ea_cache): Update.
10817 * stabsread.c (define_symbol): Update.
10818 (scan_file_globals): Update.
10819 * stack.c (find_frame_funname): Update.
10820 (frame_info): Update.
10821 * symfile.c (simple_read_overlay_table): Update.
10822 (simple_overlay_update): Update.
10823 * symmisc.c (dump_msymbols): Update.
10824 * symtab.c (fixup_section): Update.
10825 (find_pc_sect_line): Update.
10826 (skip_prologue_sal): Update.
10827 (search_symbols): Update.
10828 (print_msymbol_info): Update.
10829 (rbreak_command): Update.
10830 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10831 (completion_list_objc_symbol): Update.
10832 (default_make_symbol_completion_list_break_on): Update.
10833 * tracepoint.c (scope_info): Update.
10834 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10835 (tui_get_begin_asm_address): Update.
10836 * valops.c (find_function_in_inferior): Update.
10837 * value.c (value_static_field): Update.
10838 (value_fn_field): Update.
10840 2014-02-26 Tom Tromey <tromey@redhat.com>
10842 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10843 bound minimal symbols. Move code that knows about minsym
10845 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10847 * minsyms.h (minimal_symbol_upper_bound): Declare.
10848 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10849 minimal_symbol_upper_bound.
10851 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10853 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10854 Use the type's name if its basic type does not have a tag.
10856 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10858 * dwarf2read.c (read_subrange_type): Add comment.
10860 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10862 * dwarf2read.c (update_enumeration_type_from_children): New
10863 function, mostly extracted from process_structure_scope.
10864 (read_enumeration_type): Call update_enumeration_type_from_children.
10865 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10866 and flag_flag_enum fields.
10868 2014-02-26 Pedro Alves <palves@redhat.com>
10870 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10871 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10872 to_xfer_partial method.
10874 2014-02-26 Pedro Alves <palves@redhat.com>
10876 * target.c (complete_target_initialization): Don't install
10877 default_xfer_partial as to_xfer_partial hook.
10878 (nomemory): Delete.
10879 (update_current_target): Don't INHERIT nor de_fault
10880 deprecated_xfer_memory. Delete de_fault macro.
10881 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10882 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10883 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10886 2014-02-26 Pedro Alves <palves@redhat.com>
10888 * go32-nat.c (my_write_child): New function.
10889 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10890 (go32_xfer_partial): New function.
10891 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10892 Instead install a to_xfer_partial hook.
10894 2014-02-26 Pedro Alves <palves@redhat.com>
10896 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10897 to_xfer_partial helper. Rewrite.
10898 (procfs_xfer_partial): New function.
10899 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10900 Install a to_xfer_partial hook.
10902 2014-02-26 Pedro Alves <palves@redhat.com>
10904 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10905 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10906 (m32r_xfer_partial): New function.
10907 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10908 Install a to_xfer_partial hook.
10910 2014-02-26 Pedro Alves <palves@redhat.com>
10912 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10914 (mips_xfer_partial): New function.
10915 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10916 hook. Install a to_xfer_partial hook.
10918 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10920 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10921 * gdbtypes.c (create_array_type_with_stride): New function,
10922 renaming create_array_type, but with an added parameter
10923 called "bit_stride".
10924 (create_array_type): Re-implement using
10925 create_array_type_with_stride.
10926 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10927 and DW_AT_bit_stride attributes.
10929 2014-02-26 Pedro Alves <palves@redhat.com>
10931 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10932 task-specific breakpoints.
10934 2014-02-25 Pedro Alves <palves@redhat.com>
10936 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10937 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10939 2014-02-25 Stan Shebs <stan@codesourcery.com>
10941 * defs.h: Annotate comments for Doxygen.
10943 2014-02-25 Tom Tromey <tromey@redhat.com>
10945 * target.h (target_ignore): Don't declare.
10946 * target.c (target_ignore): Remove.
10948 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10951 * auto-load.c (auto_load_objfile_script_1): Change filename to
10954 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10956 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10957 documentation. Adjust prototype to match the target_ops
10958 to_xfer_partial method. Adjust implementation accordingly.
10960 2014-02-25 Hui Zhu <hui@codesourcery.com>
10962 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10963 to_traceframe_info.
10965 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10967 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10968 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10969 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10970 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10971 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10972 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10973 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10974 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10976 (rl78_register_type): Use a data pointer type for SP and
10977 new pseudo registers mentioned above. Use a 16 bit integer
10978 type for all other register pairs.
10979 (rl78_register_name, rl78_g10_register_name): Update for
10980 new pseudo registers.
10981 (rl78_pseudo_register_read): Likewise.
10982 (rl78_pseudo_register_write): Likewise.
10983 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10984 to the newly added pseudo registers.
10986 2014-02-24 Doug Evans <dje@google.com>
10988 * value.c (record_latest_value): Fix comment.
10989 * printcmd.c (print_command_1): Remove code to handle -1 return from
10990 record_latest_value.
10992 2014-02-24 Pedro Alves <palves@redhat.com>
10994 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10995 deprecated_xfer_memory hook.
10996 (procfs_xfer_partial): Call procfs_xfer_memory instead
10997 of the deprecated_xfer_memory target hook.
10998 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11001 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11003 * windows-nat.c (windows_xfer_shared_libraries): Return
11004 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11005 requested object is TARGET_OBJECT_LIBRARIES.
11007 2014-02-24 Yao Qi <yao@codesourcery.com>
11009 * target.h (enum target_xfer_status)
11010 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11011 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11013 * corefile.c (memory_error_message): User updated.
11014 * exec.c (section_table_read_available_memory): Likewise.
11015 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11016 * target.c (target_xfer_status_to_string): Likewise.
11017 (raw_memory_xfer_partial): Likewise.
11018 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11019 * valops.c (read_value_memory): Likewise.
11020 * exec.h: Update comments.
11022 2014-02-24 Yao Qi <yao@codesourcery.com>
11024 * target.c (target_xfer_status_to_string): Rename argument err
11026 * target.h (target_xfer_status_to_string): Update declaration.
11027 Replace target_xfer_error_to_string with
11028 target_xfer_status_to_string in comment.
11030 2014-02-24 Yao Qi <yao@codesourcery.com>
11032 * mips-linux-nat.c (super_close): Update its type.
11033 (mips_linux_close): Pass 'self' to super_close.
11035 2014-02-24 Yao Qi <yao@codesourcery.com>
11037 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11038 * corefile.c (read_memory): Adjusted.
11039 * target.c (target_write_with_progress): Adjusted.
11041 2014-02-23 Yao Qi <yao@codesourcery.com>
11043 Revert two patches:
11045 2013-10-25 Yao Qi <yao@codesourcery.com>
11047 * remote.c (remote_traceframe_info): Return early if
11048 traceframe is not selected.
11050 2013-07-19 Yao Qi <yao@codesourcery.com>
11052 * target.c (update_current_target): Change the default action
11053 of 'to_traceframe_info' from tcomplain to return_zero.
11054 * target.h (struct target_ops) <to_traceframe_info>: Add more
11057 2014-02-23 Yao Qi <yao@codesourcery.com>
11059 * valops.c (read_value_memory): Rewrite it. Call
11060 target_xfer_partial in a loop.
11061 * exec.h (section_table_available_memory): Remove declaration.
11062 Move comments to ...
11063 * exec.c (section_table_available_memory): ... here. Make it
11066 2014-02-23 Yao Qi <yao@codesourcery.com>
11068 * exec.c (section_table_read_available_memory): New function.
11069 * exec.h (section_table_read_available_memory): Declare.
11070 * ctf.c (ctf_xfer_partial): Call
11071 section_table_read_available_memory.
11072 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11074 2014-02-23 Yao Qi <yao@codesourcery.com>
11076 * ctf.c (ctf_xfer_partial): Move code to ...
11077 * exec.c (exec_read_partial_read_only): ... it. New function.
11078 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11079 * tracefile.c: Include "exec.h".
11080 * exec.h (exec_read_partial_read_only): Declare.
11082 2014-02-23 Yao Qi <yao@codesourcery.com>
11084 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11085 (tfile_has_memory): Remove.
11086 (init_tfile_ops): Don't set fields to_has_all_memory and
11087 to_has_memory of tfile_ops.
11088 * tracefile.c (tracefile_has_all_memory): New function.
11089 (tracefile_has_memory): New function.
11090 (init_tracefile_ops): Initialize fields to_has_all_memory and
11091 to_has_memory of 'ops'.
11093 2014-02-23 Yao Qi <yao@codesourcery.com>
11095 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11096 (ctf_thread_alive, ctf_get_trace_status): Remove.
11097 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11098 init_tracefile_ops.
11099 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11100 (tfile_has_stack, tfile_has_registers): Remove.
11101 (tfile_thread_alive): Remove.
11102 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11103 init_tracefile_ops.
11104 * tracefile.c (tracefile_has_stack): New function.
11105 (tracefile_has_registers): New function.
11106 (tracefile_thread_alive): New function.
11107 (tracefile_get_trace_status): New function.
11108 (init_tracefile_ops): New function.
11109 * tracefile.h (init_tracefile_ops): Declare.
11111 2014-02-23 Yao Qi <yao@codesourcery.com>
11113 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11114 (O_LARGEFILE): Likewise.
11115 (tfile_ops): Likewise.
11116 (TRACE_HEADER_SIZE): Likewise.
11117 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11118 (cur_data_size): Likewise.
11119 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11120 (tfile_close, tfile_files_info): Likewise.
11121 (tfile_get_trace_status): Likewise.
11122 (tfile_get_tracepoint_status): Likewise.
11123 (tfile_get_traceframe_address): Likewise.
11124 (tfile_trace_find, match_blocktype): Likewise.
11125 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11126 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11127 (tfile_get_trace_state_variable_value): Likewise.
11128 (tfile_has_all_memory, tfile_has_memory): Likewise.
11129 (tfile_has_stack, tfile_has_registers): Likewise.
11130 (tfile_thread_alive, build_traceframe_info): Likewise.
11131 (tfile_traceframe_info, init_tfile_ops): Likewise.
11132 (_initialize_tracepoint): Don't call init_tfile_ops
11133 and add_target_with_completer.
11134 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11135 exec.h, completer.h and filenames.h.
11136 (_initialize_tracefile_tfile): New function.
11138 2014-02-23 Yao Qi <yao@codesourcery.com>
11140 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11142 (HFILES_NO_SRCDIR): Add tracefile.h.
11143 * ctf.c: Include "tracefile.h".
11144 * tracefile.h: New file.
11145 * tracefile.c: New file
11146 * tracefile-tfile.c: New file.
11147 * tracepoint.c: Include "tracefile.h".
11148 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11149 (stop_reason_names): Add const.
11150 (trace_file_writer_xfree): Move it to tracefile.c.
11151 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11152 (trace_save_ctf): Likewise.
11153 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11154 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11155 (tfile_write_header, tfile_write_regblock_type): Likewise.
11156 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11157 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11158 (tfile_write_raw_data, tfile_end): Likewise.
11159 (tfile_trace_file_writer_new): Likewise.
11160 (free_uploaded_tp): Make it extern.
11161 (free_uploaded_tsv): Make it extern.
11162 (_initialize_tracepoint): Move code to register command 'tsave'
11164 * tracepoint.h (stop_reason_names): Declare.
11165 (struct trace_frame_write_ops): Move it to tracefile.h.
11166 (struct trace_file_write_ops): Likewise.
11167 (struct trace_file_writer): Likewise.
11168 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11170 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11173 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11175 (get_cores_used_by_process): New parameter num_cores, use it.
11176 (linux_xfer_osdata_processes): Pass num_cores to it.
11177 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11180 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11182 * target.c (memory_xfer_partial): Fix length arg in call to
11183 breakpoint_xfer_memory.
11185 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11188 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11189 number comes after the + or - signs. Adjust length of register
11190 name to be extracted.
11192 2014-02-20 Tom Tromey <tromey@redhat.com>
11194 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11195 (ada_varobj_ops): Mark "extern".
11197 2014-02-20 Tom Tromey <tromey@redhat.com>
11199 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11201 2014-02-20 Doug Evans <xdje42@gmail.com>
11203 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11204 All callers updated.
11205 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11206 All callers updated.
11207 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11208 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11210 2014-02-20 lin zuojian <manjian2006@gmail.com>
11211 Joel Brobecker <brobecker@adacore.com>
11212 Doug Evans <xdje42@gmail.com>
11215 * dwarf2read.c (struct die_info): New member in_process.
11216 (reset_die_in_process): New function.
11217 (process_die): Set it at the start, reset when returning.
11218 (inherit_abstract_dies): Only call process_die if origin_child_die
11219 not already being processed.
11221 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11223 * windows-nat.c (handle_unload_dll): Add function documentation.
11224 (do_initial_windows_stuff): Add comment explaining why we wait
11225 until after inferior initialization has finished before
11226 processing all DLLs.
11228 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11230 * windows-nat.c (get_module_name): Delete.
11231 (windows_get_exec_module_filename): New function, mostly
11232 inspired from get_module_name.
11233 (windows_pid_to_exec_file): Replace call to get_module_name
11234 by call to windows_get_exec_module_filename.
11236 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11238 * windows-nat.c (handle_load_dll): Rewrite this function's
11239 introductory comment. Remove code using get_module_name
11240 to get the DLL's name.
11242 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11244 * windows-nat.c (get_windows_debug_event): Ignore
11245 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11246 if windows_initialization_done == 0.
11247 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11248 Adjust implementation to always load all DLLs.
11249 (do_initial_windows_stuff): Replace call to
11250 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11252 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11254 * windows-nat.c (_initialize_windows_nat): Deprecate the
11255 "dll-symbols" command. Turn the "add-shared-symbol-files"
11256 and "assf" aliases into commands, and deprecate them as well.
11257 * NEWS: Add entry explaining that "dll-symbols" and its two
11258 aliases are now deprecated.
11260 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11262 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11263 new-line in debug string. Remove trailing spaces.
11265 2014-02-19 Stan Shebs <stan@codesourcery.com>
11267 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11269 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11271 * NEWS: Add entry for the new feature
11272 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11275 2014-02-19 Stan Shebs <stan@codesourcery.com>
11277 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11279 2014-02-19 Pedro Alves <palves@redhat.com>
11281 * common/ptid.h (struct ptid): Mention that process_stratum
11282 targets should prefer ptid.lwp.
11284 2014-02-19 Pedro Alves <palves@redhat.com>
11286 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11287 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11288 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11289 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11290 store remote thread ids rather than ptid.tid.
11291 (_initialize_remote): Adjust.
11293 2014-02-19 Tom Tromey <tromey@redhat.com>
11295 * target.c (target_get_unwinder): Rewrite.
11296 (target_get_tailcall_unwinder): Rewrite.
11297 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11298 (record_btrace_to_get_tailcall_unwinder): New function.
11299 (init_record_btrace_ops): Update.
11300 * target.h (struct target_ops) <to_get_unwinder,
11301 to_get_tailcall_unwinder>: Now function pointers. Use
11302 TARGET_DEFAULT_RETURN.
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11308 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11312 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11314 * target-delegates.c: Rebuild.
11315 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11316 TARGET_DEFAULT_FUNC.
11317 * target.c (default_target_decr_pc_after_break): Rename from
11318 forward_target_decr_pc_after_break. Simplify.
11319 (target_decr_pc_after_break): Rely on delegation.
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11323 * target.c (update_current_target): Do not INHERIT to_doc or
11324 to_magic. Do not de_fault to_open or to_close.
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11328 * gcore.h (objfile_find_memory_regions): Declare.
11329 * gcore.c (objfile_find_memory_regions): No longer static. Add
11331 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11332 * exec.c: Include gcore.h.
11333 (exec_set_find_memory_regions): Remove.
11334 (exec_find_memory_regions): Remove.
11335 (exec_do_find_memory_regions): Remove.
11336 (init_exec_ops): Update.
11337 * defs.h (exec_set_find_memory_regions): Remove.
11339 2014-02-19 Tom Tromey <tromey@redhat.com>
11341 * target-delegates.c: Rebuild.
11342 * target.h (struct target_ops) <to_extra_thread_info,
11343 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11344 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11345 not 0, in TARGET_DEFAULT_RETURN.
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11349 * target.c (complete_target_initialization): Remove casts. Use
11350 return_zero_has_execution.
11351 (return_zero): Add "ignore" argument.
11352 (return_zero_has_execution): New function.
11353 (init_dummy_target): Remove casts. Use
11354 return_zero_has_execution.
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11358 * target.c (update_current_target): Update comments. Do not
11359 INHERIT to_stratum.
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11363 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11365 * corelow.c (core_read_description): Delegate when needed.
11366 * remote.c (remote_read_description): Delegate when needed.
11367 * target-delegates.c: Rebuild.
11368 * target.c (target_read_description): Rewrite.
11369 * target.h (struct target_ops) <to_read_description>: Update
11370 comment. Use TARGET_DEFAULT_RETURN.
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11374 * target-delegates.c: Rebuild.
11375 * target.c (update_current_target): Don't inherit or default
11377 (find_default_run_target): Check against delegate_can_run.
11378 * target.h (struct target_ops) <to_can_run>: Use
11379 TARGET_DEFAULT_RETURN.
11381 2014-02-19 Tom Tromey <tromey@redhat.com>
11383 * target-delegates.c: Rebuild.
11384 * target.c (target_disconnect): Unconditionally delegate.
11385 * target.h (struct target_ops) <to_disconnect>: Use
11386 TARGET_DEFAULT_NORETURN.
11388 2014-02-19 Tom Tromey <tromey@redhat.com>
11390 * record.c (record_stop): Unconditionally delegate.
11391 * target-delegates.c: Rebuild.
11392 * target.c (target_stop_recording): Unconditionally delegate.
11393 * target.h (struct target_ops) <to_stop_recording>: Use
11394 TARGET_DEFAULT_IGNORE.
11396 2014-02-19 Tom Tromey <tromey@redhat.com>
11398 * target-delegates.c: Rebuild.
11399 * target.c (target_enable_btrace): Unconditionally delegate.
11400 * target.h (struct target_ops) <to_enable_btrace>: Use
11401 TARGET_DEFAULT_NORETURN.
11403 2014-02-19 Tom Tromey <tromey@redhat.com>
11405 * target-delegates.c: Rebuild.
11406 * target.c (target_read_btrace): Unconditionally delegate.
11407 * target.h (struct target_ops) <to_read_btrace>: Use
11408 TARGET_DEFAULT_NORETURN.
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11412 * target-delegates.c: Rebuild.
11413 * target.c (target_teardown_btrace): Unconditionally delegate.
11414 * target.h (struct target_ops) <to_teardown_btrace>: Use
11415 TARGET_DEFAULT_NORETURN.
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11419 * target-delegates.c: Rebuild.
11420 * target.c (target_disable_btrace): Unconditionally delegate.
11421 * target.h (struct target_ops) <to_disable_btrace>: Use
11422 TARGET_DEFAULT_NORETURN.
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11426 * target-delegates.c: Rebuild.
11427 * target.c (default_search_memory): New function.
11428 (simple_search_memory): Update comment.
11429 (target_search_memory): Unconditionally delegate.
11430 * target.h (struct target_ops) <to_search_memory>: Use
11431 TARGET_DEFAULT_FUNC.
11433 2014-02-19 Tom Tromey <tromey@redhat.com>
11435 * auxv.c (default_auxv_parse): No longer static.
11436 (target_auxv_parse): Unconditionally delegate.
11437 * auxv.h (default_auxv_parse): Declare.
11438 * target-delegates.c: Rebuild.
11439 * target.c: Include auxv.h.
11440 * target.h (struct target_ops) <to_auxv_parse>: Use
11441 TARGET_DEFAULT_FUNC.
11443 2014-02-19 Tom Tromey <tromey@redhat.com>
11445 * target-delegates.c: Rebuild.
11446 * target.c (target_memory_map): Unconditionally delegate.
11447 * target.h (struct target_ops) <to_memory_map>: Use
11448 TARGET_DEFAULT_RETURN.
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11452 * target-delegates.c: Rebuild.
11453 * target.c (target_thread_alive): Unconditionally delegate.
11454 * target.h (struct target_ops) <to_thread_alive>: Use
11455 TARGET_DEFAULT_RETURN.
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11459 * target-delegates.c: Rebuild.
11460 * target.c (target_save_record): Unconditionally delegate.
11461 * target.h (struct target_ops) <to_save_record>: Use
11462 TARGET_DEFAULT_NORETURN.
11464 2014-02-19 Tom Tromey <tromey@redhat.com>
11466 * target-delegates.c: Rebuild.
11467 * target.c (target_delete_record): Unconditionally delegate.
11468 * target.h (struct target_ops) <to_delete_record>: Use
11469 TARGET_DEFAULT_NORETURN.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * target-delegates.c: Rebuild.
11474 * target.c (target_record_is_replaying): Unconditionally
11476 * target.h (struct target_ops) <to_record_is_replaying>: Use
11477 TARGET_DEFAULT_RETURN.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.c (target_goto_record_begin): Unconditionally delegate.
11483 * target.h (struct target_ops) <to_goto_record_begin>: Use
11484 TARGET_DEFAULT_NORETURN.
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11488 * target-delegates.c: Rebuild.
11489 * target.c (target_goto_record_end): Unconditionally delegate.
11490 * target.h (struct target_ops) <to_goto_record_end>: Use
11491 TARGET_DEFAULT_NORETURN.
11493 2014-02-19 Tom Tromey <tromey@redhat.com>
11495 * target-delegates.c: Rebuild.
11496 * target.c (target_goto_record): Unconditionally delegate.
11497 * target.h (struct target_ops) <to_goto_record>: Use
11498 TARGET_DEFAULT_NORETURN.
11500 2014-02-19 Tom Tromey <tromey@redhat.com>
11502 * target-delegates.c: Rebuild.
11503 * target.c (target_insn_history): Unconditionally delegate.
11504 * target.h (struct target_ops) <to_insn_history>: Use
11505 TARGET_DEFAULT_NORETURN.
11507 2014-02-19 Tom Tromey <tromey@redhat.com>
11509 * target-delegates.c: Rebuild.
11510 * target.c (target_insn_history_from): Unconditionally delegate.
11511 * target.h (struct target_ops) <to_insn_history_from>: Use
11512 TARGET_DEFAULT_NORETURN.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target-delegates.c: Rebuild.
11517 * target.c (target_insn_history_range): Unconditionally delegate.
11518 * target.h (struct target_ops) <to_insn_history_range>: Use
11519 TARGET_DEFAULT_NORETURN.
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11523 * target-delegates.c: Rebuild.
11524 * target.c (target_call_history): Unconditionally delegate.
11525 * target.h (struct target_ops) <to_call_history>: Use
11526 TARGET_DEFAULT_NORETURN.
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11530 * target-delegates.c: Rebuild.
11531 * target.c (target_call_history_from): Unconditionally delegate.
11532 * target.h (struct target_ops) <to_call_history_from>: Use
11533 TARGET_DEFAULT_NORETURN.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target-delegates.c: Rebuild.
11538 * target.c (target_call_history_range): Unconditionally delegate.
11539 * target.h (struct target_ops) <to_call_history_range>: Use
11540 TARGET_DEFAULT_NORETURN.
11542 2014-02-19 Tom Tromey <tromey@redhat.com>
11544 * target-delegates.c: Rebuild.
11545 * target.c (target_verify_memory): Unconditionally delegate.
11546 * target.h (struct target_ops) <to_verify_memory>: Use
11547 TARGET_DEFAULT_NORETURN.
11549 2014-02-19 Tom Tromey <tromey@redhat.com>
11551 * target-delegates.c: Rebuild.
11552 * target.c (target_core_of_thread): Unconditionally delegate.
11553 * target.h (struct target_ops) <to_core_of_thread>: Use
11554 TARGET_DEFAULT_RETURN.
11556 2014-02-19 Tom Tromey <tromey@redhat.com>
11558 * target-delegates.c: Rebuild.
11559 * target.c (target_flash_done): Unconditionally delegate.
11560 * target.h (struct target_ops) <to_flash_done>: Use
11561 TARGET_DEFAULT_NORETURN.
11563 2014-02-19 Tom Tromey <tromey@redhat.com>
11565 * target-delegates.c: Rebuild.
11566 * target.c (target_flash_erase): Unconditionally delegate.
11567 * target.h (struct target_ops) <to_flash_erase>: Use
11568 TARGET_DEFAULT_NORETURN.
11570 2014-02-19 Tom Tromey <tromey@redhat.com>
11572 * target-delegates.c: Rebuild.
11573 * target.c (target_get_section_table): Unconditionally delegate.
11574 * target.h (struct target_ops) <to_get_section_table>: Use
11575 TARGET_DEFAULT_RETURN.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target-delegates.c: Rebuild.
11580 * target.c (target_pid_to_str): Unconditionally delegate.
11581 (init_dummy_target): Don't initialize to_pid_to_str.
11582 (default_pid_to_str): Rename from dummy_pid_to_str.
11583 * target.h (struct target_ops) <to_pid_to_str>: Use
11584 TARGET_DEFAULT_FUNC.
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target-delegates.c: Rebuild.
11589 * target.c (target_find_new_threads): Unconditionally delegate.
11590 * target.h (struct target_ops) <to_find_new_threads>: Use
11591 TARGET_DEFAULT_RETURN.
11593 2014-02-19 Tom Tromey <tromey@redhat.com>
11595 * target-delegates.c: Rebuild.
11596 * target.c (target_program_signals): Unconditionally delegate.
11597 * target.h (struct target_ops) <to_program_signals>: Use
11598 TARGET_DEFAULT_IGNORE.
11600 2014-02-19 Tom Tromey <tromey@redhat.com>
11602 * target-delegates.c: Rebuild.
11603 * target.c (target_pass_signals): Unconditionally delegate.
11604 * target.h (struct target_ops) <to_pass_signals>: Use
11605 TARGET_DEFAULT_IGNORE.
11607 2014-02-19 Tom Tromey <tromey@redhat.com>
11609 * target-delegates.c: Rebuild.
11610 * target.c (default_mourn_inferior): New function.
11611 (target_mourn_inferior): Unconditionally delegate.
11612 * target.h (struct target_ops) <to_mourn_inferior>: Use
11613 TARGET_DEFAULT_FUNC.
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11617 * target-delegates.c: Rebuild.
11618 * target.c (default_follow_fork): New function.
11619 (target_follow_fork): Unconditionally delegate.
11620 * target.h (struct target_ops) <to_follow_fork>: Use
11621 TARGET_DEFAULT_FUNC.
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11625 * target-delegates.c: Rebuild.
11626 * target.c (target_kill): Unconditionally delegate.
11627 * target.h (struct target_ops) <to_kill>: Use
11628 TARGET_DEFAULT_NORETURN.
11630 2014-02-19 Tom Tromey <tromey@redhat.com>
11632 * target-delegates.c: Rebuild.
11633 * target.c (target_masked_watch_num_registers): Unconditionally
11635 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11636 Use TARGET_DEFAULT_RETURN.
11638 2014-02-19 Tom Tromey <tromey@redhat.com>
11640 * target-delegates.c: Rebuild.
11641 * target.c (target_remove_mask_watchpoint): Unconditionally
11643 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11644 TARGET_DEFAULT_RETURN.
11646 2014-02-19 Tom Tromey <tromey@redhat.com>
11648 * target-delegates.c: Rebuild.
11649 * target.c (target_insert_mask_watchpoint): Unconditionally
11651 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11652 TARGET_DEFAULT_RETURN.
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11656 * target-delegates.c: Rebuild.
11657 * target.c (target_ranged_break_num_registers): Unconditionally
11659 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11660 Use TARGET_DEFAULT_RETURN.
11662 2014-02-19 Tom Tromey <tromey@redhat.com>
11664 * target-delegates.c: Rebuild.
11665 * target.c (target_fetch_registers): Unconditionally delegate.
11666 * target.h (struct target_ops) <to_fetch_registers>: Use
11667 TARGET_DEFAULT_NORETURN.
11669 2014-02-19 Tom Tromey <tromey@redhat.com>
11671 * target-delegates.c: Rebuild.
11672 * target.c (update_current_target): Don't inherit or default
11674 * target.h (struct target_ops) <to_stop>: Use
11675 TARGET_DEFAULT_IGNORE.
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11679 * target-delegates.c: Rebuild.
11680 * target.c (update_current_target): Don't inherit or default
11681 to_can_run_breakpoint_commands.
11682 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11683 Use TARGET_DEFAULT_RETURN.
11685 2014-02-19 Tom Tromey <tromey@redhat.com>
11687 * target-delegates.c: Rebuild.
11688 * target.c (update_current_target): Don't inherit or default
11689 to_supports_evaluation_of_breakpoint_conditions.
11690 * target.h (struct target_ops)
11691 <to_supports_evaluation_of_breakpoint_conditions>: Use
11692 TARGET_DEFAULT_RETURN.
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11696 * target-delegates.c: Rebuild.
11697 * target.c (update_current_target): Don't inherit or default
11698 to_augmented_libraries_svr4_read.
11699 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11700 Use TARGET_DEFAULT_RETURN.
11702 2014-02-19 Tom Tromey <tromey@redhat.com>
11704 * target-delegates.c: Rebuild.
11705 * target.c (update_current_target): Don't inherit or default
11707 * target.h (struct target_ops) <to_can_use_agent>: Use
11708 TARGET_DEFAULT_RETURN.
11710 2014-02-19 Tom Tromey <tromey@redhat.com>
11712 * target-delegates.c: Rebuild.
11713 * target.c (update_current_target): Don't inherit or default
11715 * target.h (struct target_ops) <to_use_agent>: Use
11716 TARGET_DEFAULT_NORETURN.
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11720 * target-delegates.c: Rebuild.
11721 * target.c (update_current_target): Don't inherit or default
11722 to_traceframe_info.
11723 (return_null): Remove.
11724 * target.h (struct target_ops) <to_traceframe_info>: Use
11725 TARGET_DEFAULT_RETURN.
11727 2014-02-19 Tom Tromey <tromey@redhat.com>
11729 * target-delegates.c: Rebuild.
11730 * target.c (update_current_target): Don't inherit or default
11731 to_static_tracepoint_markers_by_strid.
11732 * target.h (struct target_ops)
11733 <to_static_tracepoint_markers_by_strid>: Use
11734 TARGET_DEFAULT_NORETURN.
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11738 * target-delegates.c: Rebuild.
11739 * target.c (update_current_target): Don't inherit or default
11740 to_static_tracepoint_marker_at.
11741 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11742 Use TARGET_DEFAULT_RETURN.
11744 2014-02-19 Tom Tromey <tromey@redhat.com>
11746 * target-delegates.c: Rebuild.
11747 * target.c (update_current_target): Don't inherit or default
11748 to_set_permissions.
11749 * target.h (struct target_ops) <to_set_permissions>: Use
11750 TARGET_DEFAULT_IGNORE.
11752 2014-02-19 Tom Tromey <tromey@redhat.com>
11754 * target-delegates.c: Rebuild.
11755 * target.c (update_current_target): Don't inherit or default
11756 to_get_tib_address.
11757 * target.h (struct target_ops) <to_get_tib_address>: Use
11758 TARGET_DEFAULT_NORETURN.
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11762 * target-delegates.c: Rebuild.
11763 * target.c (update_current_target): Don't inherit or default
11764 to_set_trace_notes.
11765 * target.h (struct target_ops) <to_set_trace_notes>: Use
11766 TARGET_DEFAULT_RETURN.
11768 2014-02-19 Tom Tromey <tromey@redhat.com>
11770 * target-delegates.c: Rebuild.
11771 * target.c (update_current_target): Don't initialize
11772 to_set_trace_buffer_size.
11773 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11774 TARGET_DEFAULT_IGNORE.
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11778 * target-delegates.c: Rebuild.
11779 * target.c (update_current_target): Don't inherit or default
11780 to_set_circular_trace_buffer.
11781 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11782 TARGET_DEFAULT_IGNORE.
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11786 * target-delegates.c: Rebuild.
11787 * target.c (update_current_target): Don't inherit or default
11788 to_set_disconnected_tracing.
11789 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11790 TARGET_DEFAULT_IGNORE.
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11794 * target-delegates.c: Rebuild.
11795 * target.c (update_current_target): Don't inherit or default
11796 to_get_min_fast_tracepoint_insn_len.
11797 (return_minus_one): Remove.
11798 * target.h (struct target_ops)
11799 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11803 * target-delegates.c: Rebuild.
11804 * target.c (update_current_target): Don't inherit or default
11805 to_get_raw_trace_data.
11806 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11807 TARGET_DEFAULT_NORETURN.
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target-delegates.c: Rebuild.
11812 * target.c (update_current_target): Don't inherit or default
11813 to_upload_trace_state_variables.
11814 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11815 Use TARGET_DEFAULT_RETURN.
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11819 * target-delegates.c: Rebuild.
11820 * target.c (update_current_target): Don't inherit or default
11821 to_upload_tracepoints.
11822 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11823 TARGET_DEFAULT_RETURN.
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11827 * target-delegates.c: Rebuild.
11828 * target.c (update_current_target): Don't inherit or default
11829 to_save_trace_data.
11830 * target.h (struct target_ops) <to_save_trace_data>: Use
11831 TARGET_DEFAULT_NORETURN.
11833 2014-02-19 Tom Tromey <tromey@redhat.com>
11835 * target-delegates.c: Rebuild.
11836 * target.c (update_current_target): Don't inherit or default
11837 to_get_trace_state_variable_value.
11838 * target.h (struct target_ops)
11839 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11843 * target-delegates.c: Rebuild.
11844 * target.c (update_current_target): Don't inherit or default
11846 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11848 2014-02-19 Tom Tromey <tromey@redhat.com>
11850 * target-delegates.c: Rebuild.
11851 * target.c (update_current_target): Don't inherit or default
11853 * target.h (struct target_ops) <to_trace_stop>: Use
11854 TARGET_DEFAULT_NORETURN.
11856 2014-02-19 Tom Tromey <tromey@redhat.com>
11858 * target-delegates.c: Rebuild.
11859 * target.c (update_current_target): Don't inherit or default
11860 to_get_tracepoint_status.
11861 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11862 TARGET_DEFAULT_NORETURN.
11864 2014-02-19 Tom Tromey <tromey@redhat.com>
11866 * target-delegates.c: Rebuild.
11867 * target.c (update_current_target): Don't inherit or default
11868 to_get_trace_status.
11869 * target.h (struct target_ops) <to_get_trace_status>: Use
11870 TARGET_DEFAULT_RETURN.
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11874 * target-delegates.c: Rebuild.
11875 * target.c (update_current_target): Don't inherit or default
11877 * target.h (struct target_ops) <to_trace_start>: Use
11878 TARGET_DEFAULT_NORETURN.
11880 2014-02-19 Tom Tromey <tromey@redhat.com>
11882 * target-delegates.c: Rebuild.
11883 * target.c (update_current_target): Don't inherit or default
11884 to_trace_set_readonly_regions.
11885 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11886 Use TARGET_DEFAULT_NORETURN.
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11890 * target-delegates.c: Rebuild.
11891 * target.c (update_current_target): Don't inherit or default
11892 to_disable_tracepoint.
11893 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11894 TARGET_DEFAULT_NORETURN.
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11898 * target-delegates.c: Rebuild.
11899 * target.c (update_current_target): Don't inherit or default
11900 to_enable_tracepoint.
11901 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11902 TARGET_DEFAULT_NORETURN.
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11906 * target-delegates.c: Rebuild.
11907 * target.c (update_current_target): Don't inherit or default
11908 to_download_trace_state_variable.
11909 * target.h (struct target_ops) <to_download_trace_state_variable>:
11910 Use TARGET_DEFAULT_NORETURN.
11912 2014-02-19 Tom Tromey <tromey@redhat.com>
11914 * target-delegates.c: Rebuild.
11915 * target.c (update_current_target): Don't inherit or default
11916 to_can_download_tracepoint.
11917 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11918 TARGET_DEFAULT_RETURN.
11920 2014-02-19 Tom Tromey <tromey@redhat.com>
11922 * target-delegates.c: Rebuild.
11923 * target.c (update_current_target): Don't inherit or default
11924 to_download_tracepoint.
11925 * target.h (struct target_ops) <to_download_tracepoint>: Use
11926 TARGET_DEFAULT_NORETURN.
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11930 * target-delegates.c: Rebuild.
11931 * target.c (update_current_target): Don't inherit or default
11933 * target.h (struct target_ops) <to_trace_init>: Use
11934 TARGET_DEFAULT_RETURN.
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * target-delegates.c: Rebuild.
11939 * target.c (update_current_target): Don't inherit or default
11940 to_supports_string_tracing.
11941 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11942 TARGET_DEFAULT_RETURN.
11944 2014-02-19 Tom Tromey <tromey@redhat.com>
11946 * target-delegates.c: Rebuild.
11947 * target.c (update_current_target): Don't inherit or default
11948 to_supports_enable_disable_tracepoint.
11949 * target.h (struct target_ops)
11950 <to_supports_enable_disable_tracepoint>: Use
11951 TARGET_DEFAULT_RETURN.
11953 2014-02-19 Tom Tromey <tromey@redhat.com>
11955 * target-delegates.c: Rebuild.
11956 * target.c (update_current_target): Don't inherit or default
11957 to_supports_multi_process.
11958 * target.h (struct target_ops) <to_supports_multi_process>: Use
11959 TARGET_DEFAULT_RETURN.
11961 2014-02-19 Tom Tromey <tromey@redhat.com>
11963 * target-delegates.c: Rebuild.
11964 * target.c (update_current_target): Don't inherit or default
11965 to_get_ada_task_ptid.
11966 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11967 TARGET_DEFAULT_FUNC.
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11971 * target-delegates.c: Rebuild.
11972 * target.c (update_current_target): Don't inherit or default
11973 to_thread_architecture.
11974 * target.h (struct target_ops) <to_thread_architecture>: Use
11975 TARGET_DEFAULT_FUNC.
11977 2014-02-19 Tom Tromey <tromey@redhat.com>
11979 * target-delegates.c: Rebuild.
11980 * target.c (update_current_target): Don't inherit or default
11981 to_execution_direction.
11982 * target.h (struct target_ops) <to_execution_direction>: Use
11983 TARGET_DEFAULT_FUNC.
11985 2014-02-19 Tom Tromey <tromey@redhat.com>
11987 * target-delegates.c: Rebuild.
11988 * target.c (update_current_target): Don't inherit or default
11989 to_can_execute_reverse.
11990 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11991 TARGET_DEFAULT_RETURN.
11992 (target_can_execute_reverse): Unconditionally delegate.
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11996 * target-delegates.c: Rebuild.
11997 * target.c (update_current_target): Don't inherit or default
11999 (dummy_goto_bookmark): Remove.
12000 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12001 * target.h (struct target_ops) <to_goto_bookmark>: Use
12002 TARGET_DEFAULT_NORETURN.
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12009 (dummy_get_bookmark): Remove.
12010 (init_dummy_target): Don't inherit or default to_get_bookmark.
12011 * target.h (struct target_ops) <to_get_bookmark>: Use
12012 TARGET_DEFAULT_NORETURN
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12016 * target-delegates.c: Rebuild.
12017 * target.c (update_current_target): Don't inherit or default
12018 to_make_corefile_notes.
12019 (init_dummy_target): Don't initialize to_make_corefile_notes.
12020 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12021 TARGET_DEFAULT_FUNC.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target-delegates.c: Rebuild.
12026 * target.c (update_current_target): Don't inherit or default
12027 to_find_memory_regions.
12028 (init_dummy_target): Don't initialize to_find_memory_regions.
12029 * target.h (struct target_ops) <to_find_memory_regions>: Use
12030 TARGET_DEFAULT_FUNC.
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12034 * target-delegates.c: Rebuild.
12035 * target.c (update_current_target): Don't inherit or default
12037 * target.h (struct target_ops) <to_log_command>: Use
12038 TARGET_DEFAULT_IGNORE.
12039 (target_log_command): Unconditionally delegate.
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12043 * target-delegates.c: Rebuild.
12044 * target.c (update_current_target): Don't inherit or default
12045 to_pid_to_exec_file.
12046 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12047 TARGET_DEFAULT_RETURN.
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12051 * target-delegates.c: Rebuild.
12052 * target.c (update_current_target): Don't inherit or default
12054 (target_thread_name): Unconditionally delegate.
12055 * target.h (struct target_ops) <to_thread_name>: Use
12056 TARGET_DEFAULT_RETURN.
12058 2014-02-19 Tom Tromey <tromey@redhat.com>
12060 * target-delegates.c: Rebuild.
12061 * target.c (update_current_target): Don't inherit or default
12062 to_extra_thread_info.
12063 * target.h (struct target_ops) <to_extra_thread_info>: Use
12064 TARGET_DEFAULT_RETURN.
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12068 * target-delegates.c: Rebuild.
12069 * target.c (update_current_target): Don't inherit or default
12071 * target.h (struct target_ops) <to_has_exited>: Use
12072 TARGET_DEFAULT_RETURN..
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12076 * target-delegates.c: Rebuild.
12077 * target.c (update_current_target): Don't inherit or default
12078 to_set_syscall_catchpoint.
12079 (return_one): Remove.
12080 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12081 TARGET_DEFAULT_RETURN.
12083 2014-02-19 Tom Tromey <tromey@redhat.com>
12085 * target-delegates.c: Rebuild.
12086 * target.c (update_current_target): Don't inherit or default
12087 to_insert_exec_catchpoint.
12088 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12089 TARGET_DEFAULT_RETURN.
12091 2014-01-08 Tom Tromey <tromey@redhat.com>
12093 * target-delegates.c: Rebuild.
12094 * target.c (update_current_target): Don't inherit or default
12095 to_insert_exec_catchpoint.
12096 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12097 TARGET_DEFAULT_RETURN.
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12101 * target-delegates.c: Rebuild.
12102 * target.c (update_current_target): Don't inherit or default
12103 to_remove_vfork_catchpoint.
12104 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12105 TARGET_DEFAULT_RETURN.
12107 2014-02-19 Tom Tromey <tromey@redhat.com>
12109 * target-delegates.c: Rebuild.
12110 * target.c (update_current_target): Don't inherit or default
12111 to_insert_vfork_catchpoint.
12112 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12113 TARGET_DEFAULT_RETURN.
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12117 * target-delegates.c: Rebuild.
12118 * target.c (update_current_target): Don't inherit or default
12119 to_remove_fork_catchpoint.
12120 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12121 TARGET_DEFAULT_RETURN.
12123 2014-02-19 Tom Tromey <tromey@redhat.com>
12125 * target-delegates.c: Rebuild.
12126 * target.c (update_current_target): Don't inherit or default
12127 to_insert_fork_catchpoint.
12128 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12129 TARGET_DEFAULT_RETURN.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target-delegates.c: Rebuild.
12134 * target.c (update_current_target): Don't inherit or default
12135 to_post_startup_inferior.
12136 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12137 TARGET_DEFAULT_IGNORE.
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12141 * target-delegates.c: Rebuild.
12142 * target.c (update_current_target): Don't inherit or default
12144 * target.h (struct target_ops) <to_load>: Use
12145 TARGET_DEFAULT_NORETURN.
12147 2014-02-19 Tom Tromey <tromey@redhat.com>
12149 * target-delegates.c: Rebuild.
12150 * target.c (update_current_target): Don't inherit or default
12152 * target.h (struct target_ops) <to_terminal_info>: Use
12153 TARGET_DEFAULT_FUNC.
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12157 * target-delegates.c: Rebuild.
12158 * target.c (update_current_target): Don't inherit or default
12159 to_terminal_save_ours.
12160 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12161 TARGET_DEFAULT_IGNORE.
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12165 * target-delegates.c: Rebuild.
12166 * target.c (update_current_target): Don't inherit or default
12168 * target.h (struct target_ops) <to_terminal_ours>: Use
12169 TARGET_DEFAULT_IGNORE.
12171 2014-02-19 Tom Tromey <tromey@redhat.com>
12173 * target-delegates.c: Rebuild.
12174 * target.c (update_current_target): Don't inherit or default
12175 to_terminal_ours_for_output.
12176 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12177 TARGET_DEFAULT_IGNORE.
12179 2014-02-19 Tom Tromey <tromey@redhat.com>
12181 * target-delegates.c: Rebuild.
12182 * target.c (update_current_target): Don't inherit or default
12183 to_terminal_inferior.
12184 * target.h (struct target_ops) <to_terminal_inferior>: Use
12185 TARGET_DEFAULT_IGNORE.
12187 2014-02-19 Tom Tromey <tromey@redhat.com>
12189 * target-delegates.c: Rebuild.
12190 * target.c (update_current_target): Don't inherit or default
12192 * target.h (struct target_ops) <to_terminal_init>: Use
12193 TARGET_DEFAULT_IGNORE.
12195 2014-02-19 Tom Tromey <tromey@redhat.com>
12197 * target-delegates.c: Rebuild.
12198 * target.c (update_current_target): Don't inherit or default
12199 to_can_accel_watchpoint_condition.
12200 * target.h (struct target_ops)
12201 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12203 2014-02-19 Tom Tromey <tromey@redhat.com>
12205 * target-delegates.c: Rebuild.
12206 * target.c (update_current_target): Don't inherit or default
12207 to_region_ok_for_hw_watchpoint.
12208 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12209 Use TARGET_DEFAULT_FUNC.
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12213 * target-delegates.c: Rebuild.
12214 * target.c (update_current_target): Don't inherit or default
12215 to_watchpoint_addr_within_range.
12216 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12217 Use TARGET_DEFAULT_FUNC.
12219 2014-02-19 Tom Tromey <tromey@redhat.com>
12221 * target-delegates.c: Rebuild.
12222 * target.c (update_current_target): Don't inherit or default
12223 to_remove_watchpoint.
12224 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12225 TARGET_DEFAULT_NORETURN.
12227 2014-02-19 Tom Tromey <tromey@redhat.com>
12229 * target-delegates.c: Rebuild.
12230 * target.c (update_current_target): Don't inherit or default
12231 to_insert_watchpoint.
12232 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12233 TARGET_DEFAULT_RETURN.
12235 2014-02-19 Tom Tromey <tromey@redhat.com>
12237 * target-delegates.c: Rebuild.
12238 * target.c (update_current_target): Don't inherit or default
12239 to_remove_hw_breakpoint.
12240 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12241 TARGET_DEFAULT_RETURN.
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12245 * target-delegates.c: Rebuild.
12246 * target.c (update_current_target): Don't inherit or default
12247 to_insert_hw_breakpoint.
12248 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12249 TARGET_DEFAULT_RETURN.
12251 2014-02-19 Tom Tromey <tromey@redhat.com>
12253 * target-delegates.c: Rebuild.
12254 * target.c (update_current_target): Don't inherit or default
12255 to_can_use_hw_breakpoint.
12256 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12257 TARGET_DEFAULT_RETURN.
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12261 * target-delegates.c: Rebuild.
12262 * target.c (update_current_target): Don't inherit or default
12264 * target.h (struct target_ops) <to_files_info>: Use
12265 TARGET_DEFAULT_IGNORE.
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12269 * target-delegates.c: Rebuild.
12270 * target.c (update_current_target): Don't inherit or default
12272 * target.h (struct target_ops) <to_store>: Use
12273 TARGET_DEFAULT_NORETURN.
12275 2014-02-19 Tom Tromey <tromey@redhat.com>
12277 * target-delegates.c: Rebuild.
12278 * target.c (update_current_target): Don't inherit or default
12280 * target.h (struct target_ops) <to_post_attach>: Use
12281 TARGET_DEFAULT_IGNORE.
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12285 * target-delegates.c: Rebuild.
12286 * target.c (update_current_target): Don't inherit or default
12288 (default_rcmd): New function.
12289 (do_monitor_command): Unconditionally delegate.
12290 * target.h (struct target_ops) <to_rmcd>: Use
12291 TARGET_DEFAULT_FUNC.
12293 2014-02-19 Tom Tromey <tromey@redhat.com>
12295 * target-delegates.c: Rebuild.
12296 * target.c (init_dummy_target): Don't initialize to_attach.
12297 (target_attach): Unconditionally delegate.
12298 * target.h (struct target_ops) <to_attach>: Use
12299 TARGET_DEFAULT_FUNC.
12301 2014-02-19 Tom Tromey <tromey@redhat.com>
12303 * target-delegates.c: Rebuild.
12304 * target.c (target_detach): Unconditionally delegate.
12305 (init_dummy_target): Don't initialize to_detach.
12306 * target.h (struct target_ops) <to_detach>: Use
12307 TARGET_DEFAULT_IGNORE.
12309 2014-02-19 Tom Tromey <tromey@redhat.com>
12311 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12313 (target_augmented_libraries_svr4_read): Add argument.
12314 * target.c (update_current_target): Update.
12315 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12318 2014-02-19 Tom Tromey <tromey@redhat.com>
12320 * target.h (struct target_ops) <to_call_history_range>: Add
12322 * target.c (target_call_history_range): Add argument.
12323 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12325 (record_btrace_call_history_from): Update.
12327 2014-02-19 Tom Tromey <tromey@redhat.com>
12329 * target.h (struct target_ops) <to_call_history_from>: Add
12331 * target.c (target_call_history_from): Add argument.
12332 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * target.h (struct target_ops) <to_call_history>: Add argument.
12338 * target.c (target_call_history): Add argument.
12339 * record-btrace.c (record_btrace_call_history): Add 'self'
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12344 * target.h (struct target_ops) <to_insn_history_range>: Add
12346 * target.c (target_insn_history_range): Add argument.
12347 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12349 (record_btrace_insn_history_from): Update.
12351 2014-02-19 Tom Tromey <tromey@redhat.com>
12353 * target.h (struct target_ops) <to_insn_history_from>: Add
12355 * target.c (target_insn_history_from): Add argument.
12356 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12361 * target.h (struct target_ops) <to_insn_history>: Add argument.
12362 * target.c (target_insn_history): Add argument.
12363 * record-btrace.c (record_btrace_insn_history): Add 'self'
12366 2014-02-19 Tom Tromey <tromey@redhat.com>
12368 * target.h (struct target_ops) <to_goto_record>: Add argument.
12369 * target.c (target_goto_record): Add argument.
12370 * record-full.c (record_full_goto): Add 'self' argument.
12371 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12373 2014-02-19 Tom Tromey <tromey@redhat.com>
12375 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12376 * target.c (target_goto_record_end): Add argument.
12377 * record-full.c (record_full_goto_end): Add 'self' argument.
12378 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12380 2014-02-19 Tom Tromey <tromey@redhat.com>
12382 * target.h (struct target_ops) <to_goto_record_begin>: Add
12384 * target.c (target_goto_record_begin): Add argument.
12385 * record-full.c (record_full_goto_begin): Add 'self' argument.
12386 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12389 2014-02-19 Tom Tromey <tromey@redhat.com>
12391 * target.h (struct target_ops) <to_record_is_replaying>: Add
12393 * target.c (target_record_is_replaying): Add argument.
12394 * record-full.c (record_full_is_replaying): Add 'self' argument.
12395 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12397 (record_btrace_xfer_partial, record_btrace_store_registers)
12398 (record_btrace_prepare_to_store, record_btrace_resume)
12399 (record_btrace_wait, record_btrace_decr_pc_after_break)
12400 (record_btrace_find_new_threads, record_btrace_thread_alive):
12403 2014-02-19 Tom Tromey <tromey@redhat.com>
12405 * target.h (struct target_ops) <to_delete_record>: Add argument.
12406 * target.c (target_delete_record): Add argument.
12407 * record-full.c (record_full_delete): Add 'self' argument.
12409 2014-02-19 Tom Tromey <tromey@redhat.com>
12411 * target.h (struct target_ops) <to_save_record>: Add argument.
12412 * target.c (target_save_record): Add argument.
12413 * record-full.c (record_full_save): Add 'self' argument.
12414 (record_full_save): Add 'self' argument.
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12418 * target.h (struct target_ops) <to_info_record>: Add argument.
12419 * target.c (target_info_record): Add argument.
12420 * record.c (info_record_command): Add argument.
12421 * record-full.c (record_full_info): Add 'self' argument.
12422 * record-btrace.c (record_btrace_info): Add 'self' argument.
12424 2014-02-19 Tom Tromey <tromey@redhat.com>
12426 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12427 * target.c (target_stop_recording): Add argument.
12428 * record.c (record_stop): Add argument.
12429 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12432 2014-02-19 Tom Tromey <tromey@redhat.com>
12434 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12435 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12436 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12438 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12439 (_initialize_amd64_linux_nat): Use it.
12440 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12441 (_initialize_i386_linux_nat): Use it.
12443 2014-02-19 Tom Tromey <tromey@redhat.com>
12445 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12446 * target.c (target_teardown_btrace): Add argument.
12447 * remote.c (remote_teardown_btrace): Add 'self' argument.
12448 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12450 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12453 2014-02-19 Tom Tromey <tromey@redhat.com>
12455 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12456 * target.c (target_disable_btrace): Add argument.
12457 * remote.c (remote_disable_btrace): Add 'self' argument.
12458 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12460 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12463 2014-02-19 Tom Tromey <tromey@redhat.com>
12465 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12466 * target.c (target_enable_btrace): Add argument.
12467 * remote.c (remote_enable_btrace): Add 'self' argument.
12468 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12470 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12473 2014-02-19 Tom Tromey <tromey@redhat.com>
12475 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12476 (target_can_use_agent): Add argument.
12477 * target.c (update_current_target): Update.
12478 * remote.c (remote_can_use_agent): Add 'self' argument.
12479 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12481 2014-02-19 Tom Tromey <tromey@redhat.com>
12483 * target.h (struct target_ops) <to_use_agent>: Add argument.
12484 (target_use_agent): Add argument.
12485 * target.c (update_current_target): Update.
12486 * remote.c (remote_use_agent): Add 'self' argument.
12487 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12489 2014-02-19 Tom Tromey <tromey@redhat.com>
12491 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12492 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12493 (target_traceframe_info): Add argument.
12494 * target.c (update_current_target): Update.
12495 * remote.c (remote_traceframe_info): Add 'self' argument.
12496 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12498 2014-02-19 Tom Tromey <tromey@redhat.com>
12500 * target.h (target_static_tracepoint_markers_by_strid): Add
12502 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12504 * target.c (update_current_target): Update.
12505 * remote.c (struct target_ops)
12506 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12507 * linux-nat.c (struct target_ops)
12508 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12510 2014-02-19 Tom Tromey <tromey@redhat.com>
12512 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12514 (target_static_tracepoint_marker_at): Add argument.
12515 * target.c (update_current_target): Update.
12516 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12521 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12522 (target_set_permissions): Add argument.
12523 * target.c (update_current_target): Update.
12524 * remote.c (remote_set_permissions): Add 'self' argument.
12525 (remote_start_remote): Update.
12527 2014-02-19 Tom Tromey <tromey@redhat.com>
12529 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12530 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12531 (target_get_tib_address): Add argument.
12532 * target.c (update_current_target): Update.
12533 * remote.c (remote_get_tib_address): Add 'self' argument.
12535 2014-02-19 Tom Tromey <tromey@redhat.com>
12537 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12538 (target_set_trace_notes): Add argument.
12539 * target.c (update_current_target): Update.
12540 * remote.c (remote_set_trace_notes): Add 'self' argument.
12542 2014-02-19 Tom Tromey <tromey@redhat.com>
12544 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12546 (target_set_trace_buffer_size): Add argument.
12547 * target.c (update_current_target): Update.
12548 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12550 2014-02-19 Tom Tromey <tromey@redhat.com>
12552 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12554 (target_set_circular_trace_buffer): Add argument.
12555 * target.c (update_current_target): Update.
12556 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12559 2014-02-19 Tom Tromey <tromey@redhat.com>
12561 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12563 (target_set_disconnected_tracing): Add argument.
12564 * target.c (update_current_target): Update.
12565 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12567 2014-02-19 Tom Tromey <tromey@redhat.com>
12569 * target.h (struct target_ops)
12570 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12571 (target_get_min_fast_tracepoint_insn_len): Add argument.
12572 * target.c (update_current_target): Update.
12573 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12576 2014-02-19 Tom Tromey <tromey@redhat.com>
12578 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12580 (target_get_raw_trace_data): Add argument.
12581 * target.c (update_current_target): Update.
12582 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12584 2014-02-19 Tom Tromey <tromey@redhat.com>
12586 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12588 (target_upload_trace_state_variables): Add argument.
12589 * target.c (update_current_target): Update.
12590 * remote.c (remote_upload_trace_state_variables): Add 'self'
12592 (remote_start_remote): Update.
12594 2014-02-19 Tom Tromey <tromey@redhat.com>
12596 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12598 (target_upload_tracepoints): Add argument.
12599 * target.c (update_current_target): Update.
12600 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12601 (remote_start_remote): Update.
12603 2014-02-19 Tom Tromey <tromey@redhat.com>
12605 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12606 (target_save_trace_data): Add argument.
12607 * target.c (update_current_target): Update.
12608 * remote.c (remote_save_trace_data): Add 'self' argument.
12610 2014-02-19 Tom Tromey <tromey@redhat.com>
12612 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12614 * target.h (struct target_ops)
12615 <to_get_trace_state_variable_value>: Add argument.
12616 (target_get_trace_state_variable_value): Add argument.
12617 * target.c (update_current_target): Update.
12618 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12620 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12622 2014-02-19 Tom Tromey <tromey@redhat.com>
12624 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12625 * target.h (struct target_ops) <to_trace_find>: Add argument.
12626 (target_trace_find): Add argument.
12627 * target.c (update_current_target): Update.
12628 * remote.c (remote_trace_find): Add 'self' argument.
12629 * ctf.c (ctf_trace_find): Add 'self' argument.
12631 2014-02-19 Tom Tromey <tromey@redhat.com>
12633 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12634 (target_trace_stop): Add argument.
12635 * target.c (update_current_target): Update.
12636 * remote.c (remote_trace_stop): Add 'self' argument.
12638 2014-02-19 Tom Tromey <tromey@redhat.com>
12640 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12641 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12643 (target_get_tracepoint_status): Add argument.
12644 * target.c (update_current_target): Update.
12645 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12649 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12650 * target.h (struct target_ops) <to_get_trace_status>: Add
12652 (target_get_trace_status): Add argument.
12653 * target.c (update_current_target): Update.
12654 * remote.c (remote_get_trace_status): Add 'self' argument.
12655 (remote_start_remote, remote_can_download_tracepoint): Update.
12656 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12658 2014-02-19 Tom Tromey <tromey@redhat.com>
12660 * target.h (struct target_ops) <to_trace_start>: Add argument.
12661 (target_trace_start): Add argument.
12662 * target.c (update_current_target): Update.
12663 * remote.c (remote_trace_start): Add 'self' argument.
12665 2014-02-19 Tom Tromey <tromey@redhat.com>
12667 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12669 (target_trace_set_readonly_regions): Add argument.
12670 * target.c (update_current_target): Update.
12671 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12674 2014-02-19 Tom Tromey <tromey@redhat.com>
12676 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12678 (target_disable_tracepoint): Add argument.
12679 * target.c (update_current_target): Update.
12680 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12682 2014-02-19 Tom Tromey <tromey@redhat.com>
12684 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12686 (target_enable_tracepoint): Add argument.
12687 * target.c (update_current_target): Update.
12688 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12690 2014-02-19 Tom Tromey <tromey@redhat.com>
12692 * target.h (struct target_ops) <to_download_trace_state_variable>:
12694 (target_download_trace_state_variable): Add argument.
12695 * target.c (update_current_target): Update.
12696 * remote.c (remote_download_trace_state_variable): Add 'self'
12699 2014-02-19 Tom Tromey <tromey@redhat.com>
12701 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12703 (target_can_download_tracepoint): Add argument.
12704 * target.c (update_current_target): Update.
12705 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12707 2014-02-19 Tom Tromey <tromey@redhat.com>
12709 * target.h (struct target_ops) <to_download_tracepoint>: Add
12711 (target_download_tracepoint): Add argument.
12712 * target.c (update_current_target): Update.
12713 * remote.c (remote_download_tracepoint): Add 'self' argument.
12715 2014-02-19 Tom Tromey <tromey@redhat.com>
12717 * target.h (struct target_ops) <to_trace_init>: Add argument.
12718 (target_trace_init): Add argument.
12719 * target.c (update_current_target): Update.
12720 * remote.c (remote_trace_init): Add 'self' argument.
12722 2014-02-19 Tom Tromey <tromey@redhat.com>
12724 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12725 * target.c (target_fileio_readlink): Add argument.
12726 * remote.c (remote_hostio_readlink): Add 'self' argument.
12727 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12729 2014-02-19 Tom Tromey <tromey@redhat.com>
12731 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12732 * target.c (target_fileio_unlink): Add argument.
12733 * remote.c (remote_hostio_unlink): Add 'self' argument.
12734 (remote_file_delete): Update.
12735 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12737 2014-02-19 Tom Tromey <tromey@redhat.com>
12739 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12740 * target.c (target_fileio_close): Add argument.
12741 * remote.c (remote_hostio_close): Add 'self' argument.
12742 (remote_hostio_close_cleanup): Update.
12743 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12745 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12747 2014-02-19 Tom Tromey <tromey@redhat.com>
12749 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12750 * target.c (target_fileio_pread): Add argument.
12751 * remote.c (remote_hostio_pread): Add 'self' argument.
12752 (remote_bfd_iovec_pread, remote_file_get): Update.
12753 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12755 2014-02-19 Tom Tromey <tromey@redhat.com>
12757 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12758 * target.c (target_fileio_pwrite): Add argument.
12759 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12760 (remote_file_put): Update.
12761 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12763 2014-02-19 Tom Tromey <tromey@redhat.com>
12765 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12766 * target.c (target_fileio_open): Add argument.
12767 * remote.c (remote_hostio_open): Add 'self' argument.
12768 (remote_bfd_iovec_open): Add 'self' argument.
12769 (remote_file_put): Add 'self' argument.
12770 (remote_file_get): Add 'self' argument.
12771 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12773 2014-02-19 Tom Tromey <tromey@redhat.com>
12775 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12777 (target_can_run_breakpoint_commands): Add argument.
12778 * target.c (update_current_target): Update.
12779 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12781 (remote_insert_breakpoint): Add 'self' argument.
12782 (remote_insert_hw_breakpoint): Add 'self' argument.
12783 (remote_can_run_breakpoint_commands): Add 'self' argument.
12785 2014-02-19 Tom Tromey <tromey@redhat.com>
12787 * target.h (struct target_ops)
12788 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12789 (target_supports_evaluation_of_breakpoint_conditions): Add
12791 * target.c (update_current_target): Update.
12792 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12794 (remote_insert_breakpoint): Add 'self' argument.
12795 (remote_insert_hw_breakpoint): Add 'self' argument.
12796 (remote_supports_cond_breakpoints): Add 'self' argument.
12798 2014-02-19 Tom Tromey <tromey@redhat.com>
12800 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12802 (target_supports_string_tracing): Add argument.
12803 * target.c (update_current_target): Update.
12804 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12806 2014-02-19 Tom Tromey <tromey@redhat.com>
12808 * target.h (struct target_ops)
12809 <to_supports_disable_randomization>: Add argument.
12810 * target.c (find_default_supports_disable_randomization): Add
12812 (target_supports_disable_randomization): Add argument.
12813 (find_default_supports_disable_randomization): Add 'self'
12815 * remote.c (extended_remote_supports_disable_randomization): Add
12817 (remote_supports_disable_randomization): Add 'self' argument.
12818 (extended_remote_create_inferior): Update.
12819 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12824 * target.h (struct target_ops)
12825 <to_supports_enable_disable_tracepoint>: Add argument.
12826 (target_supports_enable_disable_tracepoint): Add argument.
12827 * target.c (update_current_target): Update.
12828 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12831 2014-02-19 Tom Tromey <tromey@redhat.com>
12833 * target.h (struct target_ops) <to_supports_multi_process>: Add
12835 (target_supports_multi_process): Add argument.
12836 * target.c (update_current_target): Update.
12837 * remote.c (remote_supports_multi_process): Add 'self' argument.
12838 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12840 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12843 2014-02-19 Tom Tromey <tromey@redhat.com>
12845 * target.h (struct target_ops) <to_execution_direction>: Add
12847 (target_execution_direction): Add argument.
12848 * target.c (default_execution_direction): Add 'self' argument.
12849 * record-full.c (record_full_execution_direction): Add 'self'
12852 2014-02-19 Tom Tromey <tromey@redhat.com>
12854 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12856 (target_can_execute_reverse): Add argument.
12857 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12858 * record-full.c (record_full_can_execute_reverse): Add 'self'
12860 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12863 2014-02-19 Tom Tromey <tromey@redhat.com>
12865 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12866 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12868 (target_get_ada_task_ptid): Add argument.
12869 * target.c (update_current_target): Update.
12870 (default_get_ada_task_ptid): Add 'self' argument.
12871 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12872 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12873 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12875 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12877 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12879 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12881 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12882 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12885 2014-02-19 Tom Tromey <tromey@redhat.com>
12887 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12888 (target_goto_bookmark): Add argument.
12889 * target.c (dummy_goto_bookmark): Add 'self' argument.
12890 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12892 2014-02-19 Tom Tromey <tromey@redhat.com>
12894 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12895 (target_get_bookmark): Add argument.
12896 * target.c (dummy_get_bookmark): Add 'self' argument.
12897 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12899 2014-02-19 Tom Tromey <tromey@redhat.com>
12901 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12903 (target_make_corefile_notes): Add argument.
12904 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12905 * procfs.c (procfs_make_note_section): Add 'self' argument.
12906 (procfs_make_note_section): Add 'self' argument.
12907 (procfs_make_note_section): Add 'self' argument.
12908 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12910 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12911 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12912 * exec.c (exec_make_note_section): Add 'self' argument.
12913 (exec_make_note_section): Add 'self' argument.
12915 2014-02-19 Tom Tromey <tromey@redhat.com>
12917 * target.h (struct target_ops) <to_find_memory_regions>: Add
12919 (target_find_memory_regions): Add argument.
12920 * target.c (dummy_find_memory_regions): Add 'self' argument.
12921 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12922 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12923 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12924 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12925 * exec. (exec_do_find_memory_regions): New global.
12926 (exec_set_find_memory_regions): Rewrite.
12927 (exec_find_memory_regions): New function.
12928 (init_exec_ops): Use exec_find_memory_regions.
12930 2014-02-19 Tom Tromey <tromey@redhat.com>
12932 * target.h (struct target_ops) <to_supports_non_stop>: Add
12934 * target.c (find_default_supports_non_stop): Add argument.
12935 (target_supports_non_stop): Add argument.
12936 (find_default_supports_non_stop): Add 'self' argument.
12937 * remote.c (remote_supports_non_stop): Add 'self' argument.
12938 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12940 2014-02-19 Tom Tromey <tromey@redhat.com>
12942 * target.h (struct target_ops) <to_log_command>: Add argument.
12943 (target_log_command): Add argument.
12944 * serial.h (serial_log_command): Add 'self' argument.
12945 * serial.c (serial_log_command): Add 'self' argument.
12947 2014-02-19 Tom Tromey <tromey@redhat.com>
12949 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12950 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12952 (target_pid_to_exec_file): Add argument.
12953 * target.c (debug_to_pid_to_exec_file): Add argument.
12954 (update_current_target): Update.
12955 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12956 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12957 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12958 (linux_handle_extended_wait): Update.
12959 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12960 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12961 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12962 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12964 2014-02-19 Tom Tromey <tromey@redhat.com>
12966 * target.h (struct target_ops) <to_rcmd>: Add argument.
12967 (target_rcmd): Add argument.
12968 * target.c (debug_to_rcmd): Add argument.
12969 (update_current_target, do_monitor_command): Update.
12970 * remote.c (remote_rcmd): Add 'self' argument.
12971 * monitor.c (monitor_rcmd): Add 'self' argument.
12973 2014-02-19 Tom Tromey <tromey@redhat.com>
12975 * windows-nat.c (windows_stop): Add 'self' argument.
12976 * target.h (struct target_ops) <to_stop>: Add argument.
12977 * target.c (target_stop): Add argument.
12978 (debug_to_stop): Add argument.
12979 (update_current_target): Update.
12980 * remote.c (remote_stop): Add 'self' argument.
12981 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12982 (gdbsim_cntrl_c): Update.
12983 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12984 * procfs.c (procfs_stop): Add 'self' argument.
12985 * nto-procfs.c (procfs_stop): Add 'self' argument.
12986 * monitor.c (monitor_stop): Add 'self' argument.
12987 (monitor_open): Update.
12988 * linux-nat.c (linux_nat_stop): Add argument.
12989 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12990 * gnu-nat.c (gnu_stop): Add 'self' argument.
12991 * darwin-nat.c (darwin_stop): Add 'self' argument.
12993 2014-02-19 Tom Tromey <tromey@redhat.com>
12995 * target.h (struct target_ops) <to_thread_name>: Add argument.
12996 * target.c (target_thread_name): Add argument.
12997 (update_current_target): Update.
12998 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13000 2014-02-19 Tom Tromey <tromey@redhat.com>
13002 * target.h (struct target_ops) <to_extra_thread_info>: Add
13004 (target_extra_thread_info): Add argument.
13005 * target.c (update_current_target): Update.
13006 * remote.c (remote_threads_extra_info): Add 'self' argument.
13007 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13009 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13010 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13011 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13013 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13015 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13017 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13020 2014-02-19 Tom Tromey <tromey@redhat.com>
13022 * target.h (struct target_ops) <to_program_signals>: Add argument.
13023 * target.c (target_program_signals): Add argument.
13024 * remote.c (remote_program_signals): Add 'self' argument.
13026 2014-02-19 Tom Tromey <tromey@redhat.com>
13028 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13029 * target.c (target_pass_signals): Add argument.
13030 * remote.c (remote_pass_signals): Add 'self' argument.
13031 (remote_start_remote): Update.
13032 * procfs.c (procfs_pass_signals): Add 'self' argument.
13033 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13034 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13035 (linux_nat_create_inferior, linux_nat_attach): Update.
13037 2014-02-19 Tom Tromey <tromey@redhat.com>
13039 * windows-nat.c (windows_can_run): Add 'self' argument.
13040 * target.h (struct target_ops) <to_can_run>: Add argument.
13041 (target_can_run): Add argument.
13042 * target.c (debug_to_can_run): Add argument.
13043 (update_current_target): Update.
13044 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13045 * inf-child.c (inf_child_can_run): Add 'self' argument.
13046 * go32-nat.c (go32_can_run): Add 'self' argument.
13048 2014-02-19 Tom Tromey <tromey@redhat.com>
13050 * target.h (struct target_ops) <to_has_exited>: Add argument.
13051 (target_has_exited): Add argument.
13052 * target.c (debug_to_has_exited): Add argument.
13053 (update_current_target): Update.
13055 2014-02-19 Tom Tromey <tromey@redhat.com>
13057 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13059 (target_set_syscall_catchpoint): Add argument.
13060 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13062 * target.c (update_current_target): Update.
13064 2014-02-19 Tom Tromey <tromey@redhat.com>
13066 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13068 (target_remove_exec_catchpoint): Add argument.
13069 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13070 (update_current_target): Update.
13071 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13074 2014-02-19 Tom Tromey <tromey@redhat.com>
13076 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13078 (target_insert_exec_catchpoint): Add argument.
13079 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13080 (update_current_target): Update.
13081 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13084 2014-02-19 Tom Tromey <tromey@redhat.com>
13086 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13088 (target_remove_vfork_catchpoint): Add argument.
13089 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13090 (update_current_target): Update.
13091 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13094 2014-02-19 Tom Tromey <tromey@redhat.com>
13096 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13098 (target_insert_vfork_catchpoint): Add argument.
13099 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13100 (update_current_target): Update.
13101 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13104 2014-02-19 Tom Tromey <tromey@redhat.com>
13106 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13108 (target_remove_fork_catchpoint): Add argument.
13109 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13110 (update_current_target): Update.
13111 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13114 2014-02-19 Tom Tromey <tromey@redhat.com>
13116 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13118 (target_insert_fork_catchpoint): Add argument.
13119 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13120 (update_current_target): Update.
13121 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13124 2014-02-19 Tom Tromey <tromey@redhat.com>
13126 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13128 (target_post_startup_inferior): Add argument.
13129 * target.c (debug_to_post_startup_inferior): Add argument.
13130 (update_current_target): Update.
13131 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13133 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13135 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13137 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13139 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13141 (super_post_startup_inferior): Likewise.
13142 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13144 (super_post_startup_inferior): Likewise.
13145 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13146 Add 'self' argument.
13147 (super_post_startup_inferior): Likewise.
13149 2014-02-19 Tom Tromey <tromey@redhat.com>
13151 * target.h (struct target_ops) <to_load>: Add argument.
13152 * target.c (target_load): Add argument.
13153 (debug_to_load): Add argument.
13154 (update_current_target): Update.
13155 * remote.c (remote_load): Add 'self' argument.
13156 * remote-sim.c (gdbsim_load): Add 'self' argument.
13157 * remote-mips.c (mips_load): Add 'self' argument.
13158 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13159 * monitor.c (monitor_load): Add 'self' argument.
13160 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13162 2014-02-19 Tom Tromey <tromey@redhat.com>
13164 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13165 (target_terminal_info): Add argument.
13166 * target.c (debug_to_terminal_info): Add argument.
13167 (default_terminal_info): Likewise.
13168 * inflow.c (child_terminal_info): Add 'self' argument.
13169 * inferior.h (child_terminal_info): Add 'self' argument.
13170 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13172 2014-02-19 Tom Tromey <tromey@redhat.com>
13174 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13176 (target_terminal_save_ours): Add argument.
13177 * target.c (debug_to_terminal_save_ours): Add argument.
13178 (update_current_target): Update.
13179 * inflow.c (terminal_save_ours): Add 'self' argument.
13180 * inferior.h (terminal_save_ours): Add 'self' argument.
13182 2014-02-19 Tom Tromey <tromey@redhat.com>
13184 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13185 (target_terminal_ours): Add argument.
13186 * target.c (debug_to_terminal_ours): Add argument.
13187 (update_current_target): Update.
13188 * remote.c (remote_terminal_ours): Add 'self' argument.
13189 (remote_close): Update.
13190 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13191 * inflow.c (terminal_ours): Add 'self' argument.
13192 * inferior.h (terminal_ours): Add 'self' argument.
13193 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13195 2014-02-19 Pedro Alves <palves@redhat.com>
13196 Tom Tromey <tromey@redhat.com>
13198 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13200 (target_terminal_ours_for_output): Add argument.
13201 * target.c (debug_to_terminal_ours_for_output): Add argument.
13202 (update_current_target): Update.
13203 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13204 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13205 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13207 2014-02-19 Tom Tromey <tromey@redhat.com>
13209 * target.h (struct target_ops) <to_terminal_inferior>: Add
13211 * target.c (target_terminal_inferior): Add argument.
13212 (update_current_target): Update.
13213 * remote.c (remote_terminal_inferior): Add 'self' argument.
13214 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13215 * inflow.c (terminal_inferior): Add 'self' argument.
13216 * inferior.h (terminal_inferior): Add 'self' argument.
13217 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13218 (go32_terminal_inferior): Add 'self' argument.
13220 2014-02-19 Tom Tromey <tromey@redhat.com>
13222 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13223 (target_terminal_init): Add argument.
13224 * target.c (debug_to_terminal_init): Add argument.
13225 (update_current_target): Update.
13226 * inflow.c (terminal_init_inferior): Add 'self' argument.
13227 * inferior.h (terminal_init_inferior): Add 'self' argument.
13228 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13229 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13233 * target.h (struct target_ops)
13234 <to_can_accel_watchpoint_condition>: Add argument.
13235 (target_can_accel_watchpoint_condition): Add argument.
13236 * target.c (debug_to_can_accel_watchpoint_condition): Add
13238 (update_current_target): Update.
13239 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13242 2014-02-19 Tom Tromey <tromey@redhat.com>
13244 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13246 (target_region_ok_for_hw_watchpoint): Add argument.
13247 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13248 (default_region_ok_for_hw_watchpoint): Add argument.
13249 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13250 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13252 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13254 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13256 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13258 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13260 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13262 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13263 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13265 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13266 Add 'self' argument.
13268 2014-02-19 Tom Tromey <tromey@redhat.com>
13270 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13272 (target_insert_watchpoint): Add argument.
13273 * target.c (debug_to_insert_watchpoint): Add argument.
13274 (update_current_target): Update.
13275 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13276 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13277 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13278 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13279 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13280 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13282 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13283 (procfs_insert_hw_watchpoint): Add 'self' argument.
13284 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13286 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13288 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13290 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13291 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13293 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13296 2014-02-19 Tom Tromey <tromey@redhat.com>
13298 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13300 (target_remove_watchpoint): Add argument.
13301 * target.c (debug_to_remove_watchpoint): Add argument.
13302 (update_current_target): Update.
13303 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13304 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13305 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13306 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13307 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13308 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13310 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13311 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13313 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13315 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13317 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13318 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13320 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13323 2014-02-19 Tom Tromey <tromey@redhat.com>
13325 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13327 (target_remove_hw_breakpoint): Add argument.
13328 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13329 (update_current_target): Update.
13330 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13331 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13333 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13334 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13336 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13339 2014-02-19 Tom Tromey <tromey@redhat.com>
13341 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13343 (target_insert_hw_breakpoint): Add argument.
13344 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13345 (update_current_target): Update.
13346 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13347 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13349 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13350 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13351 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13353 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13356 2014-02-19 Tom Tromey <tromey@redhat.com>
13358 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13360 (target_can_use_hardware_watchpoint): Add argument.
13361 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13362 (update_current_target): Update.
13363 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13365 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13367 * remote.c (remote_check_watch_resources): Add 'self' argument.
13368 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13369 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13371 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13372 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13374 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13376 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13378 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13380 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13382 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13384 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13385 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13387 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13390 2014-02-19 Tom Tromey <tromey@redhat.com>
13392 * target.h (struct target_ops) <to_post_attach>: Add argument.
13393 (target_post_attach): Add argument.
13394 * target.c (debug_to_post_attach): Add argument.
13395 (update_current_target): Update.
13396 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13397 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13398 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13399 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13400 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13402 2014-02-19 Tom Tromey <tromey@redhat.com>
13404 * windows-nat.c (windows_close): Add 'self' argument.
13405 * tracepoint.c (tfile_close): Add 'self' argument.
13406 * target.h (struct target_ops) <to_close>: Add argument.
13407 * target.c (target_close): Add argument.
13408 (update_current_target): Update.
13409 * remote.c (remote_close): Add 'self' argument.
13410 * remote-sim.c (gdbsim_close): Add 'self' argument.
13411 * remote-mips.c (mips_close): Add 'self' argument.
13412 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13413 * record-full.c (record_full_close): Add 'self' argument.
13414 * record-btrace.c (record_btrace_close): Add 'self' argument.
13415 * monitor.h (monitor_close): Add 'self' argument.
13416 * monitor.c (monitor_close): Add 'self' argument.
13417 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13418 * linux-nat.c (linux_nat_close): Add argument.
13419 * go32-nat.c (go32_close): Add 'self' argument.
13420 * exec.c (exec_close_1): Add 'self' argument.
13421 * ctf.c (ctf_close): Add 'self' argument.
13422 * corelow.c (core_close): Add 'self' argument.
13423 (core_close_cleanup): Update.
13424 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13425 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13427 2014-02-19 Tom Tromey <tromey@redhat.com>
13429 * remote.c (remote_load): New function.
13430 (init_remote_ops): Use it.
13432 2014-02-19 Tom Tromey <tromey@redhat.com>
13434 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13436 * common/linux-btrace.h (linux_supports_btrace): Update.
13437 * remote.c (remote_supports_btrace): Add "self" argument.
13438 * target-delegates.c: Rebuild.
13439 * target.c (target_supports_btrace): Remove.
13440 * target.h (struct target_ops) <to_supports_btrace>: Add
13441 target_ops argument.
13442 (target_supports_btrace): New define.
13444 2014-02-19 Tom Tromey <tromey@redhat.com>
13446 * record-full.c (record_full_beneath_to_resume_ops)
13447 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13448 (record_full_beneath_to_wait)
13449 (record_full_beneath_to_store_registers_ops)
13450 (record_full_beneath_to_store_registers)
13451 (record_full_beneath_to_xfer_partial_ops)
13452 (record_full_beneath_to_xfer_partial)
13453 (record_full_beneath_to_insert_breakpoint_ops)
13454 (record_full_beneath_to_insert_breakpoint)
13455 (record_full_beneath_to_remove_breakpoint_ops)
13456 (record_full_beneath_to_remove_breakpoint)
13457 (record_full_beneath_to_stopped_by_watchpoint)
13458 (record_full_beneath_to_stopped_data_address)
13459 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13460 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13461 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13462 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13463 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13464 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13465 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13466 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13467 (record_full_resume, record_full_wait_1)
13468 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13469 (record_full_store_registers, record_full_xfer_partial)
13470 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13471 (record_full_async, record_full_core_xfer_partial): Use target
13473 * target-delegates.c: Rebuild.
13474 * target.c (current_xfer_partial): Remove.
13475 (update_current_target): Do not INHERIT or de_fault
13476 to_insert_breakpoint, to_remove_breakpoint,
13477 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13478 to_is_async_p, to_async. Do not set to_xfer_partial field.
13479 (default_xfer_partial): Simplify.
13480 (current_xfer_partial): Remove.
13481 (target_wait, target_resume): Simplify.
13482 (find_default_can_async_p, find_default_is_async_p): Update.
13483 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13484 to_xfer_partial, to_stopped_by_watchpoint,
13485 to_stopped_data_address.
13486 (target_store_registers): Simplify.
13487 (forward_target_remove_breakpoint)
13488 (forward_target_insert_breakpoint): Remove.
13489 (target_remove_breakpoint, target_insert_breakpoint)
13490 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13491 * target.h (struct target_ops) <to_resume, to_wait,
13492 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13493 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13494 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13496 (forward_target_remove_breakpoint)
13497 (forward_target_insert_breakpoint): Remove.
13498 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13500 (record_btrace_insert_breakpoint): Delegate directly.
13502 2014-02-19 Tom Tromey <tromey@redhat.com>
13505 * target-delegates.c: New file.
13506 * target.c: Include target-delegates.c.
13507 (init_dummy_target): Call install_dummy_methods.
13508 (complete_target_initialization): Call install_delegators.
13509 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13510 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13511 * make-target-delegates: New file.
13513 2014-02-19 Tom Tromey <tromey@redhat.com>
13515 * record.c (find_record_target): Use find_target_at.
13516 * target.c (find_target_at): New function.
13517 * target.h (find_target_at): Declare.
13519 2014-02-19 Tom Tromey <tromey@redhat.com>
13521 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13522 Add 'ops' argument.
13523 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13525 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13526 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13528 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13530 * linux-nat.c (save_sigtrap): Update.
13531 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13532 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13533 (linux_nat_close): Update.
13534 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13536 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13538 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13539 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13540 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13541 (tmp_to_async): Add 'ops' argument.
13542 (record_full_stopped_by_watchpoint, record_full_async)
13543 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13545 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13546 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13547 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13548 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13549 (remote_is_async_p, remote_async): Add 'ops' argument.
13550 (remote_stopped_data_address): Update.
13551 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13552 * target.c (update_current_target)
13553 (find_default_can_async_p, find_default_is_async_p): Update.
13554 (init_dummy_target): Update.
13555 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13556 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13557 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13558 (target_can_async_p, target_is_async_p, target_async)
13559 (target_stopped_by_watchpoint): Update.
13561 2014-02-19 Yao Qi <yao@codesourcery.com>
13564 * gdbarch.sh: Remove startup_gdbarch.
13565 * gdbarch.c: Regenerated.
13566 * gdbarch.h: Likewise.
13568 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13570 * rl78-tdep.c (rl78_g10_register_name): New function.
13571 (rl78_return_value): Add g10 support.
13572 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13575 2014-02-17 Doug Evans <xdje42@gmail.com>
13577 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13578 (SUBDIR_GUILE_SRCS): Ditto.
13579 (scm-gsmob.o): Ditto.
13581 2014-02-17 Yao Qi <yao@codesourcery.com>
13583 * gnu-nat.c (ILL_RPC): Declare defined function.
13585 2014-02-17 Yao Qi <yao@codesourcery.com>
13587 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13588 mach_msg_type_number_t.
13589 (gnu_write_inferior): Likewise.
13591 2014-02-17 Yao Qi <yao@codesourcery.com>
13593 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13595 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13596 (inf_validate_procs, inf_signal): Likewise.
13597 (S_exception_raise_request): Likewise.
13598 (do_mach_notify_dead_name): Likewise.
13599 (steal_exc_port): Likewise.
13600 (gnu_read_inferior): Change 'copy_count''s type to
13601 mach_msg_type_number_t.
13602 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13605 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13607 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13608 flag. Adjust all users; in particular...
13609 (gnu_wait): ..., don't decrement its value in here...
13610 (gnu_create_inferior): ..., and instead set the flag in here,
13611 around the startup_inferior call, and call that one with
13612 START_INFERIOR_TRAPS_EXPECTED.
13614 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13615 (ILL_RPC): ... new macro.
13616 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13617 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13618 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13619 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13620 functions with ILL_RPC macro.
13621 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13622 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13623 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13624 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13625 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13626 (S_proc_getlogin_reply, S_proc_getsid_reply)
13627 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13628 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13629 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13630 (S_proc_getnports_reply, S_proc_is_important_reply)
13631 (S_proc_get_code_reply): New stub functions, generated with
13634 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13635 collected the type check structures.
13637 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13639 2014-02-14 Doug Evans <dje@google.com>
13641 * target.c (target_write_partial): Fix result type.
13643 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13645 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13646 the proper offsets to access fpregset_t.
13648 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13650 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13651 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13652 * h8300-tdep.c (setmachinelist): Remove global.
13653 * hppa-tdep.c (hppa_sigtramp): Remove global.
13654 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13655 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13656 * ravenscar-thread.c (update_target_observer): Remove global.
13657 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13659 2014-02-12 Tom Tromey <tromey@redhat.com>
13661 * common/rsp-low.c: Update comments.
13662 * common/rsp-low.h: Update comments.
13664 2014-02-12 Tom Tromey <tromey@redhat.com>
13666 * common/rsp-low.c (convert_ascii_to_int): Remove.
13667 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13669 2014-02-12 Tom Tromey <tromey@redhat.com>
13671 * common/rsp-low.h (unhexify): Don't declare.
13672 * common/rsp-low.c (unhexify): Remove.
13674 2014-02-12 Tom Tromey <tromey@redhat.com>
13676 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13677 * common/rsp-low.c (convert_int_to_ascii): Remove.
13679 2014-02-12 Tom Tromey <tromey@redhat.com>
13681 * common/rsp-low.h (hexify): Don't declare.
13682 * common/rsp-low.c (hexify): Remove.
13684 2014-02-12 Tom Tromey <tromey@redhat.com>
13686 * common/rsp-low.c (hexify): Never take strlen of argument.
13688 2014-02-12 Tom Tromey <tromey@redhat.com>
13690 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13691 * remote.c (extended_remote_run, remote_rcmd)
13692 (remote_download_trace_state_variable, remote_save_trace_data)
13693 (remote_set_trace_notes): Update.
13694 * tracepoint.c (encode_source_string, tfile_write_status)
13695 (tfile_write_uploaded_tsv): Update.
13697 2014-02-12 Tom Tromey <tromey@redhat.com>
13699 * tracepoint.c: Include rsp-low.h.
13700 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13701 * remote.c: Include rsp-low.h.
13702 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13703 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13704 (remote_unescape_input): Move to common/rsp-low.c.
13705 * common/rsp-low.h: New file.
13706 * common/rsp-low.c: New file.
13707 * Makefile.in (SFILES): Add common/rsp-low.c.
13708 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13709 (COMMON_OBS): Add rsp-low.o.
13710 (rsp-low.o): New target.
13712 2014-02-12 Tom Tromey <tromey@redhat.com>
13714 * utils.h: Include print-utils.h.
13715 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13716 (int_string, core_addr_to_string, core_addr_to_string_nz)
13717 (hex_string, hex_string_custom): Don't declare.
13718 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13719 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13720 (hex_string_custom, int_string, core_addr_to_string)
13721 (core_addr_to_string_nz, host_address_to_string): Move to
13722 common/print-utils.c.
13723 * common/print-utils.h: New file.
13724 * common/print-utils.c: New file
13725 * Makefile.in (SFILES): Add common/print-utils.c.
13726 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13727 (COMMON_OBS): Add print-utils.o.
13728 (print-utils.o): New target.
13730 2014-02-12 Tom Tromey <tromey@redhat.com>
13732 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13734 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13736 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13738 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13740 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13741 if a PT_IO ptrace request returns sucessfully but indicates that 0
13742 bytes were transferred.
13744 2014-02-12 Pedro Alves <palves@redhat.com>
13745 Kevin Buettner <kevinb@redhat.com>
13747 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13748 TYPE_INSTANCE_FLAG_CODE_SPACE.
13750 2014-02-12 Pedro Alves <palves@redhat.com>
13752 * h8300-tdep.c (pseudo_from_raw_register)
13753 (raw_from_pseudo_register): New functions.
13754 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13757 2014-02-12 Pedro Alves <palves@redhat.com>
13759 * h8300-tdep.c (h8300_register_sim_regno): New function.
13760 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13761 gdbarch_register_sim_regno hook.
13763 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13765 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13767 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13769 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13771 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13773 * obsd-tdep.h (obsd_init_abi): New prototype.
13774 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13775 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13776 (obsd_init_abi): New functions.
13777 * i386obsd-tdep.c: Include "obsd-tdep.h".
13778 (i386obsd_init_abi): Call obsd_init_abi.
13779 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13780 (amd64obsd_init_abi): Call obsd_init_abi.
13781 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13782 obsd-tdep.c to gdb_target_obs.
13784 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13786 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13787 double float arguments to 16-byte in the argument slots.
13789 2014-02-11 Doug Evans <xdje42@gmail.com>
13791 * configure.ac: Don't crash if pkg-config is not found and guile
13792 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13794 * configure: Regenerate.
13796 2014-02-11 Yao Qi <yao@codesourcery.com>
13798 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13799 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13800 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13801 * gnu-nat.c (gnu_xfer_memory): Likewise.
13802 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13803 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13804 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13805 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13807 2014-02-11 Yao Qi <yao@codesourcery.com>
13809 * target.h (enum target_xfer_error): Rename to ...
13810 (enum target_xfer_status): ... it. New. All users updated.
13811 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13813 (TARGET_XFER_STATUS_ERROR_P): New macro.
13814 (target_xfer_error_to_string): Remove declaration.
13815 (target_xfer_status_to_string): Declare.
13816 (target_xfer_partial_ftype): Adjust it.
13817 (struct target_ops) <to_xfer_partial>: Return
13818 target_xfer_status. Add argument xfered_len. Update
13820 * target.c (target_xfer_error_to_string): Rename to ...
13821 (target_xfer_status_to_string): ... it. New. All callers
13823 (target_read_live_memory): Likewise. Call target_xfer_partial
13824 instead of target_read.
13825 (memory_xfer_live_readonly_partial): Return
13826 target_xfer_status. Add argument xfered_len.
13827 (raw_memory_xfer_partial): Likewise.
13828 (memory_xfer_partial_1): Likewise.
13829 (memory_xfer_partial): Likewise.
13830 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13831 properly. Update debug message.
13832 (default_xfer_partial, current_xfer_partial): Likewise.
13833 (target_write_partial): Likewise.
13834 (target_read_partial): Likewise. All callers updated.
13835 (read_whatever_is_readable): Likewise.
13836 (target_write_with_progress): Likewise.
13837 (target_read_alloc_1): Likewise.
13839 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13840 * auxv.c (procfs_xfer_auxv): Likewise.
13841 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13842 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13843 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13844 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13845 * corefile.c (read_memory): Adjust.
13846 * corelow.c (core_xfer_partial): Likewise.
13847 * ctf.c (ctf_xfer_partial): Likewise.
13848 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13850 (darwin_xfer_partial): Likewise.
13851 * exec.c (section_table_xfer_memory_partial): Likewise. All
13853 (exec_xfer_partial): Likewise.
13854 * exec.h (section_table_xfer_memory_partial): Update
13856 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13858 (gnu_xfer_partial): Likewise.
13859 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13860 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13861 (ia64_hpux_xfer_solib_got): Likewise.
13862 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13863 type of 'partial_len' to ULONGEST.
13864 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13865 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13866 (linux_nat_xfer_partial): Likewise.
13867 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13868 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13869 * monitor.c (monitor_xfer_memory): Likewise.
13870 (monitor_xfer_partial): Likewise.
13871 * procfs.c (procfs_xfer_partial): Likewise.
13872 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13873 * record-full.c (record_full_xfer_partial): Likewise.
13874 (record_full_core_xfer_partial): Likewise.
13875 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13876 (gdbsim_xfer_partial): Likewise.
13877 * remote.c (remote_write_bytes_aux): Likewise. All callers
13879 (remote_write_bytes, remote_read_bytes): Likewise. All
13881 (remote_flash_erase): Likewise. All callers updated.
13882 (remote_write_qxfer): Likewise. All callers updated.
13883 (remote_read_qxfer): Likewise. All callers updated.
13884 (remote_xfer_partial): Likewise.
13885 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13886 (rs6000_xfer_shared_libraries): Likewise.
13887 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13888 (sol_thread_xfer_partial): Likewise.
13889 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13890 (sparc_xfer_partial): Likewise.
13891 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13893 (spu_xfer_partial): Likewise.
13894 * spu-multiarch.c (spu_xfer_partial): Likewise.
13895 * tracepoint.c (tfile_xfer_partial): Likewise.
13896 * windows-nat.c (windows_xfer_memory): Likewise.
13897 (windows_xfer_shared_libraries): Likewise.
13898 (windows_xfer_partial): Likewise.
13899 * valprint.c: Replace 'target_xfer_error' with
13900 'target_xfer_status' in comments.
13902 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13904 Checked in by Joel Brobecker <brobecker@adacore.com>.
13905 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13907 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13909 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13910 function parameters.
13912 2014-02-10 Will Newton <will.newton@linaro.org>
13914 * elfread.c (elf_rel_plt_read): Look for a .got section if
13915 looking up .got.plt fails.
13916 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13917 on address passed to elf_gnu_ifunc_record_cache.
13918 (elf_gnu_ifunc_resolve_addr): Likewise.
13919 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13921 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13923 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13924 (X_RETTURN): New macro.
13925 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13927 * sparc64-tdep.c (sparc64_init_abi): Hook
13928 sparc_in_function_epilogue_p.
13930 2014-02-10 Gary Benson <gbenson@redhat.com>
13932 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13933 Rename name_matcher to symbol_matcher.
13935 2014-02-10 Gary Benson <gbenson@redhat.com>
13937 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13938 Use expand_symtabs_file_matcher_ftype and
13939 expand_symtabs_symbol_matcher_ftype.
13941 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13943 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13944 (struct ada_symbol_cache): New.
13945 (ada_free_symbol_cache): Forward declare.
13946 (struct ada_pspace_data): New.
13947 (ada_pspace_data_handle): New static global.
13948 (get_ada_pspace_data, ada_pspace_data_cleanup)
13949 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13950 (cache_space, cache): Delete, now folded inside struct
13952 (ada_get_symbol_cache): New function.
13953 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13955 (_initialize_ada_language): Remove initialization of cache_space.
13956 Move call to observer_attach_inferior_exit up, grouping it
13957 with the other observer registrations inside this function.
13958 Rename command to be more general. Add call to
13959 register_program_space_data_with_cleanup.
13961 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13963 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13964 ada_new_objfile_observer.
13965 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13966 (_initialize_tasks): Update uses of ada_new_objfile_observer
13967 and ada_tasks_normal_stop_observer.
13969 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13971 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13972 returned by the 'Length attribute to integer.
13974 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13976 * ada-lang.c (_initialize_ada_language): Initialize
13977 cache_space obstack.
13979 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13981 * ada-lang.c (HASH_SIZE): New macro.
13982 (struct cache_entry): New type.
13983 (cache_space, cache): New static globals.
13984 (ada_clear_symbol_cache, find_entry): New functions.
13985 (lookup_cached_symbol, cache_symbol): Implement.
13986 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13987 (_initialize_ada_language): Attach ada_new_objfile_observer
13988 and ada_free_objfile_observer.
13990 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13992 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13993 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13994 struct block * parameter.
13995 (ada_lookup_symbol_list_worker): Constify local variable "block".
13996 Remove cast which is no longer necessary.
13998 2014-02-10 Doug Evans <xdje42@gmail.com>
14000 Add Guile as an extension language.
14001 * NEWS: Mention Guile scripting.
14002 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14003 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14004 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14005 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14006 (CLIBS): Add GUILE_LIBS.
14007 (install-guile): New rule.
14008 (guile.o): New rule.
14009 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14010 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14011 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14012 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14013 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14014 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14015 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14016 * configure.ac: New option --with-guile.
14017 * configure: Regenerate.
14018 * config.in: Regenerate.
14019 * auto-load.c: Remove #include "python/python.h". Add #include
14020 "gdb/section-scripts.h".
14021 (source_section_scripts): Handle Guile scripts.
14022 (_initialize_auto_load): Add name of Guile objfile script to
14023 scripts-directory help text.
14024 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14025 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14026 (struct breakpoint): New member scm_bp_object.
14027 * defs.h (enum command_control_type): New value guile_control.
14028 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14030 (show_user): Update comment.
14031 (_initialize_cli_cmds): Update help text for "show user". Update help
14032 text for max-user-call-depth.
14033 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14035 (multi_line_command_p): Add guile_control.
14036 (print_command_lines): Handle guile_control.
14037 (execute_control_command, recurse_read_control_structure): Ditto.
14038 (process_next_line): Recognize "guile" commands.
14039 * disasm.c (gdb_disassemble_info): Make non-static.
14040 * disasm.h: #include "dis-asm.h".
14041 (struct gdbarch): Add forward decl.
14042 (gdb_disassemble_info): Declare.
14043 * extension.c: #include "guile/guile.h".
14044 (extension_languages): Add guile.
14045 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14046 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14047 * gdbtypes.c (get_unsigned_type_max): New function.
14048 (get_signed_type_minmax): New function.
14049 * gdbtypes.h (get_unsigned_type_max): Declare.
14050 (get_signed_type_minmax): Declare.
14051 * guile/README: New file.
14052 * guile/guile-internal.h: New file.
14053 * guile/guile.c: New file.
14054 * guile/guile.h: New file.
14055 * guile/scm-arch.c: New file.
14056 * guile/scm-auto-load.c: New file.
14057 * guile/scm-block.c: New file.
14058 * guile/scm-breakpoint.c: New file.
14059 * guile/scm-disasm.c: New file.
14060 * guile/scm-exception.c: New file.
14061 * guile/scm-frame.c: New file.
14062 * guile/scm-gsmob.c: New file.
14063 * guile/scm-iterator.c: New file.
14064 * guile/scm-lazy-string.c: New file.
14065 * guile/scm-math.c: New file.
14066 * guile/scm-objfile.c: New file.
14067 * guile/scm-ports.c: New file.
14068 * guile/scm-pretty-print.c: New file.
14069 * guile/scm-safe-call.c: New file.
14070 * guile/scm-string.c: New file.
14071 * guile/scm-symbol.c: New file.
14072 * guile/scm-symtab.c: New file.
14073 * guile/scm-type.c: New file.
14074 * guile/scm-utils.c: New file.
14075 * guile/scm-value.c: New file.
14076 * guile/lib/gdb.scm: New file.
14077 * guile/lib/gdb/boot.scm: New file.
14078 * guile/lib/gdb/experimental.scm: New file.
14079 * guile/lib/gdb/init.scm: New file.
14080 * guile/lib/gdb/iterator.scm: New file.
14081 * guile/lib/gdb/printing.scm: New file.
14082 * guile/lib/gdb/types.scm: New file.
14083 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14084 (VPATH): Add $(GUILE_SRCDIR).
14085 (GUILE_DIR): New variable.
14086 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14087 (all): Add stamp-guile dependency.
14088 (stamp-guile): New rule.
14089 (clean-guile, install-guile, uninstall-guile): New rules.
14090 (install-only): Add install-guile dependency.
14091 (uninstall): Add uninstall-guile dependency.
14092 (clean): Add clean-guile dependency.
14094 2014-02-09 Doug Evans <xdje42@gmail.com>
14096 Revert this patch (which I approved, mea culpa).
14098 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14100 * Makefile.in (all-lib): Remove.
14101 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14103 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14105 Fix Python stack corruption.
14106 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14109 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14111 * Makefile.in (all-lib): Remove.
14112 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14114 2014-02-07 Doug Evans <dje@google.com>
14116 * extension-priv.h (extension_language_script_ops): Add comment.
14117 (extension_language_ops): Add comment.
14118 (active_ext_lang_state): Fix typo in comment.
14120 2014-02-07 Pedro Alves <palves@redhat.com>
14122 PR breakpoints/16292
14123 * infrun.c (handle_signal_stop) <signal arrives while stepping
14124 over a breakpoint>: Switch back to the stepping thread.
14126 2014-02-07 Yao Qi <yao@codesourcery.com>
14128 * target.c (target_xfer_partial): Return zero if LEN is zero.
14130 2014-02-07 Yao Qi <yao@codesourcery.com>
14132 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14133 (ld_so_xfer_auxv): Likewise.
14134 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14135 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14136 * corelow.c (core_xfer_partial): Likewise.
14137 * ctf.c (ctf_xfer_partial): Likewise.
14138 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14139 (darwin_xfer_partial): Likewise.
14140 * exec.c (exec_xfer_partial): Likewise.
14141 * gnu-nat.c (gnu_xfer_partial): Likewise.
14142 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14143 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14144 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14145 * linux-nat.c (linux_xfer_siginfo): Likewise.
14146 (linux_proc_xfer_spu): Likewise.
14147 * procfs.c (procfs_xfer_partial): Likewise.
14148 * record-full.c (record_full_xfer_partial): Likewise.
14149 (record_full_core_xfer_partial): Likewise.
14150 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14151 * remote.c (remote_write_qxfer): Likewise.
14152 (remote_write_qxfer, remote_read_qxfer): Likewise.
14153 (remote_xfer_partial): Likewise.
14154 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14155 (rs6000_xfer_shared_libraries): Likewise.
14156 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14157 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14158 (spu_xfer_partial): Likewise.
14159 * target.c (memory_xfer_partial_1): Likewise.
14160 * tracepoint.c (tfile_xfer_partial): Likewise.
14161 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14162 (windows_xfer_partial): Likewise.
14164 2014-02-07 Yao Qi <yao@codesourcery.com>
14166 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14168 (core_xfer_shared_libraries_aix): Likewise.
14169 * gdbarch.c, gdbarch.h: Regenerated.
14170 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14171 ULONGEST. Change 'len_avail' type to ULONGEST.
14172 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14173 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14175 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14177 2014-02-07 Yao Qi <yao@codesourcery.com>
14179 * corefile.c (memory_error): Get 'exception' from ERR and pass
14180 'exception' to throw_error.
14182 2014-02-06 Doug Evans <xdje42@gmail.com>
14184 * configure.ac (libpython checking): Remove all but python.o from
14185 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14186 * configure: Regenerate.
14188 * Makefile.in (SFILES): Add extension.c.
14189 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14190 (COMMON_OBS): Add extension.o.
14191 * extension.h: New file.
14192 * extension-priv.h: New file.
14193 * extension.c: New file.
14195 * python/python-internal.h: #include "extension.h".
14196 (gdbpy_auto_load_enabled): Declare.
14197 (gdbpy_apply_val_pretty_printer): Declare.
14198 (gdbpy_apply_frame_filter): Declare.
14199 (gdbpy_preserve_values): Declare.
14200 (gdbpy_breakpoint_cond_says_stop): Declare.
14201 (gdbpy_breakpoint_has_cond): Declare.
14202 (void source_python_script_for_objfile): Delete.
14203 * python/python.c: #include "extension-priv.h".
14204 Delete inclusion of "observer.h".
14205 (extension_language_python): Moved here and renamed from
14206 script_language_python in py-auto-load.c.
14207 Redefined to be of type extension_language_defn.
14208 (python_extension_script_ops): New global.
14209 (python_extension_ops): New global.
14210 (struct python_env): New member previous_active.
14211 (restore_python_env): Call restore_active_ext_lang.
14212 (ensure_python_env): Call set_active_ext_lang.
14213 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14215 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14217 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14219 (gdbpy_eval_from_control_command): Renamed from
14220 eval_python_from_control_command, made static. New arg extlang.
14221 (gdbpy_source_script) Renamed from source_python_script, made static.
14223 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14224 result to int. New arg extlang.
14225 (gdbpy_source_objfile_script): Renamed from
14226 source_python_script_for_objfile, made static. New arg extlang.
14227 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14228 static. New args extlang, extlang_printers. Change result type to
14230 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14231 static. New arg extlang. Rename arg printers to extlang_printers
14232 and change type to ext_lang_type_printers *.
14233 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14234 static. Replace argument arg with extlang, extlang_printers.
14235 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14236 (!HAVE_PYTHON, source_python_script): Delete.
14237 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14238 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14239 (!HAVE_PYTHON, start_type_printers): Delete.
14240 (!HAVE_PYTHON, apply_type_printers): Delete.
14241 (!HAVE_PYTHON, free_type_printers): Delete.
14242 (_initialize_python): Delete call to observer_attach_before_prompt.
14243 (finalize_python): Set/restore active extension language.
14244 (gdbpy_finish_initialization) Renamed from
14245 finish_python_initialization, made static. New arg extlang.
14246 (gdbpy_initialized): New function.
14247 * python/python.h: #include "extension.h". Delete #include
14248 "value.h", "mi/mi-cmds.h".
14249 (extension_language_python): Declare.
14250 (GDBPY_AUTO_FILE_NAME): Delete.
14251 (enum py_bt_status): Moved to extension.h and renamed to
14252 ext_lang_bt_status.
14253 (enum frame_filter_flags): Moved to extension.h.
14254 (enum py_frame_args): Moved to extension.h and renamed to
14255 ext_lang_frame_args.
14256 (finish_python_initialization): Delete.
14257 (eval_python_from_control_command): Delete.
14258 (source_python_script): Delete.
14259 (apply_val_pretty_printer): Delete.
14260 (apply_frame_filter): Delete.
14261 (preserve_python_values): Delete.
14262 (gdbpy_script_language_defn): Delete.
14263 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14264 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14266 * auto-load.c: #include "extension.h".
14267 (GDB_AUTO_FILE_NAME): Delete.
14268 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14269 (script_language_gdb): Delete, moved to extension.c and renamed to
14270 extension_language_gdb.
14271 (source_gdb_script_for_objfile): Delete.
14272 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14273 (loaded_script): Change type of language member to
14274 struct extension_language_defn *.
14275 (init_loaded_scripts_info): Initialize
14276 unsupported_script_warning_printed.
14277 (maybe_add_script): Make static. Change type of language arg to
14278 struct extension_language_defn *.
14279 (clear_section_scripts): Reset unsupported_script_warning_printed.
14280 (auto_load_objfile_script_1): Rewrite to use extension language API.
14281 (auto_load_objfile_script): Make public. Remove support-compiled-in
14282 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14283 (source_section_scripts): Rewrite to use extension language API.
14284 (load_auto_scripts_for_objfile): Rewrite to use
14285 auto_load_scripts_for_objfile.
14286 (collect_matching_scripts_data): Change type of language member to
14287 struct extension_language_defn *.
14288 (auto_load_info_scripts): Change type of language arg to
14289 struct extension_language_defn *.
14290 (unsupported_script_warning_print): New function.
14291 (script_not_found_warning_print): Make static.
14292 (_initialize_auto_load): Rewrite construction of scripts-directory
14294 * auto-load.h (struct objfile): Add forward decl.
14295 (struct script_language): Delete.
14296 (struct auto_load_pspace_info): Add forward decl.
14297 (struct extension_language_defn): Add forward decl.
14298 (maybe_add_script): Delete.
14299 (auto_load_objfile_script): Declare.
14300 (script_not_found_warning_print): Delete.
14301 (auto_load_info_scripts): Update prototype.
14302 (auto_load_gdb_scripts_enabled): Declare.
14303 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14304 auto_load_python_scripts_enabled and made public.
14305 (script_language_python): Delete, moved to python.c.
14306 (gdbpy_script_language_defn): Delete.
14307 (info_auto_load_python_scripts): Update to use
14308 extension_language_python.
14310 * breakpoint.c (condition_command): Replace call to
14311 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14312 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14313 with call to breakpoint_ext_lang_cond_says_stop.
14314 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14315 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14316 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14317 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14319 (local_setattro): Print name of extension language with existing
14322 * valprint.c (val_print, value_print): Update to call
14323 apply_ext_lang_val_pretty_printer.
14324 * cp-valprint.c (cp_print_value): Update call to
14325 apply_ext_lang_val_pretty_printer.
14326 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14327 (gdbpy_apply_val_pretty_printer): Renamed from
14328 apply_val_pretty_printer. New arg extlang.
14329 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14331 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14332 extension language API.
14333 * cli/cli-script.c (execute_control_command): Update to call
14334 eval_ext_lang_from_control_command.
14336 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14337 enum ext_lang_bt_status values. Update call to
14338 apply_ext_lang_frame_filter.
14339 (mi_cmd_stack_list_locals): Ditto.
14340 (mi_cmd_stack_list_args): Ditto.
14341 (mi_cmd_stack_list_variables): Ditto.
14342 * mi/mi-main.c: Delete #include "python/python-internal.h".
14343 Add #include "extension.h".
14344 (mi_cmd_list_features): Replace reference to python internal variable
14345 gdb_python_initialized with call to ext_lang_initialized_p.
14347 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14348 Update to use enum ext_lang_frame_args. Update to call
14349 apply_ext_lang_frame_filter.
14350 * python/py-framefilter.c (extract_sym): Update to use enum
14351 ext_lang_bt_status.
14352 (extract_value, py_print_type, py_print_value): Ditto.
14353 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14354 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14355 (py_print_frame): Ditto.
14356 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14357 New arg extlang. Update to use enum ext_lang_bt_status.
14359 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14360 finish_python_initialization. Replace with call to
14361 finish_ext_lang_initialization.
14363 * typeprint.c (do_free_global_table): Update to call
14364 free_ext_lang_type_printers.
14365 (create_global_typedef_table): Update to call
14366 start_ext_lang_type_printers.
14367 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14368 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14369 (type_print_options): Change type of global_printers from "void *"
14370 to "struct ext_lang_type_printers *".
14372 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14373 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14374 (gdbpy_preserve_values): Renamed from preserve_python_values.
14376 (!HAVE_PYTHON, preserve_python_values): Delete.
14378 * utils.c (quit_flag): Delete, moved to extension.c.
14379 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14382 * eval.c: Delete #include "python/python.h".
14383 * main.c: Delete #include "python/python.h".
14385 * defs.h: Update comment.
14387 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14391 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14393 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14396 2014-02-05 Yao Qi <yao@codesourcery.com>
14398 * remote.c (remote_pass_signals): Remove local 'buf' and use
14400 (remote_program_signals): Likewise.
14402 2014-02-05 Yao Qi <yao@codesourcery.com>
14404 * ctf.c: Include "inferior.h" and "gdbthread.h".
14405 (CTF_PID): A new macro.
14406 (ctf_open): Call inferior_appeared and add_thread_silent.
14407 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14408 (ctf_thread_alive): New function.
14409 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14411 2014-02-05 Yao Qi <yao@codesourcery.com>
14415 2013-05-24 Yao Qi <yao@codesourcery.com>
14417 * tracepoint.c (TFILE_PID): Remove.
14418 (tfile_open): Don't add thread and inferior.
14419 (tfile_close): Don't set 'inferior_ptid'. Don't call
14420 exit_inferior_silent.
14421 (tfile_thread_alive): Remove.
14422 (init_tfile_ops): Don't set field 'to_thread_alive' of
14425 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14427 * remote.c (remote_start_remote): Call remote_check_symbols even
14428 if only symbol-file (not file) has been given.
14430 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14432 * gdbarch.sh (skip_entrypoint): New callback.
14433 * gdbarch.c, gdbarch.h: Regenerate.
14434 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14435 * infrun.c (fill_in_stop_func): Likewise.
14436 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14437 (ppc_elfv2_elf_make_msymbol_special): New function.
14438 (ppc_elfv2_skip_entrypoint): Likewise.
14439 (ppc_linux_init_abi): Install them for ELFv2.
14441 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14443 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14444 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14445 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14446 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14447 structures returned in GPRs.
14449 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14451 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14452 offset to the stack parameter list for the ELFv2 ABI.
14454 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14456 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14457 set_gdbarch_convert_from_func_ptr_addr and
14458 set_gdbarch_elf_make_msymbol_special for ELFv1.
14459 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14460 function descriptors on ELFv1.
14461 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14462 set up r12 at function entry.
14464 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14466 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14467 (struct gdbarch_tdep): New member elf_abi.
14469 * rs6000-tdep.c: Include "elf/ppc64.h".
14470 (rs6000_gdbarch_init): Detect ELF ABI version.
14472 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14474 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14475 within a register pair holding a DFP 128-bit value on little-endian.
14476 (ppc64_sysv_abi_return_value_base): Likewise.
14477 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14478 (dfp_pseudo_register_write): Likewise.
14480 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14482 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14483 offset on little-endian when passing _Decimal32.
14484 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14486 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14488 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14489 of the overlapped FP register within the VSX register on little-
14491 (efpr_pseudo_register_write): Likewise.
14493 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14495 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14496 offset on little-endian when passing small structures.
14498 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14500 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14501 (struct ppc64_sysv_argpos): New data structure.
14502 (ppc64_sysv_abi_push_float): Remove.
14503 (ppc64_sysv_abi_push_val): New function.
14504 (ppc64_sysv_abi_push_integer): Likewise.
14505 (ppc64_sysv_abi_push_freg): Likewise.
14506 (ppc64_sysv_abi_push_vreg): Likewise.
14507 (ppc64_sysv_abi_push_param): Likewise.
14508 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14509 (ppc64_sysv_abi_return_value_base): New function.
14510 (ppc64_sysv_abi_return_value): Refactor to use it.
14512 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14514 * NEWS: Document new target powerpc64le-*-linux*.
14516 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14518 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14519 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14521 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14522 register set used in ELF core dumps. Add floating-point register set.
14524 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14526 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14527 dwarf2_to_gdb[] table using symbolic constants. Adjust
14528 penultimate entry from number representing the PC register
14529 to symbolic constant representing the MDR register. Add
14530 constant for the PC register to the end of the table.
14532 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14534 * bsd-kvm.c: Include <sys/param.h>
14536 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14538 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14540 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14542 * ada-lang.h (clear_ada_sym_cache): Delete.
14544 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14546 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14548 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14550 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14551 the sigreturn register save area only if the syscall is
14554 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14556 * valops.c (value_slice): Minor reformatting.
14558 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14560 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14562 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14564 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14565 New static globals.
14566 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14567 (ada_ignore_descriptive_types_p): New static global.
14568 (find_parallel_type_by_descriptive_type): Return immediately
14569 if ada_ignore_descriptive_types_p is set.
14570 (_initialize_ada_language): Register new commands "maintenance
14571 set ada", "maintenance show ada", "maintenance set ada
14572 ignore-descriptive-types" and "maintenance show ada
14573 ignore-descriptive-types".
14574 * NEWS: Add entry for new "maint ada set/show
14575 ignore-descriptive-types" commands.
14577 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14579 * record-btrace.c (record_btrace_close): Call btrace_teardown
14582 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14584 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14587 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14589 * ada-typeprint (type_is_full_subrange_of_target_type):
14591 (print_range): Add parameter bounds_prefered_p. If not set,
14592 try printing range types using the name of their base type.
14593 (print_range_type): Add parameter bounds_prefered_p.
14594 Use it in call to print_range.
14595 (print_array_type, ada_print_type): Update calls to print_range
14596 and print_range_type.
14598 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14600 * ada-typeprint.c (print_array_type, print_choices, print_range)
14601 (print_range_bound, print_dynamic_range_bound, print_range_type):
14602 Remove declaration.
14604 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14606 * ada-typeprint.c (print_range): Add missing empty line
14607 after local declaration.
14609 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14611 * ada-valprint.c (print_optional_low_bound): Get index_type's
14612 target type for as long as it is a TYPE_CODE_RANGE.
14614 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14616 * procfs.c (procfs_make_note_section): Remove assertion and
14617 associated comment.
14619 2014-01-24 Yao Qi <yao@codesourcery.com>
14621 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14622 * corelow.c (get_core_siginfo): Likewise.
14624 2014-01-24 Yao Qi <yao@codesourcery.com>
14626 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14627 ULONGEST. Don't check 'len' is negative.
14628 (remote_write_bytes): Change type of 'len' to ULONGEST.
14630 2014-01-23 Tom Tromey <tromey@redhat.com>
14633 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14634 Handle exception from frame.block.
14635 (FrameVars.fetch_frame_locals): Likewise.
14637 2014-01-23 Tom Tromey <tromey@redhat.com>
14640 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14641 on a NULL pointer. Move "goto error" to correct place.
14643 2014-01-23 Tom Tromey <tromey@redhat.com>
14646 * python/py-framefilter.c (apply_frame_filter): Call
14647 ensure_python_env after computing gdbarch.
14649 2014-01-23 Yao Qi <yao@codesourcery.com>
14651 * target.c (raw_memory_xfer_partial): Change argument type
14652 from void * to gdb_byte *.
14653 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14655 2014-01-22 Doug Evans <dje@google.com>
14657 New gdbserver option --debug-format=timestamp.
14658 * NEWS: Mention it.
14660 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14662 * syscalls/s390x-linux.xml: New file.
14663 * syscalls/s390-linux.xml: New file.
14664 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14665 (XML_SYSCALL_FILENAME_S390X): Likewise.
14666 (op_svc): New enum value for SVC opcode.
14667 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14668 (s390_linux_get_syscall_number): New function.
14669 (s390_gdbarch_init): Register '*get_syscall_number' and the
14670 syscall xml file name.
14671 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14672 "s390-linux.xml" and "s390x-linux.xml".
14673 * NEWS: Announce new feature.
14675 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14677 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14679 2014-01-22 Pedro Alves <palves@redhat.com>
14681 * xtensa-config.c: Include defs.h.
14683 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14685 * common/common-utils.h: Add "ARI:" comment beside __func__
14688 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14690 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14691 documentation a bit.
14693 2014-01-21 Roland McGrath <mcgrathr@google.com>
14695 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14696 * configure: Regenerate.
14697 * aclocal.m4: Regenerate.
14698 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14699 New substituted variables.
14700 (install-strip): New target.
14701 (INSTALL_SCRIPT): New substituted variable.
14702 (FLAGS_TO_PASS): Add it.
14703 (install-only): Use $(INSTALL_SCRIPT) rather than
14704 $(INSTALL_PROGRAM) for gcore.
14706 2014-01-20 Tom Tromey <tromey@redhat.com>
14708 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14711 2014-01-20 Tom Tromey <tromey@redhat.com>
14713 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14714 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14715 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14716 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14717 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14718 (struct cmd_list_element) <flags>: Remove.
14719 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14720 doc_allocated>: New fields.
14721 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14723 * maint.c (maintenance_do_deprecate): Update.
14724 * top.c (execute_command): Update.
14726 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14728 * xtensa-linux-nat.c: Include asm/ptrace.h.
14730 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14732 * Makefile.in (SFILES): Add d-support.c.
14733 (COMMON_OBS): Add d-support.o.
14734 * d-lang.h (d_parse_symbol): Add comment, now defined in
14736 * d-lang.c (parse_call_convention)
14737 (parse_attributes, parse_function_types)
14738 (parse_function_args, parse_type, parse_identifier)
14739 (call_convention_p, d_parse_symbol): Move functions to ...
14740 * d-support.c: ... New file.
14742 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14744 * d-lang.h (d_parse_symbol): Add declaration.
14745 * d-lang.c (extract_identifiers)
14746 (extract_type_info): Remove functions.
14747 (parse_call_convention, parse_attributes)
14748 (parse_function_types, parse_function_args)
14749 (parse_type, parse_identifier, call_convention_p)
14750 (d_parse_symbol): New functions.
14751 (d_demangle): Use d_parse_symbol to demangle D symbols.
14753 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14755 * d-lang.h (struct builtin_d_type): New data type.
14756 (builtin_d_type): Add declaration.
14757 * d-lang.c (d_language_arch_info, build_d_types)
14758 (builtin_d_type): New functions.
14759 (enum d_primitive_types): New data type.
14760 (d_language_defn): Change c_language_arch_info to
14761 d_language_arch_info.
14762 (d_type_data): New static variable.
14763 (_initialize_d_language): Initialize d_type_data.
14765 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14767 * d-lang.h (d_main_name): Add declaration.
14768 * d-lang.c (d_main_name): New function.
14769 * symtab.c (find_main_name): Add call to d_main_name.
14771 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14773 * d-lang.c (d_language_defn): Change macro_expansion_c to
14774 macro_expansion_no.
14776 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14778 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14780 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14782 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14783 gdb_exception" declaration.
14784 * remote.c (getpkt_or_notif_sane): Likewise.
14786 2014-01-17 Doug Evans <dje@google.com>
14788 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14789 function, contents of dirnames_to_char_ptr_vec_append moved here.
14790 (delim_string_to_char_ptr_vec): New function.
14791 (dirnames_to_char_ptr_vec_append): Rewrite.
14792 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14794 2014-01-17 Doug Evans <dje@google.com>
14796 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14798 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14799 #include "common-utils.h".
14800 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14801 * common/vec.h (VEC_ASSERT_PASS): Update.
14802 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14803 (MACH_CHECK_ERROR): Update.
14805 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14807 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14809 * gdbarch.h: Regenerate.
14811 2014-01-16 Tom Tromey <tromey@redhat.com>
14813 * value.c (struct value) <regnum>: Move earlier.
14815 2014-01-16 Tom Tromey <tromey@redhat.com>
14817 * remote.c (extended_remote_create_inferior): Rename from
14818 extended_remote_create_inferior_1. Add "ops" argument. Remove
14819 old implementation.
14821 2014-01-16 Pedro Alves <palves@redhat.com>
14823 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14824 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14827 2014-01-16 Doug Evans <dje@google.com>
14829 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14833 * btrace.h (btrace_thread_flag): New.
14834 (struct btrace_thread_info) <flags>: New.
14835 * record-btrace.c (record_btrace_resume_thread)
14836 (record_btrace_find_thread_to_move, btrace_step_no_history)
14837 (btrace_step_stopped, record_btrace_start_replaying)
14838 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14839 (record_btrace_find_resume_thread): New.
14840 (record_btrace_resume, record_btrace_wait): Extend.
14841 (record_btrace_can_execute_reverse): New.
14842 (record_btrace_open): Fail in non-stop mode.
14843 (record_btrace_set_replay): Split into this, ...
14844 (record_btrace_stop_replaying): ... this, ...
14845 (record_btrace_clear_histories): ... and this.
14846 (init_record_btrace_ops): Init to_can_execute_reverse.
14847 * NEWS: Announce it.
14849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14851 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14852 (forward_target_decr_pc_after_break)
14853 (target_decr_pc_after_break): New.
14854 * target.c (forward_target_decr_pc_after_break)
14855 (target_decr_pc_after_break): New.
14856 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14857 instead of gdbarch_decr_pc_after_break.
14858 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14859 instead of gdbarch_decr_pc_after_break.
14860 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14861 instead of gdbarch_decr_pc_after_break.
14862 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14863 instead of gdbarch_decr_pc_after_break.
14864 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14865 instead of gdbarch_decr_pc_after_break.
14866 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14867 instead of gdbarch_decr_pc_after_break.
14869 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14871 * btrace.c: Include regcache.h.
14872 (btrace_add_pc): New.
14873 (btrace_enable): Call btrace_add_pc.
14874 (btrace_is_empty): New.
14875 * btrace.h (btrace_is_empty): New.
14876 * record-btrace.c (require_btrace, record_btrace_info): Call
14879 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14881 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14882 Support delta reads.
14883 (linux_disable_btrace): Change return type.
14884 * common/linux-btrace.h (linux_read_btrace): Change parameters
14885 and return type to allow error reporting. Update users.
14886 (linux_disable_btrace): Change return type. Update users.
14887 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14889 (btrace_error): New.
14890 (btrace_block) <begin>: Comment on BEGIN == 0.
14891 * btrace.c (btrace_compute_ftrace): Start from the end of
14893 (btrace_stitch_trace, btrace_clear_history): New.
14894 (btrace_fetch): Read delta trace, return if replaying.
14895 (btrace_clear): Move clear history code to btrace_clear_history.
14896 (parse_xml_btrace): Throw an error if parsing failed.
14897 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14898 and return type to allow error reporting.
14899 (target_read_btrace): Change parameters and return type to allow
14901 * target.c (target_read_btrace): Update.
14902 * remote.c (remote_read_btrace): Support delta reads. Pass
14904 * NEWS: Announce it.
14906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14908 * record.h (record_btrace_frame_unwind)
14909 (record_btrace_tailcall_frame_unwind): New declarations.
14910 * dwarf2-frame: Include record.h
14911 (dwarf2_frame_cfa): Throw an error for btrace frames.
14912 * record-btrace.c: Include hashtab.h.
14913 (btrace_get_bfun_name): New.
14914 (btrace_call_history): Call btrace_get_bfun_name.
14915 (struct btrace_frame_cache): New.
14917 (bfcache_hash, bfcache_eq, bfcache_new): New.
14918 (btrace_get_frame_function): New.
14919 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14920 (record_btrace_frame_this_id): Compute own id.
14921 (record_btrace_frame_prev_register): Provide PC, throw_error
14922 for all other registers.
14923 (record_btrace_frame_sniffer): Detect btrace frames.
14924 (record_btrace_tailcall_frame_sniffer): New.
14925 (record_btrace_frame_dealloc_cache): New.
14926 (record_btrace_frame_unwind): Add new functions.
14927 (record_btrace_tailcall_frame_unwind): New.
14928 (_initialize_record_btrace): Allocate cache.
14929 * btrace.c (btrace_clear): Call reinit_frame_cache.
14930 * NEWS: Announce it.
14932 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14934 * record-btrace.c (record_btrace_set_replay)
14935 (record_btrace_goto_begin, record_btrace_goto_end)
14936 (record_btrace_goto): New.
14937 (init_record_btrace_ops): Initialize them.
14938 * NEWS: Announce it.
14940 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14942 * record-btrace.c (record_btrace_find_new_threads)
14943 (record_btrace_thread_alive): New.
14944 (init_record_btrace_ops): Initialize to_find_new_threads and
14947 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14949 * record-btrace.c (record_btrace_resume): New.
14950 (record_btrace_wait): New.
14951 (init_record_btrace_ops): Initialize to_wait and to_resume.
14953 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14955 * record-btrace.c (record_btrace_xfer_partial)
14956 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14957 (record_btrace_allow_memory_access): New.
14958 (init_record_btrace_ops): Initialize new methods.
14959 * target.c (raw_memory_xfer_partial): Bail out if target reports
14960 that this memory is not available.
14962 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14964 * target.h (target_ops) <to_insert_breakpoint>
14965 <to_remove_breakpoint>: Add target_ops parameter.
14966 (forward_target_insert_breakpoint): New.
14967 (forward_target_remove_breakpoint): New.
14968 (memory_remove_breakpoint, memory_insert_breakpoint):
14969 Add target_ops parameter.
14970 * target.c (target_insert_breakpoint): Split into this and ...
14971 (forward_target_insert_breakpoint): ... this.
14972 (target_remove_breakpoint): Split into this and ...
14973 (forward_target_remove_breakpoint): ... this.
14974 (debug_to_insert_breakpoint): Add target_ops parameter.
14975 Call forward_target_insert_breakpoint.
14976 (debug_to_remove_breakpoint): Add target_ops parameter.
14977 Call forward_target_remove_breakpoint.
14978 (update_current_target): Do not inherit or default to_insert_breakpoint
14979 and to_remove_breakpoint.
14980 * corelow.c (ignore): Add target_ops parameter.
14981 * exec.c (ignore): Add target_ops parameter.
14982 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14983 Add target_ops parameter.
14984 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14985 Add target_ops parameter.
14986 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14987 Add target_ops parameter.
14988 * record-full.c (record_full_beneath_to_insert_breakpoint)
14989 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14990 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14991 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14992 (record_full_core_remove_breakpoint): Add target_ops parameter.
14994 (record_full_beneath_to_insert_breakpoint_ops)
14995 (record_full_beneath_to_remove_breakpoint_ops)
14996 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14997 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14998 tmp_to_remove_breakpoint_ops,
14999 record_full_beneath_to_insert_breakpoint_ops, and
15000 record_full_beneath_to_remove_breakpoint_ops.
15001 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15002 (m32r_remove_breakpoint): Add target_ops parameter.
15003 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15004 Add target_ops parameter.
15005 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15006 Add target_ops parameter.
15008 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15009 Markus Metzger <markus.t.metzger@intel.com>
15011 * record-btrace.c: Include frame-unwind.h.
15012 (record_btrace_frame_unwind_stop_reason)
15013 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15014 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15016 (init_record_btrace_ops): Install it.
15018 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15020 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15023 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15025 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15028 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15030 * frame-unwind.c: Include target.h.
15031 (frame_unwind_try_unwinder): New function with code from ...
15032 (frame_unwind_find_by_frame): ... here. New variable
15033 unwinder_from_target, call also target_get_unwinder)
15034 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15035 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15036 * target.h (struct target_ops): New fields to_get_unwinder and
15037 to_get_tailcall_unwinder.
15038 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15040 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15042 * record-btrace.c (record_btrace_fetch_registers)
15043 (record_btrace_store_registers)
15044 (record_btrace_to_prepare_to_store): New.
15045 (init_record_btrace_ops): Add the above.
15047 2014-01-16 Tom Tromey <tromey@redhat.com>
15049 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15050 * target.h (struct target_ops) <to_prepare_to_store>: Add
15052 (target_prepare_to_store): Add argument.
15053 * target.c (debug_to_prepare_to_store): Add argument.
15054 (update_current_target): Update.
15055 * remote.c (remote_prepare_to_store): Add 'self' argument.
15056 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15057 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15058 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15059 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15061 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15062 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15063 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15064 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15065 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15067 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15069 * btrace.h (replay) <replay>: New.
15070 (btrace_is_replaying): New.
15071 * btrace.c (btrace_clear): Free replay iterator.
15072 (btrace_is_replaying): New.
15073 * record-btrace.c (record_btrace_is_replaying): New.
15074 (record_btrace_info): Print insn number if replaying.
15075 (record_btrace_insn_history): Start at replay position.
15076 (record_btrace_call_history): Start at replay position.
15077 (init_record_btrace_ops): Init to_record_is_replaying.
15079 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15081 * record-btrace.c (record_btrace_insn_history_range): Include
15083 (record_btrace_insn_history_from): Adjust range.
15084 (record_btrace_call_history_range): Include
15086 (record_btrace_call_history_from): Adjust range.
15087 * NEWS: Announce changes.
15089 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15091 * record.h (enum record_print_flag)
15092 <record_print_indent_calls>: New.
15093 * record.c (get_call_history_modifiers): Recognize /c modifier.
15094 (_initialize_record): Document /c modifier.
15095 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15096 Reorder fields. Optionally indent the function name. Update
15098 * NEWS: Announce changes.
15100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15102 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15104 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15106 * btrace.c (ftrace_new_function): Start counting at one.
15107 * record-btrace.c (record_btrace_info): Adjust number of calls
15109 * NEWS: Announce it.
15111 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15113 * record-btrace.c (btrace_call_history_insn_range): Print
15114 insn range as [begin, end].
15116 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15118 * btrace.h (struct btrace_func_link): New.
15119 (enum btrace_function_flag): New.
15120 (struct btrace_inst): Rename to ...
15121 (struct btrace_insn): ...this. Update all users.
15122 (struct btrace_func) <ibegin, iend>: Remove.
15123 (struct btrace_func_link): New.
15124 (struct btrace_func): Rename to ...
15125 (struct btrace_function): ...this. Update all users.
15126 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15127 (number, level, flags>: New.
15128 (struct btrace_insn_iterator): Rename to ...
15129 (struct btrace_insn_history): ...this.
15131 (struct btrace_insn_iterator, btrace_call_iterator): New.
15132 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15133 (struct btrace_target_info) <begin, end, level>
15134 <insn_history, call_history>: New.
15135 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15136 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15137 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15138 (btrace_call_number, btrace_call_begin, btrace_call_end)
15139 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15140 (btrace_find_function_by_number, btrace_set_insn_history)
15141 (btrace_set_call_history): New.
15142 * btrace.c (btrace_init_insn_iterator)
15143 (btrace_init_func_iterator, compute_itrace): Remove.
15144 (ftrace_print_function_name, ftrace_print_filename)
15145 (ftrace_skip_file): Change
15146 parameter to const.
15147 (ftrace_init_func): Remove.
15148 (ftrace_debug): Use new btrace_function fields.
15149 (ftrace_function_switched): Also consider gaining and
15150 losing symbol information).
15151 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15152 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15153 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15155 (ftrace_new_function): Move. Remove debug print.
15156 (ftrace_update_lines, ftrace_update_insns): New.
15157 (ftrace_update_function): Check for call, ret, and jump.
15158 (compute_ftrace): Renamed to ...
15159 (btrace_compute_ftrace): ...this. Rewritten to compute call
15161 (btrace_fetch, btrace_clear): Updated.
15162 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15163 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15164 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15165 (btrace_call_number, btrace_call_begin, btrace_call_end)
15166 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15167 (btrace_find_function_by_number, btrace_set_insn_history)
15168 (btrace_set_call_history): New.
15169 * record-btrace.c (require_btrace): Use new btrace thread
15171 (record_btrace_info, btrace_insn_history)
15172 (record_btrace_insn_history, record_btrace_insn_history_range):
15173 Use new btrace thread info fields and new iterator.
15174 (btrace_func_history_src_line): Rename to ...
15175 (btrace_call_history_src_line): ...this. Use new btrace
15176 thread info fields.
15177 (btrace_func_history): Rename to ...
15178 (btrace_call_history): ...this. Use new btrace thread info
15179 fields and new iterator.
15180 (record_btrace_call_history, record_btrace_call_history_range):
15181 Use new btrace thread info fields and new iterator.
15183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15185 * frame.h (frame_id_build_unavailable_stack_special): New.
15186 * frame.c (frame_id_build_unavailable_stack_special): New.
15188 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15190 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15191 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15192 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15194 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15195 (i386_insn_is_jump, i386_jmp_p): New.
15196 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15197 insn_is_jump to gdbarch.
15198 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15199 * gdbarch.h: Regenerated.
15200 * gdbarch.c: Regenerated.
15201 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15202 (default_insn_is_jump): New.
15203 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15204 (default_insn_is_jump): New.
15206 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15208 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15210 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15211 (btrace_read_type) <btrace_read_new>: Change to ...
15212 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15214 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15216 * common/linux-btrace.c (linux_read_btrace): Free trace from
15217 previous iteration.
15219 2014-01-15 Doug Evans <dje@google.com>
15221 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15224 2014-01-15 Tom Tromey <tromey@redhat.com>
15226 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15227 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15228 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15229 (set_objfile_main_name): New function.
15230 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15231 language_of_main>: New fields.
15232 (set_objfile_main_name): Declare.
15233 * symtab.c (find_main_name): Loop over objfiles to find the main
15235 (set_main_name): Now static.
15236 (get_main_info): Add comment.
15237 * symtab.h (set_main_name): Don't declare.
15239 2014-01-15 Tom Tromey <tromey@redhat.com>
15241 * symtab.c (main_progspace_key): New global.
15242 (struct main_info): New.
15243 (name_of_main, language_of_main): Remove.
15244 (get_main_info, main_info_cleanup): New function.
15245 (set_main_name, main_name, main_language): Use get_main_info.
15246 (_initialize_symtab): Initialize main_progspace_key.
15248 2014-01-15 Tom Tromey <tromey@redhat.com>
15250 * dbxread.c (process_one_symbol): Update.
15251 * dwarf2read.c (read_partial_die): Update.
15252 * symfile.c (set_initial_language): Call main_language.
15253 * symtab.c (language_of_main): Now static.
15254 (set_main_name): Add 'lang' parameter.
15255 (find_main_name): Update.
15256 (main_language): New function.
15257 (symtab_observer_executable_changed): Update.
15258 * symtab.h (set_main_name): Update.
15259 (language_of_main): Remove.
15260 (main_language): Declare.
15262 2014-01-15 Tom Tromey <tromey@redhat.com>
15264 * symfile.c (init_entry_point_info): Use new "initialized" field.
15266 * objfiles.h (struct entry_point) <initialized>: New field.
15267 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15268 (struct objfile) <ei>: ...here. Remove.
15269 * objfiles.c (entry_point_address_query): Update.
15271 2014-01-15 Tom Tromey <tromey@redhat.com>
15273 * objfiles.c (entry_point_address_query): Relocate entry point
15275 (objfile_relocate1): Do not relocate entry point address.
15276 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15277 <the_bfd_section_index>: New field.
15278 * symfile.c (init_entry_point_info): Find the entry point's
15281 2014-01-15 Tom Tromey <tromey@redhat.com>
15283 * solib-frv.c (enable_break): Use entry_point_address_query.
15285 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15287 * NEWS: Add note on improved process record-replay on
15288 arm*-linux* targets.
15290 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15292 * arm-tdep.c (enum arm_record_result): New enum.
15293 (arm_record_unsupported_insn): New function.
15294 (arm_record_coproc_data_proc): Removed.
15295 (thumb2_record_ld_st_multiple): New function.
15296 (thumb2_record_ld_st_dual_ex_tbb): New function.
15297 (thumb2_record_data_proc_sreg_mimm): New function.
15298 (thumb2_record_ps_dest_generic): New function.
15299 (thumb2_record_branch_misc_cntrl): New function.
15300 (thumb2_record_str_single_data): New function.
15301 (thumb2_record_ld_mem_hints): New function.
15302 (thumb2_record_ld_word): New function.
15303 (thumb2_record_lmul_lmla_div): New function.
15304 (thumb2_record_decode_insn_handler): New function.
15305 (decode_insn): Add thumb32 instruction handlers.
15307 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15309 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15310 (struct arm_linux_record_tdep): Declare.
15311 (arm_canonicalize_syscall): New function.
15312 (arm_all_but_pc_registers_record): New function.
15313 (arm_linux_syscall_record): New function.
15314 (arm_linux_init_abi): Add syscall recording constructs.
15315 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15316 decoding. (arm_record_coproc_data_proc): Update arm syscall
15318 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15319 <arm_syscall_record>: New field.
15320 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15323 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15325 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15326 register for push instruction recording.
15328 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15330 * arm-tdep.c (thumb_record_misc): Update to correct logical
15331 error while recording ldm, ldmia and pop instructions.
15333 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15335 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15337 2014-01-15 Pedro Alves <palves@redhat.com>
15339 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15340 (go32_resume, go32_fetch_registers, store_register)
15341 (go32_store_registers, go32_prepare_to_store)
15342 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15343 (go32_create_inferior, go32_can_run, go32_terminal_init)
15344 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15347 2014-01-15 Tom Tromey <tromey@redhat.com>
15349 * target.h (async_callback_ftype): New typedef.
15350 (struct target_ops) <to_async>: Use it.
15352 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15354 * python/py-value.c (get_field_type): Remove unnecessary curly
15355 braces for single-statement if block.
15357 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15359 * python/py-type.c (convert_field): Add missing empty line
15360 after declarations.
15362 2014-01-14 Doug Evans <dje@google.com>
15364 * symfile.h (expand_symtabs_matching): Renamed from
15365 expand_partial_symbol_names. Update prototype.
15366 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15367 * symfile.c (expand_symtabs_matching): Renamed from
15368 expand_partial_symbol_names. New args file_matcher, kind.
15369 Rename arg fun to symbol_matcher.
15370 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15371 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15372 ada_expand_partial_symbol_name.
15373 (ada_make_symbol_completion_list): Update to call
15374 expand_symtabs_matching.
15375 (ada_add_global_exceptions): Call expand_symtabs_matching.
15376 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15377 call map_symbol_filenames.
15378 * symtab.c (sources_info): Update to call map_symbol_filenames.
15379 (search_symbols): Call expand_symtabs_matching.
15380 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15381 (default_make_symbol_completion_list_break_on): Update to call
15382 expand_symtabs_matching.
15383 (make_source_files_completion_list): Update to call
15384 map_symbol_filenames.
15386 2014-01-14 Doug Evans <dje@google.com>
15388 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15389 (expand_symtabs_symbol_matcher_ftype): New typedef.
15390 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15391 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15392 * symfile.c (expand_partial_symbol_names): Update to use
15393 expand_symtabs_symbol_matcher_ftype.
15394 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15395 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15396 Arg name_matcher renamed to symbol_matcher.
15397 * psymtab.c (recursively_search_psymtabs): Update to use
15398 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15400 (expand_symtabs_matching_via_partial): Update to use
15401 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15402 Arg name_matcher renamed to symbol_matcher.
15404 2014-01-14 Doug Evans <dje@google.com>
15406 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15407 (map_partial_symbol_filenames): Ditto.
15408 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15409 (map_partial_symbol_filenames): Ditto.
15410 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15411 (map_partial_symbol_filenames): Ditto.
15412 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15413 (map_partial_symbol_filenames): Ditto.
15414 * symtab.c: Delete #include "psymtab.h".
15416 2014-01-14 Pedro Alves <palves@redhat.com>
15417 Tom Tromey <tromey@redhat.com>
15419 * infrun.c (use_displaced_stepping): Use find_record_target
15420 instead of RECORD_IS_USED.
15421 (adjust_pc_after_break): Use record_full_is_used instead of
15423 * record-btrace.c (record_btrace_open): Call record_preopen
15424 instead of checking RECORD_IS_USED.
15425 * record-full.c (record_full_shortname)
15426 (record_full_core_shortname): New globals.
15427 (record_full_is_used): New function.
15428 (find_full_open): Call record_preopen instead of checking
15430 (init_record_full_ops): Set the target's shortname to
15431 record_full_shortname.
15432 (init_record_full_core_ops): Set the target's shortname to
15433 record_full_core_shortname.
15434 * record-full.h (record_full_is_used): Declare.
15435 * record.c (find_record_target): Make extern.
15436 (record_preopen): New function.
15437 * record.h (RECORD_IS_USED): Delete macro.
15438 (find_record_target, record_preopen): Declare functions.
15440 2014-01-14 Yao Qi <yao@codesourcery.com>
15442 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15443 'len''s type to ULONGEST.
15444 (core_xfer_shared_libraries_aix): Likewise.
15445 * gdbarch.c, gdbarch.h: Regenerated.
15446 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15447 Change type of 'len' to ULONGEST.
15448 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15449 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15451 2014-01-14 Yao Qi <yao@codesourcery.com>
15453 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15454 type of 'len' to ULONGEST.
15455 (linux_xfer_osdata_processgroups): Likewise.
15456 (linux_xfer_osdata_threads): Likewise.
15457 (linux_xfer_osdata_fds): Likewise.
15458 (linux_xfer_osdata_isockets): Likewise.
15459 (linux_xfer_osdata_shm): Likewise.
15460 (linux_xfer_osdata_sem): Likewise.
15461 (linux_xfer_osdata_msg): Likewise.
15462 (linux_common_xfer_osdata): Likewise.
15463 (struct osdata_type) <getter>: Likewise.
15464 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15467 2014-01-14 Yao Qi <yao@codesourcery.com>
15469 * target.h (target_xfer_partial_ftype): Update.
15470 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15472 * aix-thread.c (aix_thread_xfer_partial): Change type of
15473 argument 'len' to ULONGEST.
15474 * auxv.c (procfs_xfer_auxv): Likewise.
15475 (ld_so_xfer_auxv): Likewise.
15476 (memory_xfer_auxv): Likewise.
15477 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15478 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15479 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15480 * corelow.c (core_xfer_partial): Likewise.
15481 * ctf.c (ctf_xfer_partial): Likewise.
15482 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15484 (darwin_read_dyld_info): Likewise.
15485 (darwin_xfer_partial): Likewise.
15486 * exec.c (section_table_xfer_memory_partial): Likewise.
15487 (exec_xfer_partial): Likewise.
15488 * exec.h (section_table_xfer_memory_partial): Update
15490 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15491 instead of plongest.
15492 (gnu_xfer_partial): Likewise.
15493 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15494 (ia64_hpux_xfer_solib_got): Likewise.
15495 (ia64_hpux_xfer_partial): Likewise.
15496 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15497 * inf-ptrace.c (inf_ptrace_xfer_partial):
15498 * inf-ttrace.c (inf_ttrace_xfer_partial):
15499 * linux-nat.c (linux_xfer_siginfo): Likewise.
15500 (linux_nat_xfer_partial): Likewise.
15501 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15502 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15503 * monitor.c (monitor_xfer_memory): Likewise.
15504 (monitor_xfer_partial): Likewise.
15505 * procfs.c (procfs_xfer_partial): Likewise.
15506 * record-full.c (record_full_xfer_partial): Likewise.
15507 (record_full_core_xfer_partial): Likewise.
15508 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15509 instead of plongest.
15510 (gdbsim_xfer_partial): Likewise.
15511 * remote.c (remote_xfer_partial): Likewise.
15512 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15513 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15515 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15516 (rs6000_xfer_shared_libraries): Likewise.
15517 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15518 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15519 (sparc_xfer_partial): Likewise.
15520 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15521 (spu_xfer_partial): Likewise.
15522 * spu-multiarch.c (spu_xfer_partial): Likewise.
15523 * target.c (target_read_live_memory): Likewise.
15524 (memory_xfer_live_readonly_partial): Likewise.
15525 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15526 (target_xfer_partial, default_xfer_partial): Likewise.
15527 (current_xfer_partial): Likewise.
15528 * tracepoint.c (tfile_xfer_partial): Likewise.
15529 * windows-nat.c (windows_xfer_memory): Likewise. Call
15530 pulongest instead of plongest.
15531 (windows_xfer_partial): Likewise.
15532 (windows_xfer_shared_libraries): Likewise.
15534 2014-01-14 Yao Qi <yao@codesourcery.com>
15536 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15537 target_xfer_partial_ftype.
15539 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15543 * valops.c (value_struct_elt_bitpos): New function
15544 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15545 object to 'None' if the field name is an empty string ("").
15546 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15547 attribute to look for a field when 'name' is 'None'.
15548 (get_field_type): New function
15550 2014-01-13 Doug Evans <dje@google.com>
15553 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15554 (try_open_dwop_file): Ditto.
15555 * gdb_bfd.c: #include "vec.h".
15556 (bfdp): New typedef.
15557 (struct gdb_bfd_data): New member included_bfds.
15558 (gdb_bfd_unref): Unref all included bfds.
15559 (gdb_bfd_record_inclusion): New function.
15560 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15562 2014-01-13 Tom Tromey <tromey@redhat.com>
15564 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15566 2014-01-13 Tom Tromey <tromey@redhat.com>
15568 * defs.h (use_windows): Remove.
15569 * gdb.c (main): Update.
15570 * main.c (captured_main, gdb_main): Update.
15571 * main.h (struct captured_main_args) <use_windows>: Remove.
15572 * top.c (use_windows): Remove.
15574 2014-01-13 Tom Tromey <tromey@redhat.com>
15576 * defs.h (deprecated_flush_hook): Remove.
15578 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15581 * linux-thread-db.c (try_thread_db_load): Add parameter
15582 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15583 (try_thread_db_load_from_pdir_1): Move it there from here.
15584 (try_thread_db_load_from_sdir): Update caller.
15585 (try_thread_db_load_from_dir): Move it there from here.
15587 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15589 * regformats/regdat.sh: Always rewrite the register file.
15591 2014-01-13 Pedro Alves <palves@redhat.com>
15593 * Makefile.in (CHECK_HEADERS): New variable.
15594 (check-headers:): New rule.
15596 2014-01-13 Tom Tromey <tromey@redhat.com>
15598 * cli/cli-setshow.c (do_set_command): Update.
15599 * defs.h (deprecated_set_hook): Remove.
15600 * top.c (deprecated_set_hook): Remove.
15602 2014-01-13 Pedro Alves <palves@redhat.com>
15604 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15605 the tracepoint if the PC is a pseudo-register.
15607 2014-01-13 Tom Tromey <tromey@redhat.com>
15609 * defs.h (XCALLOC): Remove.
15610 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15611 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15612 * dwarf2loc.c (allocate_piece_closure): Likewise.
15613 * elfread.c (elf_symfile_segments): Likewise.
15614 (elf_symfile_segments): Likewise.
15615 * gdbtypes.c (copy_type_recursive): Likewise.
15616 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15617 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15618 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15620 * mt-tdep.c (mt_gdbarch_init): Likewise.
15621 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15623 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15624 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15625 * registry.c (registry_alloc_data): Likewise.
15626 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15627 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15628 * serial.c (serial_fdopen_ops): Likewise.
15629 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15631 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15632 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15635 2014-01-13 Tom Tromey <tromey@redhat.com>
15637 * defs.h (XMALLOC): Remove.
15638 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15639 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15640 * cli-out.c (struct ui_out *): Likewise.
15641 * cli/cli-dump.c (add_dump_command): Likewise.
15642 (add_dump_command): Likewise.
15643 * complaints.c (get_complaints): Likewise.
15644 (find_complaint): Likewise.
15645 * dwarf2-frame.c (execute_cfa_program): Likewise.
15646 * dwarf2read.c (abbrev_table_read_table): Likewise.
15647 * gdbarch.sh: Likewise.
15648 * gdbarch.c: Rebuild.
15649 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15650 * interps.c (interp_new): Likewise.
15651 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15652 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15653 * mi/mi-console.c (mi_console_file_new): Likewise.
15654 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15655 * mi/mi-out.c (mi_out_new): Likewise.
15656 * mi/mi-parse.c (mi_parse): Likewise.
15657 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15658 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15659 * observer.c (xalloc_observer_list_node): Likewise.
15660 * regcache.c (regcache_xmalloc_1): Likewise.
15661 * reggroups.c (reggroup_new): Likewise.
15662 (_initialize_reggroup): Likewise.
15663 * registry.c (register_data_with_cleanup): Likewise.
15664 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15665 * ser-base.c (serial_ttystate): Likewise.
15666 * ser-mingw.c (make_pipe_state): Likewise.
15667 * ser-pipe.c (pipe_open): Likewise.
15668 * serial.c (serial_open): Likewise.
15669 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15670 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15671 (tui_alloc_win_info): Likewise.
15672 (tui_add_content_elements): Likewise.
15673 * tui/tui-file.c (tui_file_new): Likewise.
15674 * tui/tui-out.c (tui_out_new): Likewise.
15675 * ui-file.c (mem_file_new): Likewise.
15676 * ui-out.c (push_level): Likewise.
15677 (make_cleanup_ui_out_end): Likewise.
15678 (append_header_to_list): Likewise.
15679 (ui_out_new): Likewise.
15680 * user-regs.c (user_reg_add_builtin): Likewise.
15682 2014-01-13 Tom Tromey <tromey@redhat.com>
15684 * defs.h (XZALLOC): Remove.
15685 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15686 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15687 (get_ada_tasks_inferior_data): Likewise.
15688 * auto-load.c (get_auto_load_pspace_data): Likewise.
15689 * auxv.c (get_auxv_inferior_data): Likewise.
15690 * bfd-target.c (target_bfd_reopen): Likewise.
15691 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15692 (deprecated_insert_raw_breakpoint): Likewise.
15693 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15694 * corelow.c (core_open): Likewise.
15695 * darwin-nat.c (darwin_check_new_threads): Likewise.
15696 (darwin_attach_pid): Likewise.
15697 * dummy-frame.c (dummy_frame_push): Likewise.
15698 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15699 * dwarf2loc.c (allocate_piece_closure): Likewise.
15700 * elfread.c (elf_symfile_segments): Likewise.
15701 * eval.c (ptrmath_type_p): Likewise.
15702 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15703 * gdbtypes.c (alloc_type_arch): Likewise.
15704 (alloc_type_instance): Likewise.
15705 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15706 * inf-child.c (inf_child_can_use_agent): Likewise.
15707 * inflow.c (get_inflow_inferior_data): Likewise.
15708 * infrun.c (save_infcall_suspend_state): Likewise.
15709 * jit.c (jit_reader_load): Likewise.
15710 (get_jit_objfile_data): Likewise.
15711 (get_jit_program_space_data): Likewise.
15712 (jit_object_open_impl): Likewise.
15713 (jit_symtab_open_impl): Likewise.
15714 (jit_block_open_impl): Likewise.
15715 (jit_frame_sniffer): Likewise.
15716 * linux-fork.c (add_fork): Likewise.
15717 * maint.c (make_command_stats_cleanup): Likewise.
15718 * objfiles.c (get_objfile_pspace_data): Likewise.
15719 * opencl-lang.c (struct lval_closure): Likewise.
15720 * osdata.c (osdata_start_osdata): Likewise.
15721 * progspace.c (new_address_space): Likewise.
15722 (add_program_space): Likewise.
15723 * remote-sim.c (get_sim_inferior_data): Likewise.
15724 * sh-tdep.c (sh_gdbarch_init): Likewise.
15725 * skip.c (Ignore): Likewise.
15726 (skip_delete_command): Likewise.
15727 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15728 (library_list_start_library): Likewise.
15729 (solib_aix_current_sos): Likewise.
15730 * solib-darwin.c (get_darwin_info): Likewise.
15731 (darwin_current_sos): Likewise.
15732 * solib-dsbt.c (get_dsbt_info): Likewise.
15733 * solib-ia64-hpux.c (new_so_list): Likewise.
15734 (ia64_hpux_get_solib_linkage_addr): Likewise.
15735 * solib-spu.c (append_ocl_sos): Likewise.
15736 (spu_current_sos): Likewise.
15737 * solib-svr4.c (get_svr4_info): Likewise.
15738 (svr4_keep_data_in_core): Likewise.
15739 (library_list_start_library): Likewise.
15740 (svr4_default_sos): Likewise.
15741 (svr4_read_so_list): Likewise.
15742 * solib-target.c (library_list_start_library): Likewise.
15743 (solib_target_current_sos): Likewise.
15744 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15745 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15746 * symfile.c (default_symfile_segments): Likewise.
15747 * target-descriptions.c (tdesc_data_init): Likewise.
15748 (tdesc_create_reg): Likewise.
15749 (struct tdesc_type *): Likewise.
15750 (tdesc_create_vector): Likewise.
15751 (tdesc_set_struct_size): Likewise.
15752 (struct tdesc_type *): Likewise.
15753 (tdesc_free_feature): Likewise.
15754 (tdesc_create_feature): Likewise.
15755 * windows-nat.c (windows_add_thread): Likewise.
15756 (windows_make_so): Likewise.
15757 * xml-support.c (gdb_xml_body_text): Likewise.
15758 (gdb_xml_create_parser_and_cleanup): Likewise.
15759 (xml_process_xincludes): Likewise.
15760 * xml-syscall.c (allocate_syscalls_info): Likewise.
15761 (syscall_create_syscall_desc): Likewise.
15763 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15765 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15766 function, with code from i386_stap_parse_special_token.
15767 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15768 (i386_stap_parse_special_token): Move code to the two functions
15769 above; simplify it.
15771 2014-01-09 Pedro Alves <palves@redhat.com>
15772 Hui Zhu <hui@codesourcery.com>
15775 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15776 bp_err_string. Don't mark the location shlib_disabled if the
15777 error thrown wasn't a generic or memory error. Catch errors
15778 thrown while inserting breakpoints in overlayed code. Output
15779 error message of software breakpoints.
15780 * remote.c (remote_insert_breakpoint): If this breakpoint has
15781 target-side commands but this stub doesn't support Z0 packets,
15782 throw NOT_SUPPORTED_ERROR error.
15783 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15784 * target.h (target_insert_breakpoint): Extend comment.
15785 (target_insert_hw_breakpoint): Add comment.
15787 2014-01-08 Pedro Alves <palves@redhat.com>
15789 * remote.c (remote_add_thread): Add threads silently if starting
15791 (remote_notice_new_inferior): If in all-stop, and starting up,
15792 don't call notice_new_inferior.
15793 (get_current_thread): New function, factored out from ...
15794 (add_current_inferior_and_thread): ... this. Adjust.
15795 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15796 found any thread, then select the remote's current thread as GDB's
15797 current thread too.
15799 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15801 * NEWS: Create a new section for the next release branch.
15802 Rename the section of the current branch, now that it has
15805 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15807 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15808 * version.in: Bump version to 7.7.50.DATE-cvs.
15810 2014-01-08 Yao Qi <yao@codesourcery.com>
15812 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15813 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15814 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15816 2014-01-08 Yao Qi <yao@codesourcery.com>
15818 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15819 return value of bfd_get_filename to symbol_file_add_from_bfd.
15821 2014-01-08 Pierre Muller <muller@sourceware.org>
15824 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15825 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15826 to prim_record_mininal_symbol_and_info.
15827 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15828 in call to prim_record_minimal_symbol_and_info.
15829 (read_pe_exported_syms): Set index field of section_data.
15831 2014-01-07 Andrew Pinski <apinski@cavium.com>
15833 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15834 * features/aarch64.c: Regenerate.
15836 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15838 * target.c (return_null): Define.
15839 (update_current_target): Use it instead of return_zero for
15840 functions that return a pointer.
15842 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15844 * source.c (add_path): Fix check for duplicated paths in the previously
15847 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15849 * ada-lang.c: Remove duplicated include statements.
15850 * alphabsd-nat.c: Ditto.
15851 * amd64-darwin-tdep.c: Ditto.
15852 * amd64fbsd-nat.c: Ditto.
15853 * auto-load.c: Ditto.
15855 * breakpoint.c: Ditto.
15856 * dbxread.c: Ditto.
15857 * fork-child.c: Ditto.
15858 * gdb_usleep.c: Ditto.
15859 * i386-darwin-tdep.c: Ditto.
15860 * i386fbsd-nat.c: Ditto.
15862 * inferior.c: Ditto.
15863 * jv-lang.c: Ditto.
15864 * linux-nat.c: Ditto.
15865 * linux-tdep.c: Ditto.
15866 * m68kbsd-nat.c: Ditto.
15867 * m68klinux-nat.c: Ditto.
15868 * microblaze-tdep.c: Ditto.
15869 * mips-linux-tdep.c: Ditto.
15870 * mn10300-tdep.c: Ditto.
15871 * nto-tdep.c: Ditto.
15872 * opencl-lang.c: Ditto.
15874 * printcmd.c: Ditto.
15875 * regcache.c: Ditto.
15876 * remote-m32r-sdi.c: Ditto.
15878 * symfile.c: Ditto.
15880 * tilegx-linux-nat.c: Ditto.
15881 * tilegx-tdep.c: Ditto.
15882 * tracepoint.c: Ditto.
15884 * vaxbsd-nat.c: Ditto.
15885 * windows-nat.c: Ditto.
15886 * xtensa-tdep.c: Ditto.
15888 2014-01-07 Yao Qi <yao@codesourcery.com>
15890 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15892 2014-01-07 Yao Qi <yao@codesourcery.com>
15893 Joel Brobecker <brobecker@adacore.com>
15895 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15896 (pdc_write_regs): Likewise.
15897 (fetch_regs_kernel_thread): Likewise.
15898 (store_regs_kernel_thread): Likewise.
15900 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15902 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15903 tagged type objects to their actual type.
15905 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15907 * ada-valprint.c (print_field_values): Add "language" parameter.
15908 Update calls to print_field_values and print_variant_part.
15909 Pass new parameter "language" in call to val_print instead
15910 of "current_language". Replace call to ada_val_print by call
15912 (print_variant_part): Add "language" parameter.
15913 (ada_val_print_struct_union): Update call to print_field_values.
15915 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15917 * ada-valprint.c (ui_memcpy): Delete.
15918 (ada_print_floating): Update documentation. Add empty line
15919 between between function documentation and implementation.
15920 Delete variable "buffer". Use ui_file_xstrdup in place of
15921 ui_file_put. Minor adjustments following this change.
15923 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15925 * ada-valprint.c (ada_val_print_string): New function,
15926 extracted from ada_val_print_array.
15927 (ada_val_print_array): Replace extracted code by call
15928 to ada_val_print_string followed by a return. Move
15929 "else" branch to the function's top block.
15931 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15933 * ada-valprint.c (ada_val_print_array): Move implementation
15934 down. Rename parameter "offset" and "val" into "offset_aligned"
15935 and "original_value" respectively. Add parameter "offset".
15937 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15939 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15940 re-organizing the code. Change the "???" message printed
15941 when target type is a TYPE_CODE_UNDEF into
15942 "<ref to undefined type>".
15944 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15946 * ada-valprint.c (print_record): Delete, implementation inlined...
15947 (ada_val_print_struct_union): ... here. Remove call to
15948 ada_check_typedef in inlined implementation.
15950 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15952 * ada-valprint.c (ada_val_print_gnat_array): New function,
15953 extracted from ada_val_print_1;
15954 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15955 (ada_val_print_flt, ada_val_print_struct_union)
15956 (ada_val_print_ref): Likewise.
15957 (ada_val_print_1): Delete variables i and elttype.
15958 Replace extracted-out code by call to corresponding
15961 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15963 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15965 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15967 * ada-valprint.c (ada_val_print_1): Replace calls to
15968 ada_val_print_1 by calls to val_print.
15970 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15972 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15973 Update calls to self accordingly. Replace calls to c_val_print
15974 by calls to val_print.
15976 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15978 * ada-valprint.c (print_record): Delete declaration.
15979 (adjust_type_signedness, ada_val_print_1): Likewise.
15980 (ada_val_print): Move function implementation down.
15981 (print_variant_part, print_field_values, print_record):
15982 Move function implementation up.
15984 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15986 * python/py-type.c (typy_get_name): New function.
15987 (type_object_getset): Add entry for attribute "name".
15988 * NEWS: Add entry mentioning this new attribute.
15990 2014-01-07 Yao Qi <yao@codesourcery.com>
15992 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15995 2014-01-07 Yao Qi <yao@codesourcery.com>
15997 * gnu-nat.c (info_port_rights): Add qualifier const to
16000 2014-01-07 Yao Qi <yao@codesourcery.com>
16002 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16004 2014-01-07 Yao Qi <yao@codesourcery.com>
16006 * gnu-nat.c (make_inf) Update declaration.
16007 (make_inf): Make it static.
16008 (inf_set_traced): Likewise.
16009 (inf_port_to_thread, inf_task_died_status): Likewise.
16011 2014-01-07 Yao Qi <yao@codesourcery.com>
16013 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16015 2014-01-07 Yao Qi <yao@codesourcery.com>
16017 * gnu-nat.c (_initialize_gnu_nat): Declare.
16019 2014-01-07 Yao Qi <yao@codesourcery.com>
16021 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16023 (struct gdbarch_info) <byte_order>: Change type to
16025 <byte_order_for_code>: Likewise.
16026 * gdbarch.c, gdbarch.h: Regenerated.
16028 2014-01-06 Sasha Smundak <asmundak@google.com>
16030 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16032 2014-01-06 Tom Tromey <tromey@redhat.com>
16034 * doublest.c (convert_doublest_to_floatformat): Use const, not
16036 * somread.c (som_symtab_read): Likewise.
16038 2014-01-07 Hui Zhu <hui@codesourcery.com>
16040 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16041 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16042 (gdb_bfd_fopen): Ditto.
16043 (gdb_bfd_openr): Ditto.
16044 (gdb_bfd_openw): Ditto.
16045 (gdb_bfd_openr_iovec): Ditto.
16046 (gdb_bfd_fdopenr): Ditto.
16047 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16048 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16050 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16052 * symfile-mem.c (symbol_file_add_from_memory): Removed
16053 gdb_bfd_stash_filename.
16055 2014-01-03 Doug Evans <dje@google.com>
16057 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16060 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16062 Update year range in copyright notice of all files.
16064 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16066 * top.c (print_gdb_version): Set copyright year to 2014.
16068 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16070 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16072 For older changes see ChangeLog-2013.
16078 version-control: never